/* =========================================================
   本命词 · 首页样式
   新中式 / 宣纸 / 朱砂 / 青黛
   ========================================================= */

:root {
  --paper: #f5f0e6;
  --paper-deep: #ebe3d4;
  --paper-light: #fbf8f1;
  --ink: #211d18;
  --ink-2: #3a332a;
  --muted: #7d7263;
  --muted-2: #a29684;
  --line: rgba(33, 29, 24, 0.12);
  --line-strong: rgba(33, 29, 24, 0.22);
  --cinnabar: #a63d2f;
  --cinnabar-deep: #7d2a21;
  --jade: #3f6b58;
  --gold: #a9854f;
  --shadow: 0 24px 60px -30px rgba(33, 29, 24, 0.35);
  --radius: 26px;
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-accent: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 88% -8%, rgba(63, 107, 88, 0.1), transparent 60%),
    radial-gradient(900px 720px at -8% 32%, rgba(166, 61, 47, 0.06), transparent 60%),
    var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
input, button { -webkit-tap-highlight-color: transparent; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

main, .site-footer { position: relative; z-index: 1; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  box-shadow: 0 0 12px rgba(166, 61, 47, 0.35);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(245, 240, 230, 0.72);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 240, 230, 0.92);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-seal {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--cinnabar);
  color: var(--paper-light);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 6px 18px -8px rgba(166, 61, 47, 0.6);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand-text small {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
}

.site-nav { display: flex; align-items: center; gap: 34px; }

.site-nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover { color: var(--cinnabar); }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  flex-shrink: 0;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  color: var(--paper-light);
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- 语言切换 ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}

.lang-switch {
  flex-shrink: 0;
  min-width: 42px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.lang-switch:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
  background: rgba(166, 61, 47, 0.05);
}
.lang-switch:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

.lang-en .brand-text strong { letter-spacing: 0.04em; font-size: 15px; }
.lang-en .site-nav a { letter-spacing: 0.02em; }
.lang-en .page-link { letter-spacing: 0.02em; }
.lang-en .nav-cta { letter-spacing: 0.04em; }

@media (max-width: 760px) {
  .header-actions { gap: 8px; }
  .lang-switch { min-width: 38px; height: 27px; padding: 0 9px; font-size: 10px; }
  .lang-en .brand-text strong { font-size: 13px; }
}

/* ---------- 通用 ---------- */
.section { position: relative; padding: 110px 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 54px;
}

.section-index {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  color: rgba(33, 29, 24, 0.16);
  font-weight: 400;
}

.section-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-desc {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: 0 14px 30px -16px rgba(33, 29, 24, 0.65);
}
.btn-primary:hover {
  background: var(--cinnabar);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(166, 61, 47, 0.55);
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  color: var(--cinnabar);
  border-color: rgba(166, 61, 47, 0.45);
  background: rgba(166, 61, 47, 0.05);
  transform: translateY(-2px);
}

.btn-wide { width: 100%; height: 52px; }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 560px at 78% 34%, rgba(63, 107, 88, 0.09), transparent 68%),
    radial-gradient(460px 460px at 12% 82%, rgba(166, 61, 47, 0.06), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 40px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1 {
  margin: 14px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 102px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--cinnabar);
  z-index: 0;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 8px;
  height: 12px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(166, 61, 47, 0.12);
  transform: rotate(-1deg);
}

.hero-lede {
  max-width: 540px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 44px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.hero-quote {
  margin: 46px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--cinnabar);
  font-family: var(--font-accent);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.hero-quote cite {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.18em;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

/* ---------- 罗盘 ---------- */
.compass {
  --r: 205px;
  position: relative;
  isolation: isolate;
  width: min(480px, 100%);
  aspect-ratio: 1;
}

.compass-glow {
  position: absolute;
  inset: 15%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 61, 47, 0.12), transparent 66%);
  filter: blur(34px);
}

.compass-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.ring-a { inset: 0; border-style: dashed; animation: spin 140s linear infinite; }
.ring-b { inset: 9%; border-color: rgba(166, 61, 47, 0.18); }
.ring-c { inset: 19%; border-style: dotted; animation: spin 110s linear infinite reverse; }

