/* ===========================================================
   内洞村 · 别有洞天
   =========================================================== */

/* ---------- 主题令牌：时辰 × 明暗 ---------- */
:root {
  --pg: #f8f2ec;
  --pg-2: #efe5dc;
  --ink: #262220;
  --ink-2: #5f5651;
  --line: rgba(38, 34, 32, 0.14);
  --line-strong: rgba(38, 34, 32, 0.28);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #fffdfa;
  --accent: #b5713f;
  --accent-2: #3f6b5b;
  --on-img: #fffdf8;
  --shadow: 0 24px 60px -34px rgba(48, 33, 24, 0.45);
  --hero-filter: none;
  --hero-wash: linear-gradient(160deg, rgba(255, 209, 196, 0.16), rgba(255, 244, 232, 0.05) 60%);
  --hero-wash-blend: screen;
  --radius: 20px;
  --maxw: 1180px;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pg: #12161f;
    --pg-2: #1a202b;
    --ink: #ece8df;
    --ink-2: #a7b0bf;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.3);
    --surface: rgba(26, 32, 44, 0.72);
    --surface-solid: #171d29;
    --accent: #e0a877;
    --accent-2: #83b7a5;
    --shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.8);
    --hero-wash: linear-gradient(160deg, rgba(120, 150, 200, 0.2), rgba(20, 26, 40, 0.2) 60%);
    --hero-wash-blend: soft-light;
  }
}

body[data-time="noon"] {
  --pg: #f2f5f0;
  --pg-2: #e6ece4;
  --ink: #1f2a26;
  --ink-2: #566460;
  --line: rgba(31, 42, 38, 0.14);
  --line-strong: rgba(31, 42, 38, 0.3);
  --surface: rgba(255, 255, 255, 0.74);
  --surface-solid: #fdfffc;
  --hero-filter: saturate(1.06) brightness(1.04) contrast(1.02);
  --hero-wash: linear-gradient(160deg, rgba(214, 240, 228, 0.2), rgba(255, 255, 255, 0.12));
  --hero-wash-blend: screen;
}
body[data-time="dusk"] {
  --pg: #f7ece3;
  --pg-2: #f0dbcb;
  --ink: #312420;
  --ink-2: #6d564c;
  --line: rgba(49, 36, 32, 0.16);
  --line-strong: rgba(49, 36, 32, 0.32);
  --surface: rgba(255, 249, 243, 0.74);
  --surface-solid: #fff8f2;
  --accent: #ad5f38;
  --hero-filter: sepia(0.2) saturate(1.3) hue-rotate(-8deg) brightness(0.97);
  --hero-wash: linear-gradient(165deg, rgba(255, 148, 92, 0.34), rgba(96, 44, 74, 0.24));
  --hero-wash-blend: soft-light;
}
body[data-time="night"] {
  --pg: #0e1421;
  --pg-2: #141c2c;
  --ink: #ece9e0;
  --ink-2: #a4adbf;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --surface: rgba(23, 31, 48, 0.7);
  --surface-solid: #151d2e;
  --accent: #dfa87a;
  --accent-2: #7fb6a6;
  --shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
  --hero-filter: brightness(0.46) saturate(0.72) hue-rotate(185deg) contrast(1.06);
  --hero-wash: linear-gradient(170deg, rgba(40, 68, 128, 0.5), rgba(8, 12, 26, 0.55));
  --hero-wash-blend: multiply;
}

