/* ======================================================
   global.css — 全局变量、Reset、基础排版
   所有页面必须引入此文件
   ====================================================== */

/* ===== CSS 变量（主题色） ===== */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --success: #28a745;
    --success-dark: #218838;
    --danger: #dc3545;
    --danger-dark: #c82333;
    --warning: #ffc107;
    --warning-dark: #e0a800;
    --info: #667eea;
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #999;
    --bg-primary: #f5f5f5;
    --bg-light: #f8f9fa;
    --border-color: #ddd;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-success: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 20px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: var(--bg-primary);
    padding-top: 60px;
}

/* ===== 通用工具类 ===== */
.hidden { display: none !important; }
.table-empty-msg {
    text-align: center;
    color: #999;
}
/* ===== 关闭按钮 ===== */
.close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.close-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.close-btn.white { color: white; }
.close-btn.white:hover { background: rgba(255, 255, 255, 0.2); }
/* ===== Toast 提示 ===== */
.toast-container {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}
.toast {
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
    text-align: center;
    max-width: 90vw;
}
.toast.success { background: rgba(40, 167, 69, 0.9); }
.toast.error   { background: rgba(220, 53, 69, 0.9); }
.toast.info    { background: rgba(102, 126, 234, 0.9); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
/* ===== 按钮 ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-secondary {
    background: #f0f0f0;
    color: #555;
}
.btn-secondary:hover { background: #e0e0e0; }
.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }
.btn-danger  { background: #dc3545; color: white; }
.btn-danger:hover  { background: #c82333; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
/* ===== 统一弹窗 ===== */
.unified-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.unified-modal.show { display: flex; }
.unified-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalPopIn 0.2s ease-out;
}
@keyframes modalPopIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.unified-modal-icon   { font-size: 40px; margin-bottom: 12px; }
.unified-modal-title  { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 8px; }
.unified-modal-msg    { font-size: 14px; color: #666; margin-bottom: 20px; line-height: 1.5; }
.unified-modal-footer { display: flex; gap: 10px; justify-content: center; }

/* ======================================================
   响应式 — 平板 (768px)
   ====================================================== */
@media (max-width: 768px) {
    .unified-modal-content {
        width: 92%;
        max-width: 360px;
        padding: 20px;
    }
    .unified-modal-icon {
        font-size: 36px;
    }
    .unified-modal-title {
        font-size: 16px;
    }
    .unified-modal-msg {
        font-size: 13px;
    }
    .unified-modal-footer {
        gap: 8px;
    }
}

/* ======================================================
   响应式 — 手机 (480px)
   ====================================================== */
@media (max-width: 480px) {
    .unified-modal {
        align-items: flex-end;
    }
    .unified-modal-content {
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 20px 16px;
    }
    .unified-modal-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    .unified-modal-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .unified-modal-msg {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .unified-modal-footer {
        gap: 8px;
    }
    .unified-modal-footer button {
        padding: 10px 0;
        font-size: 14px;
    }
}
/* ===== 地图容器 ===== */
#map, #container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ===== 地图类型切换（左上角，单按钮） ===== */
.map-type-toggle {
    position: fixed;
    top: 76px;
    left: 16px;
    z-index: 1002;
}
.map-type-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #555;
    font-weight: 500;
}
.map-type-toggle-btn:hover {
    background: #f0f4ff;
    border-color: #667eea;
}
.map-type-toggle-btn.satellite {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}
/* ===== 快捷圆形按钮（右下角） ===== */
.action-btns {
    position: fixed;
    bottom: 16px;
    right: 10px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    line-height: 1;
}
.action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}
.action-btn:hover {
    border-color: #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.action-btn:active {
    transform: scale(0.95);
}
/* 各按钮独立配色 */
.action-btn.add-click { color: #34a853; }
.action-btn.add-click:hover { color: #2d9249; border-color: #a8d8b8; box-shadow: 0 2px 6px rgba(52,168,83,0.15); }

.action-btn.fullscreen-btn { color: #9c27b0; }
.action-btn.fullscreen-btn:hover { color: #7b1fa2; border-color: #ce93d8; box-shadow: 0 2px 6px rgba(156,39,176,0.15); }

.action-btn.help-btn { color: #f5a623; }
.action-btn.help-btn:hover { color: #d98e1a; border-color: #f7d9a8; box-shadow: 0 2px 6px rgba(245,166,35,0.15); }

.action-btn.locate-btn { color: #4285f4; }
.action-btn.locate-btn:hover { color: #3367d6; border-color: #a8c7fa; box-shadow: 0 2px 6px rgba(66,133,244,0.15); }

.action-btn.feedback-btn { color: #ea4335; }
.action-btn.feedback-btn:hover { color: #c53529; border-color: #f5a89e; box-shadow: 0 2px 6px rgba(234,67,53,0.15); }

/* 按钮文字提示 */
.action-btn .btn-text {
    position: absolute;
    right: 38px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.action-btn:hover .btn-text { opacity: 1; }

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    /* 移动端隐藏全屏按钮（PC端保留） */
    .action-btn.fullscreen-btn { display: none !important; }
    .action-btns {
        bottom: 16px;
        right: 12px;
        gap: 8px;
    }
    .action-btn {
        width: 48px;
        height: 48px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        border-width: 1.5px;
    }
    .action-btn svg {
        width: 22px;
        height: 22px;
    }
    .action-btn .btn-text { display: none; }
}
/* ===== 工具栏（右侧可折叠面板 — 通用） ===== */
/* 支持 .toolbar, .submit-toolbar, .marker-panel 统一结构 */
.toolbar,
.submit-toolbar,
.marker-panel {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 1003;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.toolbar.collapsed,
.submit-toolbar.collapsed,
.marker-panel.collapsed {
    transform: translateY(calc(100% + 20px));
    opacity: 0;
    pointer-events: none;
}

/* 工具栏头部 */
.toolbar-header,
.toolbar .tb-header,
.submit-toolbar .tb-header,
.marker-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 12px;
    text-align: center;
    position: relative;
}
.toolbar-header h3,
.marker-panel-header h3 {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 1px;
}
.toolbar-header .tb-region,
.submit-toolbar .tb-header .tb-region,
.marker-panel-header .marker-count {
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}
/* 工具栏关闭按钮 */
.toolbar-close-btn,
.toolbar-header .toolbar-close-btn,
.submit-toolbar .tb-header .tb-close-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.toolbar-close-btn:hover,
.toolbar-header .toolbar-close-btn:hover,
.submit-toolbar .tb-header .tb-close-btn:hover { background: rgba(255, 255, 255, 0.4); }

/* 工具栏主体 */
.toolbar-body,
.submit-toolbar .tb-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toolbar-body .tb-group-label,
.submit-toolbar .tb-group-label {
    font-size: 10px;
    color: #999;
    font-weight: 500;
    margin-top: 2px;
}

/* 地名搜索输入行 */
.toolbar-body .tb-search-row,
.submit-toolbar .tb-search-row {
    display: flex;
    gap: 0;
}
.toolbar-body .tb-search-input,
.submit-toolbar .tb-search-input {
    flex: 1;
    padding: 7px 8px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 12px;
    background: #f8f9fa;
    outline: none;
    min-width: 0;
}
.toolbar-body .tb-search-input:focus,
.submit-toolbar .tb-search-input:focus {
    border-color: #667eea;
    background: white;
}
.toolbar-body .tb-search-btn,
.submit-toolbar .tb-search-btn {
    padding: 7px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.toolbar-body .tb-search-btn:hover,
.submit-toolbar .tb-search-btn:hover { opacity: 0.9; }
.toolbar-body .tb-search-btn:active,
.submit-toolbar .tb-search-btn:active { opacity: 0.8; }

/* 搜索结果列表 */
.toolbar-body .tb-search-results,
.submit-toolbar .tb-search-results {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    background: white;
    display: none;
}
.toolbar-body .tb-search-results.has-results,
.submit-toolbar .tb-search-results.has-results {
    display: block;
}
.toolbar-body .tb-search-results .tb-search-item,
.submit-toolbar .tb-search-results .tb-search-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #333;
    transition: background 0.15s;
}
.toolbar-body .tb-search-results .tb-search-item:last-child,
.submit-toolbar .tb-search-results .tb-search-item:last-child {
    border-bottom: none;
}
.toolbar-body .tb-search-results .tb-search-item:hover,
.submit-toolbar .tb-search-results .tb-search-item:hover {
    background: #f0f3ff;
    color: #667eea;
}
.toolbar-body .tb-search-results .tb-search-item .tb-search-title,
.submit-toolbar .tb-search-results .tb-search-item .tb-search-title {
    font-weight: 500;
    margin-bottom: 2px;
}
.toolbar-body .tb-search-results .tb-search-item .tb-search-addr,
.submit-toolbar .tb-search-results .tb-search-item .tb-search-addr {
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.toolbar-body .tb-search-results .tb-search-empty,
.submit-toolbar .tb-search-results .tb-search-empty {
    padding: 12px 10px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* 三级下拉选择器 */
.toolbar-body .tb-select-row,
.submit-toolbar .tb-select-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.toolbar-body .tb-select-row select,
.submit-toolbar .tb-select-row select {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: #f8f9fa;
    outline: none;
}
.toolbar-body .tb-select-row select:focus,
.submit-toolbar .tb-select-row select:focus {
    border-color: #667eea;
    background: white;
}

/* 联系信息行 */
.submit-toolbar .tb-contact-row { display: flex; gap: 0; }
.submit-toolbar .tb-contact-row input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 12px;
    outline: none;
    min-width: 0;
}
.submit-toolbar .tb-contact-row input:focus { border-color: #667eea; }
.submit-toolbar .tb-contact-row button {
    padding: 6px 12px;
    background: linear-gradient(135deg, #28a745 0%, #20963a 100%);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.submit-toolbar .tb-contact-row button:hover { opacity: 0.9; }
.submit-toolbar .tb-contact-row button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== marker-panel 特有 ===== */
.marker-panel {
    max-height: 70vh;
}
.marker-panel-body {
    padding: 10px 10px 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* ======================================================
   响应式 — 平板 (768px)
   ====================================================== */
@media (max-width: 768px) {
    .toolbar,
    .submit-toolbar,
    .marker-panel {
        bottom: 10px;
        right: 10px;
        width: 200px;
        border-radius: 10px;
    }

    /* Header紧凑 */
    .toolbar-header,
    .toolbar .tb-header,
    .submit-toolbar .tb-header,
    .marker-panel-header {
        padding: 8px 10px;
    }
    .toolbar-header h3,
    .marker-panel-header h3 {
        font-size: 11px;
    }
    .toolbar-header .tb-region,
    .submit-toolbar .tb-header .tb-region,
    .marker-panel-header .marker-count {
        font-size: 12px;
    }

    /* Body紧凑 */
    .toolbar-body,
    .submit-toolbar .tb-body {
        padding: 8px;
        gap: 6px;
    }
    .toolbar-body .tb-select-row select,
    .submit-toolbar .tb-select-row select {
        padding: 5px 6px;
        font-size: 11px;
    }

    /* Contact行 */
    .submit-toolbar .tb-contact-row input {
        padding: 5px 6px;
        font-size: 11px;
    }
    .submit-toolbar .tb-contact-row button {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* 搜索行 */
    .toolbar-body .tb-search-input,
    .submit-toolbar .tb-search-input {
        padding: 5px 6px;
        font-size: 11px;
    }
    .toolbar-body .tb-search-btn,
    .submit-toolbar .tb-search-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Marker panel */
    .marker-panel {
        max-height: 60vh;
    }
    .marker-panel-body {
        padding: 8px;
    }
}

/* ======================================================
   响应式 — 手机 (480px)
   ====================================================== */
@media (max-width: 480px) {
    .toolbar,
    .submit-toolbar,
    .marker-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 70vh;
    }

    /* Header */
    .toolbar-header,
    .toolbar .tb-header,
    .submit-toolbar .tb-header,
    .marker-panel-header {
        padding: 10px 12px;
    }
    .toolbar-header h3,
    .marker-panel-header h3 {
        font-size: 11px;
    }
    .toolbar-header .tb-region,
    .submit-toolbar .tb-header .tb-region,
    .marker-panel-header .marker-count {
        font-size: 13px;
    }

    /* Body */
    .toolbar-body,
    .submit-toolbar .tb-body {
        padding: 10px 12px;
        gap: 8px;
    }
    .toolbar-body .tb-group-label,
    .submit-toolbar .tb-group-label {
        font-size: 11px;
    }
    .toolbar-body .tb-select-row select,
    .submit-toolbar .tb-select-row select {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Contact行 */
    .submit-toolbar .tb-contact-row input {
        padding: 8px 10px;
        font-size: 13px;
    }
    .submit-toolbar .tb-contact-row button {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* 搜索行 */
    .toolbar-body .tb-search-input,
    .submit-toolbar .tb-search-input {
        padding: 8px 10px;
        font-size: 13px;
    }
    .toolbar-body .tb-search-btn,
    .submit-toolbar .tb-search-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Marker panel */
    .marker-panel {
        max-height: 80vh;
    }
    .marker-panel-body {
        padding: 10px 12px;
    }
}
/* ===== 城市列表（通用） ===== */
.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.city-list li {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}
.city-list li:hover {
    background: #f0f2ff;
    color: #667eea;
}
.city-list li.active {
    background: #667eea;
    color: white;
}
.city-list li .zone-count {
    font-size: 11px;
    background: #eee;
    color: #888;
    padding: 1px 6px;
    border-radius: 10px;
}
.city-list li.active .zone-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 工具栏内城市列表（紧凑版） */
.toolbar-body .city-list {
    max-height: 180px;
    overflow-y: auto;
}
.toolbar-body .city-list li {
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 1px solid #f5f5f5;
    border-radius: 0;
}
.toolbar-body .city-list li .zone-count {
    font-size: 10px;
}

/* ======================================================
   响应式 — 平板 (768px)
   ====================================================== */
@media (max-width: 768px) {
    .city-list li {
        padding: 6px 10px;
        font-size: 12px;
    }
    .city-list li .zone-count {
        font-size: 10px;
        padding: 1px 5px;
    }

    /* 工具栏内更紧凑 */
    .toolbar-body .city-list {
        max-height: 150px;
    }
    .toolbar-body .city-list li {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* ======================================================
   响应式 — 手机 (480px)
   ====================================================== */
@media (max-width: 480px) {
    .city-list li {
        padding: 5px 8px;
        font-size: 11px;
    }
    .city-list li .zone-count {
        font-size: 9px;
        padding: 0 4px;
    }

    /* 工具栏内 */
    .toolbar-body .city-list {
        max-height: 120px;
    }
    .toolbar-body .city-list li {
        padding: 4px 6px;
        font-size: 11px;
    }
    .toolbar-body .city-list li .zone-count {
        font-size: 9px;
    }
}
/* ===== 区域名称闪烁 ===== */
.region-flash {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    text-align: center;
}
.region-flash.show { opacity: 1; }

/* 有禁限摩数据 - 红色醒目 */
.region-flash.has-zone {
    background: rgba(220, 38, 38, 0.85);
    border: 2px solid rgba(239, 68, 68, 0.6);
}
.region-flash.has-zone .region-name {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.region-flash.has-zone .zone-count-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* 无禁限摩数据 - 绿色清爽 */
.region-flash.no-zone {
    background: rgba(22, 163, 74, 0.85);
    border: 2px solid rgba(34, 197, 94, 0.6);
}
.region-flash.no-zone .region-name {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.region-flash.no-zone .zone-count-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.region-flash .zone-count-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}
/* ===== 标记点弹窗图片 ===== */
.poi-photo {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
}
.poi-photo img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: filter 0.2s;
}
.poi-photo:hover img {
    filter: brightness(0.85);
}
.poi-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.poi-photo-grid .grid-item {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.poi-photo-grid .grid-item img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    transition: filter 0.2s;
}
.poi-photo-grid .grid-item:hover img {
    filter: brightness(0.8);
}
.poi-photo-grid .grid-item .photo-count-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    pointer-events: none;
}
/* ======================================================
   pages/map.css — 禁摩地图编辑页专属样式
   ====================================================== */

/* 移除导航栏预留空白 */
body { padding-top: 0 !important; }
.map-type-toggle { top: 16px !important; }

/* ======================================================
   接待站 InfoWindow 弹窗布局（左右结构）
   ======================================================
   左侧：类型标签 + 名称 + 联系人 + 简介
   右侧：小缩略图（固定 70x70）
*/
.jdz-info-popup {
    display: flex;
    gap: 10px;
    padding: 8px;
    min-width: 260px !important;
    max-width: 360px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    align-items: stretch;
    box-sizing: border-box;
}
.jdz-info-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.jdz-info-thumb-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}
.jdz-info-thumb-wrapper:hover {
    background: #f0f0f5;
}
.jdz-thumb-icon {
    font-size: 36px;
    line-height: 1;
}
.jdz-thumb-hint {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
}

/* ======================================================
   接待站详情弹窗
   ====================================================== */
.detail-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.detail-modal.show {
    display: flex;
}
.detail-modal-content {
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    animation: modalSlideUp 0.25s ease-out;
}
@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 14px 14px 0 0;
    z-index: 1;
}
.detail-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.detail-modal-header .close-btn {
    width: 30px; height: 30px;
    border: none; background: #f0f0f0;
    border-radius: 50%; font-size: 18px;
    cursor: pointer; color: #666;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.detail-modal-header .close-btn:hover {
    background: #e0e0e0; color: #333;
}
.detail-modal-body {
    padding: 18px;
}
.detail-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}
.detail-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.detail-photo-grid .photo-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.detail-photo-grid .photo-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: filter 0.2s;
}
.detail-photo-grid .photo-item:hover img {
    filter: brightness(0.85);
}
.detail-photo-grid .photo-item .photo-badge {
    position: absolute;
    bottom: 4px; right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 6px;
}
.detail-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}
.detail-info-row:last-child { border-bottom: none; }
.detail-info-row .row-icon { font-size: 16px; }
.detail-info-row .row-label { color: #999; min-width: 60px; }
.detail-info-row .row-value { color: #333; flex: 1; word-break: break-all; }
.detail-intro-text {
    margin-top: 14px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
}

/* ========== 图例弹窗 ========== */
.legend-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}
.legend-overlay.show { display: flex; }

.legend-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 420px;
    max-height: 75vh;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legend-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.legend-modal-header h3 { font-size: 16px; font-weight: 600; margin: 0; }
.legend-modal-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.legend-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 13px;
}

/* 图例图标区域：多列排版 */
.legend-columns {
    column-count: 2;
    column-gap: 16px;
}

.legend-section {
    margin-bottom: 14px;
    break-inside: avoid;
    page-break-inside: avoid;
}
.legend-section:last-child { margin-bottom: 0; }
.legend-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}
.legend-item:last-child { margin-bottom: 0; }

.legend-color {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    flex-shrink: 0;
}
.legend-color.plate1 { background: #4caf50; }
.legend-color.plate2 { background: #2196f3; }
.legend-color.plate3 { background: #f44336; }
.legend-color.plate4 { background: #ff9800; }
.legend-color.line { height: 4px; background: #9c27b0; }

.legend-emoji {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.legend-pin {
    width: 16px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* 图例弹窗中的文字段落和列表 */
.legend-section p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 6px 0;
}
.legend-section p:last-child { margin-bottom: 0; }
.legend-section ul,
.legend-section ol {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    padding-left: 18px;
}
.legend-section ul { padding-left: 18px; list-style: disc; }
.legend-section ol { padding-left: 18px; list-style: decimal; }
.legend-section li { margin-bottom: 3px; }
.legend-section li:last-child { margin-bottom: 0; }

/* 图例分隔线 */
.legend-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 14px 0;
}

/* ========== 信息窗口 ========== */
.zone-info-window {
    position: fixed;
    z-index: 1005;
    background: linear-gradient(135deg, #f0fff0 0%, #e0ffe0 100%);
    border: 2px solid #b2dfb2;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(76,175,80,0.25);
    padding: 12px 16px;
    max-width: 280px;
    min-width: 200px;
    display: none;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.zone-info-window.show { display: block; }

/* 蓝牌区域 - 绿色 */
.zone-info-window.theme-plate1 {
    background: linear-gradient(135deg, #f0fff0 0%, #e0ffe0 100%);
    border-color: #a5d6a7;
    box-shadow: 0 4px 20px rgba(76,175,80,0.25);
}
.zone-info-window.theme-plate1 .ziw-title { color: #2e7d32; }
.zone-info-window.theme-plate1 .ziw-city { color: #4caf50; }
.zone-info-window.theme-plate1 .ziw-row { border-bottom-color: #c8e6c9; }
.zone-info-window.theme-plate1 .ziw-label { color: #4caf50; }
.zone-info-window.theme-plate1 .ziw-close { color: #4caf50; }

/* 黄牌区域 - 蓝色 */
.zone-info-window.theme-plate2 {
    background: linear-gradient(135deg, #e7f3ff 0%, #d4ecff 100%);
    border-color: #90caf9;
    box-shadow: 0 4px 20px rgba(33,150,243,0.25);
}
.zone-info-window.theme-plate2 .ziw-title { color: #1565c0; }
.zone-info-window.theme-plate2 .ziw-city { color: #2196f3; }
.zone-info-window.theme-plate2 .ziw-row { border-bottom-color: #bbdefb; }
.zone-info-window.theme-plate2 .ziw-label { color: #2196f3; }
.zone-info-window.theme-plate2 .ziw-close { color: #2196f3; }

/* 全禁区域 - 红色 */
.zone-info-window.theme-plate3 {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-color: #ef9a9a;
    box-shadow: 0 4px 20px rgba(244,67,54,0.25);
}
.zone-info-window.theme-plate3 .ziw-title { color: #c62828; }
.zone-info-window.theme-plate3 .ziw-city { color: #f44336; }
.zone-info-window.theme-plate3 .ziw-row { border-bottom-color: #ffcdd2; }
.zone-info-window.theme-plate3 .ziw-label { color: #f44336; }
.zone-info-window.theme-plate3 .ziw-close { color: #f44336; }

/* 其他区域 - 橙色 */
.zone-info-window.theme-plate4 {
    background: linear-gradient(135deg, #fff8f0 0%, #fff0e0 100%);
    border-color: #ffcc80;
    box-shadow: 0 4px 20px rgba(255,152,0,0.25);
}
.zone-info-window.theme-plate4 .ziw-title { color: #e65100; }
.zone-info-window.theme-plate4 .ziw-city { color: #ff9800; }
.zone-info-window.theme-plate4 .ziw-row { border-bottom-color: #ffe0b2; }
.zone-info-window.theme-plate4 .ziw-label { color: #ff9800; }
.zone-info-window.theme-plate4 .ziw-close { color: #ff9800; }

/* 限行路段 - 紫色 */
.zone-info-window.theme-line {
    background: linear-gradient(135deg, #f8f0ff 0%, #f0e4ff 100%);
    border-color: #ce93d8;
    box-shadow: 0 4px 20px rgba(156,39,176,0.25);
}
.zone-info-window.theme-line .ziw-title { color: #6a1b9a; }
.zone-info-window.theme-line .ziw-city { color: #9c27b0; }
.zone-info-window.theme-line .ziw-row { border-bottom-color: #e1bee7; }
.zone-info-window.theme-line .ziw-label { color: #9c27b0; }
.zone-info-window.theme-line .ziw-close { color: #9c27b0; }

.zone-info-window .ziw-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}
.zone-info-window .ziw-city {
    font-size: 12px;
    margin-bottom: 6px;
}
.zone-info-window .ziw-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid;
}
.zone-info-window .ziw-value { color: #333; font-weight: 500; }
.zone-info-window .ziw-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* ========== 图层控制 ========== */
.layer-controls {
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 1003;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 0;
    font-size: 13px;
    min-width: 170px;
    overflow: hidden;
}
/* 头部：标题 + 快捷按钮 */
.layer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    user-select: none;
    transition: padding 0.3s ease, border-color 0.3s ease;
}
.layer-header:hover {
    background: #f8f9ff;
}
.layer-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.layer-quick-btns {
    display: flex;
    gap: 4px;
}
/* 收起时隐藏快捷按钮 */
.layer-controls.collapsed .layer-expand-only {
    display: none;
}
/* 收起状态：紧凑按钮样式，类似卫星切换按钮 */
.layer-controls.collapsed {
    min-width: auto;
    padding: 0;
    border-radius: 6px;
}
.layer-controls.collapsed .layer-header {
    padding: 6px 12px;
    border-bottom: none;
    justify-content: center;
    gap: 4px;
    background: transparent;
}
.layer-controls.collapsed .layer-title {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}
/* 收起/展开箭头 */
.layer-toggle-arrow {
    display: inline-block;
    font-size: 10px;
    color: #aaa;
    transition: transform 0.25s ease;
    cursor: pointer;
    margin-left: 4px;
}
.layer-controls.collapsed .layer-toggle-arrow {
    display: none;
}
.layer-quick-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    line-height: 1.5;
}
.layer-quick-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}
.layer-quick-btn.layer-quick-all:hover {
    background: #4caf50;
    border-color: #4caf50;
}
/* 面板内容区 */
.layer-rows-wrapper {
    padding: 4px 0;
    max-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    max-height: 700px;
    opacity: 1;
}
.layer-rows-wrapper.collapsed {
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

/* ========== 图层分组 ========== */
.layer-group {
    border-bottom: 1px solid #f5f5f5;
}
.layer-group:last-child {
    border-bottom: none;
}
/* 组头 */
.layer-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.layer-group-header:hover {
    background: #f8f9ff;
}
.layer-group-header .layer-group-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.layer-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}
.layer-group-count {
    font-size: 11px;
    color: #999;
}
/* 组头折叠箭头 */
.layer-group-arrow {
    display: inline-block;
    font-size: 10px;
    color: #aaa;
    transition: transform 0.25s ease;
}
.layer-group.collapsed .layer-group-arrow {
    transform: rotate(-90deg);
}
/* 组体 */
.layer-group-body {
    overflow: hidden;
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
    padding: 0 12px 4px;
}
.layer-group.collapsed .layer-group-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ========== 图层行 ========== */
.layer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    gap: 8px;
}
.layer-row + .layer-row {
    border-top: 1px solid #fafafa;
}
.layer-label { color: #555; font-weight: 500; font-size: 12px; }
.layer-count { color: #999; font-size: 11px; margin-left: 2px; }
.layer-right { display: flex; align-items: center; gap: 4px; }
.label-mini-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    display: none;
}
.label-mini-btn.show { display: inline-block; }
.label-mini-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 切换开关 */
.layer-switch {
    position: relative;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}
.layer-switch input { opacity: 0; width: 0; height: 0; }
.layer-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.3s;
}
.layer-switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.layer-switch input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.layer-switch input:checked + .slider:before {
    transform: translateX(18px);
}

/* ========== 意见反馈弹窗 ========== */
.feedback-overlay {
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
}
.feedback-overlay.show { display: flex; }

.feedback-modal {
    background: #fff;
    border-radius: 14px;
    width: 92%;
    max-width: 420px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    animation: feedbackSlideIn 0.25s ease;
}
@keyframes feedbackSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.feedback-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.feedback-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.feedback-close-btn:hover { background: #f5f5f5; color: #333; }

.feedback-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.feedback-field {
    margin-bottom: 14px;
}
.feedback-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.feedback-field input[type="text"],
.feedback-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.feedback-field input[type="text"]:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.feedback-char-count {
    text-align: right;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* 图片上传区域 */
.feedback-upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 13px;
}
.feedback-upload-area:hover {
    border-color: #667eea;
    background: #f8f8ff;
    color: #667eea;
}
.feedback-upload-area.dragover {
    border-color: #667eea;
    background: #eef0ff;
}
.upload-icon { font-size: 28px; margin-bottom: 2px; }

/* 图片预览 */
.feedback-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.feedback-image-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.feedback-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feedback-image-item .remove-img {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.feedback-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}
.feedback-btn-cancel,
.feedback-btn-submit {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.feedback-btn-cancel {
    background: #f5f5f5;
    color: #666;
}
.feedback-btn-cancel:hover { background: #e8e8e8; }
.feedback-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.feedback-btn-submit:hover { opacity: 0.9; }
.feedback-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ======================================================
   响应式 — 平板 (768px)
   ====================================================== */
@media (max-width: 768px) {
    /* 图层控制：变紧凑 */
    .layer-controls {
        top: 6px;
        right: 6px;
        font-size: 11px;
        min-width: 150px;
        border-radius: 8px;
    }
    .layer-header {
        padding: 6px 10px;
    }
    .layer-title {
        font-size: 11px;
    }
    /* 收起时更紧凑，像卫星按钮 */
    .layer-controls.collapsed {
        min-width: auto;
    }
    .layer-controls.collapsed .layer-header {
        padding: 5px 10px;
    }
    .layer-controls.collapsed .layer-title {
        font-size: 11px;
    }
    .layer-group-header {
        padding: 5px 10px;
    }
    .layer-group-title {
        font-size: 11px;
    }
    .layer-group-body {
        padding: 0 10px 3px;
    }
    .layer-row {
        padding: 3px 0;
        gap: 4px;
    }
    .layer-label {
        font-size: 11px;
    }
    .layer-count {
        font-size: 9px;
    }
    .layer-switch {
        width: 30px;
        height: 16px;
    }
    .layer-switch .slider:before {
        height: 12px;
        width: 12px;
    }
    .layer-switch input:checked + .slider:before {
        transform: translateX(14px);
    }

    /* 图例弹窗：更宽 */
    .legend-modal {
        width: 95%;
        max-width: 460px;
    }
    .legend-columns {
        column-count: 2;
        column-gap: 12px;
    }

    /* 信息窗口 */
    .zone-info-window {
        max-width: 240px;
        min-width: 160px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .zone-info-window .ziw-title {
        font-size: 13px;
    }
    .zone-info-window .ziw-city {
        font-size: 11px;
    }

    /* 意见反馈弹窗 */
    .feedback-modal {
        width: 96%;
        max-width: 400px;
        max-height: 90vh;
    }
}

/* ======================================================
   响应式 — 手机 (480px)
   ====================================================== */
@media (max-width: 480px) {
    /* 图层控制：默认全部收起，点击组头展开 */
    .layer-controls {
        top: 6px;
        right: 6px;
        font-size: 13px;
        min-width: auto;
        width: auto;
        overflow: hidden;
        border-radius: 8px;
    }
    .layer-header {
        padding: 8px 12px;
    }
    .layer-title {
        font-size: 14px;
    }
    /* 收起时：紧凑按钮，像卫星切换按钮 */
    .layer-controls.collapsed {
        min-width: auto;
        width: auto;
        padding: 0;
    }
    .layer-controls.collapsed .layer-header {
        padding: 6px 12px;
        gap: 4px;
    }
    .layer-controls.collapsed .layer-title {
        font-size: 12px;
        font-weight: 500;
        color: #555;
    }
    /* 移动端默认折叠所有组 */
    .layer-group .layer-group-body {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    .layer-group .layer-group-arrow {
        transform: rotate(-90deg);
    }
    /* 展开组 */
    .layer-group.expanded .layer-group-body {
        max-height: 600px;
        opacity: 1;
        padding: 0 12px 4px;
    }
    .layer-group.expanded .layer-group-arrow {
        transform: rotate(0deg);
    }
    .layer-group-header {
        padding: 8px 12px;
    }
    .layer-group-title {
        font-size: 13px;
    }
    .layer-row {
        padding: 5px 0;
    }
    .layer-label {
        font-size: 13px;
    }
    .layer-count {
        font-size: 11px;
    }
    .layer-switch {
        width: 36px;
        height: 20px;
    }
    .layer-switch .slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }
    .layer-switch input:checked + .slider:before {
        transform: translateX(16px);
    }
    /* 移动端：隐藏接待站标签按钮 */
    #labelMiniBtn {
        display: none !important;
    }
    /* 移动端快捷按钮 */
    .layer-quick-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    /* 图例弹窗：单列，更大 */
    .legend-modal {
        width: 98%;
        max-width: none;
        max-height: 85vh;
    }
    .legend-columns {
        column-count: 1;
    }
    .legend-modal-header {
        padding: 10px 14px;
    }
    .legend-modal-header h3 {
        font-size: 14px;
    }
    .legend-modal-body {
        padding: 12px 14px;
        font-size: 12px;
    }

    /* 信息窗口：更紧凑 */
    .zone-info-window {
        max-width: 200px;
        min-width: 140px;
        padding: 8px 10px;
        font-size: 11px;
    }
    .zone-info-window .ziw-title {
        font-size: 12px;
    }
    .zone-info-window .ziw-city {
        font-size: 10px;
    }

    /* 意见反馈弹窗 */
    .feedback-modal {
        width: 100%;
        max-width: none;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        align-self: flex-end;
    }
    .feedback-header {
        padding: 10px 12px;
    }
    .feedback-header h3 {
        font-size: 14px;
    }
    .feedback-body {
        padding: 12px;
    }
    .feedback-footer {
        padding: 8px 12px;
    }
    .feedback-btn-cancel,
    .feedback-btn-submit {
        padding: 8px 0;
        font-size: 13px;
    }
    .feedback-image-item {
        width: 56px;
        height: 56px;
    }
}
