/*
 * 爻动万象 · 玄夜版品牌系统
 * 方向：现代东方、夜观天象、产品化排盘终端
 */
:root {
  --bg: #0b0b0a;
  --bg2: #11110f;
  --bg3: #1a1814;
  --paper: #171612;
  --ink: #f1e9da;
  --ink2: #aaa08f;
  --ink3: #6e685e;
  --red: #dc4b31;
  --red2: #f05c3e;
  --gold: #c6a46b;
  --gold2: #e0bf81;
  --border: rgba(230, 216, 190, .11);
  --border2: rgba(230, 216, 190, .22);
  --shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 10%, rgba(220,75,49,.12), transparent 30%),
    radial-gradient(circle at 10% 48%, rgba(198,164,107,.055), transparent 28%),
    #0b0b0a;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .27;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 82%);
}

::selection { background: var(--red); color: #fff; }
.wrap, .nav-in, .foot-in, .foot-legal { max-width: 1200px; }

/* Navigation */
nav {
  height: 76px;
  background: rgba(11,11,10,.76);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}
.nav-in { padding: 0 clamp(1.25rem, 4vw, 3rem); }
.nav-logo { color: var(--ink); letter-spacing: .22em; font-size: 1rem; }
.seal {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: var(--red);
  box-shadow: 8px 8px 0 rgba(220,75,49,.12);
}
.nav-links { gap: 2.4rem; }
.nav-links a { color: var(--ink2); font-size: .8rem; letter-spacing: .14em; position: relative; }
.nav-links a::before { content: ''; position: absolute; left: 0; bottom: -.7rem; width: 0; height: 1px; background: var(--red); transition: width .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::before { width: 100%; }
.btn-sm {
  padding: .58rem 1.25rem;
  border-radius: 0;
  background: var(--ink);
  color: #111;
  font-weight: 700;
  box-shadow: none;
}
.btn-sm:hover { color: #fff; background: var(--red2); }

/* Buttons */
.btn { border-radius: 0; transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease; }
.btn-primary {
  padding: 1rem 2.15rem;
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 40px rgba(220,75,49,.22);
  border: 1px solid var(--red);
}
.btn-primary:hover { background: var(--red2); transform: translateY(-3px); box-shadow: 0 20px 45px rgba(220,75,49,.3); }
.btn-ghost {
  padding: 1rem 1.8rem;
  color: var(--ink);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold2); transform: translateY(-3px); }

/* Hero */
.hero {
  min-height: 940px;
  padding: 10rem clamp(1.25rem,4vw,3rem) 8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  width: min(55vw, 760px);
  aspect-ratio: 1;
  right: -5vw;
  top: 10%;
  border: 1px solid rgba(198,164,107,.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(198,164,107,.024),
    0 0 0 150px rgba(198,164,107,.017),
    inset 0 0 100px rgba(220,75,49,.035);
}
.hero::after {
  content: '䷍';
  position: absolute;
  left: -2.5rem;
  bottom: -7rem;
  color: rgba(241,233,218,.025);
  font-size: 28rem;
  line-height: 1;
}
.hero-in {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  position: relative;
  z-index: 2;
}
.hero-copy { text-align: left; position: relative; }
.hero-kicker {
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  font: .7rem/1.2 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .28em;
}
.hero-kicker::before { content: ''; width: 3.4rem; height: 1px; background: var(--red); }
.hero h1 {
  margin: 0 0 1.8rem;
  font-size: clamp(5rem, 9.2vw, 8.4rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: .02em;
  text-indent: 0;
  color: var(--ink);
}
.hero h1 span { display: block; }
.hero h1 .hero-accent { color: var(--red); margin-left: .72em; }
.hero-rule { display: none; }
.hero-tag {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  letter-spacing: .18em;
  text-indent: 0;
}
.hero-lead {
  max-width: 31rem;
  margin: 0 0 2.25rem;
  color: var(--ink2);
  font-size: .94rem;
  line-height: 2.1;
}
.hero-cta { justify-content: flex-start; gap: .75rem; }
.hero-meta { margin: 1.35rem 0 0; color: var(--ink3); text-align: left; letter-spacing: .16em; }
.hero-proof { display: flex; gap: 1.3rem; margin-top: 2rem; color: var(--ink2); font-size: .72rem; letter-spacing: .08em; }
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.hero-visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.hero-visual::before {
  content: '';
  position: absolute;
  width: 68%;
  height: 78%;
  right: 0;
  top: 5%;
  background: var(--red);
  opacity: .82;
  transform: rotate(7deg);
}
.hero-visual::after {
  content: 'SIX LINES / AI INTERPRETATION';
  position: absolute;
  right: -4.4rem;
  top: 47%;
  transform: rotate(90deg);
  color: rgba(255,255,255,.45);
  font: .62rem ui-monospace, Menlo, monospace;
  letter-spacing: .28em;
}
.oracle-card {
  width: min(100%, 450px);
  min-height: 620px;
  padding: 1.2rem;
  position: relative;
  z-index: 2;
  background: #151511;
  border: 1px solid rgba(241,233,218,.2);
  border-radius: 30px;
  box-shadow: var(--shadow), inset 0 0 0 7px #090908;
  transform: rotate(-3deg);
  overflow: hidden;
}
.oracle-screen { min-height: 580px; padding: 1.4rem 1.3rem; border-radius: 20px; background: linear-gradient(155deg,#1b1a16,#0f0f0d); border: 1px solid var(--border); }
.oracle-top { color: #6e685e; padding-bottom: 1rem; border-bottom: 1px solid rgba(230,216,190,.11); font-size: .66rem; }
.oracle-question { margin-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.oracle-question span:first-child { color: #aaa08f; font-size: .72rem; letter-spacing: .14em; }
.oracle-question b { color: var(--red); font-size: .72rem; letter-spacing: .12em; }
.hero-visual .gua { margin: 3.6rem 0 3.1rem; gap: 13px; align-items: stretch; }
.hero-visual .yao { width: 100%; height: 6px; background: #f1e9da; opacity: .88; animation-name: yao-dark; }
.hero-visual .yao.yin { background: linear-gradient(90deg,#f1e9da 0 40%,transparent 40% 60%,#f1e9da 60%); }
@keyframes yao-dark { from { opacity: 0; transform: scaleX(.15); } to { opacity: .88; transform: scaleX(1); } }
.oracle-title { color: #f1e9da; font-size: 1.75rem; letter-spacing: .24em; }
.oracle-sub { color: #aaa08f; margin-top: .65rem; }
.oracle-insight { margin-top: 2rem; padding: 1.15rem; background: rgba(220,75,49,.09); border-left: 2px solid var(--red); }
.oracle-insight-label { color: var(--red); font-size: .65rem; letter-spacing: .18em; margin-bottom: .5rem; }
.oracle-insight p { color: #aaa08f; font-size: .76rem; line-height: 1.8; }
.oracle-foot { margin-top: 1.7rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.oracle-foot span { color: var(--gold); border-color: var(--border); }
.hero-stamp {
  left: .65rem;
  bottom: .8rem;
  width: 92px;
  height: 92px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  padding: 11px;
  background:
    radial-gradient(circle at 9% 16%, rgba(241,233,218,.2) 0 1.5px, transparent 2px),
    radial-gradient(circle at 88% 72%, rgba(241,233,218,.18) 0 2px, transparent 2.6px),
    linear-gradient(135deg, #d7462e, #a9281e);
  color: #f8efe1;
  border: 2px solid #b93224;
  outline: 1px solid rgba(248,239,225,.78);
  outline-offset: -7px;
  font-family: 'Noto Serif SC', 'FZKai-Z03', 'KaiTi', serif;
  font-weight: 900;
  line-height: 1;
  box-shadow: 10px 12px 0 rgba(0,0,0,.28), 0 14px 34px rgba(0,0,0,.24);
  transform: rotate(-5deg);
  filter: saturate(.92) contrast(1.08);
}
.hero-stamp::before,
.hero-stamp::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.hero-stamp::before { inset: 4px; border: 1px solid rgba(248,239,225,.92); }
.hero-stamp::after {
  inset: 0;
  opacity: .35;
  background:
    linear-gradient(91deg, transparent 0 12%, rgba(86,14,10,.38) 12.5% 13.5%, transparent 14% 100%),
    linear-gradient(4deg, transparent 0 83%, rgba(248,239,225,.25) 84% 85%, transparent 86% 100%);
}
.hero-stamp span {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  font-size: .82rem;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(83,14,8,.3);
}
.hero-stamp span:nth-child(odd) { border-right: 1px solid rgba(248,239,225,.72); }
.hero-stamp span:nth-child(-n+2) { border-bottom: 1px solid rgba(248,239,225,.72); }
.hero-stamp .stamp-ai { font: 800 .72rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .08em; }

/* Metrics */
.stats {
  max-width: 1200px;
  margin: -2.8rem auto 0;
  position: relative;
  z-index: 4;
  background: #0e0e0c;
  border: 1px solid var(--border);
  border-left: 5px solid var(--red);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.stat { padding: 2rem 1rem; border-color: var(--border); }
.stat-num { color: var(--ink); font-size: 2rem; }
.stat-label { color: var(--ink3); }

/* Editorial section system */
.block { padding: clamp(6rem, 11vw, 10rem) 0; overflow: hidden; }
.block-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 2.2rem; margin-bottom: 4.5rem; }
.block-head .eyebrow { grid-row: 1 / span 2; padding-top: .8rem; }
.eyebrow { color: var(--red); font: .68rem ui-monospace, Menlo, monospace; letter-spacing: .35em; }
.sec-title { color: var(--ink); font-size: clamp(2rem, 4.8vw, 3.8rem); line-height: 1.28; letter-spacing: .05em; }
.sec-title::after { content: ''; display: block; width: 4rem; height: 2px; background: var(--red); margin-top: 1.5rem; }
.sec-lead { color: var(--ink2); max-width: 44rem; margin-top: 1.3rem; }

#methods::before, #paipan::before, #ai::before, #bazi::before {
  position: absolute;
  right: 2vw;
  top: 2rem;
  color: rgba(241,233,218,.025);
  font: 900 clamp(10rem,24vw,22rem)/1 ui-monospace, Menlo, monospace;
}
#methods::before { content: '01'; }
#paipan::before { content: '02'; }
#ai::before { content: '03'; }
#bazi::before { content: '04'; }

.methods {
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
}
.method { min-height: 290px; padding: 2.2rem; background: var(--paper); position: relative; }
.method::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--red); transition: width .28s ease; }
.method:hover { background: #1c1a16; transform: translateY(-7px); box-shadow: 0 24px 55px rgba(0,0,0,.28); z-index: 2; }
.method:hover::after { width: 100%; }
.method-no { color: var(--red); font-size: .7rem; }
.method-name { color: var(--ink); margin-top: 3.2rem; font-size: 1.3rem; }
.method-desc { color: var(--ink2); }

.split { grid-template-columns: .9fr 1.1fr; gap: clamp(3rem,8vw,8rem); }
.chart {
  background: #0c0c0b;
  border: 1px solid var(--border2);
  border-radius: 0;
  padding: clamp(1.8rem,4vw,3rem);
  box-shadow: 24px 24px 0 rgba(220,75,49,.12);
}
.chart:hover { transform: translate(-5px,-5px); box-shadow: 34px 34px 0 rgba(220,75,49,.16); }
.chart-top { border-color: var(--border); }
.chart-name, .frow-t, .step-t { color: var(--ink); }
.chart-palace, .crow .meta { color: var(--gold); }
.crow .liuqin { color: var(--ink2); }
.cy { background: var(--ink); }
.cy.yin { background: linear-gradient(90deg,var(--ink) 0 40%,transparent 40% 60%,var(--ink) 60%); }
.terms { gap: .65rem; }
.term { border-radius: 0; border-color: var(--border2); background: transparent; color: var(--ink2); }

.feat-2col { gap: 1px; background: var(--border); border: 1px solid var(--border); }
.feat-2col > div { background: var(--paper); padding: 0 2rem; }
.frow { padding: 2.1rem 0; border-color: var(--border); }
.frow-ic { width: 3rem; height: 3rem; border-radius: 0; background: transparent; border: 1px solid var(--red); color: var(--red); }
.frow-d { color: var(--ink2); }

/* Bazi chart */
.bazi-showcase {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: stretch;
}
.bazi-chart {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #0c0c0b;
  border: 1px solid var(--border2);
  box-shadow: 24px 24px 0 rgba(220,75,49,.12);
}
.bazi-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.bazi-chart-head div { display: grid; gap: .3rem; }
.bazi-chart-head span { color: var(--ink3); font: .65rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .2em; }
.bazi-chart-head strong { color: var(--ink); font-size: 1.15rem; letter-spacing: .16em; }
.bazi-chart-head .bazi-badge { padding: .38rem .62rem; color: var(--red); border: 1px solid rgba(220,75,49,.45); letter-spacing: .12em; }
.bazi-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 1.6rem; background: var(--border); border: 1px solid var(--border); }
.bazi-pillar { min-width: 0; padding: 1rem .5rem 1.15rem; text-align: center; background: var(--paper); position: relative; }
.bazi-pillar.focus::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); }
.pillar-label { display: block; color: var(--ink3); font-size: .68rem; letter-spacing: .16em; }
.bazi-pillar small { display: block; margin: .45rem 0 .7rem; color: var(--gold); font-size: .7rem; font-weight: 400; }
.bazi-pillar strong { display: grid; gap: .25rem; color: var(--ink); font-size: clamp(1.55rem, 3.2vw, 2.25rem); line-height: 1.05; }
.bazi-pillar strong i, .bazi-pillar strong b { font-style: normal; font-weight: 700; }
.bazi-pillar strong i { color: var(--red); }
.bazi-pillar em { display: block; min-height: 1.5em; margin-top: .75rem; color: var(--ink3); font-size: .62rem; font-style: normal; white-space: nowrap; }
.bazi-elements { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-top: 1.5rem; }
.bazi-elements span { color: var(--ink2); font-size: .66rem; letter-spacing: .08em; }
.bazi-elements b { display: block; width: 100%; height: 3px; margin-top: .55rem; background: linear-gradient(90deg, var(--gold) var(--level), var(--border) var(--level)); }
.bazi-fates { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.bazi-fates span { display: grid; gap: .25rem; color: var(--ink3); font-size: .64rem; text-align: center; }
.bazi-fates em { color: var(--ink); font-size: .8rem; font-style: normal; letter-spacing: .1em; }
.bazi-capabilities { display: flex; flex-direction: column; border-top: 1px solid var(--border2); }
.bazi-cap { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--border); }
.bazi-cap > span { padding-top: .25rem; color: var(--red); font: .65rem/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; }
.bazi-cap h3 { color: var(--ink); font-size: 1rem; letter-spacing: .08em; }
.bazi-cap p { margin-top: .45rem; color: var(--ink2); font-size: .78rem; line-height: 1.85; }
.bazi-link { display: inline-flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 1.05rem 1.25rem; color: #fff; background: var(--red); font-size: .86rem; letter-spacing: .12em; transition: background .2s ease, transform .2s ease; }
.bazi-link:hover { background: var(--red2); transform: translateX(5px); }

.steps { border: 0; border-top: 1px solid var(--border2); background: transparent; gap: 2.8rem; overflow: visible; }
.step { background: transparent; padding: 2.4rem 0; }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 3rem; height: 3px; background: var(--red); }
.step-no { color: rgba(241,233,218,.08); font-size: 4.5rem; }
.step-d { color: var(--ink2); }

.quote-block { max-width: 760px; }
.quote-mark { color: var(--red); opacity: 1; }
.quote-block blockquote { color: var(--ink); font-size: clamp(1.5rem,4vw,2.4rem); line-height: 1.8; }
.quote-intro { color: var(--ink2); }

.faq { max-width: 900px; }
.faq details { border-color: var(--border); padding: 1.7rem 0; }
.faq summary { color: var(--ink); font-size: 1.05rem; }
.faq summary .q-mark, .faq summary .plus { color: var(--red); }
.faq .ans { color: var(--ink2); max-width: 720px; }
.faq .ans a { color: var(--red); border-bottom: 1px solid currentColor; }

/* CTA + Footer */
.cta { background: var(--ink); color: #111; overflow: hidden; }
.cta::before { content: '䷍'; position: absolute; left: 3vw; top: 50%; transform: translateY(-50%); color: rgba(11,11,10,.06); font-size: 20rem; }
.cta-in { position: relative; z-index: 1; padding: clamp(6rem,10vw,9rem) 1.5rem; }
.cta h2 { color: #111; font-size: clamp(2.2rem,6vw,4.5rem); }
.cta p { color: #494237; }
.cta .btn-light { border-radius: 0; background: var(--red); color: #fff; box-shadow: none; }
.cta .btn-light:hover { background: #111; color: #fff; }
.cta-note a { color: inherit; border-bottom: 1px solid currentColor; }
footer { background: #080807; border-color: var(--border); }
.foot-brand { color: var(--ink); }
.foot-by, .foot-links a { color: var(--ink2); }
.foot-links a:hover { color: var(--red); }
.foot-legal { border-color: var(--border); color: var(--ink3); }

/* Legal pages inherit the dark brand */
.legal-page { padding: 5rem 1.2rem; background: var(--bg) !important; color: var(--ink) !important; }
.legal-page .container { max-width: 780px !important; background: var(--paper) !important; border: 1px solid var(--border) !important; border-radius: 0 !important; box-shadow: var(--shadow) !important; padding: clamp(2rem,6vw,4.5rem) !important; }
.legal-page h1, .legal-page h2, .legal-page h3 { color: var(--ink) !important; }
.legal-page p, .legal-page li { color: var(--ink2) !important; }
.legal-page .meta { color: var(--ink3) !important; }
.legal-page .divider { background: var(--border) !important; height: 1px !important; }
.legal-page .back { color: var(--red) !important; }

/* 固定暖白主题 */
html[data-theme='light'] {
  --bg: #f5f1e8;
  --bg2: #eee7da;
  --bg3: #e3dacb;
  --paper: #fbf8f1;
  --ink: #1c1914;
  --ink2: #61594d;
  --ink3: #918675;
  --red: #c9432c;
  --red2: #df5035;
  --gold: #9b753d;
  --gold2: #b58b4c;
  --border: rgba(54, 42, 27, .12);
  --border2: rgba(54, 42, 27, .22);
  --shadow: 0 30px 80px rgba(62, 45, 23, .14);
  background: #f5f1e8;
  color-scheme: light;
}
html[data-theme='light'] body { background: var(--bg); color: var(--ink); }
html[data-theme='light'] body::before {
  background:
    radial-gradient(circle at 78% 10%, rgba(201,67,44,.10), transparent 30%),
    radial-gradient(circle at 10% 48%, rgba(155,117,61,.08), transparent 28%),
    #f5f1e8;
}
html[data-theme='light'] body::after {
  opacity: .48;
  background-image:
    linear-gradient(rgba(54,42,27,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54,42,27,.045) 1px, transparent 1px);
}
html[data-theme='light'] nav { background: rgba(245,241,232,.82); }
html[data-theme='light'] .btn-sm { background: #1c1914; color: #fff; }
html[data-theme='light'] .hero::after { color: rgba(28,25,20,.035); }
html[data-theme='light'] .hero::before { border-color: rgba(155,117,61,.2); box-shadow: 0 0 0 70px rgba(155,117,61,.035),0 0 0 150px rgba(155,117,61,.022),inset 0 0 100px rgba(201,67,44,.045); }
html[data-theme='light'] .oracle-card {
  background: #e5dccd;
  border-color: rgba(54,42,27,.24);
  box-shadow: 0 30px 75px rgba(62,45,23,.18), inset 0 0 0 7px #d1c5b4;
}
html[data-theme='light'] .oracle-screen {
  background: linear-gradient(155deg,#fffdf8,#f0e9dc);
  border-color: rgba(54,42,27,.14);
}
html[data-theme='light'] .oracle-top { color: #8a806f; border-color: rgba(54,42,27,.12); }
html[data-theme='light'] .oracle-question span:first-child { color: #61594d; }
html[data-theme='light'] .hero-visual .yao { background: #2b261f; }
html[data-theme='light'] .hero-visual .yao.yin { background: linear-gradient(90deg,#2b261f 0 40%,transparent 40% 60%,#2b261f 60%); }
html[data-theme='light'] .oracle-title { color: #1c1914; }
html[data-theme='light'] .oracle-sub { color: #61594d; }
html[data-theme='light'] .oracle-insight { background: rgba(201,67,44,.075); }
html[data-theme='light'] .oracle-insight p { color: #61594d; }
html[data-theme='light'] .oracle-foot { border-color: rgba(54,42,27,.12); }
html[data-theme='light'] .oracle-foot span { border-color: rgba(54,42,27,.12); color: #8d6935; }
html[data-theme='light'] .stats { background: rgba(251,248,241,.94); box-shadow: 0 22px 60px rgba(62,45,23,.1); }
html[data-theme='light'] .method { background: var(--paper); }
html[data-theme='light'] .method:hover { background: #fff; box-shadow: 0 24px 55px rgba(62,45,23,.12); }
html[data-theme='light'] .feat-2col > div { background: var(--paper); }
html[data-theme='light'] .chart { background: var(--paper); box-shadow: 24px 24px 0 rgba(201,67,44,.12); }
html[data-theme='light'] .chart:hover { box-shadow: 34px 34px 0 rgba(201,67,44,.16); }
html[data-theme='light'] .bazi-chart { background: var(--paper); box-shadow: 24px 24px 0 rgba(201,67,44,.12); }
html[data-theme='light'] .bazi-pillar { background: #f7f1e6; }
html[data-theme='light'] #methods::before,
html[data-theme='light'] #paipan::before,
html[data-theme='light'] #ai::before,
html[data-theme='light'] #bazi::before { color: rgba(28,25,20,.035); }
html[data-theme='light'] .step-no { color: rgba(28,25,20,.09); }
html[data-theme='light'] .cta { background: #1c1914; color: #f5f1e8; }
html[data-theme='light'] .cta::before { color: rgba(245,241,232,.04); }
html[data-theme='light'] .cta h2 { color: #f5f1e8; }
html[data-theme='light'] .cta p { color: #b9ae9d; }
html[data-theme='light'] .cta .btn-light:hover { background: #f5f1e8; color: #1c1914; }
html[data-theme='light'] footer { background: #e8e0d2; }
html[data-theme='light'] .legal-page { background: var(--bg) !important; }

html[data-theme='dark'] { color-scheme: dark; }

@media (max-width: 1020px) {
  .hero { min-height: auto; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: min(100%,650px); margin: 0 auto; }
  .methods { grid-template-columns: 1fr 1fr; }
  .bazi-showcase { grid-template-columns: 1fr; }
  .bazi-capabilities { min-height: 480px; }
}

@media (max-width: 760px) {
  nav { height: 64px; }
  .nav-links { display: none; }
  .hero { padding: 8.5rem 1.2rem 6rem; }
  .hero::after { font-size: 16rem; }
  .hero h1 { font-size: clamp(4.2rem,22vw,6rem); }
  .hero h1 .hero-accent { margin-left: .55em; }
  .hero-tag { font-size: .92rem; line-height: 1.8; }
  .hero-lead br { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-proof { flex-wrap: wrap; }
  .hero-visual { min-height: 570px; }
  .hero-visual::before { width: 82%; height: 72%; right: -5%; top: 10%; }
  .hero-visual::after { display: none; }
  .oracle-card { width: min(92%,400px); min-height: 540px; padding: .9rem; }
  .oracle-screen { min-height: 510px; }
  .hero-visual .gua { margin: 2.8rem 0 2.5rem; }
  .hero-stamp { width: 74px; height: 74px; padding: 9px; left: .25rem; bottom: 1.2rem; }
  .hero-stamp span { font-size: .65rem; }
  .hero-stamp .stamp-ai { font-size: .58rem; }
  .stats { margin-top: 0; }
  .block-head { grid-template-columns: 1fr; }
  .block-head .eyebrow { grid-row: auto; padding: 0; }
  .methods { grid-template-columns: 1fr; }
  .method { min-height: 230px; }
  .split { grid-template-columns: 1fr; }
  .feat-2col { grid-template-columns: 1fr; }
  .feat-2col > div { padding: 0 1.3rem; }
  .bazi-chart { padding: 1.1rem; box-shadow: 14px 14px 0 rgba(220,75,49,.12); }
  html[data-theme='light'] .bazi-chart { box-shadow: 14px 14px 0 rgba(201,67,44,.12); }
  .bazi-pillar { padding: .85rem .25rem 1rem; }
  .bazi-pillar strong { font-size: 1.6rem; }
  .bazi-pillar em { font-size: .55rem; letter-spacing: -.02em; }
  .bazi-capabilities { min-height: 0; }
  .bazi-link { margin-top: 1.2rem; }
}

@media (max-width: 440px) {
  .nav-logo { letter-spacing: .12em; }
  .nav-in .btn-sm { padding: .5rem .78rem; font-size: .72rem; }
  .hero h1 { font-size: 4rem; }
  .hero-visual { min-height: 535px; }
  .oracle-title { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1; transform: none; transition: none; }
  .yao { animation: none !important; opacity: .88 !important; }
  .method, .chart, .btn, .nav-links a::before { transition: none; }
}