@media (prefers-color-scheme: dark) {
  body[data-time="noon"] {
    --pg: #111820;
    --pg-2: #17212a;
    --ink: #e9f0ec;
    --ink-2: #a6b6b2;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.3);
    --surface: rgba(22, 32, 36, 0.72);
    --surface-solid: #141d22;
    --hero-wash: linear-gradient(160deg, rgba(150, 210, 190, 0.18), rgba(12, 20, 24, 0.3));
    --hero-wash-blend: soft-light;
  }
  body[data-time="dusk"] {
    --pg: #16110f;
    --pg-2: #1f1815;
    --ink: #f2e8de;
    --ink-2: #c0a99c;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.3);
    --surface: rgba(34, 24, 20, 0.7);
    --surface-solid: #1d1613;
    --hero-wash: linear-gradient(165deg, rgba(226, 120, 70, 0.32), rgba(24, 10, 22, 0.42));
    --hero-wash-blend: soft-light;
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  margin: 0;
  background: var(--pg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.7s ease, color 0.7s ease;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- 通用排版 ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ink { background: #1d1a18; color: #fdf9f2; border-color: #1d1a18; }
.btn--ink:hover { background: #332d28; border-color: #332d28; }
body[data-time="night"] .btn--ink { background: #f2ede3; color: #17130f; border-color: #f2ede3; }
body[data-time="night"] .btn--ink:hover { background: #fff; }

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

.btn--light {
  background: #fdf7ec;
  color: #241d18;
  border-color: #fdf7ec;
  padding: 0 30px;
  min-height: 52px;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; }

/* ===========================================================
   山门
   =========================================================== */
body.gate-open { overflow: hidden; height: 100vh; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #12100e;
  overflow: hidden;
  perspective: 1400px;
}

.gate__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    radial-gradient(120% 90% at 50% 40%, #2c2723 0%, #17140f 60%, #0d0b09 100%);
  transition: transform 1.15s cubic-bezier(0.72, 0.02, 0.24, 1);
  will-change: transform;
}
.gate__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
    radial-gradient(60% 40% at 50% 50%, rgba(255, 215, 170, 0.08), transparent 70%);
  opacity: 0.8;
}
.gate__panel--l { left: 0; transform-origin: left center; }
.gate__panel--r { right: 0; transform-origin: right center; }

.gate__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
  color: #f6ecdd;
  max-width: 460px;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.gate__eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.4em;
  color: rgba(246, 236, 221, 0.6);
  margin-bottom: 22px;
}
.gate__title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 13vw, 78px);
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  font-weight: 500;
  margin-bottom: 20px;
}
.gate__text {
  font-size: 14.5px;
  line-height: 2;
  color: rgba(246, 236, 221, 0.72);
  margin-bottom: 34px;
}
.gate__hint {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(246, 236, 221, 0.42);
}

.gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(70% 55% at 50% 50%, rgba(255, 224, 178, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}

body.entered .gate { pointer-events: none; visibility: hidden; transition: visibility 0s linear 1.25s; }
body.entered .gate__content { opacity: 0; transform: translateY(-16px) scale(0.97); }
body.entered .gate__panel--l { transform: translateX(-104%) rotateY(14deg); }
body.entered .gate__panel--r { transform: translateX(104%) rotateY(-14deg); }
body.entered .gate { background: transparent; transition: background-color 0.5s ease 0.5s; }
body.entered .gate::after { opacity: 0; transition: opacity 0.6s ease; }

/* ===========================================================
   导航
   =========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 44px);
  color: var(--on-img);
  transition: background-color 0.4s ease, color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-solid {
  background: var(--pg);
  background: color-mix(in srgb, var(--pg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  color: var(--ink);
  padding-top: 11px;
  padding-bottom: 11px;
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { display: flex; align-items: baseline; gap: 8px; margin-right: auto; }
.nav__mark {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.26em;
  font-weight: 500;
}
.nav__sub { font-size: 9px; letter-spacing: 0.34em; opacity: 0.72; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 12.5px; letter-spacing: 0.16em; }
.nav__links a { position: relative; padding: 6px 0; opacity: 0.9; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { flex: none; }
body[data-time="night"] .nav__cta { }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
}

/* ===========================================================
   首屏
   =========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__scene { position: absolute; inset: 0; z-index: 0; }

.hero__sky {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(90% 70% at 72% 22%, #ffe7d2 0%, transparent 55%),
    linear-gradient(170deg, #c9d4ea 0%, #ece4ef 32%, #fbe9df 62%, #f8f2ec 100%);
}
body[data-time="noon"] .hero__sky {
  background:
    radial-gradient(80% 60% at 70% 18%, #ffffff 0%, transparent 55%),
    linear-gradient(170deg, #cfe4e8 0%, #e9f1ee 40%, #f6f6f0 100%);
}
body[data-time="dusk"] .hero__sky {
  background:
    radial-gradient(80% 65% at 74% 26%, #ffd0a6 0%, transparent 58%),
    linear-gradient(170deg, #9fa6c7 0%, #d9b3bd 38%, #f6c9a9 70%, #f7ece3 100%);
}
body[data-time="night"] .hero__sky {
  background:
    radial-gradient(70% 55% at 70% 20%, #2d3d63 0%, transparent 60%),
    linear-gradient(170deg, #0b1223 0%, #16203a 45%, #0e1421 100%);
}

.hero__imgwrap {
  position: absolute;
  inset: -6%;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 46%;
  filter: var(--hero-filter);
  transition: filter 0.9s ease;
  transform: scale(1.02);
}

.hero__clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(34px);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  opacity: 0.55;
  animation: drift 30s linear infinite;
}
.cloud--1 { width: 46vw; height: 16vw; left: -8vw; top: 26%; animation-duration: 42s; }
.cloud--2 { width: 34vw; height: 12vw; right: -6vw; top: 14%; animation-duration: 54s; animation-delay: -12s; opacity: 0.42; }
.cloud--3 { width: 60vw; height: 14vw; left: 12%; bottom: 6%; animation-duration: 66s; animation-delay: -24s; opacity: 0.36; }
body[data-time="night"] .cloud { opacity: 0.22; background: radial-gradient(closest-side, rgba(190, 214, 255, 0.6), rgba(190, 214, 255, 0)); }

@keyframes drift {
  0% { transform: translate3d(-2%, 0, 0); }
  50% { transform: translate3d(3%, -1.4%, 0); }
  100% { transform: translate3d(-2%, 0, 0); }
}

.hero__wash {
  position: absolute;
  inset: 0;
  background: var(--hero-wash);
  mix-blend-mode: var(--hero-wash-blend);
  transition: background 0.9s ease;
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(14, 12, 10, 0.44) 0%, rgba(14, 12, 10, 0.16) 42%, transparent 66%),
    linear-gradient(0deg, var(--pg) 0%, color-mix(in srgb, var(--pg) 70%, transparent) 12%, transparent 34%),
    radial-gradient(120% 80% at 50% 100%, rgba(12, 10, 9, 0.3), transparent 60%);
  transition: background 0.7s ease;
}
body[data-time="night"] .hero__scrim {
  background:
    linear-gradient(100deg, rgba(4, 6, 14, 0.6) 0%, rgba(4, 6, 14, 0.24) 44%, transparent 68%),
    linear-gradient(0deg, var(--pg) 0%, color-mix(in srgb, var(--pg) 72%, transparent) 14%, transparent 36%);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 160px 40px rgba(20, 14, 10, 0.32);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(96px, 14vh, 150px) clamp(20px, 5vw, 56px) clamp(90px, 12vh, 120px);
  color: var(--on-img);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s ease 0.5s, transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s;
}
body.entered .hero__inner { opacity: 1; transform: none; }

.hero__eyebrow {
  color: rgba(255, 253, 248, 0.82);
  margin-bottom: clamp(18px, 3vh, 30px);
  font-size: 10.5px;
  letter-spacing: 0.3em;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
  text-shadow: 0 2px 40px rgba(30, 20, 14, 0.32);
}
.hero__line { display: block; font-size: clamp(34px, 7.4vw, 62px); }
.hero__line--big {
  font-size: clamp(46px, 11.5vw, 100px);
  letter-spacing: 0.1em;
  margin-top: 0.06em;
}
.hero__lede {
  max-width: 27em;
  font-size: clamp(14px, 2.6vw, 15.5px);
  line-height: 1.95;
  color: rgba(255, 253, 248, 0.9);
  text-shadow: 0 1px 22px rgba(30, 20, 14, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__actions .btn--ink { background: #fdf7ec; color: #221b15; border-color: #fdf7ec; }
.hero__actions .btn--ink:hover { background: #fff; border-color: #fff; }
.hero__actions .btn--ghost { color: #fffdf8; border-color: rgba(255, 255, 255, 0.5); background: rgba(20, 16, 12, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__actions .btn--ghost:hover { border-color: #fff; background: rgba(20, 16, 12, 0.28); }

/* 时辰切换 */
.timebox { margin-top: clamp(30px, 6vh, 56px); }
.timebox__label {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: rgba(255, 253, 248, 0.62);
  margin-bottom: 12px;
}
.timebox__switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 14, 10, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.timebox__btn {
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 253, 248, 0.78);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.timebox__btn:hover { color: #fff; }
.timebox__btn[aria-checked="true"] {
  background: rgba(253, 247, 236, 0.94);
  color: #241d18;
}

.hero__side {
  position: absolute;
  right: clamp(16px, 4vw, 46px);
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-direction: row-reverse;
  gap: 26px;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: rgba(255, 253, 248, 0.62);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 1s;
}
body.entered .hero__side { opacity: 1; }
.hero__side-num { color: rgba(255, 253, 248, 0.4); }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-2);
  white-space: nowrap;
}
.hero__cue-line {
  display: block;
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleX(0.5); opacity: 0.28; }
  50% { transform: scaleX(1); opacity: 0.75; }
}

@media (max-width: 760px) {
  .hero__side { display: none; }
  .hero__cue { font-size: 9px; letter-spacing: 0.16em; gap: 8px; bottom: 12px; }
  .hero__cue-line { width: 26px; }
  .hero__inner { padding-bottom: 84px; }
  .hero__img { object-position: 60% 44%; }
  .hero__title { margin-bottom: 20px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 5vw, 56px) 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.9;
}
.foot__note { max-width: 62ch; }
.foot__meta { letter-spacing: 0.14em; font-size: 10.5px; }

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

/* ===========================================================
   通用章节
   =========================================================== */
.section {
  position: relative;
  padding: clamp(64px, 10vh, 118px) clamp(20px, 5vw, 56px);
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }

.sec-num {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.sec-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.28;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}
.lede {
  font-size: clamp(14px, 2.4vw, 15px);
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 34em;
}
.lede + .lede { margin-top: 12px; }

/* 出场 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ===========================================================
   01 古村
   =========================================================== */
.section--village {
  background: linear-gradient(180deg, var(--pg) 0%, var(--pg-2) 45%, var(--pg) 100%);
}

.village {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div { padding: 16px 4px 18px 0; background: transparent; }
.stats dt {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.stats dt small { font-size: 0.5em; color: var(--accent); margin-left: 2px; }
.stats dd {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 土楼 3D ---------- */
.tulou {
  --R: 116px;
  --H: 146px;
  --roofH: 80px;
  --pw: calc(var(--R) * 0.233);
  position: relative;
}

.tulou__viewport {
  position: relative;
  height: clamp(320px, 44vw, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  perspective: 1050px;
  perspective-origin: 50% 40%;
  cursor: grab;
  touch-action: pan-y;
  background:
    radial-gradient(62% 52% at 50% 44%, rgba(255, 226, 190, 0.5), rgba(255, 214, 170, 0) 70%),
    linear-gradient(180deg, var(--pg-2), var(--pg));
  border: 1px solid var(--line);
}
body[data-time="night"] .tulou__viewport {
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(255, 196, 128, 0.22), rgba(255, 180, 110, 0) 70%),
    linear-gradient(180deg, #182031, #101725);
}
.tulou__viewport.is-grabbing { cursor: grabbing; }
.tulou__viewport::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 56%;
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(50, 34, 20, 0.34), transparent 78%);
  filter: blur(6px);
  pointer-events: none;
}

.tulou__stage {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.tulou__ring, .tulou__roof { position: absolute; inset: 0; transform-style: preserve-3d; }

.tulou__wall {
  position: absolute;
  left: calc(var(--pw) / -2);
  top: calc(var(--H) / -2);
  width: var(--pw);
  height: var(--H);
  border-radius: 1px;
  backface-visibility: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(80, 52, 28, 0.16) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #bd9a74, #a3835f 46%, #8c6d4d);
  box-shadow: inset 0 6px 12px -8px rgba(255, 244, 226, 0.5), inset 0 -10px 14px -8px rgba(60, 38, 20, 0.55);
}
.tulou__wall::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  width: 40%;
  height: 15%;
  transform: translateX(-50%);
  background: #3d2c1d;
  opacity: 0.72;
  border-radius: 2px 2px 1px 1px;
  box-shadow: 0 0 0 1px rgba(255, 236, 208, 0.22);
}
.tulou__wall.is-door::before {
  top: auto;
  bottom: 0;
  width: 62%;
  height: 46%;
  border-radius: 50% 50% 1px 1px;
  background: linear-gradient(180deg, #2c2015, #22180f);
  box-shadow: 0 0 0 1px rgba(255, 236, 208, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.6);
}
.tulou__wall.is-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% 100%, rgba(255, 186, 108, 0.35), transparent 70%);
  opacity: 0.9;
}

.tulou__eave {
  position: absolute;
  left: calc(var(--pw) * -0.62);
  top: calc(var(--H) / -2 - var(--roofH));
  width: calc(var(--pw) * 1.24);
  height: var(--roofH);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #5b5c66, #3a3b44 55%, #2a2b33);
  box-shadow: inset 0 -2px 0 rgba(255, 246, 232, 0.28);
}

.tulou__floor {
  position: absolute;
  left: calc(var(--R) * -1);
  top: calc(var(--R) * -1);
  width: calc(var(--R) * 2);
  height: calc(var(--R) * 2);
  border-radius: 50%;
  transform: translateY(calc(var(--H) / 2)) rotateX(90deg);
  background:
    radial-gradient(circle, #7f9b83 0 34%, #6d8a74 34% 50%, #a68f70 50% 58%, #8a7458 58% 100%);
  box-shadow: 0 0 40px rgba(60, 40, 20, 0.25);
}

.tulou__court {
  position: absolute;
  left: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateY(calc(var(--H) / 2 - 1px)) rotateX(90deg);
  background: radial-gradient(circle at 38% 32%, #9fb6a6, #4d6656 60%, #34483b);
  box-shadow: 0 0 0 3px rgba(148, 124, 92, 0.55), 0 0 18px rgba(0, 0, 0, 0.35);
}

.tulou__tag {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  min-height: 62px;
}
.tulou__tag b {
  flex: none;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.tulou__hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.tulou__spots { display: flex; flex-wrap: wrap; gap: 6px; }
.spot {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.25s ease;
}
.spot:hover { border-color: var(--line-strong); color: var(--ink); }
.spot.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--pg);
}
body[data-time="night"] .spot.is-active { background: #f2ede3; color: #17130f; border-color: #f2ede3; }

.tulou__note {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  opacity: 0.8;
}

@media (max-width: 880px) {
  .village { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .village__text { order: 1; }
  .village__model { order: 2; }
  .tulou { --R: 92px; --H: 104px; --roofH: 60px; }
}
@media (max-width: 400px) {
  .tulou { --R: 78px; --H: 104px; --roofH: 56px; }
}

/* ===========================================================
   02 三味
   =========================================================== */
.section--taste { position: relative; }

.taste__head { max-width: 42rem; margin-bottom: clamp(30px, 5vw, 52px); }
.taste__head .lede { margin-top: 6px; }

.taste__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
}
@media (max-width: 900px) {
  .taste__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s ease;
  will-change: transform;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pg-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.6s ease;
}
.card:hover .card__media img { transform: scale(1.045); }

.card__body { padding: clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 22px) clamp(20px, 3vw, 26px); }
.card__idx {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.card__text { font-size: 13.5px; line-height: 1.95; color: var(--ink-2); }

/* 开窑交互 */
.card__tap {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 232, 0.65);
  background: rgba(20, 14, 10, 0.42);
  color: #fdf6ec;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.card__tap:hover { background: rgba(20, 14, 10, 0.62); }

.card__reveal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 54px 18px 20px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #fdf6ec;
  background: linear-gradient(0deg, rgba(18, 11, 7, 0.92) 0%, rgba(18, 11, 7, 0.55) 60%, transparent 100%);
  transform: translateY(102%);
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card.is-open .card__reveal { transform: translateY(0); }
.card.is-open .card__tap { bottom: auto; top: 14px; }
.card.is-open .card__media img { transform: scale(1.06); filter: saturate(1.1) brightness(1.04); }

.steam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  overflow: hidden;
}
.card.is-open .steam { opacity: 1; }
.steam span {
  position: absolute;
  bottom: 12%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 232, 0.72), rgba(255, 246, 232, 0));
  filter: blur(6px);
  animation: rise 4.6s ease-in infinite;
}
.steam span:nth-child(1) { left: 34%; animation-delay: 0s; }
.steam span:nth-child(2) { left: 48%; animation-delay: 1.4s; height: 60px; width: 60px; }
.steam span:nth-child(3) { left: 60%; animation-delay: 2.6s; }
@keyframes rise {
  0% { transform: translateY(10px) scale(0.7); opacity: 0; }
  25% { opacity: 0.85; }
  100% { transform: translateY(-190px) scale(1.5); opacity: 0; }
}

.combo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin-top: clamp(22px, 3vw, 32px);
  padding: clamp(18px, 2.6vw, 26px) clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--surface);
}
.combo__label {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--ink);
  flex: none;
}
.combo__text { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); max-width: 52ch; }

