:root {
    --geoco-orange: #FF8C00;
    --geoco-pink: #FF1493;
    --geoco-green: #32CD32;
    --geoco-blue: #0000FF;
    --geoco-light-orange: rgba(255, 140, 0, 0.1);
    --geoco-light-pink: rgba(255, 20, 147, 0.1);
    --geoco-light-green: rgba(50, 205, 50, 0.1);
    --geoco-light-blue: rgba(0, 0, 255, 0.1);
    
    /* 新增语义化颜色变量 */
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #1a73e8;
    --color-text: #555;
    --color-border: #eee;
    
    /* 间距变量 */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    
    /* 圆角变量 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    
    /* 阴影变量 */
    --shadow-sm: 0 1px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f0f4f8; /* Default light background for the page */
    color: #333; /* Default text color */
}

/* General Card Override */
.card {
    border-radius: 25px !important; /* Match address-textarea style */
}

/* 基础布局样式 */
.section {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 25px; /* Updated from 8px */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-section {
    /* background: linear-gradient(135deg, #0A2A4E 0%, #1A4A7C 100%); */ /* Old Tech blue gradient */
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f8ff 100%); /* Very light blue gradient */
    color: #333; /* Default dark text color for content within top-section */
    padding: 60px 20px; 
    margin-bottom: 30px; 
    text-align: center;
    border-radius: 0; 
    box-shadow: none; 
}

.logo-container {
    margin-bottom: 25px; /* Space below logo */
}

.site-logo {
    max-height: 100px !important; /* Enlarged Logo */
}

.site-title {
    font-size: 2.5rem; /* Slightly smaller for balance with logo */
    font-weight: 700;
    color: #343a40; /* Dark Gray for title on light background */
    font-family: 'Poppins', 'Helvetica Neue', sans-serif; /* Example of a more modern font, ensure it's available */
    margin-bottom: 0.75rem;
}

.site-slogan {
    font-size: 1.15rem;
    /* color: rgba(255, 255, 255, 0.85); */ /* Old Slightly transparent white */
    color: #5a6f82; /* Muted, darker blue-gray for slogan on light background */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px; /* Space before input area */
    line-height: 1.6;
}

/* Address Textarea as a Card */
.address-textarea {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 25px; /* Increased border-radius for parallelism with pill button */
    padding: 1.25rem; /* More padding */
    font-size: 1rem;
    min-height: 140px; /* Further Reduced height */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow */
    color: #212529; /* Dark text color for input */
    line-height: 1.5;
    padding-bottom: 3.5rem; /* Space for the absolute positioned button */
}

.address-textarea::placeholder {
    color: #6c757d; /* Standard placeholder color */
    opacity: 1; /* Firefox fix */
    text-align: center; /* Center the button */
}

/* Container for the absolutely positioned button within textarea's parent */
.advanced-options-button-container {
    position: absolute;
    bottom: 40px; /* Move slightly up to sit inside textarea */
    right: 20px; /* Align parallel to textarea inner edge */
    z-index: 5; /* Ensure it's above textarea scrollbar if any */
}

/* Advanced Options Styling */
.advanced-options-wrapper {
    text-align: center; /* Center the button */
}

