@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@560;700&family=Noto+Serif+SC:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --ink: #251a14;
  --ink-2: #33241b;
  --jade: #315846;
  --jade-soft: #779783;
  --gold: #c79a35;
  --gold-soft: #e8c978;
  --cinnabar: #8f3d2f;
  --paper: #f5efe3;
  --panel: rgba(255, 252, 245, 0.92);
  --text: #2a211b;
  --muted: #746757;
  --line: rgba(92, 66, 38, 0.16);
  --white: #f7faf8;
  --danger: #8b2e3a;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif SC", serif;
  --serif-cn: "Noto Serif SC", "Songti SC", "STSong", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ===== Landing: scroll-led editorial experience ===== */
html { scroll-behavior: smooth; }
.landing {
  --landing-ink: #10251f;
  --landing-jade: #173f34;
  --landing-jade-2: #285c4c;
  --landing-gold: #b58b43;
  --landing-paper: #f3ede1;
  --landing-cream: #faf7f0;
  min-height: 100vh;
  color: var(--landing-ink);
  background: var(--landing-paper);
  overflow-x: hidden;
}
.landing a,
.landing button,
.landing summary { touch-action: manipulation; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--landing-jade);
}
.skip-link:focus { transform: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  min-height: 88px;
  padding: .75rem clamp(1.25rem, 4.6vw, 4.75rem);
  color: var(--landing-ink);
  border-bottom: 1px solid rgba(38, 48, 40, .08);
  background: rgba(250, 247, 240, .9);
  backdrop-filter: blur(18px) saturate(115%);
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.site-header.over-dark {
  color: #f4eee2;
  border-color: rgba(255,255,255,.08);
  background: rgba(9, 24, 20, .78);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
}
.brand-link img { width: 40px; height: 40px; display: block; }
.brand-link img.header-logo { width: 52px; height: 52px; }
.brand-link .name {
  font-family: var(--serif-cn);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  font-size: .95rem;
}
.nav-links a {
  position: relative;
  padding: .75rem .1rem;
  color: currentColor;
  opacity: .72;
  transition: opacity .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 1px;
  background: var(--landing-gold);
  transition: right .2s ease, left .2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right: 0; left: 0; }
.nav-actions { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.btn-ghost,
.btn-outline-white {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .6rem 1rem;
  cursor: pointer;
  color: currentColor;
  font-weight: 500;
}
.btn-ghost { border: 0; background: transparent; }
.btn-outline-white { color: #8d6a2f; border: 1px solid rgba(165,121,48,.65); background: transparent; }
.site-header > .nav-actions .btn-outline-white { min-height: 48px; padding-inline: 1.35rem; }
.site-header.over-dark .btn-outline-white { border-color: rgba(255,255,255,.45); }
.btn-ghost:hover,
.btn-outline-white:hover { background: rgba(181,139,67,.1); }

.scroll-rail {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: clamp(.8rem, 2vw, 2rem);
  display: grid;
  gap: .7rem;
  transform: translateY(-50%);
}
.scroll-rail::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 1px;
  background: rgba(181,139,67,.24);
}
.scroll-rail a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(181,139,67,.28);
  border-radius: 50%;
  color: rgba(17,43,34,.65);
  background: rgba(248,244,235,.8);
  font-family: var(--serif-cn);
  font-size: .7rem;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.scroll-rail a.active {
  color: #fff;
  background: var(--landing-jade);
  transform: scale(1.12);
}

.hero-photo {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 8.5rem clamp(1.25rem, 8.8vw, 8.8rem) 9.5rem;
  background: url("/static/assets/hero-astrolabe-v2.png") center / cover no-repeat;
  overflow: hidden;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,80,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,80,51,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 52%);
  pointer-events: none;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,243,233,.26), transparent 48%);
  pointer-events: none;
}
.hero-cloud {
  position: absolute;
  width: 38vw;
  height: 12vw;
  border: 1px solid rgba(181,139,67,.15);
  border-radius: 50%;
  opacity: .45;
  filter: blur(.2px);
}
.hero-cloud-one { top: 19%; left: -14%; transform: rotate(9deg); }
.hero-cloud-two { right: -12%; bottom: 8%; transform: rotate(-6deg); }
.hero-layout {
  position: relative;
  z-index: 2;
  width: min(650px, 48%);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}