/* ===========================================================
   03 动线
   =========================================================== */
.section--route {
  background:
    radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%),
    var(--pg-2);
}

.route__head { max-width: 44rem; margin-bottom: clamp(26px, 4vw, 46px); }

.route__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}
@media (max-width: 900px) {
  .route__body { grid-template-columns: minmax(0, 1fr); }
}

.route__map {
  position: relative;
  aspect-ratio: 10 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 60% at 68% 24%, rgba(255, 233, 206, 0.55), transparent 70%),
    linear-gradient(160deg, var(--surface-solid), var(--pg));
  overflow: hidden;
}
.route__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.contours path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 0.8;
  opacity: 0.45;
}
.route__path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  opacity: 0.8;
}

.route__pins { position: absolute; inset: 0; }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.3s ease;
}
.pin:hover { transform: translate(-50%, -50%) scale(1.06); }
.pin__dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  box-shadow: 0 6px 18px -10px rgba(40, 26, 16, 0.6);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pin__name {
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--ink-2);
  text-shadow: 0 1px 8px var(--pg);
}
.pin.is-active .pin__dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--pg);
  transform: scale(1.08);
}
body[data-time="night"] .pin.is-active .pin__dot { background: #f2ede3; color: #17130f; border-color: #f2ede3; }
.pin.is-active .pin__name { color: var(--ink); }

.route__hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  opacity: 0.65;
}