.advanced-options-btn {
    border-radius: 25px !important; /* Pill shape */
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem !important;
    /* color: #fff; */ /* Old White text */
    /* background-color: rgba(255, 255, 255, 0.2); */ /* Old Subtle background on dark */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    color: #007bff; /* Bootstrap primary blue for text */
    background-color: #ffffff; /* White background */
    border: 1px solid #007bff; /* Blue border */
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.advanced-options-btn:hover {
    /* background-color: rgba(255, 255, 255, 0.3); */ /* Old hover */
    /* border-color: rgba(255, 255, 255, 0.4); */
    /* color: #fff; */
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.advanced-options-card {
    /* background-color: rgba(0, 0, 0, 0.15); */ /* Old Darker, translucent card on gradient */
    background-color: #ffffff; /* White card background on light page bg */
    border-radius: 25px; /* Updated from 10px */
    padding: 20px;
    border: 1px solid #e0e0e0; /* Light border for the card */
    text-align: left; /* Align content to left */
    /* color: #f8f9fa; */ /* Old Lighter text for content inside */
    color: #333; /* Standard dark text color */
}

.advanced-options-card h6 {
    /* color: #ffffff; */ /* Old white */
    color: #1A237E; /* Dark Indigo, consistent with site title */
    font-weight: 600;
}

.advanced-options-card .form-text {
    /* color: rgba(255, 255, 255, 0.75); */ /* Old light text */
    color: #6c757d; /* Standard muted text color */
}

.advanced-options-card hr {
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); */ /* Old light HR */
    border-top: 1px solid #dee2e6; /* Standard light HR */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.advanced-options-card .btn-outline-primary,
.advanced-options-card .btn-outline-danger {
    border-radius: 20px !important;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem !important;
    /* Adjust colors for dark background if needed, or use specific classes */
}

/* Main Action Buttons */
.main-action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Space between buttons */
    margin-top: 1rem; /* Reduced space from advanced options wrapper or textarea */
}

.main-action-buttons .btn {
    border-radius: 25px !important; /* Pill shape */
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 2rem !important; /* Generous padding */
    min-width: 200px; /* Ensure buttons have a good width */
    color: #FFA500;
}

.action-btn-smart {
    background-color: #FFA500; /* Bright orange for primary CTA */
    border-color: #FFA500;
    color: #000000; /* Black text for contrast on orange */
}

.action-btn-smart:hover {
    background-color: #cc8400; /* Darker orange on hover */
    border-color: #cc8400;
    color: #000000;
}

.action-btn-normal {
    background-color: transparent;
    border: 1px solid #6c757d; /* Gray outline */
    color: #6c757d; /* Gray text */
}

.action-btn-normal:hover {
    background-color: #f8f9fa; /* Subtle light gray fill on hover */
    color: #495057; /* Darker gray text on hover for readability */
    border-color: #6c757d;
}

/* 强化优先级：覆盖 .main-action-buttons .btn 的文字颜色 */
.main-action-buttons .action-btn-normal {
    color: #6c757d;
    border-color: #6c757d;
}

.main-action-buttons .action-btn-normal:hover {
    color: #495057;
    background-color: #f8f9fa;
    border-color: #6c757d;
}

/* Remove Bootstrap's default styling for .address-input-section if it had any card-like features */
.address-input-section {
    background-color: transparent; /* Ensure it does not act like a card */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Ensure the main container has some padding if top-section has none horizontally for small screens */
@media (max-width: 767px) {
    .top-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .site-title {
        font-size: 2rem;
    }
    .site-slogan {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .address-textarea {
        min-height: 150px;
        padding: 1rem;
        padding-bottom: 3.5rem; /* Adjusted padding for mobile */
    }
    .main-action-buttons .btn {
        font-size: 1rem;
        padding: 0.6rem 1.5rem !important;
        min-width: auto; /* Allow buttons to shrink on mobile */
    }
    .main-action-buttons {
        flex-direction: column; /* Stack buttons on mobile */
        align-items: stretch; /* Make buttons full width of their container */
    }
    .advanced-options-button-container {
        bottom: 14px;
        right: 14px;
    }
    .advanced-options-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem !important;
    }
}

/* Textarea placeholder line breaks */
.address-textarea::placeholder {
  white-space: pre-line;
}

/* 提示和输入区域样式 */
.format-tip {
    padding: 10px 15px;
    margin: 10px 0;
    background-color: var(--geoco-light-orange);
    border-left: 4px solid var(--geoco-orange);
    border-radius: 4px;
    color: #333;
}

.address-input-section {
    margin: 20px 0;
}

.api-selection {
    margin: 15px 0;
    padding: 15px;
    background-color: var(--geoco-light-green);
    border-radius: 25px; /* Updated from 8px */
    border-left: 4px solid var(--geoco-green);
}

.api-selection.disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--geoco-blue);
    border-color: var(--geoco-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-info);
    border-color: var(--color-info);
}

.btn-info {
    background-color: var(--geoco-pink);
    border-color: var(--geoco-pink);
    color: white;
}

.btn-info:hover {
    background-color: #FF1493;
    border-color: #FF1493;
    color: white;
}

.btn-success {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.btn-success:hover {
    background-color: var(--geoco-green);
    border-color: var(--geoco-green);
}

.btn-warning {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    color: black;
}

.btn-warning:hover {
    background-color: var(--geoco-orange);
    border-color: var(--geoco-orange);
}

/* 地图控制样式 */
.map-control {
    background: white;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.map-control label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--geoco-blue);
}

.map-type-control {
    margin-bottom: 10px;
}

/* 标题和Logo样式 */
.title-with-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.title-with-logo img {
    height: 100px;
    object-fit: contain;
}

