/* ============================================
 * 今日阿克苏 — 全端适配 + 滚动景深背景
 * ============================================ */

/* ============ 基础重置 ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    /* 移动端滚动时禁止自动放大/橡皮筋 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    min-height: 100vh;
    /* 移动端用 dvh 防止地址栏伸缩导致高度跳变 */
    min-height: 100dvh;
    color: #2d3436;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* 关键：内容层要能滚动到背景层之上 */
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    display: block;
}

/* ============ 滚动景深背景层 ============ */
.scene-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(160deg, #6cb6f0 0%, #8fb8e8 40%, #b8c8dc 100%);
}

.scene-layer {
    position: absolute;
    inset: -3%;  /* 稍微外扩，避免切换时边缘露白 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* 慢速过渡 + 轻微放大，营造"景深"感觉 */
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 8s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: scale(1.08);
    will-change: opacity, transform;
    /* 移动端减少模糊开销 */
    backface-visibility: hidden;
}

/* 当前激活的层 */
.scene-layer.is-active {
    opacity: 1;
    transform: scale(1);
}

/* 上一层的淡出状态 */
.scene-layer.is-leaving {
    opacity: 0;
    transform: scale(1.03);
}

/* 统一的可读性遮罩：保证卡片上的文字始终清晰 */
.scene-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.42) 40%,
            rgba(240, 244, 248, 0.72) 100%);
}

/* 移动端：遮罩加重一点，保证对比度 */
@media (max-width: 768px) {
    .scene-overlay {
        background:
            linear-gradient(180deg,
                rgba(255, 255, 255, 0.66) 0%,
                rgba(255, 255, 255, 0.56) 45%,
                rgba(238, 243, 247, 0.82) 100%);
    }
}

/* ============ 头部 ============ */
.site-header {
    color: #2d3436;
    padding: 40px 20px 20px;
    text-align: center;
    /* 移动端安全区 */
    padding-top: calc(40px + env(safe-area-inset-top, 0px));
}

.site-header h1 {
    font-size: 2.4rem;
    margin-bottom: 4px;
    color: #2d3436;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    font-weight: 700;
}

/* ============ Tab 导航（弱化 · 毛玻璃）============ */
.tab-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    /* 移动端点击时避免粘性抖动 */
    will-change: backdrop-filter;
}

.tabs {
    display: flex;
    gap: 0;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    color: #8395a7;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    font-family: inherit;
    /* 移动端触摸目标不小于 44px */
    min-height: 48px;
    touch-action: manipulation;
}

.tab-btn:hover {
    color: #2d3436;
    background: rgba(255, 255, 255, 0.4);
}

.tab-btn.active {
    color: #6c5ce7;
    border-bottom-color: #6c5ce7;
    font-weight: 600;
}

/* Tab 内容切换 */
.tab-pane {
    display: none;
    animation: fadeIn 0.35s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 尊重系统的"减少动效"设置 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tab-pane { animation: none; }
    .scene-layer { transition: opacity 0.4s linear; transform: none !important; }
    * { animation-duration: 0.01ms !important; }
}

/* ============ 容器 ============ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    /* 底部留白：页面已移除 footer，用 padding 补足视觉平衡 */
    padding: 24px 16px 56px;
}

/* ============ Section Title ============ */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.section-title h2 {
    font-size: 1.55rem;
    color: #2d3436;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: #636e72;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-bar {
    width: 14px;
    height: 4px;
    border-radius: 2px;
}

.legend-bar.up { background: #ff6b6b; }
.legend-bar.down { background: #48dbfb; }

.update-info {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00b894;
    box-shadow: 0 0 6px #00b894;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.refresh-btn {
    padding: 4px 11px;
    border: none;
    background: rgba(108, 92, 231, 0.14);
    color: #6c5ce7;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s;
    font-family: inherit;
    min-height: 26px;
    touch-action: manipulation;
}

.refresh-btn:hover { background: rgba(108, 92, 231, 0.24); }
.refresh-btn:active { transform: scale(0.95); }
.refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ 天气卡片网格 ============ */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.weather-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
    overflow: hidden;
}

/* 当前滚动停留的卡片：更实一点 + 轻微放大 */
.weather-card.is-current {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    transform: translateY(-3px) scale(1.012);
}

/* 卡片顶部的小场景名（提示当前背景） */
.weather-card::before {
    content: attr(data-scene-label);
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
    color: #8395a7;
    background: rgba(108, 92, 231, 0.1);
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    /* 默认隐藏，只有当前卡片显示 */
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-card.is-current::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
}

.city-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3436;
    letter-spacing: 0.5px;
}

