/* =========================================================================
 * style.css — 饺子的旅行小助手（Apple 风格：中性色 + 绿色强调 #3E9B6B）
 * 仅视觉层：所有 id / 布局类名保持与 JS 兼容。
 * ========================================================================= */

:root {
  --accent: #2F7D55;
  --accent-soft: #E6F2EA;
  --accent-strong: #3E9B6B;
  --accent-ink: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --chip-track: #e8e8ed;
  --overlay-bg: rgba(255, 255, 255, 0.9);
  --nav-btn-bg: rgba(255, 255, 255, 0.86);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --maxw: 1180px;
  --nav-h: 50px;
  /* 天气小格 */
  --day: #f5f5f7;
  --day-good: #f3f3f5;
  --day-great: #f1f1f3;
  --day-meh: #f5f5f7;
  --day-bad: #efeff2;
  --best-bg: #E8F3EC;
  --best-line: #3E9B6B;
  --best-ink: #2F7D55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6CCB97;
    --accent-soft: rgba(62, 155, 107, 0.20);
    --accent-strong: #3E9B6B;
    --ink: #f5f5f7;
    --ink-soft: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.18);
    --bg: #000000;
    --bg-gray: #1d1d1f;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --chip-track: #2c2c2e;
    --overlay-bg: rgba(28, 28, 30, 0.9);
    --nav-btn-bg: rgba(28, 28, 30, 0.86);
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.4);
    --day: #2c2c2e;
    --day-good: #2c2c2e;
    --day-great: #2e2e30;
    --day-meh: #2a2a2c;
    --day-bad: #262628;
    --best-bg: rgba(62,155,107,0.20);
    --best-line: #4CAF7A;
    --best-ink: #8FD3A8;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline-color: var(--accent-strong); }
::selection { background: rgba(62, 155, 107, 0.25); }
.muted { color: var(--ink-soft); font-size: 15px; }

/* ---------------- 顶部导航（sticky 毛玻璃） ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(29, 29, 31, 0.72); }
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid rgba(62, 155, 107, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.ghost-btn:hover { background: var(--accent-soft); border-color: var(--accent-strong); }
@media (prefers-color-scheme: dark) {
  .ghost-btn {
    background: rgba(28, 28, 30, 0.45);
    border-color: rgba(108, 203, 151, 0.45);
  }
}
.ghost-btn:active { transform: scale(0.97); }

/* ---------------- 布局 ---------------- */
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.section-gray { background: var(--bg-gray); }

/* sticky 导航遮挡：锚点/scrollIntoView 时给分区标题留出导航高度 */
.panel,
section,
.weather-panel {
  scroll-margin-top: calc(64px + env(safe-area-inset-top));
}

/* ---------------- Hero ---------------- */
.hero {
  background: var(--bg);
  text-align: center;
  padding: 76px 0 60px;
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero-sub {
  margin-top: 16px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: var(--ink-soft);
}

/* 「当前 季节 / 月份」一行小字 + 绿色文字链接 */
.now-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 30px auto 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.now-banner strong { color: var(--ink); font-weight: 600; }

/* ---------------- 筛选（segmented control） ---------------- */
.filters { padding: 30px 0; }
.filters .section-inner { display: flex; flex-direction: column; gap: 16px; }
.filter-row { display: flex; align-items: center; gap: 16px; }
.filter-label {
  flex: 0 0 auto;
  width: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.season-tabs,
.month-tabs {
  display: flex;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
  padding: 3px;
  background: var(--chip-track);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
/* 四季只有 4 项，底槽贴合内容；月份 12 项则铺满并横向滚动 */
.season-tabs { flex: 0 1 auto; width: max-content; max-width: 100%; }
.season-tabs::-webkit-scrollbar,
.month-tabs::-webkit-scrollbar { display: none; }

.season-tab,
.month-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.season-tab .emoji { font-size: 15px; }
.season-tab span { white-space: nowrap; }
.season-tab:hover,
.month-chip:hover { color: var(--accent); }
.season-tab.active,
.month-chip.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

/* ---------------- 地图 + 列表 ---------------- */
.explorer { background: var(--bg); padding: 60px 0; }
.explorer-inner { display: flex; flex-direction: column; gap: 28px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-head > div { min-width: 0; }
.panel-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.panel-head .muted { margin-top: 6px; }

/* ---------------- 城市与景点列表 ---------------- */
.list-sub { margin-top: 4px; font-size: 14px; }

/* =========================================================================
 * 城市与景点 · 绿色强调（仅作用于本面板）
 * 原理：在 .list-panel 作用域内重新声明 --accent / --accent-soft，
 *       本面板内所有引用变量的规则（dest-count、箭头 hover 等）自动转绿。
 *       全局强调色现在同为绿色，这里保持同色以与站点一致。
 * ========================================================================= */
.list-panel {
  display: flex;
  flex-direction: column;
  --accent: #2F7D55;
  --accent-soft: #E6F2EA;
  --accent-strong: #3E9B6B;
  --green: #3E9B6B;
}
@media (prefers-color-scheme: dark) {
  .list-panel {
    --accent: #6CCB97;
    --accent-soft: rgba(62, 155, 107, 0.20);
  }
}

.dest-scroller { position: relative; min-width: 0; }
.dest-list {
  display: flex;
  align-items: stretch;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 2px 30px;
  margin-bottom: -18px;
  scroll-padding-left: 2px;
}
.dest-list::-webkit-scrollbar { display: none; }

/* 景点详情页横向滑动箭头保持原样 */
.spot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--nav-btn-bg);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}
.spot-nav.prev { left: 6px; }
.spot-nav.next { right: 6px; }
.spot-nav:hover { background: var(--accent-soft); }
.spot-nav:disabled { opacity: 0.3; cursor: default; }
.spot-nav[hidden] { display: none; }

/* 城市与景点：磨砂圆钮箭头（仅 .dest-nav） */
.dest-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  color: #1d1d1f;
  font-size: 24px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}
.dest-nav.prev { left: 10px; }
.dest-nav.next { right: 10px; }
.dest-nav:hover {
  background: #fff;
  color: var(--green);
  transform: translateY(-50%) scale(1.06);
}
.dest-nav:disabled { opacity: 0; pointer-events: none; }
.dest-nav[hidden] { display: none; }
@media (hover: hover) and (min-width: 641px) {
  .dest-nav, .spot-nav { display: inline-flex; }
}
@media (prefers-color-scheme: dark) {
  .dest-nav {
    background: rgba(40, 44, 42, 0.72);
    color: #f5f5f7;
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/* ---- 旅行杂志风卡片 ---- */
.dest-card {
  position: relative;
  flex: 0 0 auto;
  width: 78%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: #1d2a22;
  box-shadow: 0 10px 30px rgba(20, 40, 30, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  border: none;
  scroll-snap-align: start;
  scroll-margin: 12px;
  cursor: pointer;
  outline: none;
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}
.dest-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.dest-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) {
  .dest-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 40, 30, 0.22); }
  .dest-card:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 40, 30, 0.22); }
  .dest-card:hover .dest-photo-img,
  .dest-card:focus-visible .dest-photo-img { transform: scale(1.06); }
}
.dest-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0) 22%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.25) 58%, rgba(6, 18, 12, 0.82) 100%);
}
.dest-weather {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.dest-weather[hidden] { display: none; }
.dest-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.dest-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dest-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.dest-chip.is-season {
  background: rgba(62, 155, 107, 0.85);
  border-color: rgba(143, 211, 168, 0.6);
}
.dest-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: #fff;
}
.dest-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.dest-title .province {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  flex: none;
}
.dest-reason {
  margin: 0;
  min-height: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
}

/* 深色模式：更深阴影 + 细描边 */
@media (prefers-color-scheme: dark) {
  .dest-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .dest-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0, rgba(0, 0, 0, 0) 22%),
      linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.3) 56%, rgba(3, 12, 8, 0.88) 100%);
  }
}

/* 减少动态：卡片与图片不做位移/缩放 */
@media (prefers-reduced-motion: reduce) {
  .dest-card,
  .dest-photo-img { transition: none; transform: none; }
  .dest-card:hover,
  .dest-card:focus-visible,
  .dest-card:hover .dest-photo-img,
  .dest-card:focus-visible .dest-photo-img { transform: none; }
}
.empty { color: var(--ink-soft); font-size: 15px; padding: 20px 4px; }

