/* 全局样式 */
:root {
    --primary-color: #1890ff;
    --secondary-color: #57b564;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #e0e0e0;
    --sidebar-width: 300px;
    --header-height: 60px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --province-color: #9c27b0; /* 紫色 */
    --city-color: #e91e63; /* 红色 */
    --district-color: #00bcd4; /* 蓝绿色 */
    --street-color: #ff9800; /* 橙色 */
    --settled-color: #4caf50; /* 绿色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* 主容器样式 */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 应用容器 */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 1000;
    height: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.sidebar h1 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    text-align: center;
}

.sidebar h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

/* 添加侧边栏收起按钮 */
.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: -40px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    font-size: 20px;
}

/* 侧边栏收起状态 */
.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.sidebar-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 3px;
    transition: var(--transition);
}

.sidebar-toggle span:nth-child(1) {
    top: 8px;
}

.sidebar-toggle span:nth-child(2) {
    top: 14px;
}

.sidebar-toggle span:nth-child(3) {
    top: 20px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* 地图容器 */
.map-container {
    flex: 1;
    height: 100%;
    width: calc(100% - var(--sidebar-width));
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* 控制面板 */
.control-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 15px;
}

.control-section {
    margin-bottom: 15px;
}

.control-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.filter-group, .search-group {
    display: flex;
    gap: 8px;
}

.form-select, .form-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-full {
    width: 100%;
}

.btn-primary:hover {
    background-color: #0c7cd5;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* 数据同步按钮样式 */
.data-sync-buttons {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.btn-secondary.btn-small {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: white;
    flex: 1;
}

.btn-secondary.btn-small:hover {
    background-color: #f0f7ff;
}

/* 统计面板 */
.stats-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 15px;
}

.stats-panel h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-card {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 4px;
}

/* 图例面板 */
.legend-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 15px;
}

.legend-panel h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.legend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.legend-icon.province {
    background-color: var(--province-color);
}

.legend-icon.city {
    background-color: var(--city-color);
}

.legend-icon.district {
    background-color: var(--district-color);
}

.legend-icon.street {
    background-color: var(--street-color);
}

/* 地图标记样式 */
.region-marker {
    transition: transform 0.2s;
}

.region-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}

/* 各级别标记颜色 */
.province-marker div {
    background-color: #FF0000 !important;
}

.city-marker div {
    background-color: #0000FF !important;
}

.district-marker div {
    background-color: #008000 !important;
}

.street-marker div {
    background-color: #800080 !important;
}

/* 弹窗样式 */
.popup-content {
    padding: 10px;
}

.popup-content h3 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: var(--primary-color);
}

.popup-info {
    margin-bottom: 10px;
}

.popup-info p {
    margin: 5px 0;
    font-size: 13px;
}

.popup-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.popup-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
}

.popup-btn.settled {
    background-color: var(--primary-color);
    color: white;
}

.popup-btn.unsettled {
    background-color: #f44336;
    color: white;
}

.popup-btn:hover {
    opacity: 0.9;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #777;
    line-height: 1;
}

.modal-body {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn.cancel {
    background-color: #f0f0f0;
    color: var(--text-color);
}

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

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #e0e0e0;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 遮罩层 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
}

#overlay.active {
    display: block;
}

/* 区域详情样式 */
.detail-info {
    margin-bottom: 15px;
}

.detail-info p {
    margin-bottom: 8px;
}

.detail-actions {
    margin-bottom: 15px;
}

.sub-regions h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.sub-region-list {
    list-style: none;
    padding-left: 10px;
    border-left: 2px solid var(--primary-color);
}

