/* ======================================================
   pages/jdz_add.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-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.jdz-info-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}
.jdz-info-contact {
    font-size: 12px;
    color: #555;
    margin-bottom: 2px;
}
.jdz-info-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-top: 4px;
}
.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;
}

/* ======================================================
   接待站详情弹窗（精美卡片式 - 2026-05-20 重构）
   ======================================================
   设计原则：
   - 手机优先，底部弹出半屏卡片
   - 信息层次清晰：头部标识 → 图片 → 关键信息 → 详情 → 操作
   - 图片智能布局（1/2/3/4张各有最优排列）
   - 点击可全屏查看大图
   ====================================================== */

/* --- 弹窗容器 --- */
.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: flex-end;
}
.detail-modal.show {
    display: flex;
}
.detail-modal-content {
    background: #fff;
    border-radius: 20px 20px 12px 12px;
    width: 100%;
    max-width: 480px;
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
    animation: modalSlideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}
@keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0.8; }
    to   { transform: translateY(0);    opacity: 1; }
}
.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 8px;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #fff 85%, transparent);
    z-index: 2;
}
.detail-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.detail-modal-header .close-btn {
    width: 30px; height: 30px;
    border: none; background: #f5f5f5;
    border-radius: 50%; font-size: 18px;
    cursor: pointer; color: #999;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.detail-modal-header .close-btn:hover {
    background: #eee; color: #333;
}
.detail-modal-body {
    padding: 4px 18px 24px;
}

/* --- 头部标识区（参考图片布局） --- */
.dm-header-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* 名称 */
.dm-name {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* 信息卡片（非接待站类型使用） */
.dm-info-card {
    margin: 12px 0;
    padding: 14px 16px;
    background: #f7f8fa;
    border-radius: 10px;
}
.dm-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.65;
}
.dm-info-row + .dm-info-row {
    border-top: 1px solid #eaecf0;
}
.dm-info-row .info-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    line-height: 1.65;
}
.dm-info-row .info-content {
    flex: 1;
    min-width: 0;
}
.dm-info-row .info-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.dm-info-row .info-value {
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

/* 信息行 — 图标+文字 */
.dm-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.65;
}
.dm-info-item + .dm-info-item {
    border-top: 1px solid #f2f2f2;
}
.dm-info-item .item-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    line-height: 1.65;
}
.dm-info-item .item-text {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}
.dm-info-item .item-text a {
    color: #333;
    text-decoration: none;
}
.dm-info-item .item-text a:active {
    opacity: 0.6;
}
/* 联系人+电话同行 */
.dm-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.65;
    flex-wrap: wrap;
}
.dm-contact-row + .dm-info-item,
.dm-contact-row + .dm-intro {
    border-top: 1px solid #f2f2f2;
}
.dm-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
}
.dm-contact-item .item-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    line-height: 1.65;
}
.dm-contact-item .item-text {
    min-width: 0;
    word-break: break-all;
}
.dm-contact-item .item-text a {
    color: #333;
    text-decoration: none;
}

/* --- 图片智能布局 --- */
.dm-photo-grid {
    display: grid;
    gap: 6px;
    margin: 14px 0;
    border-radius: 10px;
    overflow: hidden;
}
.dm-photo-item {
    cursor: pointer;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px;
    position: relative;
}
.dm-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s, filter 0.3s;
}
.dm-photo-item:active img {
    transform: scale(1.05);
    filter: brightness(0.92);
}
/* 📐 1 张 — 宽幅海报 */
.dm-photo-grid.grid-1 { grid-template-columns: 1fr; }
.dm-photo-grid.grid-1 .dm-photo-item { aspect-ratio: 16/9; }
/* 📐 2 张 — 左右并列 */
.dm-photo-grid.grid-2 { grid-template-columns: 1fr 1fr; }
.dm-photo-grid.grid-2 .dm-photo-item { aspect-ratio: 1/1; }
/* 📐 3 张 — 左大图+右两小图 */
.dm-photo-grid.grid-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.dm-photo-grid.grid-3 .dm-photo-item:nth-child(1) { grid-row: 1/3; aspect-ratio: auto; }
.dm-photo-grid.grid-3 .dm-photo-item:nth-child(2),
.dm-photo-grid.grid-3 .dm-photo-item:nth-child(3) { aspect-ratio: 1/1; }
/* 📐 4 张 — 2x2 网格 */
.dm-photo-grid.grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.dm-photo-grid.grid-4 .dm-photo-item { aspect-ratio: 1/1; }

.dm-call-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