/* ---------------- 天气榜 ---------------- */
.weather-section { background: var(--bg-gray); padding: 60px 0; }
.weather-panel .panel-head { margin-bottom: 20px; }
#weatherStatus { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.live { background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18); }
.dot.seasonal { background: #8e8e93; box-shadow: 0 0 0 3px rgba(142, 142, 147, 0.18); }
.dot.loading { background: #c7c7cc; animation: pulse 1s infinite; }
.dot.error { background: #ff3b30; box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18); }
@keyframes pulse { 50% { opacity: 0.3; } }
.rank-note { align-self: center; max-width: 620px; text-align: right; }

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  align-items: stretch;
  gap: 16px;
}
.w-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.w-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.w-card.in-season { box-shadow: inset 0 0 0 1px var(--accent-soft); }
.w-card.in-season:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--accent-soft); }
.w-card.failed { opacity: 0.68; }
.w-rank { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-align: center; }
.w-card:nth-child(1) .w-rank { color: var(--accent); }
.w-main { min-width: 0; }
.w-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-right: 72px; }
.w-emoji { font-size: 18px; }
.w-title h4 { font-size: 16px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.w-title .province { font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.mini-tag {
  font-size: 11px;
  background: var(--surface-2);
  color: var(--ink-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.season-badge {
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.snow-badge {
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.w-desc { font-size: 13px; color: var(--ink-soft); margin: 8px 0; }
.w-week {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  padding-top: 7px;
}
.w-week li {
  position: relative;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  padding: 6px 0 4px;
  border-radius: 10px;
  background: var(--day);
  color: var(--ink-soft);
  white-space: nowrap;
}
.w-week li.d-good { background: var(--day-good); }
.w-week li.d-great { background: var(--day-great); }
.w-week li.d-ok { background: var(--day); }
.w-week li.d-meh { background: var(--day-meh); }
.w-week li.d-bad { background: var(--day-bad); }
.w-week b { display: block; font-weight: 500; font-size: 11px; color: var(--ink-soft); }
.w-week .d-ico { display: block; font-size: 14px; line-height: 1.3; }
.w-week .d-t { display: block; color: var(--ink); }
.w-week .d-t small { display: block; color: var(--ink-soft); margin: 0; font-size: 11px; }
.w-week li.best { background: var(--best-bg); box-shadow: inset 0 0 0 1.5px var(--best-line); }
.w-week li.best b { color: var(--best-ink); font-weight: 600; }
.w-week li.best .d-t { color: var(--ink); }
.d-best-tag { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9px; line-height: 13px; font-weight: 700; padding: 0 5px; border-radius: 7px; background: var(--best-line); color: #fff; white-space: nowrap; letter-spacing: 0.02em; pointer-events: none; }
.w-best { color: var(--best-ink); font-weight: 600; }

.w-score {
  position: absolute;
  top: 12px;
  right: 14px;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-align: right;
}
.w-score strong { font-size: 18px; line-height: 1; color: var(--ink); }
.w-score span { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.w-card.failed .w-desc { color: var(--ink-soft); }
.w-card > .w-flight {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  margin-top: 4px;
}

.w-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  margin: -4px 0 18px;
  background: var(--chip-track);
  border-radius: 999px;
}
.w-tabs[hidden] { display: none; }
.w-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}
.w-tab:hover:not(:disabled) { color: var(--accent); }
.w-tab.on { background: var(--accent); color: #fff; font-weight: 600; }
.w-tab.on:hover { color: #fff; }
.w-tab:disabled { opacity: 0.4; cursor: default; }
.w-tab-n { flex-shrink: 0; white-space: nowrap; }
.w-page-note { grid-column: 1 / -1; }

/* ---------------- 详情弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 26px;
  animation: pop 0.28s ease-out;
}
@keyframes pop { from { transform: scale(0.96) translateY(8px); opacity: 0; } }
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--chip-track); color: var(--ink); }

.detail-head { margin-bottom: 20px; padding-right: 44px; }
.detail-title { display: flex; gap: 14px; align-items: flex-start; }
.detail-icon {
  font-size: 34px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border-radius: 16px;
  flex: 0 0 auto;
}
.detail-title h2 { font-size: 26px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.detail-title .province { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.detail-title p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; line-height: 1.6; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail-tags span {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
}
.detail-tags .months {
  flex: 1 1 100%;
  min-width: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  padding: 2px 4px;
  border-radius: 12px;
  white-space: normal;
}

/* 景点横向滑动卡片 */
.spot-scroller { position: relative; }
.spot-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 8px;
  scroll-padding-left: 2px;
}
.spot-grid::-webkit-scrollbar { display: none; }
.spot-card {
  flex: 0 0 auto;
  width: 80vw;
  max-width: 340px;
  scroll-snap-align: start;
  scroll-margin: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: visible;
  position: relative;
  background: var(--surface);
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.spot-card:hover, .spot-card:focus-visible { border-color: var(--line-strong); box-shadow: var(--shadow); }
.spot-imgwrap {
  position: relative;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  aspect-ratio: 16 / 10;
  flex: none;
  min-height: 0;
  background: var(--surface-2);
  overflow: hidden;
}
.spot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.spot-card:hover .spot-img { transform: scale(1.03); }
.spot-photocount {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
}
.spot-card figcaption { padding: 12px 14px 16px; }
.live-wrap { position: absolute; top: 8px; right: 8px; z-index: 3; }
.live-btn {
  display: inline-flex; align-items: center; min-height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--overlay-bg);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.live-btn:hover { background: var(--accent-soft); }
.live-menu {
  position: fixed; left: 0; top: 0; z-index: 120; width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 8px;
}
.live-menu[hidden] { display: none; }
.live-menu p { font-size: 12px !important; margin: 2px 4px 6px; color: var(--ink-soft) !important; line-height: 1.5 !important; }
.live-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; color: var(--ink); text-decoration: none;
}
.live-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.spot-card h4 { font-size: 16px; margin-bottom: 5px; }
.spot-reason {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
@media (min-width: 641px) {
  .dest-card { width: 280px; }
  .spot-card { width: 300px; max-width: 300px; }
}
@media (min-width: 1100px) {
  .dest-card { width: 300px; }
}

/* 全屏照片画廊 */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); }
.lb-panel { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 16px; }
.lb-track {
  flex: 1; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none; outline: none;
  overscroll-behavior: contain;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 8px; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lb-close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.92); color: #1d1d1f; font-size: 24px; line-height: 1;
  transition: background 0.2s ease;
}
.lb-close:hover { background: #fff; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 26px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-nav[hidden] { display: none; }
.lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 6px 4px; color: #fff; font-size: 13px;
}
.lb-count { font-weight: 700; flex: 0 0 auto; }
.lb-credit { opacity: 0.86; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-credit a { color: #8FD3A8; }
.img-note { margin-top: 20px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

/* ===== 早安小世界海报 ===== */
.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  container-type: inline-size;
  margin: 0;
  background: #e9edf0;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  outline: none;
}
.poster:focus-visible { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.poster-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-text {
  position: absolute;
  left: 7.2cqw;
  top: 6.6cqw;
  right: 30cqw;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
.poster-py { font-size: 7.4cqw; font-weight: 800; letter-spacing: 0.02em; line-height: 1.02; }
.poster-py span { display: block; }
.poster-py .py2 { color: transparent; -webkit-text-stroke: 0.22cqw var(--ink); }
.poster-cn { font-size: 15.5cqw; font-weight: 600; line-height: 1.1; margin-top: 3.2cqw; letter-spacing: 0.04em; }
.poster-rule { width: 6cqw; height: 0.35cqw; background: var(--ink); margin: 1.2cqw 0 3.2cqw; }
.poster-meta { font-size: 3.1cqw; line-height: 1.62; font-weight: 400; opacity: 0.92; }
.poster-quote { margin-top: 3cqw; font-size: 3.3cqw; line-height: 1.6; font-weight: 700; }

/* 今日城市（首页） */
.today-poster { padding: 56px 0; }
.today-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 28px;
  padding: 24px 24px 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--tint-a, #eef2f7) 0%, var(--tint-b, #f3ede4) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
}
.today-copy { text-align: center; max-width: 460px; width: 100%; }
.eyebrow { color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.today-copy h2 {
  margin-top: 8px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.today-copy .muted { margin-top: 14px; line-height: 1.6; color: var(--ink-soft); }
.today-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; justify-content: center; }
.today-poster-wrap { order: -1; width: 100%; max-width: 460px; justify-self: center; }
.today-card .poster { border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); }

@media (min-width: 720px) {
  .today-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    justify-items: stretch;
    align-items: center;
    gap: 48px;
    max-width: none;
    padding: 40px 40px 40px 56px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 48px rgba(0, 0, 0, 0.08);
  }
  .today-copy { text-align: left; max-width: 440px; width: 100%; justify-self: start; }
  .today-actions { justify-content: flex-start; }
  .today-poster-wrap { order: 0; max-width: 420px; justify-self: end; }
}

@media (min-width: 720px) and (max-width: 900px) {
  .today-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 32px;
    padding: 32px 32px 32px 40px;
  }
}

@media (prefers-color-scheme: dark) {
  .today-card {
    background: #1c1c1e;
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--tint-a, #eef2f7) 10%, #1c1c1e), color-mix(in srgb, var(--tint-b, #f3ede4) 8%, #1c1c1e));
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Apple 风格胶囊按钮 */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 980px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px rgba(62, 155, 107, 0.28);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pill-btn:hover { background: #358A5D; opacity: 1; }
.pill-btn:active { transform: scale(0.97); }
.pill-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.pill-btn.ghost {
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  color: var(--accent);
  border: 1px solid rgba(62, 155, 107, 0.45);
  box-shadow: none;
}
.pill-btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent-strong); opacity: 1; }
@media (prefers-color-scheme: dark) {
  .pill-btn:hover { background: #48A877; }
  .pill-btn.ghost {
    background: rgba(28, 28, 30, 0.45);
    border-color: rgba(108, 203, 151, 0.45);
  }
}

/* 城市详情里的海报 */
.detail-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-poster-canvas { width: 100%; max-width: 360px; }
.detail-poster-actions { display: flex; justify-content: center; }

/* 全屏海报查看 */
.poster-fs {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);
  background: rgba(0, 0, 0, 0.92);
}
.poster-fs[hidden] { display: none; }
.poster-fs-backdrop { position: absolute; inset: 0; }
.poster-fs-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: 100%;
}
.poster-fs-frame { width: min(calc(100vw - 32px), calc((100vh - 120px) * 0.75)); }
.poster-fs-close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1f;
  font-size: 24px;
  line-height: 1;
  transition: background 0.2s ease;
}
.poster-fs-close:hover { background: #fff; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--bg-gray);
  text-align: center;
  padding: 44px 22px calc(52px + env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

/* ---------------- 响应式 ---------------- */
/* 今日城市：窄屏改为单列，海报置顶、文案居中 */
@media (max-width: 719px) {
  .today-poster { padding: 28px 0; }
  .today-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 14px 14px 26px;
    border-radius: 28px;
  }
  .today-poster-wrap { order: -1; max-width: 100%; justify-self: stretch; }
  .today-card .poster { border-radius: 18px; }
  .today-copy { text-align: center; max-width: 100%; padding: 0 8px; }
  .today-actions { justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { padding: env(safe-area-inset-top) 16px 0; }
  .brand-name { font-size: 16px; }
  .ghost-btn { padding: 6px 14px; font-size: 13px; }
  .section-inner { padding: 0 16px; }
  .hero { padding: 48px 0 38px; }
  .hero-title { font-size: 40px; }
  .hero-sub { margin-top: 12px; font-size: 17px; }
  .now-banner { margin-top: 22px; }
  .filters { padding: 22px 0; }
  .filters .section-inner { gap: 14px; }
  .filter-row { align-items: center; gap: 12px; }
  .filter-label { width: 34px; font-size: 13px; }
  .season-tab, .month-chip { padding: 8px 15px; font-size: 13px; }
  .explorer { padding: 40px 0; }
  .explorer-inner { gap: 20px; }
  .weather-section { padding: 40px 0; }
  .panel { padding: 16px; border-radius: 20px; }
  .panel-head { margin-bottom: 14px; }
  .panel-head h2 { font-size: 27px; }
  .list-sub { font-size: 13px; }
  .dest-list { gap: 14px; }
  .dest-name { font-size: 24px; }
  .weather-grid { grid-template-columns: 1fr; gap: 12px; }
  .w-card { position: relative; grid-template-columns: 26px 1fr; align-items: start; gap: 9px; padding: 12px 14px; }
  .w-rank { font-size: 13px; }
  .w-main { min-width: 0; }
  .w-title { padding-right: 72px; }
  .w-score {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-align: right;
  }
  .w-score strong { font-size: 18px; line-height: 1; }
  .w-score span { font-size: 11px; }
  .w-tabs { flex-wrap: nowrap; gap: 2px; }
  .flight-bar { margin: 0 0 12px; }
  .w-tab {
    flex: 1 1 50%;
    min-width: 0;
    justify-content: center;
    padding: 8px 12px;
    min-height: 40px;
    font-size: 12px;
    overflow: hidden;
  }
  .w-tab-label {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rank-note { display: none; }
  .modal { padding: 0; }
  .modal-panel {
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
  }
  .modal-close { top: calc(env(safe-area-inset-top) + 8px); }
  .live-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 60;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
  .live-menu a { min-height: 44px; }
  .spot-grid { gap: 12px; }
  .lb-panel { padding: calc(12px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom)); }
  .lb-bar { padding: 8px 4px 2px; }
  .detail-title h2 { font-size: 22px; }
  .detail-poster-canvas { max-width: 100%; }
  .poster-fs-frame { width: min(calc(100vw - 24px), calc((100vh - 130px) * 0.75)); }
  .poster-fs-close { top: calc(env(safe-area-inset-top) + 8px); right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
 * 机票价格 · 出发地选择
 * ========================================================================= */
.dest-flight {
  margin-top: auto;
  height: 50px;
  box-sizing: border-box;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
  overflow: hidden;
}
.flight-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  min-width: 0;
  color: var(--accent);
}
.flight-main {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.flight-sub {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.flight-link.none .flight-main,
.flight-link.local .flight-main,
.flight-link.loading .flight-main { color: var(--ink-soft); }
a.flight-link:hover .flight-main { text-decoration: underline; }

.flight-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
}
/* 紧跟在分页标签之后的机票条：标签自带 margin-bottom，无需再叠加间距 */
.w-tabs + .flight-bar { margin-top: 0; }
.flight-from { white-space: nowrap; color: var(--ink-soft); }
.flight-select {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  padding: 6px 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  flex: 0 0 auto;
  width: 140px;
  min-width: 120px;
  max-width: 180px;
  cursor: pointer;
}
.flight-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.flight-bar .flight-locate {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
}
.flight-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 760px) {
  .flight-select { flex: 1 1 auto; min-width: 0; max-width: none; }
  .flight-note { flex-basis: 100%; margin-left: 0; text-align: left; }
}

/* =========================================================================
   筛选区对齐与自适应补丁（追加于文件末尾，按源码顺序覆盖上方同名规则）
   目标：
   1) 季节胶囊条与月份条同宽：撑满可用宽度，4 段均分并居中；
   2) 两条 .filter-row 与上方 .today-card 一样撑满 .section-inner 内容盒，
      所有宽度下左右边缘一致；
   3) 月份条放得下时 12 个 chip 均分填满，放不下时保持横向滚动；
   4) 移动端（<=640px）收窄季节段内边距与内部间隙，避免 390px 溢出。
   仅使用既有 CSS 变量（本补丁未新增任何自定义属性）。
   ========================================================================= */

/* 1) 季节胶囊条：由 max-content 改为与月份条一致的可伸缩满宽布局 */
.season-tabs {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
}
/* 4 个季节段在底槽内均匀分布并居中 */
.season-tab {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}

/* 3) 月份条：放得下时 12 个 chip 均分填满；flex-shrink:0 保证放不下时横向滚动 */
.month-chip {
  flex: 1 0 auto;
  justify-content: center;
}

/* 2) 筛选行与 .today-card 一样撑满 .section-inner 内容盒，左右边缘一致 */
.filters .filter-row {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* 4) 移动端：收窄季节段，避免 390px 宽度下横向溢出 */
@media (max-width: 640px) {
  .season-tab {
    padding: 8px 6px;
    gap: 4px;
  }
}

/* =========================================================================
 * 未来7天天气推荐 · 绿色配色（追加于文件末尾）
 * 目标：.weather-section 内部统一使用绿色强调，与全局站点一致。
 * 原理：在 .weather-section 作用域内重新声明 --accent / --accent-soft 等，
 *       使该区域内所有引用这些变量的规则（w-rank、season-badge、snow-badge、
 *       w-tab hover、flight-link、pill-btn.ghost、flight-select focus、
 *       in-season inset 阴影等）自动切换为柔和现代绿色。
 *       全局强调色现在同为绿色，这里保持同色以与站点一致。
 * ========================================================================= */

/* 1) 亮色模式：天气区绿色变量 */
.weather-section {
  --accent: #2F7D55;                          /* 深绿：排名 #1、当季标签文字、机票价格文字、hover 文字、ghost 按钮文字/描边 */
  --accent-soft: #E6F2EA;                     /* 柔和浅绿底：标签/hover 背景、当季 inset 阴影 */
  --accent-strong: #3E9B6B;                   /* 实心填充：选中态、主按钮 */
  --best-bg: #E8F3EC;                         /* 最佳日：柔和绿底 */
  --best-line: #3E9B6B;                       /* 最佳日：绿色描边 */
  --best-ink: #2F7D55;                        /* 最佳日：深绿文字（最佳：…） */
}

/* 2) 暗色模式：天气区绿色变量 */
@media (prefers-color-scheme: dark) {
  .weather-section {
    --accent: #6CCB97;
    --accent-soft: rgba(62, 155, 107, 0.20);
    --accent-strong: #3E9B6B;
    --best-bg: rgba(62, 155, 107, 0.20);
    --best-line: #4CAF7A;
    --best-ink: #8FD3A8;
  }
}

/* 3) 天气区分页：选中态改为柔和绿色（覆盖原 var(--accent) 蓝） */
.weather-section .w-tab.on { background: #3E9B6B; color: #fff; }
@media (prefers-color-scheme: dark) {
  .weather-section .w-tab.on { background: #2F7D55; }
}

/* =========================================================================
 * Apple「Liquid Glass」视觉层 — 追加于文件最末尾（源码顺序覆盖上方同名规则）
 * 仅视觉调整：不改变任何布局宽度 / padding、不改动城市轮播卡片
 * （.dest-card*），也不改动绿色强调色。
 * ========================================================================= */

/* ---- 1) 玻璃变量 ---- */
:root {
  --glass-bg: rgba(255,255,255,0.52);
  --glass-bg-strong: rgba(255,255,255,0.62);
  --glass-border: rgba(255,255,255,0.6);
  --glass-outline: rgba(20,40,30,0.08);
  --glass-blur: blur(24px) saturate(180%);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.75),
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 1px 0 rgba(20,40,30,0.04),
    0 20px 50px -12px rgba(30,60,45,0.18),
    0 6px 18px rgba(30,60,45,0.06);
  --glass-radius: 26px;
  /* 玻璃面板上的次要文字略深，保证可读性 */
  --ink-soft: #5a5f5c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(28,28,30,0.5);
    --glass-bg-strong: rgba(36,36,38,0.6);
    --glass-border: rgba(255,255,255,0.14);
    --glass-outline: rgba(0,0,0,0.4);
    --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.10),
      0 20px 50px -12px rgba(0,0,0,0.6),
      0 6px 18px rgba(0,0,0,0.3);
    --ink-soft: #a1a1a6; /* 保持暗色原值 */
  }
}

/* ---- 2) 环境光背景：固定全屏层 + 缓慢漂移 blob ---- */
html { background: #F6FAF7; }
body {
  background: transparent;
  position: relative;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46vw 46vw at 8% 6%, rgba(200,234,214,.42), transparent 62%),
    radial-gradient(52vw 52vw at 100% 34%, rgba(214,228,216,.45), transparent 64%),
    radial-gradient(44vw 44vw at 70% 44%, rgba(196,222,240,.4), transparent 62%),
    radial-gradient(50vw 50vw at 12% 100%, rgba(252,224,200,.38), transparent 64%),
    linear-gradient(160deg, #FAFCFA, #F3F8F5 45%, #FAF6F2);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 82% 78%, rgba(200,234,214,.3), transparent 66%),
    radial-gradient(46vw 46vw at 30% 30%, rgba(196,222,240,.26), transparent 66%);
  animation: glassDrift 40s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes glassDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2.5%, 0) scale(1.08); }
}

@media (prefers-color-scheme: dark) {
  html { background: #0b0f0d; }
  body::before {
    background:
      radial-gradient(46vw 46vw at 8% 6%, rgba(46,107,79,.45), transparent 62%),
      radial-gradient(52vw 52vw at 100% 34%, rgba(30,70,80,.4), transparent 64%),
      radial-gradient(50vw 50vw at 16% 100%, rgba(80,50,60,.3), transparent 64%),
      linear-gradient(160deg, #0a0d0c, #111614);
  }
  body::after {
    background:
      radial-gradient(40vw 40vw at 82% 78%, rgba(46,107,79,.3), transparent 66%),
      radial-gradient(46vw 46vw at 30% 30%, rgba(30,70,80,.28), transparent 66%);
  }
}

/* 小屏与「减少动态效果」下停用漂移 */
@media (max-width: 640px) {
  body::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ---- 3) 去掉灰/白条带，露出环境光 ---- */
.section-gray,
.explorer,
.weather-section,
.today-poster,
.filters,
.hero,
footer,
.site-footer {
  background: transparent;
}

/* ---- 4) 玻璃面板（沿用各自原有 padding） ---- */
.today-card,
.panel,
.weather-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--glass-radius);
}

/* ---- 5) 季节 / 月份 / 天气分段控件的玻璃轨道 ---- */
.season-tabs,
.month-tabs,
.w-tabs {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 14px rgba(30,60,45,.08);
  border-radius: 999px;
}
@media (prefers-color-scheme: dark) {
  .season-tabs,
  .month-tabs,
  .w-tabs {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.35);
  }
}
/* 仅季节/月份当前项原本使用 --surface（白底）；换成更实一点玻璃。
   .w-tabs 的 .w-tab.on 使用 --accent（绿色），保持不动。 */
.season-tab.active,
.month-chip.active {
  background: var(--glass-bg-strong);
  box-shadow: 0 1px 3px rgba(20,40,30,.14);
}

/* ---- 6) 天气卡片：更轻的玻璃 ---- */
.w-card {
  background: rgba(255,255,255,0.42);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 20px rgba(30,60,45,.08);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
}
@media (prefers-color-scheme: dark) {
  .w-card { background: rgba(44,44,46,0.45); }
}
/* 移动端避免玻璃套玻璃：取消模糊，改用稍实的底色 */
@media (max-width: 640px) {
  .w-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255,255,255,0.55);
  }
}
@media (max-width: 640px) and (prefers-color-scheme: dark) {
  .w-card { background: rgba(44,44,46,0.6); }
}

/* ---- 7) 顶部栏玻璃 ---- */
.site-header {
  background: rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 1px 0 rgba(20,40,30,0.06);
}
@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(28,28,30,0.5);
    border-bottom-color: rgba(255,255,255,0.08);
  }
}

/* ---- 10) 亮色模式下让面板内小色块略带透明（可选、低风险） ---- */
@media (prefers-color-scheme: light) {
  :root {
    --surface-2: rgba(245,245,247,0.55);
    --day: rgba(245,245,247,0.5);
    --day-good: rgba(243,243,245,0.5);
    --day-great: rgba(241,241,243,0.5);
    --day-meh: rgba(245,245,247,0.5);
    --day-bad: rgba(239,239,242,0.5);
  }
}

/* ---- 9) 不支持 backdrop-filter 时的兜底：改为不透明底色 ---- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .today-card,
  .panel,
  .weather-panel {
    background: rgba(255,255,255,0.9);
  }
  .season-tabs,
  .month-tabs,
  .w-tabs {
    background: rgba(255,255,255,0.9);
  }
  .season-tab.active,
  .month-chip.active {
    background: rgba(255,255,255,0.95);
  }
  .w-card {
    background: rgba(255,255,255,0.9);
  }
  .site-header {
    background: rgba(255,255,255,0.9);
  }
  @media (prefers-color-scheme: dark) {
    .today-card,
    .panel,
    .weather-panel,
    .w-card,
    .season-tabs,
    .month-tabs,
    .w-tabs,
    .site-header {
      background: rgba(28,28,30,0.92);
    }
    .season-tab.active,
    .month-chip.active {
      background: rgba(44,44,46,0.95);
    }
  }
}

/* ---- Layout adjust: filters directly under hero (2026-10-09) ---- */
.hero { padding-bottom: 28px; }
.filters { padding: 0 0 8px; }
.today-poster { padding-top: 32px; }
@media (max-width: 640px) {
  .hero { padding-bottom: 22px; }
  .filters { padding: 0 0 4px; }
  .today-poster { padding-top: 20px; }
}

/* =========================================================================
 * 2026-10-09: 未来7天天气推荐 — 由 CSS 网格改为横向 scroll-snap 轮播
 * 与「城市与景点」(.dest-scroller/.dest-list/.dest-card) 完全对齐：
 * 相同的卡片宽度、间距、内边距与磨砂箭头。
 * 放在文件最末尾，以覆盖上方所有 .weather-grid / .w-card 旧规则（含
 * <=640px 的 .weather-grid { grid-template-columns: 1fr } 与玻璃块）。
 * ========================================================================= */

/* ---- a) 城市与天气共用轮播尺寸（同宽、同间距、同列表内边距） ---- */
.dest-list,
.w-list { gap: 18px; }

.w-list {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 2px 30px;
  margin-bottom: -18px;
  scroll-padding-left: 2px;
  grid-template-columns: none;
}
.w-list::-webkit-scrollbar { display: none; }

/* 每屏卡数：严格与城市卡片一致（百分比相对滚动容器内容盒，两边 padding 均为 2px） */
@media (min-width: 1200px) {
  .dest-list > .dest-card,
  .w-list > .w-card {
    width: calc((100% - 3 * 18px) / 4);
    max-width: none;
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .dest-list > .dest-card,
  .w-list > .w-card {
    width: calc((100% - 2 * 18px) / 3);
    max-width: none;
  }
}
@media (min-width: 641px) and (max-width: 899px) {
  .dest-list > .dest-card,
  .w-list > .w-card {
    width: 280px;
    max-width: none;
  }
}
@media (max-width: 640px) {
  .dest-list,
  .w-list { gap: 14px; }
  .dest-list > .dest-card { width: 78%; max-width: none; }
  .w-list > .w-card { width: 85%; max-width: none; }
}

/* ---- b) 天气卡片在轮播中的单列布局（窄至 ~261px 也能容纳内容） ---- */
.w-list > .w-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto; /* 保留：机票行固定在底部 */
  padding: 14px 14px 12px;
}
.w-list .w-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.w-list .w-title {
  padding-left: 28px;
  padding-right: 64px;
}
.w-list .w-score {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-align: right;
}
/* 7 天日期条：7 列等分且不溢出 */
.w-list .w-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  padding-top: 8px; /* 给「最佳」小标签留出空间，避免被裁切 */
}
.w-list .w-week li {
  min-width: 0;
  overflow: visible;
}
.w-list .w-week b { font-size: 10px; }
.w-list .w-week .d-t { font-size: 11px; }
.w-list .w-week .d-t small { font-size: 10px; }