.sub-region-list li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: 0;
        top: 0;
        width: 80%;
        max-width: 300px;
        z-index: 1000;
        height: 100%;
    }
    
    .sidebar-toggle {
        display: flex;
        right: -40px !important;
        z-index: 2000;
    }
    
    .map-container {
        width: 100% !important;
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1;
    }
    
    #map {
        width: 100% !important;
        height: 100% !important;
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar-toggle {
        display: block;
        position: absolute;
        right: -40px;
        top: 15px;
        background-color: white;
        border-radius: 0 4px 4px 0;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 5px;
        z-index: 1600; /* 确保按钮在最上层 */
    }
    
    .collapsed .sidebar-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(2px, 6px);
    }
    
    .collapsed .sidebar-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .collapsed .sidebar-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -6px);
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* 修复侧边栏内部元素可点击性 */
    .sidebar-content {
        pointer-events: auto; /* 确保内容可以点击 */
    }
    
    /* 确保按钮和表单元素可点击 */
    .sidebar button,
    .sidebar select,
    .sidebar input,
    .sidebar a {
        pointer-events: auto;
        position: relative;
        z-index: 1601; /* 比侧边栏高一层 */
    }
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    z-index: 3000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    max-width: 300px;
}

.message-toast.success {
    background-color: #4caf50;
    }

.message-toast.error {
    background-color: #f44336;
}

.message-toast.info {
    background-color: #2196f3;
}

.message-toast.warning {
    background-color: #ff9800;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 定位按钮 */
.location-control {
    background-color: white;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 10px;
    }

.location-control:hover {
    background-color: #f0f0f0;
}

.location-icon {
    width: 20px;
    height: 20px;
    position: relative;
    }

.location-icon:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
}

.location-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

/* 刷新按钮 */
.refresh-control {
    background-color: white;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    }

.refresh-control:hover {
    background-color: #f0f0f0;
}

.refresh-control:active {
    transform: rotate(180deg);
}

.refresh-icon {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
    }

.refresh-container {
    margin-top: 10px;
}

/* 消息提示样式 */
.message-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    z-index: 3000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    max-width: 80%;
    pointer-events: none;
    }

.message-popup.show {
    opacity: 1;
}

.message-popup.success {
    background-color: #4caf50;
}

.message-popup.error {
    background-color: #f44336;
}

.message-popup.info {
    background-color: #2196f3;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.message-popup.warning {
    background-color: #ff9800;
    }

/* 服务器同步状态样式 */
.sync-status {
    margin-top: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 8px;
    border: 1px solid #eee;
}

.sync-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    }

.sync-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #ccc; /* 默认灰色 */
}

.sync-dot.connected {
    background-color: #4caf50; /* 绿色，表示已连接 */
}

.sync-dot.disconnected {
    background-color: #f44336; /* 红色，表示断开连接 */
}