/* --- 详细介绍 --- */
.dm-intro {
    margin: 12px 0;
}
.dm-intro-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: #f7f8fa;
    border-radius: 9px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.dm-intro-toggle:active {
    background: #eee;
}
.dm-intro-toggle .intro-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}
.dm-intro-toggle .intro-arrow {
    font-size: 12px;
    color: #aaa;
    transition: transform 0.3s;
}
.dm-intro-toggle.open .intro-arrow {
    transform: rotate(180deg);
}
.dm-intro-text {
    display: none;
    margin-top: 8px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.85;
    color: #555;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}
.dm-intro-text.show {
    display: block;
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- 底部操作按钮 --- */
.dm-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}
.dm-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.dm-action-btn .dm-action-icon {
    font-size: 16px;
}
.dm-action-btn.nav-btn {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff;
    box-shadow: 0 3px 12px rgba(46,125,50,0.28);
}
.dm-action-btn.share-btn {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    box-shadow: 0 3px 12px rgba(21,101,192,0.28);
}
.dm-action-btn:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* --- 全屏图片查看器 --- */
.dm-image-viewer {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: viewerFadeIn 0.2s ease;
}
.dm-image-viewer.show {
    display: flex;
}
@keyframes viewerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.dm-image-viewer img {
    max-width: 94%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.dm-viewer-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.dm-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dm-viewer-prev { left: 12px; }
.dm-viewer-next { right: 12px; }
.dm-viewer-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* --- 桌面端适配 --- */
@media (min-width: 481px) {
    .detail-modal {
        align-items: center;
    }
    .detail-modal-content {
        border-radius: 16px;
        max-width: 420px;
        max-height: 85vh;
    }
    .dm-name {
        font-size: 18px;
    }
}

/* --- 手机端精细适配 --- */
@media (max-width: 480px) {
    .detail-modal-content {
        max-height: 85vh;
        border-radius: 18px 18px 10px 10px;
    }
    .detail-modal-header {
        padding: 12px 16px 6px;
    }
    .detail-modal-body {
        padding: 2px 16px 20px;
    }
    .dm-header-badge {
        padding: 5px 12px;
        font-size: 11px;
        margin-bottom: 8px;
    }
    .dm-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .dm-info-item {
        padding: 8px 0;
        font-size: 13px;
        gap: 8px;
    }
    .dm-info-item .item-icon {
        font-size: 16px;
        width: 20px;
        line-height: 1.7;
    }
    .dm-contact-row {
        padding: 8px 0;
        font-size: 13px;
        gap: 12px;
    }
    .dm-contact-item .item-icon {
        font-size: 16px;
        width: 20px;
        line-height: 1.7;
    }
    .dm-photo-grid {
        gap: 4px;
        margin: 10px 0;
    }
    .dm-photo-item {
        border-radius: 6px;
    }
    .dm-intro {
        margin: 8px 0;
    }
    .dm-intro-toggle {
        padding: 9px 12px;
    }
    .dm-intro-toggle .intro-title {
        font-size: 12px;
    }
    .dm-intro-text {
        padding: 10px 12px;
        font-size: 12px;
    }
    .dm-info-card {
        padding: 10px 12px;
    }
    .dm-info-row {
        font-size: 13px;
        padding: 5px 0;
    }
    .dm-actions {
        gap: 10px;
    }
    .dm-action-btn {
        padding: 12px 0;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* 保留旧样式兼容 */
.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-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;
}

/* ======================================================
   编辑模式
   ======================================================
   编辑模式下地图标点可拖拽
*/
body.edit-mode .amap-marker img {
    cursor: move !important;
}
body.edit-mode #map {
    cursor: default;
}

/* 图片 badge 标签 */
.image-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    color: white;
    font-weight: 500;
    z-index: 2;
}
.image-badge.existing {
    background: rgba(102, 126, 234, 0.85);
}
.image-badge.new-img {
    background: rgba(76, 175, 80, 0.85);
}

/* ======================================================
   模式切换标签栏
   ====================================================== */
.mode-tabs {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1010;
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 4px;
    gap: 2px;
}
.mode-tab {
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    white-space: nowrap;
}
.mode-tab:hover { background: #f5f5f5; }
.mode-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}
.mode-icon { font-size: 16px; }

/* ======================================================
   接待站:类型选择
   ====================================================== */
.marker-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.marker-type-btn {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 13px;
}
.marker-type-btn:hover { border-color: #667eea; }
.marker-type-btn.active { border-color: #667eea; background: #f0f0ff; }
.marker-type-btn .marker-type-icon { font-size: 24px; display: block; margin-bottom: 4px; }
.marker-type-btn .marker-type-label { font-weight: 500; color: #333; }
.marker-type-btn.active .marker-type-label { color: #667eea; }

/* ======================================================
   路况提醒:类型选择 + 单图上传
   ====================================================== */
.type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.type-btn {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 13px;
}
.type-btn:hover { border-color: #667eea; }
.type-btn.active { border-color: #667eea; background: #f0f0ff; }
.type-btn .type-icon { font-size: 24px; display: block; margin-bottom: 4px; }
.type-btn .type-label { font-weight: 500; color: #333; }
.type-btn.active .type-label { color: #667eea; }

.single-image-upload {
    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;
}
.single-image-upload:hover {
    border-color: #667eea;
    background: #f8f8ff;
    color: #667eea;
}
.upload-icon { font-size: 28px; margin-bottom: 2px; }

.image-preview-container {
    margin-top: 10px;
    display: none;
}
.image-preview-container.show { display: block; }
.image-preview-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.image-preview-wrapper img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.image-preview-wrapper .remove-img {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======================================================
   禁摩区域:绘图工具栏
   ====================================================== */
.draw-toolbar {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1006;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.draw-toolbar .draw-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.draw-toolbar .draw-btn:hover { background: #e8ecf4; }
.draw-toolbar .draw-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}
.draw-toolbar .draw-btn.danger {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}
.draw-toolbar .draw-btn.danger:hover { background: #ffeaa7; }
.draw-toolbar .draw-sep {
    width: 1px;
    height: 24px;
    background: #ddd;
}

/* 绘图模式提示 */
.draw-mode-hint {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1007;
    background: rgba(102,126,234,0.95);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    display: none;
    animation: hintPulse 2s ease-in-out infinite;
}
.draw-mode-hint.show { display: block; }
@keyframes hintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 提交表单面板 */
.submit-panel {
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 1008;
    width: 300px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow-y: auto;
    display: none;
    flex-direction: column;
}
.submit-panel.show { display: flex; }
.submit-panel-header {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.submit-panel-header h3 {
    font-size: 14px;
    margin: 0;
}
.submit-panel-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.submit-panel-body label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-bottom: 2px;
}
.submit-panel-body input,
.submit-panel-body select,
.submit-panel-body textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}
.submit-panel-body input:focus,
.submit-panel-body select:focus,
.submit-panel-body textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
}
.submit-panel-body textarea {
    resize: vertical;
    min-height: 50px;
}
.submit-panel-body .form-group {
    display: flex;
    flex-direction: column;
}
.submit-panel-body .form-row {
    display: flex;
    gap: 8px;
}
.submit-panel-body .form-row .form-group { flex: 1; }
.submit-panel-body .coord-preview {
    font-size: 11px;
    color: #888;
    word-break: break-all;
    max-height: 60px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 6px 8px;
    border-radius: 4px;
}
.submit-panel-body .submit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.submit-panel-body .submit-actions button {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.submit-panel-body .btn-submit {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}
.submit-panel-body .btn-submit:hover {
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
    transform: translateY(-1px);
}
.submit-panel-body .btn-cancel {
    background: #f0f0f0;
    color: #555;
}
.submit-panel-body .btn-cancel:hover { background: #e0e0e0; }

/* 道路吸附加载提示 */
.road-snap-loading {
    position: fixed;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1007;
    background: rgba(102,126,234,0.95);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    display: none;
}
.road-snap-loading.show { display: block; }

/* ======================================================
   响应式 - 平板 (768px)
   ====================================================== */
@media (max-width: 768px) {
    .mode-tabs {
        top: 6px;
        padding: 3px;
        gap: 1px;
    }
    .mode-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    .mode-icon { font-size: 14px; }

    .marker-type-selector { gap: 6px; margin-bottom: 2px; }
    .marker-type-btn { padding: 8px 6px; font-size: 12px; border-radius: 8px; }
    .marker-type-btn .marker-type-icon { font-size: 20px; margin-bottom: 2px; }
    .marker-type-btn .marker-type-label { font-size: 11px; }

    .type-selector { gap: 6px; margin-bottom: 10px; }
    .type-btn { padding: 8px 6px; font-size: 12px; border-radius: 8px; }
    .type-btn .type-icon { font-size: 20px; margin-bottom: 2px; }
    .type-btn .type-label { font-size: 11px; }

    .single-image-upload { padding: 14px 12px; font-size: 12px; }
    .upload-icon { font-size: 24px; }
    .image-preview-wrapper img { max-height: 160px; }

    .draw-toolbar { top: 46px; padding: 6px 8px; gap: 4px; border-radius: 8px; }
    .draw-toolbar .draw-btn { padding: 4px 8px; font-size: 11px; border-radius: 6px; }
    .draw-toolbar .draw-sep { height: 20px; }

    .draw-mode-hint { top: 80px; padding: 6px 14px; font-size: 12px; }

    .submit-panel { width: 240px; top: 6px; right: 8px; max-height: calc(100vh - 80px); }
    .submit-panel-header { padding: 10px 12px; }
    .submit-panel-header h3 { font-size: 12px; }
    .submit-panel-body { padding: 12px; gap: 8px; }
    .submit-panel-body label { font-size: 11px; }
    .submit-panel-body input,
    .submit-panel-body select,
    .submit-panel-body textarea { padding: 6px 8px; font-size: 12px; }
    .submit-panel-body .submit-actions button { padding: 8px 0; font-size: 12px; }

    .road-snap-loading { top: 100px; padding: 6px 14px; font-size: 12px; }
}

/* ======================================================
   响应式 - 手机 (480px)
   ====================================================== */
@media (max-width: 480px) {
    .mode-tabs {
        top: 4px;
        width: calc(100% - 16px);
        justify-content: center;
        padding: 2px;
    }
    .mode-tab {
        padding: 6px 8px;
        font-size: 11px;
        flex: 1;
        justify-content: center;
    }
    .mode-icon { font-size: 13px; }
    .mode-label { font-size: 11px; }

    .marker-type-selector { gap: 4px; margin-bottom: 2px; flex-wrap: wrap; }
    .marker-type-btn { padding: 6px 4px; font-size: 11px; border-radius: 6px; flex: 0 0 auto; width: calc(50% - 2px); }
    .marker-type-btn .marker-type-icon { font-size: 18px; margin-bottom: 2px; }
    .marker-type-btn .marker-type-label { font-size: 10px; }

    .type-selector { gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
    .type-btn { padding: 6px 4px; font-size: 11px; border-radius: 6px; flex: 0 0 auto; width: calc(50% - 2px); }
    .type-btn .type-icon { font-size: 18px; margin-bottom: 2px; }
    .type-btn .type-label { font-size: 10px; }

    .single-image-upload { padding: 12px 10px; font-size: 12px; border-radius: 8px; }
    .upload-icon { font-size: 22px; margin-bottom: 0; }
    .image-preview-wrapper img { max-height: 140px; border-radius: 6px; }
    .image-preview-wrapper .remove-img { width: 20px; height: 20px; font-size: 12px; top: -6px; right: -6px; }

    .draw-toolbar {
        top: 42px;
        width: calc(100% - 16px);
        padding: 6px;
        gap: 3px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .draw-toolbar .draw-btn { padding: 6px 10px; font-size: 12px; flex: 0 0 auto; }
    .draw-toolbar .draw-sep { display: none; }

    .draw-mode-hint {
        top: 86px;
        width: calc(100% - 24px);
        text-align: center;
        padding: 6px 12px;
        font-size: 12px;
    }

    .submit-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        border-radius: 12px 12px 0 0;
    }
    .submit-panel-header { padding: 12px; }
    .submit-panel-header h3 { font-size: 14px; }
    .submit-panel-body { padding: 12px; gap: 10px; }
    .submit-panel-body label { font-size: 12px; }
    .submit-panel-body input,
    .submit-panel-body select,
    .submit-panel-body textarea { padding: 8px 10px; font-size: 13px; }
    .submit-panel-body .form-row { flex-direction: column; gap: 0; }
    .submit-panel-body .submit-actions button { padding: 10px 0; font-size: 14px; }
    .submit-panel-body .coord-preview { font-size: 10px; max-height: 40px; padding: 4px 6px; }

    .road-snap-loading {
        top: 82px;
        width: calc(100% - 24px);
        text-align: center;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ======================================================
   禁摩特有按钮(复用 #actionBtns 的 4 个共享按钮 + 追加特有按钮)
   ====================================================== */
.action-btns-restriction {
    position: fixed;
    bottom: 16px;
    right: 10px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
/* JS 会给 #actionBtns 加 .restriction-offset 类以腾出空间 */
.action-btns.restriction-offset {
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .action-btns-restriction {
        bottom: 16px;
        right: 12px;
        gap: 8px;
    }
    .action-btns.restriction-offset {
        margin-bottom: 58px;
    }
}