.compass-branches {
  position: absolute;
  inset: 0;
  animation: spin 240s linear infinite;
}
.compass-branches span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 30deg))
    translateY(calc(var(--r) * -1))
    rotate(calc(var(--i) * -30deg));
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0;
}

.compass-core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.8), rgba(235, 227, 212, 0.4) 62%, rgba(245, 240, 230, 0.2));
  box-shadow: inset 0 0 40px rgba(33, 29, 24, 0.06), 0 24px 50px -30px rgba(33, 29, 24, 0.35);
}

.taiji { width: 58%; height: auto; animation: spin 46s linear infinite; }

.today-card {
  position: absolute;
  right: -6px;
  bottom: 6px;
  width: 224px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 248, 241, 0.86);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.today-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.today-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(166, 61, 47, 0.12);
}
.today-date { margin-left: auto; color: var(--muted-2); }

.today-ganzhi {
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.today-lunar { margin: 0; color: var(--muted); font-size: 11px; }
.today-advice {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--cinnabar);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  width: 22px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--cinnabar);
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

/* ---------- 中医养生 ---------- */
.tcm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: 22px;
  align-items: stretch;
}

.season-card {
  --season-accent: var(--gold);
  --season-soft: rgba(169, 133, 79, 0.1);
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 300px at 88% 8%, var(--season-soft), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.62), rgba(235, 227, 212, 0.5));
  box-shadow: var(--shadow);
}

.season-card::before {
  content: attr(data-season-char);
  position: absolute;
  right: 14px;
  bottom: -72px;
  z-index: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 300px;
  line-height: 1;
  opacity: 0.035;
  pointer-events: none;
}

.season-card[data-season="spring"] { --season-accent: #4f7a5f; --season-soft: rgba(79, 122, 95, 0.12); }
.season-card[data-season="summer"] { --season-accent: #b04a3a; --season-soft: rgba(176, 74, 58, 0.12); }
.season-card[data-season="autumn"] { --season-accent: #a9854f; --season-soft: rgba(169, 133, 79, 0.14); }
.season-card[data-season="winter"] { --season-accent: #3f5f78; --season-soft: rgba(63, 95, 120, 0.12); }

.season-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.season-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.season-tab {
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  transition: all 0.28s ease;
}
.season-tab:hover { color: var(--season-accent); }
.season-tab.is-active {
  color: var(--paper-light);
  background: var(--season-accent);
  box-shadow: 0 6px 14px -8px rgba(33, 29, 24, 0.5);
}

.season-index {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.season-body { position: relative; z-index: 1; }
.season-body.is-swapping { animation: seasonSwap 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

.season-hero { display: flex; align-items: center; gap: 18px; }

.season-char {
  color: var(--season-accent);
  font-family: var(--font-display);
  font-size: 78px;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.season-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.season-hero h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.season-poem {
  margin: 22px 0 16px;
  padding-left: 14px;
  border-left: 2px solid var(--season-accent);
  color: var(--ink-2);
  font-family: var(--font-accent);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.season-desc { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.9; }

.season-tips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.season-tips span, .tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.38);
}

.season-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.season-detail-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--season-accent);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.season-detail-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.season-note {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(33, 29, 24, 0.035);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.season-disclaimer { margin: 8px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.6; }

.method-stack { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }

.method-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(251, 248, 241, 0.52);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.method-card:hover {
  transform: translateY(-3px);
  border-color: rgba(166, 61, 47, 0.24);
  background: rgba(251, 248, 241, 0.8);
  box-shadow: 0 18px 40px -30px rgba(33, 29, 24, 0.4);
}

.method-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cinnabar);
  background: rgba(166, 61, 47, 0.04);
}
.method-icon svg { width: 21px; height: 21px; }

.method-kicker { display: block; margin-bottom: 3px; color: var(--muted-2); font-size: 9px; letter-spacing: 0.2em; }
.method-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.04em; }
.method-card p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span { padding: 2px 8px; font-size: 9px; }

.constitution-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 54px 0 24px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.constitution-head h3 { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: 0.04em; }
.constitution-head > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: right; }

.constitution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.constitution-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.26);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.constitution-card:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 29, 24, 0.2);
  background: rgba(255, 255, 255, 0.46);
}