.hero-copy { max-width: 650px; }
.eyebrow,
.chapter-index {
  margin: 0 0 1rem;
  color: var(--landing-gold);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow.dark { color: #9b7638; }
.hero-copy h1,
.story-copy h2,
.ask-inner h2,
.section-heading h2,
.faq-section h2,
.letter-card h2 {
  font-family: var(--serif-cn);
  font-weight: 600;
  text-wrap: balance;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 5.15vw, 4.9rem);
  line-height: 1.16;
  letter-spacing: .06em;
}
.hero-slogan {
  margin: 1.8rem 0 0;
  color: #41544c;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.9;
}
.hero-actions,
.story-actions,
.letter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.landing-primary,
.landing-secondary,
.landing-text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.landing-primary {
  color: #fff9ea;
  background: var(--landing-jade);
  box-shadow: 0 12px 28px rgba(19,61,49,.2);
}
.landing-primary:hover { transform: translateY(-2px); background: #0d3027; box-shadow: 0 16px 36px rgba(19,61,49,.26); }
.hero-actions .landing-primary { min-height: 60px; padding-inline: 2.8rem; font-size: 1.05rem; }
.hero-actions .landing-text-link { min-height: 60px; font-size: 1rem; }
.landing-primary.light { color: var(--landing-jade); background: #f5ead1; box-shadow: none; }
.landing-secondary { color: var(--landing-jade); border-color: rgba(23,63,52,.25); background: rgba(255,255,255,.16); }
.landing-secondary.dark { color: #f4eee2; border-color: rgba(255,255,255,.24); }
.landing-text-link { color: var(--landing-jade); padding-inline: 1rem; }
.landing-secondary:hover,
.landing-text-link:hover { border-color: var(--landing-gold); background: rgba(181,139,67,.1); }
.hero-trust { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; }
.hero-trust p { margin: 0; color: #6d756e; font-size: .78rem; letter-spacing: .04em; }
.trust-seals { display: flex; padding-left: .3rem; }
.trust-seals span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: -.3rem;
  border: 2px solid #f5efe3;
  border-radius: 50%;
  color: #efe1bd;
  background: #274b3f;
  font-family: var(--serif-cn);
  font-size: .68rem;
}
.trust-seals span:nth-child(2) { color: #f3ead6; background: #6f776c; }
.trust-seals span:nth-child(3) { color: #183a30; background: #c7a65d; font-family: var(--font); font-size: .58rem; font-weight: 700; }
.hero-orbit {
  position: relative;
  min-height: min(66vw, 700px);
  display: grid;
  place-items: center;
}
.orbit-line {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(181,139,67,.28);
  border-radius: 50%;
}
.orbit-line-one { transform: rotate(62deg) scaleY(.42); }
.orbit-line-two { transform: rotate(-18deg) scaleY(.72); }
.astrolabe {
  position: relative;
  width: min(43vw, 590px);
  aspect-ratio: 1;
  border: 1px solid rgba(128,95,42,.55);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, rgba(118,88,41,.28) 0 1deg, transparent 1deg 15deg),
    radial-gradient(circle, rgba(239,235,220,.96) 0 15%, rgba(91,123,111,.24) 15.3% 38%, rgba(226,222,205,.8) 38.3% 58%, rgba(91,123,111,.18) 58.3% 74%, rgba(239,235,220,.7) 74.3%);
  box-shadow: 0 35px 80px rgba(48,63,52,.17), inset 0 0 0 10px rgba(248,244,233,.52), inset 0 0 0 11px rgba(181,139,67,.26);
  animation: astrolabeFloat 7s ease-in-out infinite;
}
.astrolabe::before,
.astrolabe::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(181,139,67,.38);
  border-radius: 50%;
}
.astrolabe::after { inset: 23%; border-style: dashed; }
.astrolabe-ring { position: absolute; inset: 0; border-radius: 50%; }
.astrolabe-ring span {
  position: absolute;
  top: 50%; left: 50%;
  font-family: var(--serif-cn);
  font-size: clamp(.9rem, 1.6vw, 1.35rem);
  color: #263f36;
}
.ring-outer span:nth-child(1) { transform: translate(-50%, -50%) translateY(calc(0px - min(14.8vw, 212px))); }
.ring-outer span:nth-child(2) { transform: translate(-50%, -50%) translateX(min(14.8vw, 212px)); }
.ring-outer span:nth-child(3) { transform: translate(-50%, -50%) translateY(min(14.8vw, 212px)); }
.ring-outer span:nth-child(4) { transform: translate(-50%, -50%) translateX(calc(0px - min(14.8vw, 212px))); }
.ring-middle { animation: slowTurn 60s linear infinite; }
.ring-middle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg) translateY(calc(0px - min(10.7vw, 154px))) rotate(-45deg); }
.ring-middle span:nth-child(2) { transform: translate(-50%, -50%) rotate(135deg) translateY(calc(0px - min(10.7vw, 154px))) rotate(-135deg); }
.ring-middle span:nth-child(3) { transform: translate(-50%, -50%) rotate(225deg) translateY(calc(0px - min(10.7vw, 154px))) rotate(-225deg); }
.ring-middle span:nth-child(4) { transform: translate(-50%, -50%) rotate(315deg) translateY(calc(0px - min(10.7vw, 154px))) rotate(-315deg); }
.five-elements { position: absolute; inset: 34%; border-radius: 50%; }
.five-elements span { position: absolute; font-family: var(--serif-cn); color: #2f4f42; }
.five-elements span:nth-child(1) { top: -14%; left: 43%; }
.five-elements span:nth-child(2) { top: 28%; right: -12%; }
.five-elements span:nth-child(3) { right: 10%; bottom: -8%; }
.five-elements span:nth-child(4) { bottom: -8%; left: 10%; }
.five-elements span:nth-child(5) { top: 28%; left: -12%; }
.astrolabe-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 18%; aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(181,139,67,.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #405e52;
  background: rgba(246,240,225,.85);
  font-family: var(--serif-cn);
  font-size: .72rem;
}
.astrolabe-core span:first-child { position: absolute; top: 18%; }
.astrolabe-core span:last-child { position: absolute; bottom: 18%; }
.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 1.6rem;
  left: 50%;
  display: none;
  place-items: center;
  gap: .25rem;
  transform: translateX(-50%);
  color: #68776e;
  font-size: .74rem;
  letter-spacing: .16em;
}
.hero-scroll svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: floatY 2s ease-in-out infinite; }
.hero-feature-strip {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  border-top: 1px solid rgba(117,91,50,.12);
  background: rgba(250,247,240,.92);
  backdrop-filter: blur(14px);
}
.hero-feature-strip a {
  min-width: 150px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #173b31;
  font-family: var(--serif-cn);
  font-size: 1.28rem;
  letter-spacing: .08em;
}
.hero-feature-strip a:hover { color: #9c7636; }
.hero-feature-strip i { width: 5px; height: 5px; border-radius: 50%; background: #c4a05d; }

.story-panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(6rem, 9vw, 9rem) clamp(1.25rem, 7vw, 7rem);
  overflow: hidden;
}
.story-grid,
.daily-layout {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}
.story-bazi {
  background:
    linear-gradient(90deg, rgba(246,240,227,.98), rgba(246,240,227,.88) 50%, rgba(246,240,227,.34)),
    url("/static/assets/section-mount.jpg?v=home2") center / cover no-repeat;
}
.story-wash { position: absolute; inset: 0; background: radial-gradient(circle at 82% 35%, rgba(181,139,67,.14), transparent 26%); }
.story-copy { max-width: 560px; }
.story-copy h2,
.ask-inner h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 3.8vw, 4.1rem);
  line-height: 1.24;
  letter-spacing: .05em;
}
.story-lead,
.ask-lead {
  margin: 1.5rem 0 0;
  color: #5f6c64;
  font-size: 1rem;
  line-height: 1.9;
}
.story-points { list-style: none; display: grid; gap: .85rem; margin: 1.8rem 0 0; padding: 0; color: #536159; }
.story-points li { display: flex; align-items: baseline; gap: .9rem; line-height: 1.6; }
.story-points span { color: var(--landing-gold); font-size: .72rem; letter-spacing: .1em; }
.report-preview {
  width: min(540px, 100%);
  justify-self: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(122,94,50,.17);
  border-radius: 30px;
  color: #223a32;
  background: rgba(255,252,245,.86);
  box-shadow: 0 35px 90px rgba(58,54,42,.17), inset 0 1px rgba(255,255,255,.8);
  backdrop-filter: blur(14px);
}
.preview-topline,
.balance-head,
.energy-labels { display: flex; justify-content: space-between; align-items: center; }
.preview-topline { padding-bottom: 1rem; border-bottom: 1px solid rgba(72,83,73,.12); font-size: .78rem; color: #7d7768; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1.3rem; }
.pillars div { display: grid; place-items: center; gap: .35rem; padding: .9rem .4rem; border-radius: 16px; background: rgba(75,108,94,.07); }
.pillars div.active { color: #f7ead0; background: var(--landing-jade); transform: translateY(-6px); box-shadow: 0 10px 24px rgba(23,63,52,.2); }
.pillars small { opacity: .65; font-size: .7rem; }
.pillars strong,
.pillars em { font-family: var(--serif-cn); font-size: 1.6rem; font-style: normal; }
.element-balance { margin-top: 1.5rem; padding: 1.2rem; border-radius: 18px; background: rgba(207,199,178,.18); }
.balance-head { color: #606a63; font-size: .76rem; }
.energy-bars { height: 105px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: .65rem; margin-top: 1rem; border-bottom: 1px solid rgba(65,79,69,.14); }
.energy-bars i { height: var(--h); border-radius: 999px 999px 2px 2px; background: linear-gradient(180deg, #c7a35e, #6f8d7e); }
.energy-labels { margin-top: .5rem; color: #69766e; font-size: .7rem; }
.preview-quote { margin: 1.4rem 0 0; padding-left: 1rem; border-left: 2px solid var(--landing-gold); color: #56645c; font-family: var(--serif-cn); line-height: 1.8; }

.story-meihua {
  min-height: 100svh;
  color: #f6f0e4;
  background:
    radial-gradient(circle at 16% 20%, rgba(181,139,67,.17), transparent 24%),
    linear-gradient(120deg, rgba(5,20,16,.97), rgba(12,38,31,.88)),
    url("/static/assets/section-ink.jpg?v=home2") center / cover no-repeat;
}
.story-meihua::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 80% 50%, rgba(228,207,161,.08) 0 1px, transparent 1px 54px);
  mask-image: linear-gradient(90deg, transparent 34%, #000);
}
.ask-inner { position: relative; z-index: 2; width: min(760px, 100%); margin: 0 auto; text-align: center; }
.story-meihua .ask-lead { max-width: 580px; margin-inline: auto; color: rgba(246,240,228,.7); }
.hexagram-art { position: absolute; top: 50%; right: 6vw; width: min(25vw, 330px); display: grid; gap: 18px; transform: translateY(-50%) rotate(-8deg); opacity: .16; }
.hexagram-art i { height: 8px; background: #d5b773; }
.hexagram-art i.broken { background: linear-gradient(90deg, #d5b773 0 42%, transparent 42% 58%, #d5b773 58%); }
.ask-form { margin-top: 2.2rem; text-align: left; }
.ask-form label { display: block; margin: 0 0 .65rem 1rem; color: rgba(246,240,228,.72); font-size: .84rem; }
.ask-control { display: flex; align-items: center; gap: .65rem; padding: .5rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.ask-control input { min-width: 0; flex: 1; height: 48px; padding: 0 .9rem; border: 0; outline: none; color: #fff; background: transparent; font-size: 1rem; }
.ask-control input::placeholder { color: rgba(255,255,255,.44); }
.ask-control input:focus-visible { border-radius: 999px; box-shadow: 0 0 0 2px #d9bd7f; }
.ask-control .landing-primary { flex: 0 0 auto; color: var(--landing-jade); background: #e4c987; box-shadow: none; }
.ask-note { margin: .85rem 1rem 0; color: rgba(246,240,228,.48); font-size: .8rem; line-height: 1.6; }

.story-daily {
  color: #24382f;
  background:
    linear-gradient(90deg, rgba(237,235,220,.38), rgba(240,238,222,.9) 72%),
    url("/static/assets/section-mist.jpg?v=home2") center / cover no-repeat;
}
.sun-disc { position: absolute; top: 18%; right: 12%; width: min(26vw, 360px); aspect-ratio: 1; border-radius: 50%; background: rgba(203,153,69,.3); filter: blur(2px); }
.daily-layout { grid-template-columns: minmax(340px, .8fr) minmax(0, 1fr); }
.daily-card {
  width: min(400px, 100%);
  justify-self: center;
  padding: 2.2rem;
  border: 1px solid rgba(84,89,72,.16);
  border-radius: 8px 40px 8px 8px;
  background: rgba(255,252,242,.86);
  box-shadow: 0 28px 70px rgba(52,65,55,.17);
}
.daily-date { display: grid; justify-items: center; gap: .35rem; }
.daily-date span { color: var(--landing-gold); letter-spacing: .2em; font-size: .75rem; }
.daily-date strong { font-family: var(--serif-cn); font-size: 4.8rem; font-weight: 500; line-height: 1.1; }
.daily-date small { color: #798278; }
.daily-divider { height: 1px; margin: 1.5rem 0; background: linear-gradient(90deg, transparent, rgba(181,139,67,.55), transparent); }
.daily-keyword { margin: 0 0 .6rem; color: #8c6a31; font-family: var(--serif-cn); font-size: 1.25rem; text-align: center; }
.daily-card > p:not(.daily-keyword) { margin: 0; color: #5f6a62; line-height: 1.8; text-align: center; }
.daily-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.daily-tags span { padding: .35rem .7rem; border: 1px solid rgba(44,82,68,.16); border-radius: 999px; color: #557064; font-size: .75rem; }

.landing-section { position: relative; padding: clamp(6rem, 9vw, 9rem) clamp(1.25rem, 6vw, 6rem); }
.feature-section { color: #f5efe3; background: #0b1d18; }
.feature-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0, rgba(181,139,67,.13), transparent 30%); pointer-events: none; }
.section-heading { position: relative; width: min(1120px, 100%); margin: 0 auto 3.5rem; }
.section-heading > p:last-child { max-width: 520px; color: rgba(245,239,227,.58); line-height: 1.8; }
.feature-grid { position: relative; width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(235,224,201,.12);
  border-radius: 24px;
  color: #f4eee2;
  background: rgba(255,255,255,.035);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(204,166,91,.45); background: rgba(255,255,255,.065); }
.feature-card-primary { background: linear-gradient(135deg, rgba(79,117,101,.32), rgba(255,255,255,.035)); }
.feature-card-wide { grid-column: 1 / -1; min-height: 220px; background: linear-gradient(110deg, rgba(181,139,67,.18), rgba(255,255,255,.025)); }
.feature-card .num { margin: 0 0 2rem; color: #c8a762; font-size: .72rem; letter-spacing: .18em; }
.feature-card h3 { margin: 0 0 .7rem; font-family: var(--serif-cn); font-size: clamp(1.5rem, 2.5vw, 2.15rem); font-weight: 600; }
.feature-card p { max-width: 520px; margin: 0; color: rgba(244,238,226,.58); line-height: 1.75; }
.card-link { margin-top: auto; padding-top: 1.8rem; color: #d6b875; font-size: .88rem; }
.card-link b { display: inline-block; margin-left: .35rem; transition: transform .2s ease; }
.feature-card:hover .card-link b { transform: translateX(4px); }

.faq-section { color: var(--landing-ink); background: #f4efe5; padding: clamp(5rem, 8vw, 8rem) 1.25rem; }
.faq-inner { width: min(820px, 100%); margin: 0 auto; }
.faq-section h2 { margin: 0 0 2rem; font-size: clamp(2.4rem, 4vw, 3.7rem); }
.faq-list details { border-bottom: 1px solid rgba(56,70,60,.15); padding: 1.25rem 0; }
.faq-list summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--landing-gold); font-size: 1.3rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: .75rem 0 0; color: #667169; line-height: 1.8; }

.letter-section { color: #f7f0e3; background: #102d25; padding: clamp(5rem, 8vw, 7rem) 1.25rem; }
.letter-card { width: min(820px, 100%); margin: 0 auto; text-align: center; }
.letter-card h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: .06em; }
.letter-card > p:not(.eyebrow) { max-width: 580px; margin: 1.3rem auto 0; color: rgba(247,240,227,.64); line-height: 1.8; }
.letter-actions { justify-content: center; }

.landing-footer { position: relative; padding: 3rem 1.25rem; color: rgba(247,240,227,.46); background: #07130f; font-size: .82rem; }
.footer-grid { width: min(1050px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { margin: 0 0 .8rem; color: rgba(247,240,227,.84); letter-spacing: .1em; }
.footer-grid a,
.footer-grid p { display: block; margin: .4rem 0; color: rgba(247,240,227,.46); line-height: 1.6; }
.footer-grid a:hover { color: #d7b873; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.landing :focus-visible { outline: 3px solid #d4aa5a; outline-offset: 4px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@keyframes slowTurn {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}
@keyframes astrolabeFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

/* ===== Login: stone studio ===== */
.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(16,24,22,0.04), transparent 40%),
    linear-gradient(180deg, #e8eee9 0%, #dfe7e2 100%);
  color: var(--text);
}
.login-top {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(244, 247, 245, 0.8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.login-top .brand-link .name { color: var(--ink); font-size: 1.15rem; }
.login-top .links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  min-height: calc(100vh - 58px);
}
.login-form-pane {
  background: rgba(255,255,255,0.86);
  padding: 2.3rem 2rem;
  border-right: 1px solid var(--line);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.login-brand img { width: 40px; height: 40px; }
.login-brand .title {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.login-brand .domain {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.login-form-pane h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  letter-spacing: 0.06em;
}
.login-form-pane .lead {
  margin: 0 0 1.3rem;
  color: var(--muted);
}
.auth-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.15rem;
}
.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 0;
  cursor: pointer;
}
.auth-tab.active {
  color: var(--jade);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.auth-field {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.auth-field input, .field input, .field select, .field textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid rgba(23,36,31,0.14);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: var(--text);
}
.auth-field input, .field input:not([type="checkbox"]):not([type="radio"]), .field select {
  min-height: 58px;
  height: 58px;
  line-height: 1.2;
}
.field input[type="checkbox"], .field input[type="radio"] {
  width: auto;
  min-height: auto;
  height: auto;
  margin: 0;
  line-height: normal;
}
.field textarea {
  min-height: 116px;
  resize: vertical;
}
.auth-field input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(63, 111, 92, 0.28);
  border-color: transparent;
}
.auth-row {
  display: flex;
  justify-content: flex-end;
  margin: -0.15rem 0 0.95rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.auth-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.btn-login {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  color: #12201b;
  background: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.btn-login:disabled { opacity: 0.65; cursor: wait; }
.auth-switch {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-switch a { color: var(--jade); font-weight: 600; }
.login-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,162,74,0.16), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(63,111,92,0.18), transparent 45%),
    linear-gradient(160deg, #1a2823, #101816 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-art::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,74,0.28);
  box-shadow: inset 0 0 0 28px rgba(127,168,150,0.06);
}
.login-art-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}
.login-art-inner img { width: 92px; height: 92px; margin-bottom: 1rem; }
.login-art-inner .big {
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  margin: 0;
}
.login-art-inner .tip {
  margin: 0.6rem 0 0;
  color: rgba(247,250,248,0.65);
  letter-spacing: 0.14em;
}

.status {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(63, 111, 92, 0.1);
  color: var(--jade);
  font-size: 0.9rem;
}
.status.error {
  background: rgba(139, 46, 58, 0.1);
  color: var(--danger);
}
.entitlement-notice {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(63,111,92,.09);
  color: var(--jade);
}
.entitlement-notice.empty { background: rgba(201,162,74,.13); color: #725a22; }
.entitlement-notice a { color: inherit; font-weight: 700; }

/* ===== App pages ===== */
.app-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(199, 154, 53, .16), transparent 26%),
    radial-gradient(circle at 84% 0%, rgba(143, 61, 47, .12), transparent 28%),
    linear-gradient(180deg, rgba(250, 245, 235, .94), rgba(241, 232, 216, .93)),
    url("/static/assets/hero-guoxue.png?v=guoxue1") center top / cover fixed;
  color: var(--ink);
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  background: rgba(253, 251, 246, 0.82);
  border-bottom: 1px solid rgba(82, 67, 45, .12);
  box-shadow: 0 10px 30px rgba(45, 55, 43, .06);
  backdrop-filter: blur(16px);
}
.app-header .brand-link .name {
  color: var(--ink);
  font-size: 1.15rem;
}
.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.app-nav-toggle { display: none; }
.app-nav a, .app-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.86rem;
  cursor: pointer;
}
.app-nav a:hover, .app-nav button:hover {
  color: var(--ink);
  background: rgba(63,111,92,0.08);
}
.app-nav a.active {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  font-weight: 600;
}
.app-nav .nav-user {
  color: var(--jade);
  font-size: 0.86rem;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
}
.app-nav .nav-user:hover {
  background: rgba(63,111,92,0.08);
  border-color: var(--line);
}
.landing-user {
  color: rgba(247,250,248,0.92) !important;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
}
.app-main {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.app-shell {
  width: min(1120px, calc(100% - 2rem));
  padding: 2rem 0 4rem;
}
.app-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif-cn);
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: 0.12em;
}
.app-hero .lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 34rem;
}
.field-wide { grid-column: 1 / -1; }

.panel, .report {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 16px 36px rgba(88, 55, 28, 0.07);
  backdrop-filter: blur(10px);
}
.bazi-create-shell {
  width: min(1180px, calc(100% - 2rem));
}
.bazi-create-stage {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(220px, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  position: relative;
  padding: 2rem 0 2.5rem;
}
.bazi-stage-art {
  position: absolute;
  inset: 1rem auto auto 50%;
  width: min(48vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-56%);
  background:
    repeating-radial-gradient(circle, rgba(122,78,39,.12) 0 1px, transparent 1px 42px),
    conic-gradient(from 12deg, rgba(122,78,39,.08), transparent 18%, rgba(201,162,74,.12), transparent 38%);
  filter: blur(.2px);
  opacity: .62;
  pointer-events: none;
}
.bazi-create-card {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(255,253,248,.94), rgba(252,246,235,.9)),
    radial-gradient(circle at 50% 0%, rgba(201,162,74,.16), transparent 36%);
  box-shadow:
    0 28px 80px rgba(53, 34, 17, .16),
    inset 0 1px 0 rgba(255,255,255,.7);
}
.modal-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .9rem;
  color: #7a4e27;
  font-weight: 700;
  letter-spacing: .08em;
}
.modal-topline a {
  color: var(--muted);
  font-size: .9rem;
}
.modal-topline a:hover { color: var(--ink); }
.bazi-modal-title {
  text-align: center;
  margin-bottom: 1.2rem;
}
.bazi-modal-title h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: .13em;
}
.modal-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin: .2rem 0 .65rem;
  color: #8b6a4b;
  font-family: var(--serif-cn);
  font-weight: 700;
  letter-spacing: .22em;
}
.modal-subtitle span {
  display: inline-block;
  width: clamp(42px, 10vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122,78,39,.5), transparent);
}
.bazi-modal-title .lead {
  margin: 0 auto;
  max-width: 40rem;
}
.birth-modal-form {
  border-radius: 24px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(122, 78, 39, .12);
  padding: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.36);
}
.birth-scroll-window {
  max-height: min(44vh, 380px);
  overflow-y: auto;
  padding: .25rem .2rem .4rem;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.birth-scroll-window::-webkit-scrollbar,
.archive-scroll-card::-webkit-scrollbar,
.report-interactive::-webkit-scrollbar {
  width: 8px;
}
.birth-scroll-window::-webkit-scrollbar-thumb,
.archive-scroll-card::-webkit-scrollbar-thumb,
.report-interactive::-webkit-scrollbar-thumb {
  background: rgba(122,78,39,.22);
  border-radius: 999px;
}
.birth-scroll-window .grid:first-child {
  grid-template-columns: 1.2fr .8fr;
}
.birth-scroll-window .field,
.birth-scroll-window .panel label {
  color: #746252;
  font-weight: 700;
}
.bazi-modal-actions {
  justify-content: center;
  margin-top: 1rem;
}
.bazi-modal-actions .btn-primary {
  min-width: min(100%, 360px);
  background: #6f421c;
  color: #fff8e8;
  box-shadow: 0 12px 28px rgba(111, 66, 28, .22);
}
.privacy-line {
  margin: .9rem 0 0;
  text-align: center;
  color: #8b7a67;
  font-size: .86rem;
}
.privacy-line::before {
  content: "▧";
  margin-right: .35rem;
  color: var(--gold);
}
.bazi-side-note {
  position: relative;
  z-index: 1;
  padding: 1.4rem;
  color: #4b3b2c;
  border-left: 1px solid rgba(122,78,39,.18);
}
.bazi-side-note h2 {
  margin: 0 0 .6rem;
  font-family: var(--serif-cn);
  letter-spacing: .08em;
  line-height: 1.35;
}
.bazi-side-note p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.birth-date-grid {
  grid-template-columns: 1.15fr .85fr .85fr .85fr .85fr;
}
.field, .panel label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}
.hint { margin: 0; color: var(--muted); font-size: 0.85rem; }
.btn-primary {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  color: #12201b;
  background: var(--gold);
  font-weight: 700;
}
.btn-primary:disabled { opacity: 0.65; cursor: wait; }
.btn-ghost-dark {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
}
.btn-danger {
  border: 1px solid rgba(139, 46, 58, .24);
  background: rgba(139, 46, 58, .08);
  color: #8b2e3a;
  border-radius: 999px;
  padding: 0.75rem 1.05rem;
  cursor: pointer;
  font-weight: 700;
}
.btn-danger:hover {
  background: rgba(139, 46, 58, .13);
  border-color: rgba(139, 46, 58, .36);
}
.report { margin-top: 1.2rem; }
.report-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.meta {
  margin: 0 0 0.3rem;
  color: var(--jade);
  font-size: 0.85rem;
}
.report-head h2 {
  margin: 0;
  font-size: 1.4rem;
}
.report-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  background: #fff;
}
.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1rem 0;
}
.score-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}
.score-card .label { margin: 0; color: var(--muted); font-size: 0.85rem; }
.score-card .value {
  margin: 0.25rem 0;
  font-size: 2rem;
  color: var(--ink);
  font-family: var(--display);
}
.score-card .desc { margin: 0; }
.score-card .tip { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.tag-chip {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  color: var(--jade);
}
.cast-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.cast-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
  background: #fff;
}
.cast-item .glyph { font-size: 1.5rem; margin: 0.2rem 0; }
.cast-item .name { margin: 0; font-weight: 600; }
.cast-item .sub { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.8rem; }
.theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.theme-pills label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: #fff;
  cursor: pointer;
}
.theme-pills input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #7a4e27;
  flex: 0 0 auto;
}
.fun-shell {
  width: min(1120px, calc(100% - 2rem));
}
.fun-hero {
  padding: 1.2rem 0 .5rem;
}
.fun-panel {
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,253,248,.94), rgba(250,244,232,.9)),
    radial-gradient(circle at 88% 0%, rgba(201,162,74,.16), transparent 34%);
}
.enhance-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
  cursor: pointer;
  width: min(620px, 100%);
  border: 1px solid rgba(122,78,39,.16);
  border-radius: 18px;
  padding: .85rem 1rem;
  background: rgba(255, 249, 236, .76);
  color: var(--text);
}
.enhance-toggle input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: #7a4e27;
}
.enhance-toggle span {
  display: grid;
  gap: .18rem;
  min-width: 0;
}
.enhance-toggle strong {
  color: #4b2f1d;
  font-size: .98rem;
}
.enhance-toggle small {
  color: var(--muted);
  line-height: 1.55;
}
.md-body { line-height: 1.8; font-size: 1.02rem; }
.md-body h2, .md-body h3, .md-body h4 { margin: 1.5rem 0 0.65rem; }
.md-body h2 {
  font-size: 1.25rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.md-body h2:first-child { border-top: 0; margin-top: 0; }
.md-body h3 {
  font-family: var(--serif-cn);
  font-size: 1.14rem;
  color: #4b2f1d;
  letter-spacing: .04em;
}
.md-body h4 {
  position: relative;
  margin-top: 1.2rem;
  padding: .72rem .9rem .72rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(201,162,74,.16), rgba(255,249,236,.72));
  color: #5a3524;
  font-family: var(--serif-cn);
  font-size: 1.06rem;
  line-height: 1.55;
}
.md-body h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72rem;
  bottom: .72rem;
  width: 4px;
  border-radius: 999px;
  background: #9b6a28;
}
.md-body p { margin: 0.7rem 0; }
.md-body ul, .md-body ol { padding-left: 1.2rem; }
.md-body strong { color: var(--jade); }
.md-body blockquote {
  margin: 0.9rem 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}
textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid rgba(23,36,31,0.14);
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
}

/* 报告能量图 + 存档 */
.report-rich { overflow: visible; }
.energy-panel {
  margin: 0.4rem 0 1.4rem;
  padding: 1.1rem 1rem 0.9rem;
  border-radius: 16px;
  background:
    radial-gradient(600px 180px at 20% 0%, rgba(201,162,74,0.14), transparent 60%),
    linear-gradient(180deg, #f7faf8 0%, #eef3f0 100%);
  border: 1px solid rgba(23,36,31,0.08);
}
.energy-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 0.4rem;
  padding: 0 0.35rem;
}
.energy-head .eyebrow {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}
.energy-head h3 {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}
.energy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}
.energy-stage {
  width: 100%;
  overflow: visible;
  touch-action: pan-y;
}
.energy-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
}
.energy-svg .pillar { cursor: pointer; }
.energy-svg .pillar-hit { fill: transparent; }
.energy-svg .pillar-body { transition: opacity 0.2s ease; }
.energy-svg .pillar-name,
.energy-svg .pillar-age,
.energy-svg .pillar-year {
  text-anchor: middle;
  font-size: 11px;
  fill: #3a4a43;
  pointer-events: none;
}
.energy-svg .pillar-name { font-weight: 700; font-size: 12px; }
.energy-svg .pillar-year { fill: #8a968f; font-size: 10px; }
.energy-svg .pillar.tide-high .pillar-body { fill: #3f6f5c; }
.energy-svg .pillar.tide-up .pillar-body { fill: #6e947f; }
.energy-svg .pillar.tide-flat .pillar-body { fill: #a8b7ae; }
.energy-svg .pillar.tide-low .pillar-body { fill: #c5cdc8; }
.energy-svg .pillar.tide-now .pillar-body,
.energy-svg .pillar.is-current .pillar-body {
  fill: #c9a24a;
}
.energy-svg .pillar-glow { fill: rgba(201,162,74,0.18); }
.energy-svg .pillar:not(.is-current) .pillar-glow { fill: transparent; }
.energy-svg .pillar.is-selected .pillar-body {
  stroke: #12201b;
  stroke-width: 1.5;
  filter: brightness(1.08);
}
.energy-svg .pillar.is-selected .pillar-name { fill: #1a2823; font-weight: 800; }
.energy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.35rem;
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.energy-legend .dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.energy-legend .tide-high { background: #3f6f5c; }
.energy-legend .tide-up { background: #6e947f; }
.energy-legend .tide-flat { background: #a8b7ae; }
.energy-legend .tide-low { background: #c5cdc8; }
.energy-legend .tide-now { background: #c9a24a; }

.dayun-detail { margin: 0.75rem 0.35rem 0.2rem; }
.dayun-detail-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  animation: rise 0.35s ease both;
}
.dayun-detail-card .eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
.dayun-detail-card h4 {
  margin: 0.2rem 0;
  font-family: var(--display);
  font-size: 1.15rem;
}
.dayun-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.dayun-meter {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    conic-gradient(#c9a24a var(--v, 50%), rgba(23,36,31,0.08) 0);
  flex-shrink: 0;
}
.dayun-meter span {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: #fff;
}
.dayun-meter em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
}

.report-reader-shell {
  width: min(1160px, calc(100% - 2rem));
}
.report-interactive {
  max-height: calc(100vh - 7.2rem);
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.report-interactive .report-head {
  position: sticky;
  top: -1.35rem;
  z-index: 8;
  margin: -1.35rem -1.35rem 1.1rem;
  padding: 1.35rem;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(23,36,31,.08);
  backdrop-filter: blur(12px);
}
.chapter-rail {
  position: sticky;
  top: 4.65rem;
  z-index: 7;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.65rem 0 0.85rem;
  margin: 0 -0.2rem 0.5rem;
  background: linear-gradient(180deg, rgba(255,253,248,.96), rgba(255,253,248,.82));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
}
.chapter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chapter-chip:hover { color: var(--ink); border-color: rgba(63,111,92,0.35); }
.chapter-chip.active {
  color: #12201b;
  background: var(--gold);
  border-color: transparent;
  font-weight: 600;
}
.chapter-stack { display: grid; gap: 0.75rem; padding-bottom: 1rem; }
.chapter-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.chapter-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1.05rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.chapter-toggle:hover { background: rgba(63,111,92,0.04); }
.chapter-index {
  font-family: var(--display);
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.chapter-title {
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}
.chapter-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.2rem;
}
.chapter-card.open .chapter-chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
.chapter-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.chapter-card.open .chapter-panel { grid-template-rows: 1fr; }
.chapter-body {
  overflow: hidden;
  padding: 0 1.05rem;
}
.chapter-card.open .chapter-body {
  padding: 0 1.05rem 1.1rem;
  border-top: 1px solid rgba(23,36,31,0.06);
}

.archive-shell {
  width: min(1120px, calc(100% - 2rem));
}
.archive-stage {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding-top: 1.25rem;
}
.archive-hero-card {
  position: sticky;
  top: 5.3rem;
  padding: 1.8rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,253,248,.94), rgba(248,239,223,.9)),
    radial-gradient(circle at 100% 0%, rgba(201,162,74,.18), transparent 40%);
}
.archive-hero-card h1 {
  margin: 0 0 .8rem;
  font-family: var(--serif-cn);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  letter-spacing: .1em;
  line-height: 1.25;
}
.archive-hero-card .lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.archive-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.2rem;
}
.archive-scroll-card {
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 26px;
  padding: 1.1rem;
}
.archive-scroll-head {
  position: sticky;
  top: -1.1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: -1.1rem -1.1rem 1rem;
  padding: 1.1rem;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(82, 67, 45, .1);
  backdrop-filter: blur(12px);
}
.archive-scroll-head h2 {
  margin: 0;
  font-family: var(--serif-cn);
  letter-spacing: .1em;
}
.status.compact {
  margin: 0;
  white-space: nowrap;
}
.history-list { display: grid; gap: 0.85rem; }
.history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(82, 67, 45, .12);
  border-radius: 16px;
  background: rgba(255,253,248,.7);
}
.archive-record {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1.05rem;
  background:
    linear-gradient(135deg, rgba(255,253,248,.92), rgba(248,241,229,.78)),
    radial-gradient(circle at 100% 0%, rgba(201,162,74,.14), transparent 42%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.archive-record:hover {
  transform: translateY(-2px);
  border-color: rgba(122,78,39,.24);
  box-shadow: 0 16px 36px rgba(88, 55, 28, .09);
}
.archive-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #6f421c;
  color: #fff6e4;
  font-family: var(--serif-cn);
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.history-item:last-child { border-bottom: 1px solid rgba(82, 67, 45, .12); }
.history-item h3 {
  margin: 0.2rem 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}
.history-item h3 a { color: inherit; }
.history-item .sub { margin: 0; color: var(--muted); font-size: 0.9rem; }
.history-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; flex-shrink: 0; justify-content: flex-end; }
.empty-hint { margin: 0.5rem 0; color: var(--muted); line-height: 1.7; }

/* 个人中心 / 工作台 */
.account-body .app-main { display: none; }
.account-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 3rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.account-side {
  position: sticky;
  top: 4.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 0.85rem;
  box-shadow: 0 12px 28px rgba(16,24,22,0.04);
}
.side-label {
  margin: 0.75rem 0.55rem 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.side-label:first-child { margin-top: 0.15rem; }
.side-link {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.92rem;
}
.side-link:hover { background: rgba(63,111,92,0.08); }
.side-link.active {
  background: rgba(63,111,92,0.12);
  color: var(--jade);
  font-weight: 600;
}
.account-main { min-width: 0; display: grid; gap: 1rem; }
.profile-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 168px;
  background:
    linear-gradient(100deg, rgba(10,16,14,0.72), rgba(10,16,14,0.35)),
    url("/static/assets/section-mist.jpg") center / cover no-repeat;
  color: #fff;
}
.profile-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,12,10,0.55), transparent 70%);
  pointer-events: none;
}
.profile-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.4rem;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.profile-avatar img { width: 42px; height: 42px; }
.profile-meta { flex: 1; min-width: 180px; }
.profile-meta h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
}
.profile-meta p { margin: 0.25rem 0 0; color: rgba(247,250,248,0.82); font-size: 0.92rem; }
.profile-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  font-size: 0.82rem !important;
  color: rgba(247,250,248,0.66) !important;
}
.workbench-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.wb-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 24px rgba(16,24,22,0.04);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.wb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(63,111,92,0.35);
}
.wb-label { margin: 0; color: var(--muted); font-size: 0.86rem; }
.wb-value {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.wb-value.wb-text { font-size: 1.35rem; color: var(--jade); }
.account-panel .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.account-panel .panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}
.account-panel .panel-head p,
.account-panel .panel-head a {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.shortcut-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.shortcut-item:hover { border-color: rgba(63,111,92,0.35); background: #f7faf8; }
.shortcut-item strong { color: var(--ink); font-size: 0.98rem; }
.shortcut-item span { color: var(--muted); font-size: 0.82rem; }
.medal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.medal {
  text-align: center;
  padding: 1rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.medal.off { opacity: 0.45; filter: grayscale(0.4); }
.medal-seal {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: #12201b;
  background: radial-gradient(circle at 30% 30%, #e0c789, #c9a24a 65%, #8d7130);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.medal.off .medal-seal {
  background: #d5dbd7;
  color: #6a756f;
  box-shadow: none;
}
.medal h3 {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--display);
}
.medal p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-art { min-height: 240px; }
  .feature-grid, .score-row, .cast-box, .grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .site-header { gap: .75rem; padding-inline: 1.25rem; }
  .scroll-rail { display: none; }
  .hero-layout { width: min(620px, 100%); grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-photo { background-position: 68% center; }
  .story-grid, .daily-layout { grid-template-columns: 1fr; gap: 3rem; }
  .story-copy { max-width: 680px; }
  .daily-layout .story-copy { grid-row: 1; }
  .daily-card { grid-row: 2; }
  .hexagram-art { right: -8vw; width: 38vw; }
  .account-shell { grid-template-columns: 1fr; }
  .account-side { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .side-label { width: 100%; }
  .workbench-grid, .shortcut-grid, .medal-row { grid-template-columns: 1fr 1fr; }
  .birth-date-grid { grid-template-columns: repeat(2, 1fr); }
  .bazi-create-stage, .archive-stage { grid-template-columns: 1fr; }
  .bazi-side-note { border-left: 0; border-top: 1px solid rgba(122,78,39,.18); }
  .archive-hero-card { position: static; }
  .app-header { display: grid; grid-template-columns: 1fr auto; padding: 0.7rem 1rem; }
  .app-header .brand-link { min-width: 0; }
  .app-nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }
  .app-nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
  .app-nav {
    display: none;
    grid-column: 1 / -1;
    padding: 0.65rem 0 0.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .app-header.nav-open .app-nav { display: grid; }
  .app-nav a, .app-nav button { text-align: center; padding: 0.65rem 0.5rem; }
}
@media (max-width: 560px) {
  .feature-grid, .score-row, .cast-box, .grid, .footer-grid { grid-template-columns: 1fr; }
  .birth-date-grid { grid-template-columns: 1fr; }
  .birth-scroll-window .grid:first-child { grid-template-columns: 1fr; }
  .archive-record { grid-template-columns: 1fr; }
  .archive-seal { width: 44px; height: 44px; }
  .site-header { min-height: 64px; padding: .55rem 1rem; }
  .brand-link img { width: 36px; height: 36px; }
  .brand-link img.header-logo { width: 40px; height: 40px; }
  .brand-link .name { font-size: 1.15rem; }
  .nav-actions > *:not(:last-child) { display: none; }
  .btn-outline-white { min-height: 42px; padding: .55rem .85rem; font-size: .84rem; }
  .hero-photo { min-height: 100svh; padding: 6.5rem 1rem 7.5rem; background-position: 60% center; }
  .hero-veil { background: linear-gradient(90deg, rgba(248,243,233,.86), rgba(248,243,233,.54) 76%, transparent); }
  .hero-copy h1 { font-size: clamp(2.65rem, 11.5vw, 3.5rem); line-height: 1.2; }
  .hero-slogan br { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .landing-primary,
  .hero-actions .landing-text-link { width: 100%; }
  .hero-trust { justify-content: center; }
  .hero-trust p { font-size: .68rem; }
  .trust-seals span { width: 30px; height: 30px; }
  .hero-feature-strip { min-height: 68px; gap: .25rem; padding: 0 .35rem; }
  .hero-feature-strip a { min-width: 0; flex: 1; min-height: 44px; font-size: .9rem; letter-spacing: .04em; }
  .hero-feature-strip i { width: 3px; height: 3px; }
  .story-panel { padding: 6rem 1rem 4.5rem; }
  .story-copy h2,
  .ask-inner h2,
  .section-heading h2 { font-size: clamp(2.25rem, 9.6vw, 3.2rem); }
  .story-points li { align-items: flex-start; }
  .story-actions { align-items: stretch; flex-direction: column; }
  .story-actions a { width: 100%; }
  .report-preview { border-radius: 22px; padding: 1rem; }
  .pillars { gap: .35rem; }
  .pillars div { padding: .75rem .25rem; }
  .pillars strong, .pillars em { font-size: 1.3rem; }
  .ask-control { align-items: stretch; flex-direction: column; border-radius: 22px; padding: .6rem; }
  .ask-control input { width: 100%; }
  .ask-control .landing-primary { width: 100%; }
  .daily-card { padding: 1.5rem; }
  .landing-section { padding: 5rem 1rem; }
  .feature-card-wide { grid-column: auto; }
  .feature-card { min-height: 230px; border-radius: 20px; }
  .letter-actions { align-items: stretch; flex-direction: column; }
  .letter-actions a { width: 100%; }
  .workbench-grid, .shortcut-grid, .medal-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .astrolabe,
  .ring-middle,
  .hero-scroll svg { animation: none; }
  .landing-primary,
  .landing-secondary,
  .feature-card,
  .card-link b { transition: none; }
}
.commerce-shell { max-width: 1100px; margin: 0 auto; padding-bottom: 64px; }
.recharge-shell { max-width: 1160px; }
.docs-shell { max-width: 980px; margin: 0 auto; padding-bottom: 64px; }
.recharge-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(18px, 4vw, 36px);
  align-items: stretch;
  padding: clamp(34px, 6vw, 62px);
  border: 1px solid rgba(130, 92, 45, .18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 8%, rgba(210, 144, 55, .22), transparent 32%),
    radial-gradient(circle at 18% 18%, rgba(255, 245, 221, .9), transparent 36%),
    linear-gradient(135deg, rgba(255, 252, 244, .95), rgba(246, 229, 199, .86));
  box-shadow: 0 28px 80px rgba(75, 53, 31, .12);
}
.recharge-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.36) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,.42), transparent 68%);
}
.recharge-hero-copy,
.recharge-balance-card {
  position: relative;
  z-index: 1;
}
.recharge-hero-copy h1 {
  margin: 8px 0 14px;
  color: #2f2119;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  letter-spacing: .1em;
}
.recharge-hero-copy > p:last-of-type {
  width: min(660px, 100%);
  color: #665949;
  font-size: 1.03rem;
  line-height: 1.85;
}
.recharge-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.recharge-balance-card {
  display: grid;
  align-content: center;
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(185, 130, 47, .28);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,248,234,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 22px 60px rgba(104, 68, 28, .11);
}
.recharge-balance-card span {
  color: #9b6a28;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
.recharge-balance-card strong {
  margin: 8px 0 10px;
  color: #4d2b1d;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: .95;
}
.recharge-balance-card p {
  margin: 0;
  color: #6c5b48;
  line-height: 1.65;
}
.recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 22px;
  align-items: start;
}
.package-panel { min-width: 0; }
.recharge-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}
.selected-plan {
  padding: 18px;
  border: 1px solid rgba(185, 130, 47, .24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,248,232,.95), rgba(255,255,255,.78));
}
.selected-plan span {
  color: #9b6a28;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.selected-plan strong {
  display: block;
  margin: 8px 0;
  color: #2f2119;
  font-size: 18px;
}
.selected-plan p {
  margin: 0;
  color: #6b5b49;
  line-height: 1.6;
}
.recharge-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: recharge-step;
}
.recharge-steps li {
  counter-increment: recharge-step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 14px;
  border: 1px solid rgba(126, 96, 55, .1);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
}
.recharge-steps li::before {
  content: counter(recharge-step);
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5a3524;
  color: #fff8ed;
  font-size: 13px;
  font-weight: 700;
}
.recharge-steps strong { color: #2f2119; }
.recharge-steps span { color: #706253; font-size: 13px; line-height: 1.5; }
.compact-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: clamp(42px, 7vw, 72px) 24px clamp(30px, 5vw, 46px);
  text-align: center;
  border: 1px solid rgba(82, 67, 45, .14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .92), rgba(235, 243, 235, .82)),
    url("/static/assets/section-forest.jpg") center / cover;
  box-shadow: 0 24px 70px rgba(45, 55, 43, .11);
}
.compact-hero::after {
  content: "";
  position: absolute;
  inset: auto 10% -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157,118,43,.65), transparent);
}
.compact-hero h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: .12em;
}
.compact-hero > p:last-child {
  width: min(620px, 100%);
  margin: 0 auto;
  color: #5f665d;
  line-height: 1.75;
}
.commerce-panel { margin-top: 22px; }
.docs-panel { margin-top: 22px; }
.docs-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}
.docs-summary article {
  padding: 18px 20px;
  border: 1px solid rgba(82, 67, 45, .14);
  border-radius: 18px;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 14px 34px rgba(45, 55, 43, .06);
}
.docs-summary span {
  color: #8a734f;
  font-size: 12px;
  letter-spacing: .12em;
}
.docs-summary strong {
  display: block;
  margin: 8px 0 6px;
  color: #315846;
  font-size: 20px;
}
.docs-summary p { margin: 0; color: var(--muted); line-height: 1.55; }
.docs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: docs-step; }
.docs-steps li {
  counter-increment: docs-step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(126, 96, 55, .08);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(126, 96, 55, .07), rgba(255,255,255,.54));
}
.docs-steps li::before {
  content: counter(docs-step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--jade);
  color: #fff;
  font-size: 13px;
}
.docs-steps strong { color: var(--ink); }
.docs-steps span { color: var(--muted); line-height: 1.6; }
.docs-faq details { background: rgba(255,255,255,.78); box-shadow: 0 10px 24px rgba(45,55,43,.04); }
.cost-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.cost-grid article {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(126, 86, 44, .15);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 239, .96), rgba(255, 255, 255, .7));
}
.cost-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cinnabar), var(--gold));
}
.cost-grid span {
  display: block;
  color: #8a5c2a;
  font-size: 12px;
  letter-spacing: .08em;
}
.cost-grid strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--ink);
  font-family: var(--serif-cn);
  font-size: 20px;
}
.cost-grid small {
  color: var(--muted);
  line-height: 1.5;
}
.balance-strip, .entitlement-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.balance-strip article, .entitlement-row article { border: 1px solid rgba(82, 67, 45, .16); background: rgba(255, 253, 248, .86); border-radius: 18px; padding: 18px 22px; box-shadow: 0 12px 30px rgba(45,55,43,.06); }
.balance-strip span, .entitlement-row span { color: #675d4e; margin-right: 12px; }
.balance-strip strong, .entitlement-row strong { color: #7d3f27; font-size: 28px; }
.balance-strip small, .entitlement-row small { margin-left: 4px; color: #827668; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card {
  border: 1px solid rgba(82, 67, 45, .16);
  border-radius: 22px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,251,242,.9));
  box-shadow: 0 18px 42px rgba(45,55,43,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card { position: relative; cursor: pointer; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(45,55,43,.11); }
.product-card.recommended { border-color: rgba(157,118,43,.55); box-shadow: 0 22px 54px rgba(80,58,27,.12); }
.product-card.selected {
  border-color: rgba(125, 63, 39, .55);
  box-shadow: 0 24px 62px rgba(125, 63, 39, .13);
}
.product-card.selected::after {
  content: "已选";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(90, 53, 36, .92);
  color: #fff8ed;
  font-size: 12px;
  font-weight: 700;
}
.recommend-badge { position: absolute; top: 18px; right: 18px; padding: 4px 9px; border-radius: 999px; background: #8c6827; color: #fff; font-size: 12px; }
.product-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 58px; }
.product-card h3 { margin: 4px 0 10px; }
.product-card > p:not(.product-kicker) { min-height: 48px; color: #6d6458; }
.product-kicker { margin: 0; color: #9b6c42; font-size: 12px; letter-spacing: .14em; }
.product-point-badge { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: rgba(63,111,92,.1); color: #315846; font-size: 13px; font-weight: 700; }
.product-benefits { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: #5d554b; font-size: 14px; }
.product-benefits li::before { content: "✓"; margin-right: 8px; color: var(--jade); font-weight: 700; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.product-foot > div { display: grid; gap: 4px; }
.product-foot strong { color: #7d3f27; font-size: 26px; }
.product-foot small { color: #7f7567; }
.purchase-unavailable { color: #8c8275; font-size: 13px; }
.commerce-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.trust-strip span { padding: 12px; border: 1px solid rgba(63,111,92,.17); border-radius: 12px; background: rgba(255,255,255,.65); text-align: center; color: #52665d; font-size: 14px; }
.purchased-head { margin: 36px 4px -8px; }
.purchased-head h2 { margin: 4px 0 8px; }
.purchased-head > p:last-child { color: var(--muted); }
.commerce-columns .panel { display: flex; flex-direction: column; gap: 16px; }
.order-list { display: grid; gap: 10px; }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 10px; background: rgba(126, 96, 55, .06); }
.order-item div { display: grid; gap: 4px; }
.order-item span { color: #776e62; font-size: 13px; }
.order-status { border-radius: 999px; padding: 6px 10px; font-weight: 600; }
.order-status.pending { background: #fff0ca; color: #795919; }
.order-status.approved { background: #dff3df; color: #28622d; }
.order-status.rejected { background: #f6dddd; color: #7c2929; }
@media (max-width: 760px) {
  .product-grid, .commerce-columns { grid-template-columns: 1fr; }
  .recharge-hero, .recharge-layout { grid-template-columns: 1fr; }
  .recharge-side { position: static; }
  .cost-grid { grid-template-columns: 1fr; }
  .balance-strip, .entitlement-row { grid-template-columns: 1fr; }
  .docs-summary { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .commerce-shell { padding-left: 14px; padding-right: 14px; }
  .compact-hero { border-radius: 22px; }
  .product-foot { align-items: stretch; flex-direction: column; }
  .product-foot .btn-primary { text-align: center; }
  .report-interactive { max-height: none; overflow-y: visible; }
  .report-interactive .report-head { position: static; margin: 0 0 1rem; padding: 0; background: transparent; border-bottom: 0; }
  .chapter-rail { top: 0; }
  .history-item { align-items: flex-start; flex-direction: column; }
  .history-actions { width: 100%; justify-content: flex-start; }
  .history-actions a, .history-actions button { flex: 1 1 auto; text-align: center; }
}
[hidden] { display: none !important; }
