/* =========================================================
   江南五日 · 旅行行程页
   Design System:
   - Fonts: Fraunces (display serif) + Manrope (sans)
   - Palette: Warm cream base + terracotta + teal
   ========================================================= */

:root {
  /* Colors */
  --bg: #FAF7F2;
  --bg-alt: #F2EDE4;
  --bg-deep: #E8E0D2;
  --ink: #1C1917;
  --ink-soft: #4B453F;
  --ink-mute: #78716C;
  --ink-faint: #A8A29E;

  --terracotta: #B85C38;
  --terracotta-soft: #D98B6A;
  --terracotta-deep: #8B3E24;
  --teal: #4A6B6B;
  --teal-soft: #6B8E8E;
  --teal-deep: #324A4A;

  --line: rgba(28, 25, 23, 0.08);
  --line-strong: rgba(28, 25, 23, 0.15);
  --card-bg: rgba(255, 253, 249, 0.8);
  --card-shadow: 0 1px 2px rgba(28, 25, 23, 0.04),
                 0 8px 32px rgba(28, 25, 23, 0.06);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast: 300ms;
  --dur-med: 600ms;
  --dur-slow: 900ms;

  /* Layout */
  --radius-lg: 2rem;
  --radius-md: 1.5rem;
  --radius-sm: 0.75rem;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #141211;
  --bg-alt: #1C1917;
  --bg-deep: #292524;
  --ink: #F5F1EA;
  --ink-soft: #D6D0C7;
  --ink-mute: #9A9288;
  --ink-faint: #6B6359;

  --terracotta: #D98B6A;
  --terracotta-soft: #E8A88A;
  --terracotta-deep: #B85C38;
  --teal: #7FA8A8;
  --teal-soft: #9CC0C0;
  --teal-deep: #5A8080;

  --line: rgba(245, 241, 234, 0.08);
  --line-strong: rgba(245, 241, 234, 0.15);
  --card-bg: rgba(34, 31, 29, 0.7);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3),
                 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(217, 139, 106, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(107, 142, 142, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(184, 92, 56, 0.05) 0%, transparent 70%);
}

[data-theme="dark"] .grain {
  opacity: 0.04;
}

[data-theme="dark"] .nav-inner {
  background: rgba(20, 18, 17, 0.7);
}

[data-theme="dark"] .card-photo-overlay {
  background: linear-gradient(180deg,
    rgba(20, 18, 17, 0.2) 0%,
    rgba(20, 18, 17, 0.5) 45%,
    rgba(20, 18, 17, 0.85) 100%);
}

[data-theme="dark"] .day-section--alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-alt) 50%, transparent 100%);
}

[data-theme="dark"] .map-section {
  background: linear-gradient(180deg, transparent 0%, var(--bg-alt) 100%);
}

[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row select,
[data-theme="dark"] .form-row textarea {
  background: var(--bg-alt);
  color: var(--ink);
}

[data-theme="dark"] .sum-card:first-child .card-inner {
  background: linear-gradient(135deg, rgba(245,241,234,0.95) 0%, rgba(214,208,199,0.85) 100%);
  color: #141211;
}

[data-theme="dark"] .sum-card:first-child .sum-value {
  color: #141211;
}

[data-theme="dark"] .sum-card:first-child .sum-label {
  color: rgba(20,18,17,0.5);
}

[data-theme="dark"] .sum-card:first-child .sum-hint {
  color: rgba(20,18,17,0.4);
}

[data-theme="dark"] .icon-btn {
  background: var(--bg-alt);
}

[data-theme="dark"] .radio-item {
  background: var(--bg-alt);
}

[data-theme="dark"] .mock-map-note {
  background: rgba(34, 31, 29, 0.95);
}

[data-theme="dark"] .nav-link-bill {
  background: var(--ink);
  color: var(--bg) !important;
}

/* Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  margin-left: 0.75rem;
  transition: all var(--dur-fast) var(--ease-out);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-mute);
  transform: rotate(-15deg);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

.italic {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
}

/* =========================================================
   背景氛围层
   ========================================================= */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(184, 92, 56, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(74, 107, 107, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(217, 139, 106, 0.04) 0%, transparent 70%);
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* =========================================================
   导航
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: transform var(--dur-med) var(--ease-out);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(250, 247, 242, 0.7);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(184, 92, 56, 0.15);
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
  line-height: 1;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-link-bill {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 999px;
  font-size: 0.8rem !important;
  line-height: 1;
  transition: all var(--dur-fast) var(--ease-out);
}

.nav-link-bill:hover {
  background: var(--terracotta) !important;
  transform: translateY(-1px);
}

.nav-link-bill svg {
  width: 14px;
  height: 14px;
}

.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--terracotta), var(--teal));
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  top: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(217, 139, 106, 0.5) 0%, transparent 70%);
  animation: float1 20s ease-in-out infinite;
}