@media (hover: hover) {
  .w-list > .w-card:hover { transform: translateY(-3px); }
}

/* 第 1 页空状态提示横跨整个轮播 */
.w-list > .w-page-note { flex: 0 0 100%; }

/* ---- c) 箭头：直接复用已有 .dest-nav 磨砂圆钮样式（无需新增） ---- */

/* ---- d) 避免页面横向溢出 ---- */
.w-scroller { position: relative; min-width: 0; }

/* ---- e) 深色模式：沿用既有 .w-card 深色玻璃，无需额外规则 ---- */

/* ---- f) 修正轮播内评分块纵向叠放，避免与城市名/当季徽章重叠 ---- */
.w-list .w-score { position:absolute; top:12px; right:12px; display:flex; flex-direction:column; align-items:flex-end; gap:2px; text-align:right; max-width:60px; }
.w-list .w-score strong { font-size:22px; line-height:1; }
.w-list .w-score span { font-size:10px; line-height:1.25; white-space:normal; word-break:keep-all; overflow-wrap:anywhere; }
.w-list .w-title { padding-left:28px; padding-right:66px; flex-wrap:wrap; row-gap:4px; }
.w-list .w-title h4 { min-width:0; }
/* ---- g) 评分块占位：标题区至少与评分块同高，避免与描述行重叠 ---- */
.w-list .w-title { min-height: 50px; align-content: flex-start; align-items: center; }

/* =========================================================================
 * chip font enlarge
 * ========================================================================= */