.route__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.route__figure { aspect-ratio: 3 / 2; overflow: hidden; background: var(--pg-2); }
.route__figure img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease, transform 0.8s ease; }
.route__figure img.is-swapping { opacity: 0; }
.route__info { padding: clamp(16px, 2.4vw, 24px); }
.route__idx { font-size: 10px; letter-spacing: 0.24em; color: var(--accent); margin-bottom: 8px; }
.route__name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.route__text { font-size: 13.5px; line-height: 1.95; color: var(--ink-2); min-height: 5.8em; }
.route__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.route__meta dt { font-size: 10px; letter-spacing: 0.16em; color: var(--ink-2); opacity: 0.8; }
.route__meta dd { margin: 4px 0 0; font-size: 12.5px; color: var(--ink); }

@media (max-width: 900px) {
  .route__map { aspect-ratio: 5 / 4; }
  .pin__dot { width: 38px; height: 38px; font-size: 10px; }
  .pin__name { font-size: 10px; }
}

/* ===========================================================
   04 排一天
   =========================================================== */
.section--plan {
  background:
    radial-gradient(80% 50% at 0% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%),
    var(--pg);
}

.plan__head { max-width: 44rem; margin-bottom: clamp(26px, 4vw, 44px); }

.plan__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}
@media (max-width: 900px) {
  .plan__grid { grid-template-columns: minmax(0, 1fr); }
}