.title-with-logo h2 {
    font-size: 2.5rem;
    color: var(--geoco-blue);
}

/* 可信度样式统一 */
.verification-level {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-xs);
    font-size: 0.9em;
}

.level-5, .level-4 {
    background-color: var(--color-success);
    color: white;
}

.level-3 {
    background-color: var(--color-warning);
    color: black;
}

.level-2, .level-1 {
    background-color: var(--color-danger);
    color: white;
}

/* 地理编码结果样式 */
.geocoding-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.geocoding-item.selected {
    border: 2px solid #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.geocoding-item h6 {
    color: #333;
    margin-bottom: 0.5rem;
}

.geocoding-item .content {
    margin-top: 0.5rem;
}

.geocode-result {
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.geocode-result.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.geocode-result.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.geocode-result.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* 布局结构样式 */
#middle-section {
    display: flex;
    gap: 15px;
}

.left-panels {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.results-panel {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.calibration-panel {
    flex: 1;
    min-width: 350px;
}

.operation-panel {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 1;
    position: relative;
    /* height: 100%; */ /* Comment out or remove if causing issues */
    height: 600px;    /* Set a fixed height like operation-area */
    border-radius: 8px;
    overflow: hidden;
}

#itemCalibrationMap {
    width: 100%;
    height: 100%;
}

/* Style for the Manual Mark button inside the map container */
#manualMarkBtnOnMap {
    position: absolute;
    bottom: 10px; /* Changed from top to bottom */
    left: 10px;
    z-index: 1000; /* Ensure it's above map layers */
}

/* 搜索建议面板样式 */
#suggestions-panel {
    display: none;
    position: relative;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background-color: #fff;
    box-shadow: var(--shadow-md);
}

.suggestions-section {
    margin-bottom: 20px;
}

.suggestions-section:last-child {
    margin-bottom: 0;
}

.suggestions-text {
    white-space: pre-wrap;
    font-size: 0.9em;
    line-height: 1.5;
}

.suggestion-item {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background-color: #f8f9fa;
}

.suggestion-content {
    margin-bottom: 5px;
}

.suggestion-confidence {
    font-size: 0.85em;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    display: inline-block;
}

.confidence-high {
    background-color: var(--color-success);
    color: white;
}

.confidence-medium {
    background-color: var(--color-warning);
    color: black;
}

.confidence-low {
    background-color: var(--color-danger);
    color: white;
}

.search-results {
    margin-top: 10px;
}

.search-result-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background-color: #fff;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-item h6 {
    margin-bottom: 8px;
    color: var(--color-info);
}

.search-result-item p {
    font-size: 0.9em;
    color: var(--color-text);
    margin-bottom: 8px;
}

.search-result-item a {
    color: var(--color-info);
    text-decoration: none;
    font-size: 0.9em;
}

.search-result-item a:hover {
    text-decoration: underline;
}

.result-relevance {
    font-size: 0.85em;
    color: var(--color-text);
    margin-top: 5px;
}

.close-suggestions {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loading-text {
    margin-top: 10px;
    color: var(--color-text);
    font-size: 0.9em;
}

/* 智能选择样式 */
.smart-select-result {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background-color: #f8f9fa;
}

.smart-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.smart-select-source {
    font-weight: bold;
    color: var(--color-info);
}

.smart-select-score {
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-success);
    color: white;
}

.smart-select-details {
    font-size: 0.9em;
    color: var(--color-text);
}

.smart-select-address {
    margin: 10px 0;
    padding: 8px;
    background-color: #fff;
    border-radius: var(--border-radius-sm);
}

.smart-select-coordinates {
    font-family: monospace;
    color: var(--color-info);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    #middle-section {
        flex-direction: column;
    }
    
    .left-panels, .map-container {
        flex: 1;
        width: 100%;
    }
    
    .results-panel {
        flex-direction: column;
    }
    
    .calibration-panel, .operation-panel {
        width: 100%;
    }
    
    .map-container {
        height: 500px;
        margin-top: var(--spacing-lg);
    }
}

/* 辅助类 */
.hidden {
    display: none !important;
}

/* 准确度和可信度样式统一 */
.accuracy-high, .confidence-high { 
    background-color: var(--geoco-light-green);
    border-left: 4px solid var(--geoco-green);
}

.accuracy-medium, .confidence-medium { 
    background-color: var(--geoco-light-orange);
    border-left: 4px solid var(--geoco-orange);
}