.hero-blob-2 {
  width: 600px;
  height: 600px;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(74, 107, 107, 0.4) 0%, transparent 70%);
  animation: float2 25s ease-in-out infinite;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2rem;
}

.reveal-text {
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  display: inline-flex;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.meta-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast) var(--ease-out);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.2);
  background: var(--terracotta-deep);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-primary:hover .btn-arrow {
  transform: translate(2px, -1px) scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.btn-arrow svg {
  width: 14px;
  height: 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: scale(0.98);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--terracotta);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* =========================================================
   Weather 天气
   ========================================================= */
.weather-section {
  padding: 3rem 2rem 4rem;
  margin-top: -2rem;
}

.weather-bar {
  margin-bottom: 3rem;
}

.weather-shell {
  background: linear-gradient(135deg,
    rgba(74, 107, 107, 0.12) 0%,
    rgba(184, 92, 56, 0.08) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 4px;
}

.weather-inner {
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(12px);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.weather-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent);
  pointer-events: none;
}

.weather-inner--done {
  background: linear-gradient(135deg,
    rgba(74, 107, 107, 0.2) 0%,
    rgba(74, 107, 107, 0.1) 100%) !important;
}

.weather-inner--done .cd-num {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--teal-deep);
}

[data-theme="dark"] .weather-inner--done .cd-num {
  color: var(--teal-soft);
}

.weather-countdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.weather-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}

.countdown-numbers {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.cd-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
  text-align: center;
}

.cd-unit {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cd-sep {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink-faint);
  padding-bottom: 1rem;
}

.weather-divider {
  width: 1px;
  height: 50px;
  background: var(--line);
  flex-shrink: 0;
}

.weather-cities {
  display: flex;
  gap: 2rem;
  flex: 1;
  flex-wrap: wrap;
}

.weather-city {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 140px;
}

.wc-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.wc-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wc-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.wc-temp {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}

.wc-desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.weather-tip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(74, 107, 107, 0.08);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--teal-deep);
  flex-shrink: 0;
}

.weather-tip.weather-tip--warn {
  background: rgba(184, 92, 56, 0.1);
  color: var(--terracotta-deep);
}

.tip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.weather-tip--warn .tip-dot {
  background: var(--terracotta);
}

.tip-text {
  font-weight: 500;
}

/* 天气卡片网格 */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.wcard .card-inner {
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 180px;
  padding: 1.5rem;
}

.wcard-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  font-weight: 500;
}

.wcard-icon {
  font-size: 2rem;
  line-height: 1;
  margin: 0.25rem 0;
}

.wcard-temp {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
}

.wcard-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.wcard-tip {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--ink-mute);
  line-height: 1.5;
  width: 100%;
}

/* =========================================================
   通用 Section
   ========================================================= */
.section {
  padding: clamp(5rem, 10vw, 10rem) 2rem;
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* =========================================================
   Reveal 动画
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              filter var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Hero 首屏直接入场（不依赖滚动） */
.hero .reveal {
  animation: heroReveal 1.2s var(--ease-out) forwards;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero .reveal:nth-child(1) { animation-delay: 0.1s; }
.hero .reveal-text:nth-child(1) { animation-delay: 0.2s; }
.hero .reveal-text:nth-child(2) { animation-delay: 0.35s; }
.hero .reveal-text:nth-child(3) { animation-delay: 0.5s; }

/* =========================================================
   Overview 时间轴
   ========================================================= */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin-bottom: 5rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: var(--line-strong);
  transform: translateY(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

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

.tl-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--terracotta);
  z-index: 3;
  box-shadow: 0 0 0 4px var(--bg);
}

.tl-dot-end {
  border-color: var(--teal);
  background: var(--teal);
}

.tl-day {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-self: start;
}

.tl-date {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.tl-weekday {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.tl-city {
  text-align: center;
}

.tl-city-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.tl-city-en {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}

.tl-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: right;
  align-self: center;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--terracotta);
  margin-left: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =========================================================
   Day Sections 每日行程
   ========================================================= */
.day-section--alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-alt) 50%, transparent 100%);
}

.day-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.day-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(184, 92, 56, 0.3);
  border-radius: 999px;
}

.day-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.day-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Card — 双边框结构 */
.card {
  grid-column: span 4;
}