.season-tab, .month-chip { font-size: 16px; min-height: 46px; padding: 10px 12px; }
.season-tab .emoji { font-size: 17px; }
.season-tabs, .month-tabs { padding: 4px; }
.filter-label { font-size: 15px; }
@media (max-width: 640px) {
  .season-tab, .month-chip { font-size: 15px; min-height: 44px; }
  .month-chip { padding: 9px 16px; }
  .season-tab { padding: 9px 6px; }
  .season-tab .emoji { font-size: 16px; }
}

/* =========================================================================
 * current month ring
 * ========================================================================= */
.month-chip.is-now { box-shadow: inset 0 0 0 2px #3E9B6B; }
.month-chip.is-now.active { box-shadow: inset 0 0 0 2px #3E9B6B, 0 1px 3px rgba(20,40,30,.14); }
.month-chip.is-now:not(.active) { color: #2F7D55; }
@media (prefers-color-scheme: dark) {
  .month-chip.is-now { box-shadow: inset 0 0 0 2px #6CCB97; }
  .month-chip.is-now.active { box-shadow: inset 0 0 0 2px #6CCB97, 0 1px 3px rgba(0,0,0,.4); }
  .month-chip.is-now:not(.active) { color: #8FD3A8; }
}

/* =========================================================================
 * floating cards (v27)
 * City cards (.dest-list > .dest-card) and weather cards (.w-list > .w-card)
 * as clean floating cards: the scroll containers bleed into the panel padding
 * so layered shadows are not clipped, rounded corners clip cleanly (no grey
 * fringe) and no grey strip shows under the carousels.
 * Widths / alignment of both lists are intentionally left untouched.
 * ========================================================================= */

/* ---- 1) scroll containers bleed so shadows aren't clipped ---- */
.dest-list,
.w-list {
  --bleed: 24px;
  padding: 18px var(--bleed) 44px;
  margin: -18px calc(-1 * var(--bleed)) -30px;
  scroll-padding-left: var(--bleed);
  scroll-padding-right: var(--bleed);
  background: transparent;
}
@media (max-width: 640px) {
  .dest-list,
  .w-list { --bleed: 16px; }
}
/* trailing spacer so the last card can snap with right breathing room */
.dest-list::after,
.w-list::after { content: ""; flex: 0 0 1px; }

/* neither the scroller wrappers nor the panels may clip the shadows */
.dest-scroller,
.w-scroller,
.panel,
.weather-panel { overflow: visible; }

/* arrows stay vertically centered on the cards (list bleed shifts center by 7px) */
.dest-scroller .dest-nav { top: calc(50% - 7px); }
.dest-nav.prev { left: 10px; }
.dest-nav.next { right: 10px; }

/* ---- 2) city cards: antialiased rounded corners + layered shadow ---- */
.dest-list > .dest-card {
  background: transparent;
  border: 0;
  background-clip: padding-box;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(16,40,28,.06), 0 6px 14px -4px rgba(16,40,28,.12), 0 18px 36px -12px rgba(16,40,28,.22);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1);
}
.dest-list > .dest-card .dest-photo-img,
.dest-list > .dest-card .dest-shade { border-radius: inherit; }
/* slight overscan avoids edge hairlines */
.dest-list > .dest-card .dest-photo-img {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}
@media (hover: hover) {
  .dest-list > .dest-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 2px 4px rgba(16,40,28,.06), 0 12px 24px -6px rgba(16,40,28,.16), 0 30px 50px -16px rgba(16,40,28,.30);
  }
  .dest-list > .dest-card:hover .dest-photo-img { transform: scale(1.05); }
}
.dest-list > .dest-card:active {
  transform: translate3d(0, -2px, 0) scale(.985);
  transition-duration: .12s;
}
@media (prefers-color-scheme: dark) {
  .dest-list > .dest-card {
    border: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -6px rgba(0,0,0,.55), 0 24px 44px -16px rgba(0,0,0,.6);
  }
}

/* ---- 3) weather cards (glass): floating with layered shadow ---- */
.w-list > .w-card {
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(16,40,28,.05), 0 6px 14px -6px rgba(16,40,28,.10), 0 16px 32px -14px rgba(16,40,28,.18);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
/* keep the in-season inset ring, now as the first shadow in the list */
.w-list > .w-card.in-season {
  box-shadow: inset 0 0 0 1px var(--accent-soft), 0 1px 2px rgba(16,40,28,.05), 0 6px 14px -6px rgba(16,40,28,.10), 0 16px 32px -14px rgba(16,40,28,.18);
}
@media (hover: hover) {
  .w-list > .w-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(16,40,28,.06), 0 10px 22px -6px rgba(16,40,28,.14), 0 24px 40px -14px rgba(16,40,28,.24);
  }
  .w-list > .w-card.in-season:hover {
    box-shadow: inset 0 0 0 1px var(--accent-soft), 0 2px 4px rgba(16,40,28,.06), 0 10px 22px -6px rgba(16,40,28,.14), 0 24px 40px -14px rgba(16,40,28,.24);
  }
}
.w-list > .w-card:active {
  transform: translate3d(0, -1px, 0) scale(.985);
  transition-duration: .12s;
}
@media (prefers-color-scheme: dark) {
  .w-list > .w-card {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.45), 0 10px 24px -6px rgba(0,0,0,.5), 0 24px 44px -16px rgba(0,0,0,.5);
  }
  .w-list > .w-card.in-season {
    box-shadow: inset 0 0 0 1px var(--accent-soft), 0 1px 2px rgba(0,0,0,.45), 0 10px 24px -6px rgba(0,0,0,.5), 0 24px 44px -16px rgba(0,0,0,.5);
  }
}

/* ---- 4) reduced motion: keep shadows, drop transforms/transitions ---- */
@media (prefers-reduced-motion: reduce) {
  .dest-list > .dest-card,
  .dest-list > .dest-card .dest-photo-img,
  .w-list > .w-card {
    transition: none;
    transform: none;
  }
  .dest-list > .dest-card:hover,
  .dest-list > .dest-card:active,
  .dest-list > .dest-card:hover .dest-photo-img,
  .w-list > .w-card:hover,
  .w-list > .w-card:active {
    transform: none;
  }
}

/* =========================================================================
 * micro-interactions (v27)
 * 1) sliding highlight pill for #seasonTabs / #monthTabs
 * 2) city cards fade-in on filter change
 * 3) count-up numbers (tabular-nums)
 * 4) sticky glass top bar + docked chip bars
 * All new motion is disabled under prefers-reduced-motion: reduce.
 * ========================================================================= */

/* ---- 0) header height var + IO sentinels ---- */
:root { --header-h: calc(var(--nav-h) + env(safe-area-inset-top)); }
.io-sentinel { height: 1px; margin-bottom: -1px; pointer-events: none; }

/* ---- 1) sliding highlight pill ---- */
.season-tabs,
.month-tabs { position: relative; }
.chip-pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  background: var(--glass-bg-strong, rgba(255,255,255,.85));
  box-shadow: 0 1px 3px rgba(20,40,30,.14), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .42s cubic-bezier(.34,1.36,.64,1),
              width .42s cubic-bezier(.34,1.36,.64,1),
              height .42s,
              opacity .2s;
  will-change: transform, width;
}
@media (prefers-color-scheme: dark) {
  .chip-pill {
    background: rgba(58,58,60,.9);
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
  }
}
.season-tab,
.month-chip { position: relative; z-index: 1; }
.season-tab.active,
.month-chip.active {
  background: transparent !important;
  box-shadow: none;
}
/* keep the current-month ring visible in every state */
.month-chip.is-now { box-shadow: inset 0 0 0 2px #3E9B6B !important; }
@media (prefers-color-scheme: dark) {
  .month-chip.is-now { box-shadow: inset 0 0 0 2px #6CCB97 !important; }
}
/* press feedback */
.season-tab,
.month-chip { transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease; }
.season-tab:active,
.month-chip:active { transform: scale(.96); }

/* ---- 2) city cards fade on filter change ---- */
@keyframes cardIn {
  from { opacity: 0; transform: translate3d(0,10px,0) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.dest-list > .dest-card.is-entering {
  animation: cardIn .38s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i,0) * 28ms);
}

/* ---- 3) tabular numbers ---- */
.w-num, .f-num, .w-score strong { font-variant-numeric: tabular-nums; }

/* ---- 4) sticky glass top bar + docked chip bars ---- */
.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}
body.is-scrolled .site-header {
  background: rgba(255,255,255,.82);
  border-bottom-color: rgba(20,40,30,.10);
  box-shadow: 0 1px 0 rgba(20,40,30,.06);
}
@media (prefers-color-scheme: dark) {
  body.is-scrolled .site-header {
    background: rgba(28,28,30,.82);
    border-bottom-color: rgba(255,255,255,.10);
    box-shadow: 0 1px 0 rgba(0,0,0,.4);
  }
}
body.chips-docked .filters {
  padding: 8px 0 10px;
  background: rgba(246,250,247,.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(20,40,30,.08);
  box-shadow: 0 6px 18px -10px rgba(20,40,30,.18);
}
@media (prefers-color-scheme: dark) {
  body.chips-docked .filters {
    background: rgba(20,22,21,.78);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}
/* ONLY one backdrop-filter on the sticky element */
body.chips-docked .season-tabs,
body.chips-docked .month-tabs {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255,255,255,.55);
}
@media (prefers-color-scheme: dark) {
  body.chips-docked .season-tabs,
  body.chips-docked .month-tabs { background: rgba(44,44,46,.6); }
}
body.chips-docked .filters .section-inner { gap: 6px; }
body.chips-docked .season-tab,
body.chips-docked .month-chip {
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 14px;
}
body.chips-docked .filter-label { font-size: 13px; }
@media (max-width: 640px) {
  body.chips-docked .season-tab,
  body.chips-docked .month-chip { font-size: 14px; min-height: 34px; }
}
/* header + filters look like one unit when docked */
body.chips-docked .site-header { border-bottom-color: transparent; box-shadow: none; }

/* anchors land below the docked bar */
.list-panel,
.weather-panel,
.today-card { scroll-margin-top: calc(var(--header-h) + 120px); }

/* ---- 5) reduced motion: kill all new motion ---- */
@media (prefers-reduced-motion: reduce) {
  .filters,
  .site-header,
  .chip-pill,
  .dest-list > .dest-card { transition: none !important; }
  .dest-list > .dest-card.is-entering { animation: none !important; }
  .season-tab:active,
  .month-chip:active { transform: none !important; }
}

/* =========================================================================
 * carousel arrows v28
 * Inline SVG chevrons; buttons sit in the panel gutter, outside the cards.
 * ========================================================================= */
.dest-nav {
  display: none;
  place-items: center;
  padding: 0;
  line-height: 0;
  font-size: 0;
  width: 44px;
  height: 44px;
}
.dest-nav[hidden] { display: none; }
.dest-nav .nav-chev { display: block; width: 18px; height: 18px; }

/* only show the grid-centering arrows where the original rules showed them */
@media (hover: hover) and (min-width: 641px) {
  .dest-nav { display: grid; }
}

/* keep ancestors from clipping the gutter buttons */
.dest-scroller,
.w-scroller,
.list-panel,
.weather-panel,
.panel,
.section-inner,
.explorer,
.weather-section { overflow: visible; }

/* sit in the panel gutter, outside the cards */
.dest-scroller .dest-nav {
  top: calc(50% - 7px);
  transform: translateY(-50%);
  z-index: 5;
}
.dest-scroller .dest-nav.prev { left: -46px; right: auto; }
.dest-scroller .dest-nav.next { right: -46px; left: auto; }
.dest-scroller .dest-nav:hover { transform: translateY(-50%) scale(1.06); }

/* =========================================================================
 * carousel arrows frosted glass v28
 * ========================================================================= */
.dest-scroller .dest-nav {
  background: rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  color: #1d1d1f;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: background .2s ease, transform .25s ease, box-shadow .2s ease;
}
.dest-scroller .dest-nav:hover { background: rgba(255,255,255,0.65); color: #1d1d1f; box-shadow: 0 6px 18px rgba(0,0,0,0.16); }
@media (prefers-color-scheme: dark) {
  .dest-scroller .dest-nav { background: rgba(28,28,30,0.45); border-color: rgba(255,255,255,0.18); color: #f5f5f7; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
  .dest-scroller .dest-nav:hover { background: rgba(28,28,30,0.65); color: #f5f5f7; }
}
/* weather cards frosted glass v31 */
.w-list > .w-card {
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 2px rgba(16,40,28,.05), 0 6px 14px -6px rgba(16,40,28,.10), 0 16px 32px -14px rgba(16,40,28,.18);
}
.w-list > .w-card.in-season {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 0 0 1px var(--accent-soft), 0 1px 2px rgba(16,40,28,.05), 0 6px 14px -6px rgba(16,40,28,.10), 0 16px 32px -14px rgba(16,40,28,.18);
}
@media (hover: hover) {
  .w-list > .w-card:hover {
    background: rgba(255,255,255,0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 4px rgba(16,40,28,.06), 0 10px 22px -6px rgba(16,40,28,.14), 0 24px 40px -14px rgba(16,40,28,.24);
  }
  .w-list > .w-card.in-season:hover {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px var(--accent-soft), 0 2px 4px rgba(16,40,28,.06), 0 10px 22px -6px rgba(16,40,28,.14), 0 24px 40px -14px rgba(16,40,28,.24);
  }
}
/* day cells: keep their fills, slightly translucent */
.w-list .w-week li { background-color: color-mix(in srgb, var(--day) 88%, transparent); }
.w-list .w-week li.d-good { background-color: color-mix(in srgb, var(--day-good) 88%, transparent); }
.w-list .w-week li.d-great { background-color: color-mix(in srgb, var(--day-great) 88%, transparent); }
.w-list .w-week li.d-ok { background-color: color-mix(in srgb, var(--day) 88%, transparent); }
.w-list .w-week li.d-meh { background-color: color-mix(in srgb, var(--day-meh) 88%, transparent); }
.w-list .w-week li.d-bad { background-color: color-mix(in srgb, var(--day-bad) 88%, transparent); }
.w-list .w-week li.best { background-color: color-mix(in srgb, var(--best-bg) 92%, transparent); }
@media (prefers-color-scheme: dark) {
  .w-list > .w-card {
    background: rgba(30,30,32,0.68);
    border-color: rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -6px rgba(0,0,0,.55), 0 24px 44px -16px rgba(0,0,0,.6);
  }
  .w-list > .w-card.in-season {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px var(--accent-soft), 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -6px rgba(0,0,0,.55), 0 24px 44px -16px rgba(0,0,0,.6);
  }
}
@media (prefers-color-scheme: dark) and (hover: hover) {
  .w-list > .w-card:hover { background: rgba(30,30,32,0.76); }
}
/* mobile: avoid nested blur — keep blur on the cards, drop it on the parent panel */
@media (max-width: 640px) {
  .weather-panel { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .w-list > .w-card { background: rgba(255,255,255,0.92); }
  @media (prefers-color-scheme: dark) { .w-list > .w-card { background: rgba(28,28,30,0.92); } }
}
/* title font: LXGW WenKai Medium subset (SIL OFL 1.1, see fonts/LXGW-WenKai-OFL.txt) v32 */
@font-face { font-family: 'LXGW WenKai Title'; src: url('../fonts/lxgw-wenkai-medium-subset.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
:root { --title-font: 'LXGW WenKai Title', -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
.brand-name, .hero-title, .hero-sub, .panel-head h2 { font-family: var(--title-font); }
.hero-title { font-weight: 500; letter-spacing: 0.01em; }
.hero-sub { font-weight: 500; letter-spacing: 0.02em; }
.brand-name { font-weight: 500; letter-spacing: 0.01em; }
.panel-head h2 { font-weight: 500; letter-spacing: 0; }

/* filter row labels v33 */
.filters .filter-label {
  display: inline-flex; align-items: center; gap: 6px;
  width: auto; min-width: 64px; align-self: center;
  font-family: var(--title-font); font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: 0.02em;
  color: #2F6B4F; white-space: nowrap;
}
.filters .filter-label .fl-ico { flex: 0 0 auto; width: 16px; height: 16px; display: block; color: #3E9B6B; }
.filters .filter-label .fl-text { display: block; line-height: 1; padding-top: 1px; }
@media (prefers-color-scheme: dark) {
  .filters .filter-label { color: #9AD8B4; }
  .filters .filter-label .fl-ico { color: #7CC79C; }
}
@media (max-width: 640px) {
  .filters .filter-label { flex-direction: column; gap: 3px; min-width: 0; width: 34px; font-size: 13px; letter-spacing: 0; }
  .filters .filter-label .fl-ico { width: 14px; height: 14px; }
  .filters .filter-label .fl-text { padding-top: 0; }
}
body.chips-docked .filters .filter-label { font-size: 14px; gap: 5px; min-width: 56px; }
body.chips-docked .filters .filter-label .fl-ico { width: 14px; height: 14px; }
@media (max-width: 640px) {
  body.chips-docked .filters .filter-label { flex-direction: row; min-width: 0; width: 34px; font-size: 12px; }
  body.chips-docked .filters .filter-label .fl-ico { display: none; }
}

/* filter row labels v34: small tag chips in front of each row */
.filters .filter-row { gap: 12px; }
.filters .filter-label {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 4px; flex: 0 0 auto; width: auto; min-width: 0; height: 30px; padding: 0 11px 0 9px;
  border-radius: 999px; background: rgba(62,155,107,.10); border: 1px solid rgba(62,155,107,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  color: #2F6B4F; font-family: var(--title-font); font-size: 13px; font-weight: 500;
  letter-spacing: .04em; line-height: 1; white-space: nowrap;
}
.filters .filter-label .fl-ico { display: block; width: 13px; height: 13px; color: #3E9B6B; }
.filters .filter-label .fl-text { padding-top: 1px; line-height: 1; }
@media (prefers-color-scheme: dark) {
  .filters .filter-label { background: rgba(124,199,156,.14); border-color: rgba(124,199,156,.30); color: #9AD8B4; box-shadow: none; }
  .filters .filter-label .fl-ico { color: #7CC79C; }
}
@media (max-width: 640px) {
  .filters .filter-row { gap: 8px; }
  .filters .filter-label { flex-direction: row; width: auto; height: 28px; padding: 0 8px 0 7px; gap: 3px; font-size: 12px; letter-spacing: .02em; }
  .filters .filter-label .fl-ico { display: block; width: 12px; height: 12px; }
}
body.chips-docked .filters .filter-label { flex-direction: row; min-width: 0; width: auto; height: 26px; padding: 0 9px 0 8px; font-size: 12px; gap: 4px; }
body.chips-docked .filters .filter-label .fl-ico { display: block; width: 12px; height: 12px; }
@media (max-width: 640px) {
  body.chips-docked .filters .filter-label { width: auto; height: 26px; padding: 0 7px 0 6px; gap: 3px; }
  body.chips-docked .filters .filter-label .fl-ico { display: block; }
}

/* v34: clickable section titles toggle carousel <-> flat grid */
.panel-head h2 .view-toggle {
  all: unset; box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer;
  border-radius: 12px; -webkit-tap-highlight-color: transparent;
}
.view-toggle:focus-visible { outline: 3px solid rgba(62,155,107,.55); outline-offset: 4px; }
.view-toggle .vt-ico {
  flex: 0 0 auto; width: 30px; height: 30px; padding: 6px; box-sizing: border-box;
  border-radius: 999px; color: #3E9B6B;
  background: rgba(62,155,107,.10); border: 1px solid rgba(62,155,107,.25);
  fill: none; stroke: currentColor; stroke-width: 2;
  transition: background-color .2s ease, transform .2s ease;
}
.view-toggle .vt-rows { display: none; }
.view-toggle[aria-expanded="true"] .vt-grid { display: none; }
.view-toggle[aria-expanded="true"] .vt-rows { display: inline; }
.view-toggle[aria-expanded="true"] .vt-ico { background: #3E9B6B; color: #fff; border-color: #3E9B6B; }
@media (hover: hover) {
  .view-toggle:hover .vt-ico { background: rgba(62,155,107,.18); transform: scale(1.06); }
  .view-toggle[aria-expanded="true"]:hover .vt-ico { background: #358a5e; }
}
@media (prefers-color-scheme: dark) {
  .view-toggle .vt-ico { color: #7CC79C; background: rgba(124,199,156,.14); border-color: rgba(124,199,156,.3); }
  .view-toggle[aria-expanded="true"] .vt-ico { background: #3E9B6B; color: #fff; }
}
@media (max-width: 640px) {
  .panel-head h2 .view-toggle { gap: 8px; }
  .view-toggle .vt-ico { width: 26px; height: 26px; padding: 5px; }
}

/* grid state */
.dest-scroller.is-grid > .dest-nav { display: none !important; }
.dest-scroller.is-grid .dest-list,
.dest-scroller.is-grid .w-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  overflow: visible; scroll-snap-type: none;
  padding: 6px 0 4px; margin: 0;
}
.dest-scroller.is-grid .dest-list::after,
.dest-scroller.is-grid .w-list::after { display: none; }
.dest-scroller.is-grid .dest-list > .dest-card,
.dest-scroller.is-grid .w-list > .w-card { width: auto; max-width: none; min-width: 0; }
.dest-scroller.is-grid .w-list > .w-page-note { grid-column: 1 / -1; }
.dest-scroller.is-grid .dest-list > .dest-card,
.dest-scroller.is-grid .w-list > .w-card { animation: vt-in .28s ease both; }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 641px) and (max-width: 1099px) {
  .dest-scroller.is-grid .dest-list,
  .dest-scroller.is-grid .w-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dest-scroller.is-grid .dest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dest-scroller.is-grid .w-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dest-scroller.is-grid .dest-list > .dest-card { padding: 14px; border-radius: 18px; }
  .dest-scroller.is-grid .dest-list .dest-name { font-size: 19px; }
  .dest-scroller.is-grid .dest-list .dest-reason { font-size: 12px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .dest-scroller.is-grid .dest-list .dest-chip { font-size: 11px; padding: 3px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .view-toggle .vt-ico { transition: none; }
  .dest-scroller.is-grid .dest-list > .dest-card,
  .dest-scroller.is-grid .w-list > .w-card { animation: none; }
}

/* v34: bottom floating search bar */
.site-footer { padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important; }
.search-dock {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 90; width: min(560px, calc(100vw - 28px));
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.search-dock > * { pointer-events: auto; }
.search-bar {
  display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 8px 0 16px; margin: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(62,155,107,.22);
  box-shadow: 0 10px 30px -8px rgba(20,40,30,.28), inset 0 1px 0 rgba(255,255,255,.8);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.search-bar:focus-within { border-color: rgba(62,155,107,.55); box-shadow: 0 10px 30px -8px rgba(20,40,30,.32), 0 0 0 3px rgba(62,155,107,.18), inset 0 1px 0 rgba(255,255,255,.8); }
.search-ico { flex: 0 0 auto; color: #3E9B6B; }
.search-input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); caret-color: #3E9B6B; -webkit-appearance: none; appearance: none;
}
.search-input::placeholder { color: rgba(60,80,70,.55); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #2F6B4F; background: rgba(62,155,107,.12);
}
.search-clear[hidden] { display: none; }
.search-clear:focus-visible { outline: 2px solid #3E9B6B; outline-offset: 2px; }
.search-results {
  max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 22px;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(62,155,107,.18);
  box-shadow: 0 16px 40px -12px rgba(20,40,30,.32);
  animation: sr-in .18s ease both;
}
.search-results[hidden] { display: none; }
@keyframes sr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; cursor: pointer; }
.sr-item:hover, .sr-item[aria-selected="true"] { background: rgba(62,155,107,.12); }
.sr-thumb { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: rgba(62,155,107,.12); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sr-label { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-type { flex: 0 0 auto; font-size: 11px; padding: 3px 8px; border-radius: 999px; color: #2F6B4F; background: rgba(62,155,107,.10); border: 1px solid rgba(62,155,107,.22); }
.sr-empty { margin: 0; padding: 14px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.dest-card.sr-hit, .spot-card.sr-hit { box-shadow: 0 0 0 3px #3E9B6B, var(--shadow) !important; }
@media (prefers-color-scheme: dark) {
  .search-bar { background: rgba(32,34,33,.72); border-color: rgba(124,199,156,.28); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
  .search-results { background: rgba(32,34,33,.9); border-color: rgba(124,199,156,.2); }
  .search-ico { color: #7CC79C; }
  .search-input::placeholder { color: rgba(220,235,226,.5); }
  .search-clear, .sr-type { color: #9AD8B4; background: rgba(124,199,156,.14); }
}
@media (max-width: 640px) {
  .search-dock { bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .search-bar { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .search-results { animation: none; }
  .search-bar { transition: none; }
}

/* v35: landscape posters (orient: 'land') — desktop shows full 16:9, mobile center-crops to 3:4 */
.poster.is-land::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--veil, #fff) 86%, transparent) 0%,
    color-mix(in srgb, var(--veil, #fff) 55%, transparent) 34%,
    transparent 58%);
}
.poster.is-land .poster-bg { object-position: center; z-index: -1; }
.poster.is-land { isolation: isolate; }
.poster.is-land .poster-text { z-index: 1; }
@media (min-width: 720px) {
  .poster.is-land { aspect-ratio: 16 / 9; }
  .poster.is-land::before {
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--veil, #fff) 86%, transparent) 0%,
      color-mix(in srgb, var(--veil, #fff) 50%, transparent) 32%,
      transparent 58%);
  }
  /* 文字组 = 竖版的 0.6 倍（与 1600×900 导出图一致） */
  .poster.is-land .poster-text { left: 4.3cqw; top: 2.95cqw; right: 45cqw; }
  .poster.is-land .poster-py { font-size: 4.44cqw; }
  .poster.is-land .poster-py .py2 { -webkit-text-stroke: 0.13cqw var(--ink); }
  .poster.is-land .poster-cn { font-size: 9.3cqw; margin-top: 1.9cqw; }
  .poster.is-land .poster-rule { width: 3.6cqw; height: 0.2cqw; margin: 0.7cqw 0 1.9cqw; }
  .poster.is-land .poster-meta { font-size: 1.86cqw; }
  .poster.is-land .poster-quote { margin-top: 1.8cqw; font-size: 2cqw; }

  /* 今日城市：横版海报时右侧图片加宽 */
  .today-card:has(.poster.is-land) { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.75fr); gap: 40px; }
  .today-card:has(.poster.is-land) .today-poster-wrap { max-width: 720px; width: 100%; }
  .detail-poster-canvas:has(.poster.is-land) { max-width: 640px; }
  .poster-fs-frame.is-land { width: min(calc(100vw - 48px), calc((100vh - 140px) * 16 / 9)); }
}
@media (min-width: 720px) and (max-width: 900px) {
  .today-card:has(.poster.is-land) { grid-template-columns: 1fr; }
  .today-card:has(.poster.is-land) .today-copy { max-width: none; }
  .today-card:has(.poster.is-land) .today-poster-wrap { order: -1; max-width: none; justify-self: stretch; }
}
.poster .poster-cn.cn-long { font-size: 13.2cqw; letter-spacing: 0.02em; white-space: nowrap; }
@media (min-width: 720px) { .poster.is-land .poster-cn.cn-long { font-size: 8.4cqw; } }
@media (min-width: 720px) {
  .today-card:has(.poster.is-land) { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.6fr); }
  .today-card:has(.poster.is-land) .today-copy h2 { font-size: clamp(28px, 2.6vw, 36px); }
}

/* v36: row labels removed — rows span the full content width */
.filters .filter-row { gap: 0; }
.filters .filter-label { display: none; }

/* v37: per-poster stronger mobile veil (posters.js mveil: true, e.g. guilin) */
@media (max-width: 719.98px) {
  .poster.is-land.veil-strong::before {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--veil, #fff) 92%, transparent) 0%,
      color-mix(in srgb, var(--veil, #fff) 80%, transparent) 40%,
      color-mix(in srgb, var(--veil, #fff) 55%, transparent) 60%,
      transparent 78%);
  }
}

/* v38: per-poster mobile crop position (posters.js mpos, e.g. chongqing); desktop 16:9 unaffected */
@media (max-width: 719.98px) {
  .poster.is-land .poster-bg { object-position: var(--mpos, center); }
}

/* v39: autumn maple SVG (warm orange-yellow), sized like the emoji icons */
.maple-icon { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.16em; flex: none; }
.season-tab .emoji { display: inline-flex; align-items: center; justify-content: center; }

/* v40: spots inside city detail — same carousel/grid toggle as section titles */
.spot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 2px 10px; }
.spot-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.spot-head h3 .view-toggle {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px;
  font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer;
  border-radius: 12px; -webkit-tap-highlight-color: transparent; min-height: 44px;
}
.spot-head h3 .view-toggle:focus-visible { outline: 3px solid rgba(62,155,107,.55); outline-offset: 4px; }
.spot-head .spot-count { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.spot-scroller.is-grid > .spot-nav { display: none !important; }
.spot-scroller.is-grid .spot-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  overflow: visible; scroll-snap-type: none; padding: 2px 0 8px;
}
.spot-scroller.is-grid .spot-grid > .spot-card { width: auto; max-width: none; min-width: 0; animation: vt-in .28s ease both; }
@media (max-width: 900px) {
  .spot-scroller.is-grid .spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .spot-head { margin: 14px 0 8px; }
  .spot-head h3 { font-size: 17px; }
  .spot-head h3 .view-toggle { gap: 8px; }
  .spot-scroller.is-grid .spot-grid { gap: 10px; }
  .spot-scroller.is-grid .spot-card figcaption { padding: 10px 10px 12px; }
  .spot-scroller.is-grid .spot-card h4 { font-size: 14px; }
  .spot-scroller.is-grid .spot-card p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .spot-scroller.is-grid .spot-grid > .spot-card { animation: none; }
}
/* v40 fix: keep the sticky close (×, 44px, floated right) from covering the spot head row */
.spot-head { padding-right: 52px; }
@media (max-width: 640px) { .spot-head { padding-right: 52px; margin-right: 0; } }

/* v41: WebKit (iOS Safari / iOS Chrome) fix — grid items with aspect-ratio and width:auto are sized
   like justify-self:start (fit-content), so the 4:5 city cards (all-absolute content) collapsed to ~28px.
   Give grid cards an explicit full-column width. */
.dest-scroller.is-grid .dest-list > .dest-card,
.dest-scroller.is-grid .w-list > .w-card,
.spot-scroller.is-grid .spot-grid > .spot-card { width: 100%; justify-self: stretch; }

/* v43: compact grids (v41 city + v42 weather) apply to phones only (≤640px, the site's phone breakpoint).
   Desktop/tablet grids use the full v34 cards; the v41 WebKit width fix above stays global. */
.w-thumb { display: none; }
@media (max-width: 640px) {
/* v41: 城市与景点 grid = compact list — thumbnail + city name + this week's weather score only */
.dest-scroller.is-grid .dest-list > .dest-card,
.dest-scroller.is-grid .dest-list > .dest-card:hover,
.dest-scroller.is-grid .dest-list > .dest-card:focus-visible {
  aspect-ratio: auto; height: auto; min-height: 0; transform: none;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto;
  grid-template-areas: "img name" "img score"; align-content: center; column-gap: 10px; row-gap: 2px;
  padding: 8px 10px; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(62, 155, 107, 0.14);
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 2px 10px rgba(20, 40, 30, 0.06);
}
.dest-scroller.is-grid .dest-list > .dest-card:focus-visible { outline: 3px solid rgba(62,155,107,.55); outline-offset: 2px; }
@media (hover: hover) {
  .dest-scroller.is-grid .dest-list > .dest-card:hover { border-color: rgba(62, 155, 107, 0.38); box-shadow: 0 6px 18px rgba(20, 40, 30, 0.10); }
  .dest-scroller.is-grid .dest-list > .dest-card:hover .dest-photo-img { transform: none; }
}
.dest-scroller.is-grid .dest-card .dest-photo-img {
  position: static; grid-area: img; width: 44px; height: 44px; border-radius: 10px; transform: none;
}
.dest-scroller.is-grid .dest-card .dest-shade,
.dest-scroller.is-grid .dest-card .dest-chips,
.dest-scroller.is-grid .dest-card .dest-reason,
.dest-scroller.is-grid .dest-card .province { display: none !important; }
.dest-scroller.is-grid .dest-card .dest-overlay { position: static; grid-area: name; padding: 0; gap: 0; align-self: end; }
.dest-scroller.is-grid .dest-card .dest-title { color: var(--ink, #1f2a24); }
.dest-scroller.is-grid .dest-card .dest-name {
  font-size: 15px; font-weight: 700; line-height: 1.25; text-shadow: none; color: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dest-scroller.is-grid .dest-card .dest-weather {
  position: static; grid-area: score; justify-self: start; align-self: start;
  background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  color: #2f7d55; font-size: 12px; font-weight: 600; text-shadow: none;
}
.dest-scroller.is-grid .dest-card:has(.dest-weather[hidden]) .dest-overlay { grid-row: 1 / span 2; align-self: center; }
.dest-scroller.is-grid .dest-list { gap: 10px; }
@media (max-width: 640px) {
  .dest-scroller.is-grid .dest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dest-scroller.is-grid .dest-list > .dest-card { padding: 7px 8px; column-gap: 8px; border-radius: 12px; }
  .dest-scroller.is-grid .dest-list .dest-name { font-size: 15px; }
}
@media (prefers-color-scheme: dark) {
  .dest-scroller.is-grid .dest-list > .dest-card { background: rgba(30, 40, 34, 0.7); border-color: rgba(124, 199, 156, 0.2); }
  .dest-scroller.is-grid .dest-card .dest-title { color: #eef3ef; }
  .dest-scroller.is-grid .dest-card .dest-weather { color: #7CC79C; }
}

/* v42: 未来7天天气推荐 grid = compact list like the v41 city grid — thumbnail + rank + city name + score */
.dest-scroller.is-grid .w-list > .w-card,
.dest-scroller.is-grid .w-list > .w-card:hover {
  display: grid; grid-template-columns: 44px auto minmax(0, 1fr); grid-template-rows: auto auto;
  grid-template-areas: "img rank name" "img score score"; align-content: center; align-items: center;
  column-gap: 8px; row-gap: 2px; padding: 8px 10px; border-radius: 14px; transform: none;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(62, 155, 107, 0.14);
  box-shadow: 0 2px 10px rgba(20, 40, 30, 0.06);
}
@media (hover: hover) {
  .dest-scroller.is-grid .w-list > .w-card:hover { border-color: rgba(62, 155, 107, 0.38); box-shadow: 0 6px 18px rgba(20, 40, 30, 0.10); }
}
.dest-scroller.is-grid .w-card .w-thumb {
  display: block; grid-area: img; width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
}
.dest-scroller.is-grid .w-card .w-thumb-emoji {
  display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(62, 155, 107, 0.10);
}
.dest-scroller.is-grid .w-card .w-rank {
  grid-area: rank; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
  font-size: 11px; line-height: 20px; text-align: center; color: #2f7d55; background: rgba(62, 155, 107, 0.12);
}
.dest-scroller.is-grid .w-card:nth-child(-n+3) .w-rank { color: #fff; background: #3E9B6B; }
.dest-scroller.is-grid .w-card .w-main { grid-area: name; min-width: 0; }
.dest-scroller.is-grid .w-card .w-title { padding-right: 0; flex-wrap: nowrap; gap: 0; }
.dest-scroller.is-grid .w-card .w-title h4 { font-size: 15px; font-weight: 700; line-height: 1.25; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest-scroller.is-grid .w-card .w-emoji,
.dest-scroller.is-grid .w-card .w-title .province,
.dest-scroller.is-grid .w-card .mini-tag,
.dest-scroller.is-grid .w-card .snow-badge,
.dest-scroller.is-grid .w-card .season-badge,
.dest-scroller.is-grid .w-card .w-desc,
.dest-scroller.is-grid .w-card .w-week,
.dest-scroller.is-grid .w-card .w-flight,
.dest-scroller.is-grid .w-card .w-score span { display: none !important; }
.dest-scroller.is-grid .w-card .w-score { position: static; grid-area: score; justify-self: start; align-self: start; gap: 0; }
.dest-scroller.is-grid .w-card .w-score strong { font-size: 12px; font-weight: 600; color: #2f7d55; }
.dest-scroller.is-grid .w-card .w-score strong::after { content: "分"; }
.dest-scroller.is-grid .w-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1099px) { .dest-scroller.is-grid .w-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dest-scroller.is-grid .w-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dest-scroller.is-grid .w-list > .w-card { padding: 7px 8px; column-gap: 6px; border-radius: 12px; }
}
@media (prefers-color-scheme: dark) {
  .dest-scroller.is-grid .w-list > .w-card { background: rgba(30, 40, 34, 0.7); border-color: rgba(124, 199, 156, 0.2); }
  .dest-scroller.is-grid .w-card .w-score strong, .dest-scroller.is-grid .w-card .w-rank { color: #7CC79C; }
}
.dest-scroller.is-grid .w-list .w-card .w-rank { position: static; display: block; width: auto; place-items: initial; }
.dest-scroller.is-grid .w-list .w-card .w-title { padding-left: 0; padding-right: 0; }
.dest-scroller.is-grid .w-list .w-card .w-score { position: static; }
.dest-scroller.is-grid .w-list .w-card .w-title { min-height: 0; padding: 0; margin: 0; height: auto; }
.dest-scroller.is-grid .w-list .w-card .w-main { margin: 0; padding: 0; }
}

/* ===== v44 分享城市按钮 + 提示 ===== */
.detail-poster-actions { gap: 10px; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 10px; margin-top: 14px; }
.share-btn { gap: 6px; }
.share-btn .share-ico { flex: none; margin-left: -4px; }
.tm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  z-index: 10000;
  max-width: min(86vw, 420px);
  padding: 10px 18px;
  border-radius: 980px;
  background: rgba(30, 36, 32, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  word-break: break-all;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.tm-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; user-select: text; -webkit-user-select: text; }

/* ===== v46 分享卡片弹层 ===== */
.share-ov { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-ov[hidden] { display: none; }
.share-ov-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 24, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.share-ov-panel {
  position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 18px 18px 16px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid var(--glass-border, rgba(255,255,255,.6));
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 20px 50px rgba(20, 50, 35, 0.25);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.share-ov-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.share-ov-imgwrap { position: relative; width: 100%; max-width: 330px; aspect-ratio: 3 / 4; margin-top: 26px; border-radius: 16px; overflow: hidden; background: #E6F2EA; box-shadow: 0 8px 24px rgba(30, 60, 45, 0.15); }
.share-ov-img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-touch-callout: default; user-select: auto; }
.share-ov-img:not([src]) { visibility: hidden; }
.share-ov-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; }
.share-ov-loading[hidden] { display: none; }
.share-ov-hint { margin: 0; font-size: 14px; color: var(--ink-soft); text-align: center; }
.share-ov-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.share-ov-actions [hidden] { display: none; }
@media (prefers-color-scheme: dark) {
  .share-ov-panel { background: rgba(28, 28, 30, 0.86); }
}

/* ===== v47 分享弹层：长按保存为主路径 ===== */
.share-ov-img { position: relative; z-index: 1; pointer-events: auto; -webkit-touch-callout: default !important; -webkit-user-select: auto; }
.share-ov-hint { font-size: 15px; font-weight: 600; color: var(--ink); }
.share-ov-sub { margin: -6px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.share-ov-sub[hidden] { display: none; }

/* ===== v49 卡片逐日条只显示前 7 天（单行 7 列，沿用 .w-list .w-week 网格）；评分仍按 14 天 ===== */
.w-list .w-week { row-gap: 6px; }
.w-week li.far { opacity: 0.82; }
.w-week li.far b { font-size: 10px; letter-spacing: -0.02em; }

/* =========================================================================
 * v48：首页范围切换「国内 / 国外免签/落地签 / 小众旅行目的地」（替换原 hero 副标题）
 * ========================================================================= */
.scope-tabs {
  display: flex; width: max-content; max-width: 100%;
  margin: 18px auto 0; gap: 4px; padding: 4px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 14px rgba(30,60,45,.08);
  border-radius: 999px;
}
.scope-tab {
  flex: 0 1 auto; min-height: 40px; padding: 8px 16px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-soft); font: inherit; font-size: 15px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .15s ease;
}
.scope-tabs.is-sized .scope-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-width: 0; }
.scope-tab:hover { color: var(--accent); }
.scope-tab:active { transform: scale(.96); }
.scope-tab.on { background: #3E9B6B; color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(62,155,107,.3); }
.scope-tab:focus-visible { outline: 2px solid #3E9B6B; outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .scope-tabs { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.35); }
  .scope-tab.on { background: #2F7D55; }
}
@media (max-width: 640px) {
  .scope-tabs { width: 100%; margin-top: 14px; gap: 2px; }
  .scope-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 38px; padding: 7px 8px; font-size: 13px; }
}
@media (max-width: 390px) {
  .scope-tab { padding: 7px 6px; font-size: 12.5px; letter-spacing: -0.01em; }
}
@media (max-width: 360px) {
  .scope-tab { padding: 6px 5px; font-size: 12px; }
}
.hero .now-banner { margin-top: 16px; }
/* 非「国内」时：隐藏国内内容（筛选、今日城市、城市列表、天气），显示占位 */
body.scope-away .main > section:not(.hero):not(.scope-soon),
body.scope-away .main > .io-sentinel:not(#heroSentinel),
body.scope-away .hero .now-banner,
body.scope-away #refreshWeather { display: none !important; }
.scope-soon { padding: 8px 0 72px; }
.scope-soon-card {
  max-width: 520px; margin: 0 auto; padding: 36px 24px 30px; text-align: center;
  background: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 24px rgba(30,60,45,.08);
  animation: cardIn .38s cubic-bezier(.2,.8,.2,1) both;
}
.scope-soon-emoji { font-size: 44px; line-height: 1; }
.scope-soon-title { margin-top: 14px; font-size: 22px; font-weight: 700; color: var(--ink); }
.scope-soon-badge {
  display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px;
  background: rgba(62,155,107,.12); color: #3E9B6B; font-size: 13px; font-weight: 600;
}
.scope-soon-desc { margin: 14px auto 22px; max-width: 26em; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
@media (prefers-color-scheme: dark) {
  .scope-soon-card { background: rgba(28,28,30,.6); }
  .scope-soon-badge { background: rgba(108,203,151,.16); color: #6CCB97; }
}

/* =========================================================================
 * v49：完整天气卡片（轮播 + 桌面平铺）标题与评分文字整理
 * ========================================================================= */
/* 评分说明按「 · 」拆成两行（晴好 / 优先户外），不再出现悬空的「·」 */
.w-score span i { display: block; font-style: normal; white-space: nowrap; }
/* 城市名、省份、「当季」保持一行；空间不够时隐藏省份，「当季」不掉到下一行（有看雪徽章时仍允许换行） */
.w-list .w-title:not(:has(.snow-badge)) { flex-wrap: nowrap; }
/* 放不下省份时整段隐藏（折到被裁掉的第二行），不出现「内…」这类半截字 */
.w-list .w-title h4 { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; white-space: nowrap; line-height: 1.3; height: 1.3em; overflow: hidden; column-gap: 6px; row-gap: 0; }
.w-list .w-title .w-emoji,
.w-list .w-title .season-badge { flex-shrink: 0; }
/* 评分块拆两行后只有约 40px 宽，标题右侧留白从 66px 收到 54px，省份少被省略 */
.w-list .w-title { padding-right: 54px; }
.w-list .w-score { max-width: 48px; }

/* 省份被隐藏时城市名后会留空：「当季」统一靠右贴着分数，各卡对齐 */
.w-list .w-title:not(:has(.snow-badge)) .season-badge { margin-left: auto; }

/* =========================================================================
 * v50：城市详情弹窗「未来 14 天天气」（推荐月份下方、热门景点上方；两行 × 7，迷你版 ~115px 高）
 *   每格只有：日期/星期、14px 图标、最高/最低；降水等完整信息在悬停/读屏说明里；桌面限宽 460px
 * ========================================================================= */
.detail-wx { max-width: 460px; margin: 0 0 4px; padding: 4px 5px 4px; border-radius: 12px;
  background: rgba(255,255,255,.45); border: 1px solid var(--glass-border, rgba(62,155,107,.12)); }
.detail-wx:empty { display: none; }
.dw-head { display: flex; align-items: baseline; gap: 6px; margin: 0 2px 2px; font-size: 12px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; }
.dw-head h3 { font-size: 12px; font-weight: 700; margin: 0; color: var(--ink); flex-shrink: 0; }
.dw-score { color: #2f7d55; font-weight: 600; flex-shrink: 0; }
.dw-score small { font-size: 10px; font-weight: 500; }
.dw-sum { color: var(--ink-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dw-bestline { color: #2f7d55; }
.dw-stale { font-size: 11px; color: var(--ink-soft); }
.dw-msg { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); min-height: 26px; }
.dw-msg .pill-btn { min-height: 26px; padding: 2px 12px; font-size: 12px; }
.dw-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dw-row.wk2 { margin-top: 2px; padding-top: 2px; border-top: 0.5px solid var(--line, rgba(0,0,0,.08)); }
.dw-d { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 1px 0; border-radius: 6px;
  background: transparent; text-align: center; line-height: 1.15; }
.dw-d.best { background: var(--best-bg); }
.dw-d b { font-size: 9.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.dw-d.best b { color: #2f7d55; font-weight: 700; }
.dw-ico { font-size: 14px; line-height: 1.1; }
.dw-t { font-size: 10px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.dw-t small { font-size: 9px; font-weight: 400; color: var(--ink-soft); }
@media (prefers-color-scheme: dark) {
  .detail-wx { background: rgba(44,44,46,.5); }
  .dw-score, .dw-bestline, .dw-d.best b { color: #7CC79C; }
}
@media (max-width: 640px) {
  .detail-wx { padding: 4px 3px 3px; }
  .dw-row { gap: 1px; }
  .dw-t { font-size: 11.5px; font-weight: 700; letter-spacing: -0.03em; }
  .dw-t small { font-size: 11px; font-weight: 400; }
  .dw-ico { font-size: 15px; }
  .dw-d b { font-size: 10px; }
}
/* v50：桌面（视口 ≥ 980px）城市信息在左、14 天天气（410px，每格约 55px；温度 12/10.5px）贴右；窄屏仍叠在推荐月份下方。
   对齐：header 用 display:contents 把「标题行 / 标签+推荐月份 / 分享按钮」变成网格项——
   天气跨前两行，顶边对齐图标顶边、底边对齐推荐月份底边；左栏较矮时推荐月份贴底（align-self:end）。
   天气内部：标题贴顶、两行逐日贴底且行距固定，左栏较高时多出的空间只放在标题和两行之间，不把两行拉开。
   右侧不再固定留 44px：网格是 BFC，会自动避开浮动的关闭按钮——只有无海报城市（信息块在弹窗最上方）
   才会被关闭按钮挤窄 44px，有海报的城市天气直接贴内容右边缘。分享按钮单独放在下面一行。 */
@media (min-width: 980px) {
  .detail-top {
    display: grid; grid-template-columns: minmax(0, 1fr) 410px; column-gap: 28px;
    grid-template-areas: "title wx" "tags wx" "actions actions"; align-items: stretch;
    margin-bottom: 20px;
  }
  .detail-top > .detail-head { display: contents; }
  .detail-top .detail-title { grid-area: title; align-self: start; min-width: 0; }
  .detail-top .detail-tags { grid-area: tags; align-self: end; min-width: 0; }
  .detail-top .detail-actions { grid-area: actions; }
  .detail-top > .detail-wx {
    grid-area: wx; justify-self: end; width: 410px; max-width: none; margin: 0; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: flex-start;
  }
  .detail-top > .detail-wx > .dw-row:not(.wk2) { margin-top: auto; }
  .detail-top > .detail-wx .dw-head { font-size: 11px; gap: 5px; margin-bottom: 4px; }
  .detail-top > .detail-wx .dw-head h3 { font-size: 11.5px; }
  .detail-top > .detail-wx .dw-score small { font-size: 9.5px; }
  .detail-top .dw-d b { font-size: 10px; }
  .detail-top .dw-ico { font-size: 15px; }
  .detail-top .dw-t { font-size: 12px; font-weight: 700; }
  .detail-top .dw-t small { font-size: 10.5px; font-weight: 400; }
  .detail-top > .detail-wx .dw-msg { flex: 1; justify-content: center; }
}

/* v52: mobile left-side veil (posters.js mveil: 'left', e.g. beijing) — keeps the subject on the right crisp */
@media (max-width: 719.98px) {
  .poster.is-land.veil-left::before {
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--veil, #fff) 88%, transparent) 0%,
        color-mix(in srgb, var(--veil, #fff) 78%, transparent) 42%,
        color-mix(in srgb, var(--veil, #fff) 30%, transparent) 58%,
        transparent 68%) top left / 100% 66% no-repeat,
      linear-gradient(180deg,
        color-mix(in srgb, var(--veil, #fff) 70%, transparent) 0%,
        transparent 30%);
  }
}

/* v53: popup 14-day grid hardened for iOS WebKit (Dash's iPhone: temps filled the whole cell and looked jagged,
   emoji of different widths shifted rows). Each cell is a 1-column grid with centred items and clips overflow;
   tabular digits; emoji sit in a fixed 18×18 box; 最佳 = background + inset shadow (no size change);
   on phones (≤640px) the high temp sits above the low temp so nothing has to squeeze into ~45px. */
.dw-row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dw-d { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; row-gap: 1px;
  overflow: hidden; box-sizing: border-box; font-variant-numeric: tabular-nums; text-align: center; }
.dw-d > * { max-width: 100%; white-space: nowrap; text-align: center; }
.dw-d.best { box-shadow: inset 0 0 0 1px rgba(62,155,107,.28); }
.dw-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 18px;
  font-size: 14px; line-height: 1; overflow: visible; }
.dw-t { display: inline-flex; align-items: baseline; justify-content: center; letter-spacing: 0; line-height: 1.15; }
.dw-t small { letter-spacing: 0; }
.dw-sep { font-style: normal; }
@media (max-width: 640px) {
  .dw-d { padding: 2px 0 3px; row-gap: 1px; }
  .dw-d b { font-size: 10px; line-height: 1.2; }
  .dw-ico { width: 20px; height: 18px; font-size: 15px; }
  .dw-t { flex-direction: column; align-items: center; letter-spacing: 0; line-height: 1.1; }
  .dw-t .dw-hi { font-size: 12px; font-weight: 700; }
  .dw-t small { font-size: 10.5px; font-weight: 400; }
  .dw-sep { display: none; }
}
@media (min-width: 980px) {
  .detail-top .dw-ico { width: 20px; height: 18px; font-size: 15px; }
}

/* v54: city count + popularity hint; phones get the short form so the header doesn't wrap */
#destCount .dc-short { display: none; }
@media (max-width: 640px) {
  #destCount .dc-long { display: none; }
  #destCount .dc-short { display: inline; white-space: nowrap; }
}

/* ---------- v55：国外免签/落地签 + 小众目的地 ---------- */
/* v57：机票出发地栏在所有分类都显示；其他分类仍隐藏今日海报 */
body.no-today-poster .today-poster { display: none !important; }
/* 卡片上的签证小标签（同 .dest-chip 玻璃风格，用左侧小圆点区分类型；不用蓝色） */
.dest-chip.visa-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(20, 30, 25, 0.42); }
.dest-chip.visa-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #8FD3A8; flex: 0 0 auto; }
.dest-chip.visa-chip.v-voa::before, .dest-chip.visa-chip.v-evisa::before { background: #F2C14E; }
.dest-chip.visa-chip.v-trial::before { background: #F2A65A; }
.dest-chip.visa-chip.v-need::before { background: #E8857A; }
/* v56：电子许可（ETA/eTA，须出发前网上申请，不等于免签）用淡紫；区域免签（限济州/富国岛）用黄绿 */
.dest-chip.visa-chip.v-eta::before { background: #C3A6EC; }
.dest-chip.visa-chip.v-region::before { background: #CFE07A; }
.dest-chip.visa-chip.v-permit::before { background: #7FB8E6; }
.dest-chip.is-south { background: rgba(20, 30, 25, 0.42); }
/* 弹窗：签证块 + 附加说明（天气下方整宽） */
.detail-extra { display: grid; gap: 10px; margin: 4px 0 18px; }
@media (min-width: 980px) { .detail-extra.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; margin-top: -4px; } }
.detail-visa {
  border-radius: 16px; padding: 12px 14px; background: rgba(62, 155, 107, 0.08);
  border: 1px solid rgba(62, 155, 107, 0.22); font-size: 13.5px; line-height: 1.6; color: var(--ink);
}
.detail-visa.v-voa, .detail-visa.v-evisa, .detail-visa.v-trial { background: rgba(242, 193, 78, 0.10); border-color: rgba(214, 160, 40, 0.28); }
.detail-visa.v-need { background: rgba(232, 133, 122, 0.09); border-color: rgba(214, 110, 98, 0.26); }
.detail-visa.v-eta { background: rgba(150, 110, 210, 0.08); border-color: rgba(140, 100, 200, 0.26); }
.detail-visa.v-permit { background: rgba(80, 150, 220, 0.08); border-color: rgba(70, 140, 210, 0.26); }
.dv-head { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.dv-ico { font-size: 16px; }
.dv-warn { margin-left: auto; font-size: 11px; font-weight: 700; color: #A0620E; background: rgba(242, 166, 90, 0.18); border: 1px dashed rgba(196, 120, 30, 0.55); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.dv-type { margin-top: 4px; font-weight: 600; color: var(--ink-soft); font-size: 12.5px; }
.dv-note { margin-top: 4px; }
.dv-unsure { margin-top: 6px; font-size: 12.5px; color: #8A5A12; }
.dv-foot { margin-top: 6px; font-size: 11.5px; color: var(--ink-soft); }
.dv-foot a { color: #2F7D55; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.detail-notes { display: grid; gap: 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.detail-notes p { background: var(--surface-2); border-radius: 14px; padding: 9px 12px; }
.detail-notes strong { color: var(--ink); }
.sr-cat { font-style: normal; color: #2F7D55; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .detail-visa { background: rgba(108, 203, 151, 0.10); border-color: rgba(108, 203, 151, 0.25); }
  .detail-visa.v-voa, .detail-visa.v-evisa, .detail-visa.v-trial { background: rgba(242, 193, 78, 0.10); }
  .detail-visa.v-need { background: rgba(232, 133, 122, 0.10); }
  .detail-visa.v-eta { background: rgba(180, 150, 236, 0.10); border-color: rgba(180, 150, 236, 0.28); }
  .detail-visa.v-permit { background: rgba(120, 180, 235, 0.10); border-color: rgba(120, 180, 235, 0.28); }
  .dv-warn { color: #F2C27A; }
  .dv-unsure { color: #E8B870; }
  .dv-foot a, .sr-cat { color: #6CCB97; }
}

/* v60：「图片来源与声明」弹窗 + 页脚文字按钮 */
.link-btn {
  display: inline; padding: 0; border: 0; background: none; color: #2F7D55;
  font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.link-btn:hover { color: var(--accent-strong); }
.credits-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.credits-modal[hidden] { display: none; }
.credits-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.credits-panel {
  position: relative; width: min(760px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 26px; animation: pop 0.28s ease-out;
}
.credits-close {
  position: sticky; top: 0; float: right; z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: var(--surface-2); color: var(--ink-soft);
  font-size: 18px; line-height: 1; cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.credits-close:hover { background: var(--chip-track); color: var(--ink); }
.credits-title { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); padding-right: 44px; }
.credits-intro { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.credits-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.credits-search {
  flex: 1 1 180px; min-width: 0; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 13.5px;
}
.credits-search:focus { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
.credits-count { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.credits-list { list-style: none; margin: 0; padding: 0; }
.credits-list li {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 2px;
  border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.65;
}
.credits-list li[hidden] { display: none; }
.cr-spot { flex: 0 0 auto; min-width: 130px; max-width: 42%; color: var(--ink); font-weight: 600; }
.cr-meta { flex: 1 1 auto; min-width: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.cr-meta a { color: #2F7D55; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
@media (prefers-color-scheme: dark) {
  .link-btn, .cr-meta a { color: #6CCB97; }
}
@media (max-width: 640px) {
  .credits-modal { padding: 0; }
  .credits-panel { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; padding: 18px 16px; }
  .credits-list li { flex-wrap: wrap; gap: 2px 8px; font-size: 12.5px; }
  .cr-spot { flex: 1 1 100%; max-width: 100%; min-width: 0; }
  .cr-meta { flex: 1 1 100%; }
}

/* v58: 弹窗日出日落 */
.dw-sun { margin: 0 2px 3px; font-size: 11px; line-height: 14px; height: 14px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.dw-sun span { font-size: 11px; }
@media (max-width: 640px) { .dw-sun { font-size: 10.5px; margin-bottom: 2px; } }

/* v59c: mobile 'mfit: bottom' (posters.js, e.g. huangshan) — on phones show the whole 16:9 image pinned to the bottom of the 3:4 frame and fill the space above with the sky colour, so the title/quote sit on plain sky instead of over the subject */
@media (max-width: 719.98px) {
  .poster.is-land.mfit-bottom .poster-bg {
    object-fit: contain; object-position: center bottom;
    background: var(--mbg, var(--veil, #fff));
  }
  .poster.is-land.mfit-bottom::before { background: none; }
}

/* v60: 大图署名在手机上换行显示，不截断 */
.lb-credit { min-width: 0; }
@media (max-width: 640px) {
  .lb-credit { white-space: normal; overflow: visible; text-overflow: clip; text-align: left; line-height: 1.5; font-size: 12px; }
  .lb-bar { align-items: flex-start; gap: 10px; }
}

/* v61：景点最佳季节 */
.spot-season { display:flex; align-items:center; gap:5px; margin-top:6px; font-size:12px; line-height:1.45; color: var(--ink-soft); min-width:0; }
.spot-season .ss-ico { flex:none; display:inline-flex; width:16px; height:16px; align-items:center; justify-content:center; font-size:13px; line-height:1; }
.spot-season .ss-ico .maple-icon { width:14px; height:14px; }
.spot-season .ss-txt { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.spot-season.is-now { color: var(--accent); font-weight:600; }
.spot-season.is-now .ss-txt::after { content:' · 当月正好'; font-weight:600; }
@media (max-width:640px){ .spot-scroller.is-grid .spot-season { font-size:11px; gap:3px; } .spot-scroller.is-grid .spot-season.is-now .ss-txt::after { content:''; } }
/* v61b：季节行放不下时换行（最多两行），不截断 */
.spot-season { align-items: flex-start; }
.spot-season .ss-ico { margin-top: 1px; }
.spot-season .ss-txt { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ===== v62b hero 标题插画（水彩小饺子 + 手写标题 + 路线红标） ===== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-title--art { display: block; margin: 0 auto; line-height: 0; font-size: 0; }
.hero-art-wrap { display: inline-block; line-height: 0; max-width: 100%; }
.hero-art { display: block; width: 680px; max-width: 100%; height: auto; margin: 0 auto; }
@media (max-width: 640px) {
  .hero-art { width: 100%; }
}

/* ===== v63 电脑版回到顶部按钮（≥641px；手机隐藏） ===== */
.to-top { display: none; }
@media (min-width: 641px) {
  .to-top {
    position: fixed; right: calc(24px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85;
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
    color: #3E9B6B; background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(62,155,107,.22);
    box-shadow: 0 10px 30px -8px rgba(20,40,30,.28), inset 0 1px 0 rgba(255,255,255,.8);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .2s ease, color .2s ease;
  }
  .to-top[hidden] { display: none; }
  .to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, visibility 0s, background .2s ease, color .2s ease; }
  .to-top:hover { background: #3E9B6B; color: #fff; }
  .to-top:active { transform: scale(.94); }
  .to-top:focus-visible { outline: 2px solid #3E9B6B; outline-offset: 3px; }
}
/* 641–759px：搜索栏(560px 居中)右侧放不下，改放到搜索栏上方 */
@media (min-width: 641px) and (max-width: 759px) {
  .to-top { bottom: calc(78px + env(safe-area-inset-bottom)); right: 16px; }
}
@media (prefers-color-scheme: dark) and (min-width: 641px) {
  .to-top { color: #6fcf9a; background: rgba(30,32,31,.72); border-color: rgba(111,207,154,.25); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
  .to-top:hover { background: #2F7D55; color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-shown { transition: none; transform: none; } }

/* ===== v63 分类栏 4 个按钮：桌面与季节/月份行同宽均分；手机用短名 ===== */
@media (min-width: 641px) {
  .scope-tabs { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
  .scope-tab { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 640px) {
  .scope-tab { flex: 1 1 auto; padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 390px) {
  .scope-tab { padding-left: 4px; padding-right: 4px; font-size: 12.5px; letter-spacing: -0.01em; }
}
@media (max-width: 360px) {
  .scope-tab { padding-left: 3px; padding-right: 3px; font-size: 12px; }
}

/* v63：641–899px 时 4 个按钮放不下长名字，允许两行居中 */
@media (min-width: 641px) and (max-width: 899px) {
  .scope-tab { white-space: normal; line-height: 1.25; text-align: center; font-size: 14px; padding: 6px 8px; }
}

/* ===== v65 电脑版 hero 标题卡片（海边拟人景点背景，单张图片可替换） ===== */
.hero-card-wrap { display: none; }
@media (min-width: 641px) {
  .hero-title--art .hero-art-wrap { display: none; }
  .hero-card-wrap { display: block; width: 100%; max-width: 1136px; margin: 0 auto; line-height: 0; }
  .hero-card { display: block; width: 100%; height: auto; aspect-ratio: 1136 / 380; object-fit: cover; border-radius: 28px; box-shadow: 0 10px 30px -14px rgba(20,40,30,.35); }
}