.accuracy-low, .confidence-low { 
    background-color: var(--geoco-light-pink);
    border-left: 4px solid var(--geoco-pink);
}

.verification-level-5 {
    border-left: 4px solid #004085;
    background-color: #cce5ff;
}

.verification-level-4 {
    border-left: 4px solid #155724;
    background-color: #d4edda;
}

.verification-level-3 {
    border-left: 4px solid #856404;
    background-color: #fff3cd;
}

.verification-level-2 {
    border-left: 4px solid #721c24;
    background-color: #f8d7da;
}

.verification-level-1 {
    border-left: 4px solid #1b1e21;
    background-color: #d6d8d9;
}

.geocode-result {
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 4px;
}

.verification-result {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* 地址信息显示 */
.address-info {
    margin: 1rem 0;
}

.current-address {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.address-count {
    text-align: right;
}

.address-count .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* 操作按钮样式 */
.operation-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.operation-buttons button {
    flex: 1;
}

/* 加载状态指示器 */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

/* 自定义复选框样式 */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--geoco-blue);
    border-color: var(--geoco-blue);
}

/* 自定义单选框样式 */
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--geoco-pink);
    border-color: var(--geoco-pink);
}

/* 输入框焦点样式 */
.form-control:focus {
    border-color: var(--geoco-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 255, 0.25);
}

/* 链接样式 */
a {
    color: var(--geoco-blue);
}

a:hover {
    color: var(--geoco-pink);
}