.sync-dot.syncing {
    background-color: #ff9800; /* 橙色，表示正在同步 */
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.last-sync-time {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* TableStore同步按钮样式 */
.tablestore-sync-control {
    background-color: white;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 10px;
    }

.tablestore-sync-control:hover {
    background-color: #f0f0f0;
}

.tablestore-sync-icon {
    font-size: 16px;
    color: #FF6A00; /* 阿里云橙色 */
    font-weight: bold;
}

.tablestore-sync-container {
    margin-top: 10px;
}

/* 数据信息面板样式 */
.data-info-panel {
    padding: 10px 0;
}

.data-info-section {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.data-info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.data-info-section p {
    margin-bottom: 8px;
    }

.data-info-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 10px;
    }

.data-info-section li {
    margin-bottom: 5px;
    }

.storage-keys {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px;
}

.storage-keys-table {
    width: 100%;
    border-collapse: collapse;
}

.storage-keys-table th {
    background-color: #f5f5f5;
    text-align: left;
    padding: 5px;
}

.storage-keys-table td {
    padding: 5px;
    border-top: 1px solid #eee;
    }

.storage-keys-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 添加通知和同步状态样式 */
#notificationArea {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    max-width: 300px;
}

.notification {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.notification.info {
    background-color: #ddffd6;
    border: 1px solid #aaffaa;
    color: #008800;
}

.notification.error {
    background-color: #ffdddd;
    border: 1px solid #ffaaaa;
    color: #880000;
}

.notification.warning {
    background-color: #fffbd6;
    border: 1px solid #ffe066;
    color: #806600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#syncStatus {
    font-size: 14px;
    margin-left: 5px;
    vertical-align: middle;
}

.sync-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.sync-dot.connected {
    background-color: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
}

.sync-dot.connecting {
    background-color: #FFA000;
    box-shadow: 0 0 5px #FFA000;
    animation: blink 1s infinite;
}

.sync-dot.disconnected {
    background-color: #9E9E9E;
    box-shadow: 0 0 5px #9E9E9E;
}

.sync-dot.error {
    background-color: #F44336;
    box-shadow: 0 0 5px #F44336;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

/* 改进响应式设计 */
@media (max-width: 768px) {
    .region-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .region-selector select {
        margin-bottom: 10px;
    }
    
    .map-container {
        height: 50vh;
    }
    
    #notificationArea {
        max-width: 90%;
        left: 5%;
        right: 5%;
    }
}

/* 改进按钮样式 */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button:active {
    transform: translateY(0);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0c7cd5;
}

/* 操作区域 */
.actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 搜索和筛选 */
.search-container {
    margin: 15px 0;
    display: flex;
    gap: 8px;
}

.search-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.filter-container {
    margin-bottom: 15px;
}

.filter-container select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
}

/* 统计区域 */
.stats-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
}

.stat-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.total-label {
    font-weight: bold;
}

.total-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 头部和同步状态指示器样式 */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.app-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.sync-indicator {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
} 

/* 清除数据按钮样式 */
.clear-data-control {
    background-color: #fff;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    cursor: pointer;
    margin-bottom: 10px;
}

.clear-data-control:hover {
    background-color: #f8f8f8;
}

.clear-icon {
    font-size: 18px;
} 

/* 统计说明样式 */
.stats-note {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
    padding: 5px;
    background-color: #f8f8f8;
    border-radius: 4px;
    text-align: center;
} 

/* 重置统计按钮 */
.reset-stats-control {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 800;
}

.reset-stats-control:hover {
    background-color: #f4f4f4;
}

.reset-icon {
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
} 

/* 信息窗口样式 */
.info-window {
    padding: 5px;
    width: 220px;
}

.info-window h3 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    text-align: center;
}

.info-content {
    margin-bottom: 10px;
}

.info-content p {
    margin: 5px 0;
    font-size: 13px;
}

.info-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-info {
    padding: 6px 10px;
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-info:hover {
    background-color: #3a7bd5;
} 

/* 列表视图样式 */
.list-view-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: white;
    z-index: 10;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.list-view-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.list-view-content {
    height: calc(100% - 60px);
    overflow-y: auto;
}

.settled-list-table {
    width: 100%;
    border-collapse: collapse;
}

.settled-list-table th,
.settled-list-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.settled-list-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--text-color);
}

.settled-list-table tr:hover {
    background-color: #f9f9f9;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

/* 视图切换按钮样式 */
#toggleViewBtn {
    margin-top: 10px;
    background-color: #673ab7;
}

#toggleViewBtn:hover {
    background-color: #5e35b1;
}

/* 当显示列表视图时，隐藏地图容器 */
.map-hidden {
    display: none !important;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .list-view-container {
        margin: 10px;
    }
    
    .settled-list-table th,
    .settled-list-table td {
        padding: 8px 5px;
        font-size: 13px;
    }
} 

/* 列表刷新按钮 */
.refresh-list-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
    vertical-align: middle;
    opacity: 0.7;
    transition: transform 0.3s, opacity 0.3s;
}

.refresh-list-btn:hover {
    opacity: 1;
    transform: rotate(180deg);
}

.refresh-list-btn:active {
    transform: rotate(360deg);
} 