/* ======================================================
   pages/index.css — 首页样式 v9 (现代渐变 · 玻璃拟态)
   布局：渐变Hero → 统计+城市选择 → 功能导航
   ====================================================== */

/* ===== 首页基础 ===== */
body.index-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #0f0c29 0%, #1a1a3e 30%, #f5f7fa 30%);
    min-height: 100vh;
    padding-bottom: 2rem;
    color: #333;
    margin: 0;
}

.index-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(233, 69, 96, 0.3); }
    50% { box-shadow: 0 0 40px rgba(233, 69, 96, 0.15), 0 0 60px rgba(83, 58, 253, 0.1); }
}

@keyframes float-bg {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(30px, -30px) scale(1.05); opacity: 0.3; }
    66% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.5; }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -8px); }
}

/* ===== 背景装饰 ===== */
.bg-decor {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 50%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-decor .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float-bg 20s infinite ease-in-out;
}

.bg-decor .orb:nth-child(1) {
    width: 500px; height: 500px;
    background: rgba(233, 69, 96, 0.15);
    top: -200px; right: -150px;
}

.bg-decor .orb:nth-child(2) {
    width: 400px; height: 400px;
    background: rgba(83, 58, 253, 0.12);
    top: 50px; left: -100px;
    animation-delay: -7s;
}

.bg-decor .orb:nth-child(3) {
    width: 300px; height: 300px;
    background: rgba(59, 130, 246, 0.1);
    bottom: -100px; left: 50%;
    animation-delay: -12s;
}

/* ===== 英雄区 ===== */
.hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
    animation: fadeInUp 0.6s ease;
    position: relative;
}

/* 品牌标识：logo + 标题 水平排列 */
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.hero-text {
    text-align: left;
}