.plan__form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(18px, 2.6vw, 26px);
}
.plan__set { border: 0; padding: 0; margin: 0 0 20px; }
.plan__set legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.chip span:hover { border-color: var(--line-strong); color: var(--ink); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--pg);
}
body[data-time="night"] .chip input:checked + span { background: #f2ede3; color: #17130f; border-color: #f2ede3; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.plan__submit { width: 100%; margin-top: 4px; }

.plan__out {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.8vw, 30px);
}
.plan__title {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.6vw, 21px);
  letter-spacing: 0.1em;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.plan__list { display: grid; gap: 0; }
.plan__list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.plan__list li:last-child { border-bottom: 0; }
.plan__list time {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.plan__list b {
  display: block;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.plan__list p { font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }

.plan__tips {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.plan__tips li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}
.plan__tips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.plan__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.plan__status { font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-2); }

/* ===========================================================
   05 出行
   =========================================================== */
.section--visit { background: linear-gradient(180deg, var(--pg) 0%, var(--pg-2) 100%); }
.visit__head { max-width: 44rem; margin-bottom: clamp(26px, 4vw, 46px); }

.visit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
}
@media (max-width: 760px) {
  .visit__grid { grid-template-columns: minmax(0, 1fr); }
}

.info {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.info h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.info dl { display: grid; gap: 12px; }
.info dl > div { display: grid; gap: 3px; }
.info dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.info dd { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink-2); }

.closing {
  margin-top: clamp(34px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.closing__quote {
  font-family: var(--font-serif);
  font-size: clamp(17px, 3vw, 24px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--ink);
  max-width: 24em;
}