.constitution-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.constitution-top h4 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.06em; }
.constitution-en { margin-left: auto; color: var(--muted-2); font-size: 8px; letter-spacing: 0.18em; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-jade { background: #4f7a5f; }
.dot-gold { background: #b08a4f; }
.dot-cinnabar { background: #b04a3a; }
.dot-olive { background: #7b7a45; }
.dot-blue { background: #3f5f78; }
.dot-plum { background: #7a4a5a; }

.constitution-symptom { margin: 0 0 6px; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.constitution-advice { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

/* ---------- 八字 ---------- */
.bazi-section {
  background: linear-gradient(180deg, transparent, rgba(235, 227, 212, 0.38) 40%, rgba(235, 227, 212, 0.18));
}

.reading-panel {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(251, 248, 241, 0.62);
  box-shadow: var(--shadow);
}

.form-side {
  padding: 32px;
  border-right: 1px solid var(--line);
  background: rgba(33, 29, 24, 0.03);
}

.form-head { margin-bottom: 24px; }
.form-kicker { display: block; margin-bottom: 6px; color: var(--cinnabar); font-size: 10px; letter-spacing: 0.24em; }
.form-head h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: 0.05em; }
.form-head p { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }

.field { display: block; margin-bottom: 18px; }
.field-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
}
.seg-btn {
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: all 0.25s ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active {
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: 0 8px 18px -10px rgba(33, 29, 24, 0.5);
}

input[type="date"], input[type="time"] {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  outline: none;
  color-scheme: light;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
input[type="date"]:focus, input[type="time"]:focus {
  border-color: rgba(166, 61, 47, 0.55);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(166, 61, 47, 0.08);
}
input::-webkit-calendar-picker-indicator { opacity: 0.5; cursor: pointer; }

.form-hint { margin: 2px 0 18px; color: var(--muted-2); font-size: 10px; line-height: 1.7; }
.privacy-note { margin: 12px 0 0; color: var(--muted-2); font-size: 10px; letter-spacing: 0.08em; text-align: center; }
.form-error { min-height: 18px; margin: 8px 0 0; color: var(--cinnabar); font-size: 11px; line-height: 1.6; }

.result-side {
  position: relative;
  min-height: 580px;
  padding: 32px;
}

.result-empty {
  min-height: 516px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-orbit {
  position: relative;
  width: 164px;
  height: 164px;
  margin-bottom: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: orbitPulse 7s ease-in-out infinite;
}
.empty-orbit::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.empty-orbit::after {
  content: "命";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--cinnabar);
  font-family: var(--font-display);
  font-size: 40px;
}
.empty-orbit span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 15px;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 90deg))
    translateY(-82px)
    rotate(calc(var(--i) * -90deg));
}

.empty-kicker { margin: 0 0 10px; color: var(--cinnabar); font-size: 10px; letter-spacing: 0.26em; }
.result-empty h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: 0.05em; }
.empty-desc { max-width: 380px; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.empty-tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.3);
}

.result-content { animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1); }

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.result-eyebrow { margin: 0 0 5px; color: var(--cinnabar); font-size: 10px; letter-spacing: 0.2em; }
.result-title { margin: 0 0 5px; font-family: var(--font-display); font-size: 31px; font-weight: 600; letter-spacing: 0.06em; }
.result-sub { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.result-badge {
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px solid rgba(166, 61, 47, 0.32);
  border-radius: 999px;
  color: var(--cinnabar);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: rgba(166, 61, 47, 0.04);
}

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }

.pillar-card {
  position: relative;
  padding: 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pillar-card:hover { transform: translateY(-2px); border-color: rgba(166, 61, 47, 0.24); }
.pillar-card.is-day {
  border-color: rgba(166, 61, 47, 0.4);
  background: rgba(166, 61, 47, 0.045);
}
.pillar-label { display: block; margin-bottom: 8px; color: var(--muted-2); font-size: 9px; letter-spacing: 0.18em; }
.pillar-chars { display: flex; flex-direction: column; align-items: center; gap: 1px; font-family: var(--font-display); font-size: 32px; line-height: 1.08; }
.pillar-nayin { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.pillar-shishen { margin: 2px 0 0; color: var(--cinnabar); font-size: 10px; letter-spacing: 0.06em; }
.pillar-hide { margin: 4px 0 0; color: var(--muted-2); font-size: 8px; line-height: 1.5; }

.wx-mu { color: #4f7a5f; }
.wx-huo { color: #b04a3a; }
.wx-tu { color: #a9854f; }
.wx-jin { color: #8a7b5c; }
.wx-shui { color: #3f5f78; }

.wx-panel {
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
}
.wx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.wx-head h4 { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; }
.wx-head span { color: var(--muted-2); font-size: 9px; letter-spacing: 0.06em; }
.wx-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 26px; gap: 10px; align-items: center; margin: 9px 0; }
.wx-name { font-family: var(--font-display); font-size: 16px; text-align: center; }
.wx-track { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(33, 29, 24, 0.07); }
/* display:block 必需：<i> 默认是内联元素，height/width 对内联元素无效，条形会塌成 0×0 */
.wx-fill { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }
.wx-fill.mu { background: #4f7a5f; }
.wx-fill.huo { background: #b04a3a; }
.wx-fill.tu { background: #a9854f; }
.wx-fill.jin { background: #8a7b5c; }
.wx-fill.shui { background: #3f5f78; }
.wx-count { color: var(--muted); font-size: 11px; text-align: right; }
.wx-count.is-missing { color: var(--cinnabar); }

.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.insight-card {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.26);
}
.insight-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.insight-card h4 b { color: var(--cinnabar); font-family: var(--font-body); font-size: 9px; font-weight: 500; letter-spacing: 0.12em; }
.insight-card p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.78; }

.lucky-slip {
  position: relative;
  padding: 16px 18px 14px;
  border: 1px dashed rgba(166, 61, 47, 0.32);
  border-radius: 16px;
  background: rgba(234, 223, 201, 0.42);
  transform: rotate(-0.35deg);
}
.slip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.slip-head span:first-child { color: var(--cinnabar); font-size: 10px; letter-spacing: 0.22em; }
.slip-seal {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 61, 47, 0.5);
  border-radius: 5px;
  color: var(--cinnabar);
  font-family: var(--font-display);
  font-size: 15px;
  transform: rotate(5deg);
}
.slip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slip-grid div { min-width: 0; }
.slip-grid span { display: block; color: var(--muted); font-size: 9px; letter-spacing: 0.1em; }
.slip-grid strong { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.slip-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.text-btn:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.result-note { color: var(--muted-2); font-size: 9px; letter-spacing: 0.04em; text-align: right; line-height: 1.6; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
}
.trust-mark {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 61, 47, 0.3);
  border-radius: 50%;
  color: var(--cinnabar);
  font-family: var(--font-display);
  font-size: 14px;
}
.trust-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.trust-item strong { color: var(--ink-2); font-size: 12px; font-weight: 600; }

/* ---------- 结尾 ---------- */
.closing {
  position: relative;
  padding: 92px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(166, 61, 47, 0.18), transparent 70%),
    radial-gradient(500px 300px at 10% 100%, rgba(63, 107, 88, 0.16), transparent 70%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing .eyebrow { color: rgba(245, 240, 230, 0.5); }
.closing-quote {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.closing-source { margin: 0 0 18px; color: rgba(245, 240, 230, 0.45); font-size: 11px; letter-spacing: 0.22em; }
.closing-desc { max-width: 520px; margin: 0 0 26px; color: rgba(245, 240, 230, 0.62); font-size: 13px; line-height: 1.9; }
.closing .btn-ghost { border-color: rgba(245, 240, 230, 0.24); color: var(--paper); }
.closing .btn-ghost:hover { border-color: rgba(245, 240, 230, 0.5); background: rgba(245, 240, 230, 0.06); color: var(--paper); }

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 36px 0;
  background: #15120f;
  color: rgba(245, 240, 230, 0.55);
}
.footer-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-seal { width: 32px; height: 32px; font-size: 18px; border-radius: 7px; }
.footer-brand strong { display: block; color: var(--paper); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.12em; font-weight: 600; }
.footer-brand small { display: block; margin-top: 2px; color: rgba(245, 240, 230, 0.38); font-size: 8px; letter-spacing: 0.12em; }
.footer-disclaimer { margin: 0; font-size: 10px; line-height: 1.8; color: rgba(245, 240, 230, 0.42); }
.footer-copy { margin: 0; font-size: 9px; letter-spacing: 0.06em; white-space: nowrap; color: rgba(245, 240, 230, 0.32); }

/* ---------- 动画 ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.2; }
  40% { opacity: 1; }
  70% { transform: translate(-50%, 11px); opacity: 0; }
}
@keyframes orbitPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.025); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes seasonSwap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .compass { --r: 180px; }
  .hero h1 { font-size: clamp(52px, 6.4vw, 86px); }
}

@media (max-width: 1020px) {
  .hero { min-height: auto; padding: 132px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 460px; }
  .compass { --r: 170px; width: min(430px, 92%); }
  .today-card { right: 2%; }
  .tcm-grid { grid-template-columns: 1fr; }
  .method-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .method-card { flex-direction: column; }
  .reading-panel { grid-template-columns: 1fr; }
  .form-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-side { min-height: auto; }
  .result-empty { min-height: 420px; }
  .constitution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-copy { white-space: normal; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .container { width: calc(100% - 32px); }
  .site-header { height: 66px; padding: 0 16px; }
  .site-nav { display: none; }
  .brand-seal { width: 34px; height: 34px; font-size: 19px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 7px; }
  .nav-cta { padding: 8px 14px; font-size: 11px; }

  .section { padding: 74px 0; }
  .section-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 36px; }
  .section-index { font-size: 38px; }
  .section-head h2 { font-size: 34px; }
  .section-desc { font-size: 13px; }

  .hero { padding: 108px 0 64px; }
  .hero h1 { font-size: clamp(44px, 12vw, 62px); }
  .hero-lede { font-size: 14px; line-height: 1.9; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 13px 18px; font-size: 13px; }
  .hero-meta { gap: 14px; margin-top: 30px; font-size: 10px; }
  .hero-quote { margin-top: 32px; font-size: 14px; }
  .hero-visual { min-height: 360px; flex-direction: column; }
  .compass { --r: 135px; width: min(330px, 92%); }
  .compass-branches span { font-size: 14px; }
  .today-card { position: relative; right: auto; bottom: auto; width: 100%; max-width: 330px; margin: 28px auto 0; }
  .scroll-cue { display: none; }

  .season-card { padding: 22px; border-radius: 22px; }
  .season-char { font-size: 62px; }
  .season-hero h3 { font-size: 28px; }
  .season-poem { font-size: 14px; }
  .season-detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .method-stack { grid-template-columns: 1fr; }
  .method-card { flex-direction: row; }
  .constitution-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 38px; }
  .constitution-head > p { text-align: left; }
  .constitution-grid { grid-template-columns: 1fr 1fr; }

  .reading-panel { border-radius: 22px; }
  .form-side, .result-side { padding: 22px; }
  .form-head h3 { font-size: 23px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .result-title { font-size: 26px; }
  .result-badge { font-size: 9px; padding: 6px 9px; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pillar-card { padding: 12px 8px 10px; }
  .pillar-chars { font-size: 28px; }
  .insight-grid { grid-template-columns: 1fr; }
  .slip-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; align-items: flex-start; gap: 6px; }
  .result-note { text-align: left; }

  .closing { padding: 64px 0; }
  .footer-grid { gap: 12px; }
}

@media (max-width: 440px) {
  .hero h1 { font-size: 42px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .constitution-grid { grid-template-columns: 1fr; }
  .compass { --r: 118px; }
  .season-top { align-items: flex-start; }
  .season-tabs { gap: 2px; }
  .season-tab { width: 30px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .result-head { flex-direction: column; }
}

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