.card--large {
  grid-column: span 6;
}

.card--note,
.card--warning,
.card--end {
  grid-column: span 4;
}

.card-shell {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 4px;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.card:hover .card-shell {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
}

.card-inner {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 2rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.card-desc--foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* 航班卡片 */
.flight {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.flight-side {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flight-side--right {
  text-align: right;
  align-items: flex-end;
}

.flight-code {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1;
}

.flight-city {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.flight-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.flight-path {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

.flight-line {
  width: 80px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
}

.flight-line::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 1px solid var(--terracotta);
  border-radius: 50%;
}

.flight-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
  animation: flightPulse 2s ease-in-out infinite;
}

.flight-dot--back {
  background: var(--teal);
}

@keyframes flightPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 92, 56, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(184, 92, 56, 0); }
}

.flight-duration {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

/* 自驾信息 */
.drive-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.drive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.drive-row:last-child {
  border-bottom: none;
}

.drive-row span:first-child {
  color: var(--ink-mute);
  font-size: 0.8rem;
}

.drive-val {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

/* 路线点 */
.route-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.5rem 0;
}

.route-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.route-point:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 18px;
  width: 1px;
  height: calc(100% + 8px);
  background: var(--line);
}

.rp-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.route-point div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rp-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.rp-desc {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* 提醒卡 */
.card--note .card-inner {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(74, 107, 107, 0.08);
}

.note-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
}

.note-title {
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.note-text {
  font-size: 0.85rem;
  color: var(--teal);
  line-height: 1.6;
}

/* 警告卡 */
.card--warning .card-inner {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(184, 92, 56, 0.08);
}

.warn-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.warn-title {
  font-weight: 600;
  color: var(--terracotta-deep);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.warn-text {
  font-size: 0.85rem;
  color: var(--terracotta);
  line-height: 1.6;
}

/* 结束卡 */
.card--end .card-inner {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(74, 107, 107, 0.1), rgba(184, 92, 56, 0.1));
}

.end-icon {
  font-size: 2.5rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* 图片卡：上图下文 */
.card--with-image .card-inner {
  padding-top: 0;
}

.card-image {
  width: calc(100% - 16px);
  height: 140px;
  margin: 8px 8px 0;
  border-radius: calc(var(--radius-lg) - 8px) calc(var(--radius-lg) - 8px) 0 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out);
}

.card--with-image:hover .card-image {
  transform: scale(1.03);
}

.card--with-image .card-inner {
  padding-top: 1.5rem;
}

/* 照片卡：全图背景 + 叠加文字 */
.card--photo .card-shell {
  overflow: hidden;
}

.card-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-out);
  z-index: 0;
}

.card--photo:hover .card-photo-bg {
  transform: scale(1.08);
}

.card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 25, 23, 0.15) 0%,
    rgba(28, 25, 23, 0.35) 50%,
    rgba(28, 25, 23, 0.75) 100%);
  z-index: 1;
}

.card-photo-content {
  position: relative;
  z-index: 2;
  background: transparent !important;
  backdrop-filter: none !important;
  justify-content: flex-end;
  min-height: 280px;
  padding-top: 4rem;
}

.card-photo-content::before {
  display: none;
}

.card-tag--light {
  color: rgba(255, 253, 249, 0.85) !important;
  font-weight: 500;
}

.card-title--photo {
  color: #FFFBF5 !important;
}

.card-desc--photo {
  color: rgba(255, 253, 249, 0.82) !important;
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
}

.card-desc--photo.card-desc--foot {
  border-top-color: rgba(255, 253, 249, 0.15) !important;
  color: rgba(255, 253, 249, 0.6) !important;
}

/* 照片卡中的路线点 - 浅色 */
.route-points--light .route-point:not(:last-child)::after {
  background: rgba(255, 253, 249, 0.2);
}

.rp-dot--light {
  background: rgba(28, 25, 23, 0.5) !important;
  border-color: rgba(255, 253, 249, 0.8) !important;
}

.route-points--light .rp-name {
  color: #FFFBF5;
}

.route-points--light .rp-desc {
  color: rgba(255, 253, 249, 0.7);
}

/* 照片卡的 card-inner 要 absolute 定位 */
.card--photo .card-inner {
  position: relative;
  z-index: 2;
}

.card--photo .card-shell {
  position: relative;
}

.card--photo .card-photo-bg {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: calc(var(--radius-lg) - 4px);
  background-size: cover;
  background-position: center;
}