.top-controls {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.buttons-group {
    display: flex;
    gap: 10px;
}

.geocoding-results {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box {
    margin-bottom: 15px;
}

.manual-select {
    margin-bottom: 15px;
}

#selected-result {
    margin-top: 15px;
    margin-bottom: 15px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.navigation-buttons button {
    min-width: 100px;
}

.navigation-buttons button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.marker-large {
    width: 16px !important;
    height: 16px !important;
}

.marker-normal {
    width: 12px !important;
    height: 12px !important;
}

/* 编号标记样式 */
.number-marker {
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    color: #007bff;
    font-weight: bold;
    font-size: 14px;
}

.suggestions-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.suggestion-item {
    padding: 10px;
    margin-bottom: 8px;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

/* 逐一校准相关样式 */
.calibration-content {
    padding: 1rem;
}

.progress-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.progress-info h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.progress-info p {
    color: #666;
    margin-bottom: 0;
}

.results-container {
    max-height: 500px;
    overflow-y: auto;
}

.geocode-result {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.geocode-result:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.geocode-result.selected {
    border-color: #28a745;
    background-color: #f8fff8;
}

.verification-content {
    margin-top: 5px;
}

/* 选定结果的高亮样式 */
.geocoding-item.selected {
    border: 2px solid #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

/* 搜索建议面板样式 */
#suggestions-panel {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.suggestions-content {
    max-height: 500px;
    overflow-y: auto;
}

.suggestions-text {
    white-space: pre-wrap;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.search-results {
    margin-top: 10px;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h6 {
    margin-bottom: 5px;
    color: #1a73e8;
}

.search-result-item p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

.search-result-item a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.9em;
}

.search-result-item a:hover {
    text-decoration: underline;
}

/* 结果表格样式 */
#results td {
    vertical-align: top;
    padding: var(--spacing-sm);
}

#resultsTable {
    margin-top: var(--spacing-lg);
    border-collapse: collapse;
    width: 100%;
}

#resultsTable th {
    background-color: #f8f9fa;
    padding: 12px;
    border: 1px solid #dee2e6;
}

#resultsTable td {
    border: 1px solid #dee2e6;
}

/* 搜索区域样式 */
.search-area {
    margin-bottom: 1rem;
}

.search-area .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-area .form-control {
    border-right: none;
    padding: 0.75rem 1rem;
}

.search-area .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.search-area .btn {
    padding: 0.75rem 1.5rem;
    border-left: none;
    background-color: white;
}

.search-area .btn:hover {
    background-color: #f8f9fa;
}

/* 搜索结果面板样式 */
.search-results-panel {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-results-panel .card {
    border: none;
    margin-bottom: 0;
}

.search-results-panel .card-header {
    padding: 0.75rem 1rem;
}

.search-results-panel .btn-close-white {
    opacity: 0.8;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.search-results-panel .btn-close-white:hover {
    opacity: 1;
}

.search-results-panel .table {
    margin-bottom: 0;
}

.search-results-panel .table th {
    background-color: #f8f9fa;
    border-top: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #495057;
}

.search-results-panel .table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.search-results-panel .search-result-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-results-panel .search-result-row:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.search-results-panel small {
    font-size: 0.875rem;
    color: #6c757d;
}

.search-results-panel .text-primary {
    color: #0d6efd !important;
}

.search-results-panel .text-secondary {
    color: #6c757d !important;
}

/* 搜索结果内容样式 */
.search-result-content {
    padding: 0.5rem 0;
}

.search-result-content strong {
    display: inline-block;
    min-width: 70px;
    font-weight: 600;
}

.search-result-content div {
    margin-bottom: 0.5rem;
}

.search-result-content div:last-child {
    margin-bottom: 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .right-panel {
        height: 50vh;
        position: relative;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-view tr {
    animation: fadeIn 0.3s ease-out forwards;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 主要布局样式 */
.main-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.left-panel {
    width: 60%;
    padding-right: 20px;
    flex: 0 0 60%;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.right-panel {
    flex: 0 0 40%;
    position: sticky;
    top: 0;
    height: 100vh;
    border-left: 1px solid #dee2e6;
}

/* 表格视图样式 */
.table-view {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-view table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-view th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.table-view td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.table-view tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.table-view tr:last-child td {
    border-bottom: none;
}

/* 地图标记弹窗样式 */
.popup-content {
    padding: 0.5rem;
}

.popup-content h6 {
    margin: 0 0 0.5rem 0;
    color: #212529;
    font-weight: 600;
}

.popup-content p {
    margin: 0.25rem 0;
    color: #6c757d;
    font-size: 0.875rem;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .search-area .input-group {
        flex-direction: column;
    }
    
    .search-area .form-control {
        border-right: 1px solid #dee2e6;
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .search-area .btn {
        border-left: 1px solid #dee2e6;
        border-top: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-view tr {
    animation: fadeIn 0.3s ease-out forwards;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 新增：充值模态框样式 */
.recharge-package-card {
    border: 1px solid #ddd;
    border-radius: 25px; /* Updated from 8px */
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative; /* For discount tags */
}
.recharge-package-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.recharge-package-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.package-points {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0d6efd;
}
.package-price {
    font-size: 1.5rem;
    color: #dc3545;
    font-weight: 500;
}
.package-price .original-price {
    text-decoration: line-through;
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 5px;
}
.discount-tag {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: #ffc107;
    color: #333;
    padding: 3px 8px;
    font-size: 0.8em;
    border-radius: 0 8px 0 8px;
    font-weight: bold;
}
.payment-method-btn {
    border: 1px solid #eee;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px; /* Updated from 6px */
    transition: all 0.2s ease-in-out;
}
.payment-method-btn img {
    height: 24px;
    margin-right: 8px;
}
.payment-method-btn.selected {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}
#qrCodeArea img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.bottom-section,
.cascade-results-container {
    /* display: none; */ /* Initially hidden - Commented out for debugging */
} 

.address-cell-content {
  max-height: 75px; /* 大约3-4行文字的高度 */
  overflow-y: auto;   /* 内容超出高度时显示垂直滚动条 */
  overflow-wrap: break-word; /* 确保长单词或URL能正确换行 */
  word-break: break-all; /* 更强的断词，防止溢出 */
  padding-right: 5px; /* 为滚动条留出一点空间 */
  white-space: normal; /* 确保默认的空白处理方式，允许换行 */
} 

/* Hotfix for main-container layout */
.main-container {
    flex-direction: column;
} 

/* Custom DivIcon styles for map markers */
.custom-map-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* Leaflet container adjustments to prevent our custom icons from being cut off */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: white;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.leaflet-marker-icon.custom-div-icon,
.leaflet-marker-icon.custom-svg-icon {
    background: none;
    border: none;
}

/* 批量处理结果加载遮罩 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

#loadingText {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#loadingSubText {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 加载动画增强 */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-overlay.show {
    display: flex !important;
    animation: fadeInOverlay 0.3s ease-out;
} 

/* 编号圆点样式（用于主地图的批量结果） */
.leaflet-marker-icon.numbered-marker-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    background-color: #0d6efd;
    background-image: none !important; /* 强制移除Leaflet默认背景 */
    color: white;
    display: flex !important; /* 强制flex布局以居中 */
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
} 