.city-type {
    font-size: 0.75rem;
    color: #8395a7;
    margin-top: 2px;
}

.weather-icon {
    font-size: 2.6rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.temp-display {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 12px 0;
    gap: 12px;
}

.current-temp {
    font-size: 3.4rem;
    font-weight: 200;
    color: #2d3436;
    line-height: 1;
    flex-shrink: 0;
}

.current-temp::after {
    content: "°C";
    font-size: 1.2rem;
    color: #636e72;
    margin-left: 2px;
}

.weather-desc {
    color: #636e72;
    font-size: 0.95rem;
    text-align: right;
    font-weight: 500;
}

.weather-meta {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px dashed #dfe6e9;
    border-bottom: 1px dashed #dfe6e9;
}

.meta-item {
    font-size: 0.9rem;
    color: #2d3436;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    color: #b2bec3;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ 7天预报 ============ */
.forecast {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.forecast-day {
    text-align: center;
    padding: 8px 2px;
    background: rgba(108, 92, 231, 0.06);
    border-radius: 8px;
    transition: background 0.2s;
}

.forecast-day:hover { background: rgba(108, 92, 231, 0.13); }

.forecast-date {
    font-size: 0.7rem;
    color: #636e72;
    margin-bottom: 4px;
    font-weight: 500;
}

.forecast-icon {
    font-size: 1.2rem;
    margin: 4px 0;
}

.forecast-temp {
    font-size: 0.72rem;
    line-height: 1.4;
}

.forecast-temp .max { color: #d63031; font-weight: 600; }
.forecast-temp .min { color: #0984e3; }

/* ============ 滚动提示 ============ */
.scroll-hint {
    text-align: center;
    color: #8395a7;
    font-size: 0.85rem;
    margin-top: 26px;
    transition: opacity 0.4s ease;
}

.scroll-hint.is-hidden {
    opacity: 0;
}

/* ============ 资讯页面 ============ */
.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-label {
    font-size: 0.82rem;
    color: #8395a7;
    padding-top: 8px;
    flex-shrink: 0;
    min-width: 32px;
}

.news-filters,
.county-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn,
.county-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.85);
    color: #636e72;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
    min-height: 38px;
    touch-action: manipulation;
}

.filter-btn:hover,
.county-btn:hover { background: #fff; color: #2d3436; }
.filter-btn:active,
.county-btn:active { transform: scale(0.96); }

.filter-btn.active,
.county-btn.active {
    background: #6c5ce7;
    color: #fff;
    border-color: #6c5ce7;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.28);
}

/* 县市按钮用另一色，和分类区分开 */
.county-btn.active {
    background: #00b894;
    border-color: #00b894;
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.28);
}

.news-meta {
    color: #636e72;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 999px;
}

.news-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.news-card {
    display: block;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-left: 4px solid #6c5ce7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.news-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
    border-left-color: #a29bfe;
    border-bottom-color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

.news-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.news-category {
    display: inline-block;
    padding: 3px 10px;
    background: #6c5ce7;
    color: #fff;
    font-size: 0.72rem;
    border-radius: 999px;
    font-weight: 500;
}

.news-county {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(0, 184, 148, 0.14);
    color: #00897b;
    font-size: 0.72rem;
    border-radius: 999px;
    font-weight: 500;
}

.news-date {
    color: #b2bec3;
    font-size: 0.78rem;
    margin-left: auto;
}

.news-title {
    font-size: 1.05rem;
    color: #2d3436;
    line-height: 1.55;
    font-weight: 600;
}

/* ============ 加载 / 错误 ============ */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #636e72;
    font-size: 1rem;
    grid-column: 1 / -1;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
    display: inline-block;
    margin-left: 4px;
}

@keyframes dots {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
}

.error-card {
    text-align: center;
    padding: 40px 20px;
    color: #d63031;
    font-weight: 500;
}

.error-card .error-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ============ 底部留白（无footer，容器补足间距） ============ */

/* ============================================
 * 旅游资源板块
 * ============================================ */

.tour-legend {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: #636e72;
}

.lg-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.lg-nature  { background: #0F6E56; }
.lg-human   { background: #854F0B; }
.lg-village { background: #993556; }

/* ---------- 路线选择 ---------- */
.tour-routes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.route-tab {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    text-align: left;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s;
    font-family: inherit;
    min-height: 62px;
    touch-action: manipulation;
}

.route-tab:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.route-tab.active {
    background: #fff;
    border-left-color: #6c5ce7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.route-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3436;
}

.route-meta {
    font-size: 0.75rem;
    color: #8395a7;
}

/* ---------- 地图 ---------- */
.tour-map-wrap {
    position: relative;   /* 缩放工具栏定位基准 */
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

/* SVG 示意图：高度由 viewBox 自动决定，无需固定高度 */
.tour-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #E6F1FB;
    /* 保证两模式都有最小高度 */
    min-height: 320px;
}

.tour-map svg {
    display: block;
    width: 100%;
    height: auto;
}

/* 高德地图模式：必须有固定高度，否则不渲染 */
.tour-map.is-amap {
    height: 460px;
    background: #F2F3F5;
    /* ⚠️ 必须明确层级：确保盖在 .scene-backdrop(z-index:-1) 之上，
       否则地图 canvas 可能被背景层遮挡，导致底图空白且无法交互 */
    position: relative;
    z-index: 1;
}

/* 高德地图内部元素的层级与交互 */
.tour-map.is-amap .amap-container,
.tour-map.is-amap .amap-maps,
.tour-map.is-amap canvas {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .tour-map.is-amap { height: 340px; }
}

/* 底图来源标识 */
.map-status {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 11;
    font-size: 0.72rem;
    color: #636e72;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.map-status.is-amap {
    color: #0F6E56;
    background: rgba(255, 255, 255, 0.94);
}

/* 高德加载失败时的回退标识 */
.map-status.is-fallback {
    color: #854F0B;
    background: rgba(254, 243, 227, 0.95);
    border-color: rgba(186, 117, 23, 0.3);
}

@media (max-width: 768px) {
    .map-status { top: 14px; left: 14px; font-size: 0.68rem; }
}

/* ---------- 路线详情 ---------- */
.tour-detail {
    display: grid;
    gap: 14px;
}

.route-detail-head {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 18px 20px;
    border-left: 4px solid #6c5ce7;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.route-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.route-detail-title h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #2d3436;
}

.route-badge {
    color: #fff;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
}

.route-desc {
    color: #636e72;
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.route-stats {
    display: flex;
    gap: 18px;
    font-size: 0.82rem;
    color: #636e72;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #dfe6e9;
}

.route-path {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.path-node {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    padding: 4px 11px;
    border-radius: 999px;
    font-weight: 500;
}

.path-arrow {
    color: #b2bec3;
}

/* ---------- 沿途景点 ---------- */
.spot-list {
    display: grid;
    gap: 10px;
}

.spot-card {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.spot-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #dfe6e9;
}

.spot-card:hover .spot-thumb {
    transform: scale(1.04);
}

.spot-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}

.spot-body { flex: 1; min-width: 0; }

.spot-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.spot-index {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spot-top h4 {
    font-size: 0.98rem;
    font-weight: 500;
    color: #2d3436;
}

.spot-type {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 500;
}

.type-自然 { background: rgba(15, 110, 86, 0.14); color: #0F6E56; }
.type-人文 { background: rgba(133, 79, 11, 0.14); color: #854F0B; }
.type-乡村 { background: rgba(153, 53, 86, 0.14);  color: #993556; }

.spot-city {
    font-size: 0.75rem;
    color: #b2bec3;
    margin: 3px 0 6px;
}

.spot-desc {
    font-size: 0.87rem;
    color: #636e72;
    line-height: 1.6;
}

/* ---------- 全部景点 ---------- */
.spot-all {
    display: grid;
    gap: 10px;
}

.city-spot-group {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.city-spot-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 9px;
}

.city-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.city-spot-count {
    font-size: 0.72rem;
    color: #b2bec3;
    font-weight: 400;
    margin-left: auto;
}

.city-spot-items {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.spot-chip {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 8px;
    color: #636e72;
    background: rgba(108, 92, 231, 0.06);
}

/* ---------- 图库 ---------- */
.city-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: #dfe6e9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gallery-name {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 500;
}

.gallery-info .spot-type {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ---------- 地图提示 ---------- */
.map-tip {
    text-align: center;
    font-size: 0.78rem;
    color: #8395a7;
    padding: 8px 0 2px;
}

/* ---------- 缩放工具栏 ---------- */
.map-ctrl {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d3436;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    transition: background 0.18s, transform 0.12s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    min-height: 34px;
}

.map-btn:hover {
    background: #fff;
    transform: scale(1.06);
}

.map-btn:active { transform: scale(0.94); }

.map-reset {
    height: auto;
    min-height: 28px;
    padding: 4px 6px;
}

.map-level {
    font-size: 0.68rem;
    color: #636e72;
    font-weight: 500;
    white-space: nowrap;
}

/* ---------- 景点详情弹层 ---------- */
.spot-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.spot-modal.show {
    display: flex;
    animation: modalIn 0.24s ease;
}

@keyframes modalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cardIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes cardIn {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 30px;
    touch-action: manipulation;
}

.modal-close:hover { background: rgba(0, 0, 0, 0.7); }

.modal-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.modal-body {
    padding: 18px 20px 20px;
}

.modal-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.modal-city {
    font-size: 0.78rem;
    color: #8395a7;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 0.9rem;
    color: #636e72;
    line-height: 1.7;
}

.modal-route {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #dfe6e9;
    font-size: 0.8rem;
    color: #8395a7;
}

/* ============================================
 * 移动端适配
 * ============================================ */

/* --- 平板 --- */
@media (max-width: 1024px) {
    .weather-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* --- 手机 --- */
@media (max-width: 768px) {
    .container {
        padding: 18px 14px 48px;
    }

    .site-header {
        padding: 28px 16px 14px;
        padding-top: calc(28px + env(safe-area-inset-top, 0px));
    }

    .site-header h1 {
        font-size: 1.65rem;
        letter-spacing: 3px;
    }

    /* Tab 按钮加大触摸区 */
    .tab-btn {
        padding: 13px 8px;
        font-size: 0.9rem;
        min-height: 50px;
        letter-spacing: 0.5px;
    }

    .section-title {
        margin-bottom: 14px;
    }

    .section-title h2 {
        font-size: 1.18rem;
    }

    .legend {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.75rem;
    }

    /* 手机上单列 */
    .weather-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .weather-card {
        padding: 18px;
        border-radius: 16px;
    }

    .weather-card.is-current {
        transform: translateY(-2px) scale(1.005);
    }

    .current-temp { font-size: 2.8rem; }
    .weather-icon { font-size: 2.3rem; }
    .city-name { font-size: 1.15rem; }

    /* 手机上 7 天预报更紧凑 */
    .forecast {
        gap: 3px;
    }

    .forecast-day {
        padding: 7px 1px;
    }

    .forecast-date { font-size: 0.66rem; }
    .forecast-icon { font-size: 1.05rem; }
    .forecast-temp { font-size: 0.68rem; }

    .news-card {
        padding: 15px 16px;
    }

    .news-card:hover { transform: none; }

    .news-title { font-size: 0.98rem; }

    .filter-group {
        flex-direction: column;
        gap: 6px;
    }

    .filter-label {
        padding-top: 0;
    }

    .filter-btn,
    .county-btn {
        padding: 7px 13px;
        font-size: 0.82rem;
        min-height: 36px;
    }

    /* 旅游板块 */
    .tour-routes {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .route-tab {
        padding: 10px 12px;
        min-height: 56px;
    }

    .route-name { font-size: 0.86rem; }
    .route-meta { font-size: 0.68rem; }

    .tour-map-wrap { padding: 6px; border-radius: 12px; }

    /* 手机上工具栏缩小，避让图钉 */
    .map-ctrl { top: 14px; right: 14px; gap: 5px; }
    .map-btn { width: 40px; height: 40px; font-size: 18px; }
    .map-reset { min-height: 30px; }
    .map-level { font-size: 0.64rem; }

    .route-detail-head { padding: 15px 16px; }
    .route-detail-title h3 { font-size: 1rem; }
    .route-stats { gap: 12px; font-size: 0.76rem; }

    .spot-card { padding: 12px 13px; gap: 10px; }
    .spot-top h4 { font-size: 0.9rem; }
    .spot-desc { font-size: 0.82rem; }

    .city-spot-group { padding: 11px 13px; }

    /* 图库 */
    .city-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-name { font-size: 0.76rem; }

    /* 景点卡片 */
    .spot-card { padding: 10px 11px; gap: 10px; }
    .spot-thumb { width: 60px; height: 60px; }
    .spot-top h4 { font-size: 0.9rem; }
    .spot-desc { font-size: 0.82rem; }

    /* 弹层 */
    .modal-card { max-width: 100%; }
    .modal-img { height: 180px; }
    .modal-title { font-size: 1.05rem; }
}

/* --- 小屏手机 --- */
@media (max-width: 380px) {
    .site-header h1 {
        font-size: 1.45rem;
        letter-spacing: 2px;
    }

    .tab-btn {
        padding: 12px 6px;
        font-size: 0.82rem;
        letter-spacing: 0;
    }

    .weather-card { padding: 16px; }

    .current-temp { font-size: 2.5rem; }

    .weather-meta {
        gap: 12px;
        font-size: 0.85rem;
    }

    .forecast { gap: 2px; }
    .forecast-day { padding: 6px 0; }
    .forecast-icon { font-size: 0.95rem; margin: 3px 0; }
    .forecast-temp { font-size: 0.64rem; }

    .legend { font-size: 0.7rem; }
}

/* --- 横屏手机：压缩垂直空间 --- */
@media (max-height: 480px) and (orientation: landscape) {
    .site-header {
        padding: 16px 16px 8px;
    }

    .site-header h1 { font-size: 1.4rem; }

    .tab-btn { min-height: 42px; padding: 9px 12px; }

    .container { padding: 14px 14px 36px; }
}

/* --- 触摸设备：去掉 hover 效果，避免"粘住"的视觉bug --- */
@media (hover: none) {
    .weather-card:hover {
        transform: none;
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.09);
    }

    .weather-card.is-current {
        transform: translateY(-2px) scale(1.005);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    }

    .forecast-day:hover { background: rgba(108, 92, 231, 0.06); }
    .news-card:hover { transform: none; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07); }
    .filter-btn:hover, .county-btn:hover { background: rgba(255, 255, 255, 0.85); color: #636e72; }
    .filter-btn.active:hover, .county-btn.active:hover { background: #6c5ce7; color: #fff; }
    .county-btn.active:hover { background: #00b894; }
    .tab-btn:hover { background: transparent; color: #8395a7; }
    .tab-btn.active:hover { color: #6c5ce7; background: transparent; }
    .route-tab:hover { transform: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
    .route-tab.active:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
    .spot-card:hover { transform: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
    .spot-card:hover .spot-thumb { transform: none; }
    .gallery-item:hover { transform: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
    .gallery-item:hover img { transform: none; }
}

/* --- 打印 --- */
@media print {
    .scene-backdrop, .tab-nav, .scroll-hint { display: none; }
    body { background: #fff; }
    .weather-card, .news-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}