.card--photo .card-photo-overlay {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: calc(var(--radius-lg) - 4px);
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(28, 25, 23, 0.1) 0%,
    rgba(28, 25, 23, 0.3) 45%,
    rgba(28, 25, 23, 0.75) 100%);
}

/* =========================================================
   Map Section
   ========================================================= */
.map-section {
  background: linear-gradient(180deg, transparent 0%, var(--bg-alt) 100%);
}

.map-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.map-tab {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  backdrop-filter: blur(8px);
}

.map-tab:hover {
  border-color: var(--ink-mute);
  color: var(--ink);
}

.map-tab.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.map-play {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--bg);
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.map-play:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}

.map-play svg {
  width: 14px;
  height: 14px;
}

.map-wrapper {
  position: relative;
  width: 100%;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  transition: opacity var(--dur-med) var(--ease-out);
}

.map-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

.map-placeholder-inner {
  text-align: center;
  color: var(--ink-mute);
}

.map-placeholder-icon {
  margin-bottom: 1rem;
}

.map-placeholder-icon svg {
  width: 48px;
  height: 48px;
  color: var(--ink-faint);
}

.map-container {
  width: 100%;
  height: 500px;
}

.map-legend {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot--flight {
  background: var(--terracotta);
}

.legend-dot--drive {
  background: var(--teal);
}

.legend-dot--stay {
  background: #D4A574;
}

.legend-dot--spot {
  background: #6B8E8E;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--font-display);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .day-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .card,
  .card--large,
  .card--note,
  .card--warning,
  .card--end {
    grid-column: span 3;
  }
  .card--large {
    grid-column: span 6;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-line {
    left: 40px;
    right: 40px;
  }
}

@media (max-width: 768px) {
  .weather-section {
    padding: 2rem 1.5rem 3rem;
  }
  .weather-inner {
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
  }
  .weather-divider {
    display: none;
  }
  .weather-countdown {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .countdown-numbers {
    justify-content: center;
  }
  .weather-cities {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }
  .weather-city {
    min-width: auto;
    flex: 1;
  }
  .weather-tip {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }
  .weather-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    padding: 0.75rem 1rem;
  }
  .nav-inner {
    padding: 0.6rem 1rem;
    border-radius: 999px;
  }
  .nav-links {
    display: none;
  }
  /* 手机端：只保留 Bill 按钮 */
  .nav-links {
    display: flex;
    gap: 0.5rem;
  }
  .nav-links a:not(.nav-link-bill) {
    display: none;
  }
  .theme-toggle {
    margin-left: 0;
  }
  .nav-link-bill {
    display: inline-flex !important;
    margin-left: 0;
    padding: 0.35rem 0.8rem;
  }
  .brand-text {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-inner {
    gap: 0.5rem;
  }
  .hero {
    padding: 5rem 1.5rem 3rem;
  }
  .hero-meta {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    width: 100%;
  }
  .meta-divider {
    width: 40px;
    height: 1px;
  }
  .section {
    padding: 4rem 1.5rem;
  }
  .day-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card,
  .card--large,
  .card--note,
  .card--warning,
  .card--end {
    grid-column: span 1;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .stat-card {
    padding: 1.5rem 1rem;
  }
  .timeline {
    padding: 1rem 0;
  }
  .timeline-line {
    left: 10px;
    right: auto;
    top: 0;
    bottom: 0;
    height: auto;
    width: 1px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 2.5rem;
    position: relative;
  }
  .tl-dot {
    left: 4px;
    top: 1.5rem;
    right: auto;
  }
  .tl-note {
    text-align: left;
  }
  .flight {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .flight-side--right {
    text-align: center;
    align-items: center;
  }
  .flight-path {
    transform: rotate(90deg);
    padding: 1rem 0;
  }
  .map-play {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .card-photo-content {
    min-height: 220px;
    padding-top: 3rem;
  }
  .card-image {
    height: 120px;
  }
  .mock-map-note {
    font-size: 0.7rem;
    padding: 0.75rem 1rem;
    bottom: 1rem;
  }
}

/* Mock Map Fallback */
.mock-map {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.mock-map svg {
  display: block;
}

.mock-map-note {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 90%;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.08);
}

.mock-map-note p {
  margin: 0.25rem 0;
}

.mock-map-key code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--terracotta);
}

.map-city circle {
  transition: r 0.3s var(--ease-out);
}

.map-city:hover circle {
  r: 8;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .section-title,
  .day-title {
    font-size: 1.75rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .weather-grid {
    grid-template-columns: 1fr;
  }
  .cd-num {
    font-size: 1.5rem;
  }
}