.hero-title {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-title .accent {
    background: linear-gradient(135deg, #e94560, #f96bee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
}

/* Hero 区搜索框 */
.hero-section .search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    overflow: visible;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
}

.hero-section .search-box:focus-within {
    background: rgba(255,255,255,0.2);
    border-color: rgba(233, 69, 96, 0.6);
    box-shadow: 0 8px 32px rgba(233,69,96,0.15);
}

.hero-section .search-icon {
    font-size: 1.1rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.hero-section .search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 0.4rem 0;
}

.hero-section .search-box input::placeholder {
    color: rgba(255,255,255,0.45);
}

/* 搜索结果下拉 */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.search-results.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(233, 69, 96, 0.05); }
.result-name { color: #1a1a2e; font-weight: 600; font-size: 0.95rem; }
.result-count {
    background: linear-gradient(135deg, #e94560, #f96bee);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}
.search-empty { padding: 1.5rem; text-align: center; color: #999; font-size: 0.9rem; }

/* ===== 统计栏 + 城市选择 ===== */
.stats-section {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

/* --- 通用卡片 --- */
.stat-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem 0.6rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- 第1卡：禁摩城市 🔴 主视觉焦点 --- */
.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #e94560 0%, #c62828 100%);
    border: none;
    box-shadow: 0 6px 24px rgba(233, 69, 96, 0.35);
    animation: pulse-glow-red 3s ease-in-out infinite;
}
.stat-card:nth-child(1)::before { display: none; }
.stat-card:nth-child(1):hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.45);
}
.stat-card:nth-child(1) .stat-num {
    font-size: 2.8rem;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.stat-card:nth-child(1) .stat-label {
    color: rgba(255,255,255,0.9);
}
.stat-card:nth-child(1) .stat-icon {
    background: rgba(255,255,255,0.2);
}

@keyframes pulse-glow-red {
    0%, 100% { box-shadow: 0 6px 24px rgba(233, 69, 96, 0.35); }
    50% { box-shadow: 0 6px 36px rgba(233, 69, 96, 0.55), 0 0 60px rgba(233, 69, 96, 0.15); }
}

/* --- 第2卡：禁摩区域 🟠 --- */
.stat-card:nth-child(2) {
    border-top: 4px solid #f57c00;
}
.stat-card:nth-child(2):hover {
    box-shadow: 0 12px 32px rgba(245, 124, 0, 0.18);
}
.stat-card:nth-child(2) .stat-num {
    background: linear-gradient(135deg, #f57c00, #e65100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card:nth-child(2) .stat-label {
    color: #f57c00;
}

/* --- 移动端响应式 --- */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 2fr 1fr 3fr;
        gap: 0.6rem;
    }
    .stat-card:nth-child(1) {
        grid-column: auto;
        grid-row: auto;
    }
    .stat-card:nth-child(1) .stat-num {
        font-size: 2.4rem;
    }
    .stat-num {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 2fr 1fr;
    }
    /* 禁摩城市(2/3) + 禁摩区域(1/3) 放第一行 */
    .stat-card:nth-child(1) .stat-num {
        font-size: 2rem;
    }
    /* 城市选择器放第二行，横跨两列 */
    .stats-section .city-selector {
        grid-column: 1 / -1;
    }
}

/* ===== 城市选择器 ===== */
.city-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.selector-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.selector-row {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.selector-row select {
    flex: 1;
    padding: 0.6rem 2rem 0.6rem 0.8rem;
    border: 1.5px solid #e0e4ea;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    background: #fafbfc;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.selector-row select:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233,69,96,0.08);
}

.selector-info {
    font-size: 0.8rem;
    color: #e94560;
    font-weight: 600;
    white-space: nowrap;
    min-width: 6rem;
    text-align: right;
}

/* ===== 功能导航 ===== */
.nav-section {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.section-title {
    color: #1a1a2e;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e0e4ea, transparent);
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 1.4rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.nav-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #533afd);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: rgba(233, 69, 96, 0.15);
}

.nav-card:hover::after {
    transform: scaleX(1);
}

.nav-card .icon-wrap {
    min-width: 48px;
    width: auto;
    height: 48px;
    padding: 0 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 1px;
}

.nav-card:nth-child(1) .icon-wrap { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.nav-card:nth-child(2) .icon-wrap { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.nav-card:nth-child(3) .icon-wrap { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.nav-card:nth-child(4) .icon-wrap { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.nav-card:nth-child(5) .icon-wrap { background: linear-gradient(135deg, #ede7f6, #d1c4e9); }
 .nav-card:nth-child(6) .icon-wrap { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }
.nav-card:nth-child(7) .icon-wrap { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.nav-card:nth-child(8) .icon-wrap { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }

.nav-card .title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
}

.nav-card .desc {
    font-size: 0.78rem;
    color: #999;
    line-height: 1.4;
}

/* ===== 迷你地图预览 ===== */
.mini-map-wrapper {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    animation: fadeInUp 0.6s ease 0.18s both;
    /* overflow:hidden 移到 mini-map-container，避免裁剪 InfoWindow */
}

.mini-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mini-map-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}

.mini-map-link {
    font-size: 0.8rem;
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.mini-map-link:hover {
    color: #533afd;
}

.mini-map-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: #e8edf3;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.mini-map-container > div,
.mini-map-container iframe {
    width: 100%;
    height: 100%;
}

/* 高德地图容器 */
.mini-map-container .AMapContainer {
    width: 100% !important;
    height: 100% !important;
}

/* 高德版权层在小容器中会异常放大遮住地图，强制隐藏 */
.mini-map-container .amap-copyright,
.mini-map-container .amap-copyright-container {
    display: none !important;
}

/* 加载动画 */
.mini-map-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #e8edf3;
    z-index: 5;
    font-size: 0.85rem;
    color: #999;
}

.mini-map-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e0e4ea;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 点击遮罩 */
.mini-map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(0deg, rgba(26,26,46,0.75) 0%, rgba(26,26,46,0.3) 60%, transparent 100%);
    z-index: 10;
    transition: background 0.3s;
}

.mini-map-overlay:hover {
    background: linear-gradient(0deg, rgba(233,69,96,0.85) 0%, rgba(233,69,96,0.4) 60%, transparent 100%);
}

.mini-map-hint {
    background: rgba(0,0,0,0.25);
    padding: 0.35rem 1.2rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
    animation: float-slow 3s ease-in-out infinite;
}

.mini-map-overlay:hover .mini-map-hint {
    background: rgba(0,0,0,0.4);
}

/* ===== 底部 ===== */
.index-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    animation: fadeIn 0.6s ease 0.3s both;
}

.index-footer a.footer-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.index-footer a.footer-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.index-footer .footer-beian {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.index-footer .footer-beian a.footer-link {
    margin: 0 0.3rem;
}

/* ===== 响应式：平板 ===== */
@media (max-width: 768px) {
    body.index-page {
        background: linear-gradient(180deg, #0f0c29 0%, #1a1a3e 25%, #f5f7fa 25%);
    }

    .hero-section {
        padding: 2.5rem 0 1.5rem;
    }
    .hero-brand { gap: 0.8rem; }
    .hero-logo { width: 56px; height: 56px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.85rem; }

    .hero-section .search-box {
        max-width: 100%;
        padding: 0.5rem 1.2rem;
    }

    .stats-section {
        grid-template-columns: 2fr 1fr 3fr;
        gap: 0.6rem;
    }

    .stat-card { padding: 0.8rem 0.4rem; }
    .stat-num { font-size: 1.8rem; }
    .stat-label { font-size: 0.7rem; }

    .city-selector {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }
    .selector-row { flex-direction: row; }
    .selector-info { text-align: left; min-width: auto; }

    .mini-map-container { height: 260px; }

    .nav-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .nav-card { padding: 1.1rem; }
    .nav-card .icon-wrap {
        width: 40px; height: 40px; font-size: 1.3rem; border-radius: 10px;
    }
    .nav-card .title { font-size: 0.9rem; }
    .nav-card .desc { font-size: 0.72rem; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 480px) {
    .index-container { padding: 0 0.75rem; }
    body.index-page {
        background: linear-gradient(180deg, #0f0c29 0%, #1a1a3e 22%, #f5f7fa 22%);
    }

    .hero-section { padding: 2rem 0 1.2rem; }
    .hero-brand { gap: 0.6rem; margin-bottom: 1rem; }
    .hero-logo { width: 44px; height: 44px; }
    .hero-title { font-size: 1.5rem; letter-spacing: 1px; }
    .hero-subtitle { font-size: 0.75rem; }

    .hero-section .search-box { padding: 0.45rem 1rem; }
    .hero-section .search-box input { font-size: 0.85rem; }

    .stats-section {
        grid-template-columns: 2fr 1fr;
    }
    .stats-section .city-selector {
        grid-column: 1 / -1;
    }

    .stat-card { padding: 0.7rem 0.2rem; border-radius: 12px; }
    .stat-num { font-size: 1.4rem; }
    .stat-label { font-size: 0.65rem; }

    .city-selector { padding: 0.7rem 0.8rem; border-radius: 12px; flex-direction: column; gap: 0.6rem; align-items: stretch; }
    .selector-label { font-size: 0.8rem; }
    .selector-row { flex-direction: column; gap: 0.4rem; }
    .selector-row select { padding: 0.5rem 0.6rem; font-size: 0.8rem; border-radius: 8px; }

    .mini-map-header { padding: 0.6rem 0.8rem; }
    .mini-map-title { font-size: 0.82rem; }
    .mini-map-link { font-size: 0.72rem; }
    .mini-map-container { height: 220px; }
    .mini-map-hint { font-size: 0.72rem; padding: 0.3rem 0.8rem; }

    .section-title { font-size: 1rem; margin-bottom: 0.7rem; }

    .nav-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .nav-card { padding: 0.9rem; border-radius: 12px; }
    .nav-card .icon-wrap {
        width: 36px; height: 36px; font-size: 1.2rem; border-radius: 8px; margin-bottom: 0.5rem;
    }
    .nav-card .title { font-size: 0.85rem; }
    .nav-card .desc { font-size: 0.7rem; }

    /* 接待站搜索模块 */
    .station-search-wrapper { padding: 0 0.3rem; }
    .station-search-card { padding: 1rem; }
    .station-search-stats { flex-direction: row; gap: 0.5rem; }
    .station-stat { font-size: 0.8rem; }
}

/* ======================================================
   接待站/骑士营 搜索模块样式
   ====================================================== */

.station-search-wrapper {
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.6s ease 0.18s both;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.station-search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.station-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.station-search-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}

.station-search-link {
    color: #e94560;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.station-search-link:hover {
    color: #c62828;
    text-decoration: underline;
}

.station-search-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.station-stat {
    font-size: 0.85rem;
    color: #666;
}

.station-stat strong {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e94560, #f96bee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.station-search-input {
    position: relative;
}

.station-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f7f8fc;
    border: 1.5px solid #e0e4ea;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    transition: all 0.25s;
}

.station-search-box:focus-within {
    border-color: #e94560;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.08);
}

.station-search-icon {
    font-size: 0.95rem;
    margin-right: 0.5rem;
    opacity: 0.5;
}

.station-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: #333;
    padding: 0.2rem 0;
}

.station-search-box input::placeholder {
    color: #aaa;
}

/* 站点搜索结果下拉 */
.station-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.station-search-results.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.station-result-item {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.station-result-item:hover {
    background: rgba(233, 69, 96, 0.05);
}

/* 搜索结果行顶部：名称+编号+类型 */
.station-result-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.station-result-name {
    flex: 1;
    font-size: 0.88rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-result-num {
    font-size: 0.7rem;
    color: #999;
    flex-shrink: 0;
}

/* 类型徽章 */
.station-result-badge {
    font-size: 0.65rem !important;
    padding: 0.1rem 0.5rem !important;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.station-badge-station {
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
}

.station-badge-camp {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
}

.station-result-info {
    font-size: 0.72rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* 导航卡片网格适配 8 张 */
.nav-cards {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== 平板响应式 ===== */
@media (max-width: 768px) {
    .station-search-wrapper { margin-bottom: 1.2rem; }
    .station-search-card { padding: 1rem 1.1rem; }
    .station-search-stats { gap: 1rem; }
    .nav-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 手机响应式 ===== */
@media (max-width: 480px) {
    .station-search-wrapper { margin-bottom: 1rem; padding: 0 0.2rem; }
    .station-search-card { padding: 0.9rem; border-radius: 12px; }
    .station-search-title { font-size: 0.85rem; }
    .station-search-stats { gap: 0.5rem; flex-wrap: nowrap; justify-content: space-around; }
    .station-stat { font-size: 0.78rem; text-align: center; }
    .station-stat strong { font-size: 1rem; }
    .station-search-box { padding: 0.45rem 0.8rem; }
    .station-search-box input { font-size: 0.78rem; }
    .nav-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 免责声明弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0 0.2rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.2rem;
}

.modal-body p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 0.8rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 0 1.2rem 1.2rem;
}

.modal-confirm {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, #e94560, #c62828);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-confirm:hover {
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

/* 可点击的统计卡片 */
.stat-card-clickable {
    cursor: pointer;
}

.stat-card-clickable:hover {
    transform: translateY(-4px);
}

/* ===== 弹窗响应式 ===== */
@media (max-width: 480px) {
    .modal-content {
        width: 92%;
        max-width: 360px;
    }
    .modal-body p {
        font-size: 0.82rem;
    }
}

/* ===== 意见反馈弹窗 ===== */
.feedback-overlay {
    position: fixed;
    z-index: 3000;
    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; }

/* ======================================================
   2026-05-24 移动端体验优化
   ====================================================== */
@media (max-width: 768px) {
    .index-container {
        max-width: 100%;
    }

    .hero-brand {
        max-width: 100%;
    }

    .hero-text {
        min-width: 0;
    }

    .hero-title,
    .hero-subtitle,
    .station-search-title,
    .nav-card .title,
    .nav-card .desc {
        overflow-wrap: anywhere;
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
    }

    .stats-section .city-selector {
        grid-column: 1 / -1;
    }

    .mini-map-header,
    .station-search-header {
        gap: 0.75rem;
    }
}

@media (max-width: 560px) {
    body.index-page {
        padding-bottom: 1rem;
    }

    .index-container {
        padding: 0 0.875rem;
    }

    .hero-section {
        text-align: left;
    }

    .hero-brand {
        justify-content: flex-start;
        align-items: center;
    }

    .hero-title {
        font-size: 1.45rem;
        line-height: 1.18;
        letter-spacing: 0;
    }

    .hero-subtitle {
        max-width: 17rem;
        line-height: 1.45;
        letter-spacing: 0;
    }

    .hero-section .search-box {
        border-radius: 14px;
        padding: 0.55rem 0.85rem;
    }

    .hero-section .search-box input,
    .station-search-box input {
        min-width: 0;
    }

    .search-results,
    .station-search-results {
        max-height: min(58vh, 420px);
        border-radius: 12px;
    }

    .stats-section {
        gap: 0.7rem;
        margin-bottom: 1rem;
    }

    .stat-card {
        min-height: 88px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .stat-card:nth-child(1) .stat-num {
        font-size: 2.25rem;
    }

    .stat-num {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.72rem;
        letter-spacing: 0;
    }

    .city-selector {
        padding: 0.85rem;
    }

    .selector-label {
        white-space: normal;
        line-height: 1.4;
    }

    .selector-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    .selector-row select {
        min-width: 0;
        width: 100%;
        padding: 0.65rem 1.9rem 0.65rem 0.75rem;
    }

    .selector-info {
        text-align: left;
        white-space: normal;
    }

    .station-search-card,
    .mini-map-wrapper,
    .nav-card,
    .stat-card,
    .city-selector {
        border-radius: 12px;
    }

    .station-search-header,
    .mini-map-header {
        align-items: flex-start;
    }

    .station-search-title,
    .mini-map-title {
        line-height: 1.35;
    }

    .station-search-link,
    .mini-map-link {
        flex-shrink: 0;
        padding-top: 0.1rem;
    }

    .station-search-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .station-stat {
        min-width: 0;
        padding: 0.45rem 0.35rem;
        border-radius: 8px;
        background: #f7f8fc;
        line-height: 1.3;
    }

    .station-result-top {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .station-result-name {
        flex-basis: 100%;
        white-space: normal;
        line-height: 1.35;
    }

    .station-result-info {
        white-space: normal;
    }

    .mini-map-container {
        height: 240px;
    }

    .nav-cards {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .nav-card {
        min-height: 82px;
        display: grid;
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto auto;
        column-gap: 0.8rem;
        align-items: center;
        padding: 0.85rem;
    }

    .nav-card .icon-wrap {
        grid-row: 1 / 3;
        width: 44px;
        min-width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
    }

    .nav-card .title,
    .nav-card .desc {
        min-width: 0;
    }

    .nav-card .title {
        font-size: 0.92rem;
        line-height: 1.28;
    }

    .nav-card .desc {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .index-footer {
        padding: 1.4rem 0 0.5rem;
        line-height: 1.6;
    }
}

@media (max-width: 360px) {
    .hero-logo {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 1.28rem;
    }

    .selector-row,
    .station-search-stats {
        grid-template-columns: 1fr;
    }
}
