/* ============================================================
   道通天下 The Way Archive — Design System v2
   「漆与金」：漆底为纸，金不作大面积使用——只落在
   印章、数字、细线与光标经过的地方。文字本身才是主角。
   ============================================================ */

:root {
  /* ground */
  --bg:        #14100A;
  --bg-2:      #1A140D;
  --surface:   #201911;
  --surface-2: #261E14;
  --deep:      #0D0A06;

  /* text — warm ivory ramp, AA on every tier */
  --text:   #EFE6D0;
  --text-2: #CCC0A6;
  --text-3: #A2957B;

  /* gold — accent only */
  --gold:      #D9A84E;
  --gold-hi:   #F0D089;
  --gold-dim:  #7E6230;
  --gold-wash: rgba(217, 168, 78, .10);

  /* cinnabar — the seal colour, used once per view at most */
  --cinnabar:     #A8402A;
  --cinnabar-hi:  #C4553B;

  /* lines */
  --line:        rgba(217, 168, 78, .13);
  --line-strong: rgba(217, 168, 78, .30);
  --hairline:    rgba(239, 230, 208, .08);

  --gold-ink: #191207;

  --pad-x: clamp(20px, 5vw, 76px);
  --maxw:  1340px;
  --head-h: 64px;

  --serif:   "Newsreader", "Noto Serif SC", Georgia, serif;
  --sans:    "Instrument Sans", "Noto Sans SC", system-ui, sans-serif;
  --serif-zh:"Noto Serif SC", "Newsreader", serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 极淡的漆面丝理，去掉会显得塑料 */
  background-image:
    radial-gradient(1200px 600px at 85% -5%, rgba(217, 168, 78, .05), transparent 60%),
    repeating-linear-gradient(0deg, rgba(239, 230, 208, .012) 0 1px, transparent 1px 4px);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(217, 168, 78, .32); color: #FFF9EA; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 12px; z-index: 300;
  background: var(--gold); color: var(--gold-ink);
  padding: 10px 16px; font-size: 14px; border-radius: 2px;
}
.skip:focus { left: 12px; }

/* 中文界面：标题用宋体骨架，去西文的负字距 */
html[data-lang="zh"] .display,
html[data-lang="zh"] .h2,
html[data-lang="zh"] .h3 { font-family: var(--serif-zh); letter-spacing: .015em; }

/* ============================ 字阶 ============================ */

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.04; letter-spacing: -0.022em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(29px, 3.3vw, 44px);
  line-height: 1.14; letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; }
.lede  { max-width: 640px; font-size: 17.5px; color: var(--text-2); }
.small { font-size: 13.5px; }
.meta  { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.mono  { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .03em; }
.muted { color: var(--text-3); }

.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold-dim); }
.kicker.center { justify-content: center; }
.kicker.center::before { display: none; }

/* 唯一的鎏金签名：只给一句话 */
.gild {
  background: linear-gradient(102deg, #F7E9C0 0%, var(--gold-hi) 42%, var(--gold) 64%, #C19540 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-hi);
}

/* ============================ 骨架 ============================ */

.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding: clamp(72px, 9vw, 118px) 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(36px, 4.5vw, 56px); }
.split {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(36px, 6vw, 88px); align-items: start;
}

/* ============================ 页头 ============================ */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 16, 10, .82);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.site-head .shell {
  height: var(--head-h);
  display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.seal-box {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 2px;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 58%, #A87E36);
  color: var(--gold-ink);
  font-family: var(--serif-zh); font-size: 19px; line-height: 1;
  box-shadow: 0 3px 14px -4px rgba(217, 168, 78, .55);
}
.brand-lockup { display: grid; gap: 2px; line-height: 1.1; }
.brand-name { font-family: var(--serif-zh); font-size: 18px; font-weight: 500; letter-spacing: .06em; }
.brand-domain { font-size: 8.5px; font-weight: 600; letter-spacing: .22em; color: var(--text-3); }

.site-nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.site-nav a {
  font-size: 13.5px; color: var(--text-2);
  padding: 6px 0; position: relative; white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.is-here { color: var(--gold-hi); }

.head-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; color: var(--text-2);
  transition: color .18s ease, border-color .18s ease;
}
.lang-toggle:hover { color: var(--gold-hi); border-color: var(--gold-dim); }

.menu-btn {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: none; padding: 0; place-items: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 16px; height: 1px; background: var(--text); position: relative;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after  { top: 5px; }

/* 移动端全屏目录 */
.mobile-nav {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 90;
  background: rgba(13, 10, 6, .97);
  display: grid; align-content: start; gap: 4px;
  padding: 28px var(--pad-x) 48px;
  transform: translateY(-6px); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
body.nav-open .mobile-nav { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--serif-zh); font-size: 24px;
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-nav a .n { font-family: var(--sans); font-size: 12px; color: var(--text-3); letter-spacing: .14em; }
.mobile-nav a:hover { color: var(--gold-hi); }

/* ============================ 按钮 ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 2px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(165deg, var(--gold-hi), var(--gold) 55%, #BE9040);
  color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 214, .28), 0 10px 30px -12px rgba(217, 168, 78, .5);
}
.btn-gold:hover { box-shadow: inset 0 0 0 1px rgba(255, 244, 214, .45), 0 14px 36px -10px rgba(217, 168, 78, .65); }

.btn-quiet { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--gold-dim); color: var(--gold-hi); }

.btn-ghost-dark { background: rgba(13, 10, 6, .5); color: var(--text); border-color: rgba(239, 230, 208, .22); }
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold-hi); }

.btn-lg { padding: 16px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }

.link-gold { color: var(--gold-hi); font-weight: 600; border-bottom: 1px solid transparent; }
.link-gold:hover { border-bottom-color: var(--gold-dim); }
.link-quiet { font-weight: 500; }
.link-quiet:hover { color: var(--gold-hi); }

/* ============================ HERO ============================ */

.hero {
  position: relative; overflow: hidden;
  min-height: min(94vh, 880px);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 6vw, 72px);
}
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% top;
  /* 收一收饱和与亮度，让画面退成「底色」，文字才是前景 */
  filter: saturate(.92) brightness(.94);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(92deg, rgba(20, 16, 10, .96) 0%, rgba(20, 16, 10, .82) 30%, rgba(20, 16, 10, .38) 58%, rgba(20, 16, 10, .12) 82%),
    linear-gradient(0deg, var(--bg) 0%, rgba(20, 16, 10, 0) 30%),
    linear-gradient(180deg, rgba(20, 16, 10, .55) 0%, rgba(20, 16, 10, 0) 24%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 44px 1fr;
  gap: clamp(26px, 4vw, 58px); align-items: start;
}
.spine {
  font-family: var(--serif-zh); font-weight: 300;
  font-size: 21px; line-height: 2; text-align: center;
  color: var(--gold-hi); text-shadow: 0 0 16px rgba(217, 168, 78, .4);
  border-left: 1px solid rgba(217, 168, 78, .35);
  padding-top: 8px;
}
.hero-copy { display: grid; gap: 26px; justify-items: start; max-width: 780px; }
.hero-zh-line {
  font-family: var(--serif-zh); font-weight: 300;
  font-size: clamp(18px, 1.9vw, 26px);
  letter-spacing: .3em; color: var(--text-2);
}
.hero-sub { max-width: 600px; font-size: 18.5px; color: var(--text-2); }
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-meta {
  position: relative; z-index: 1;
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.hero-meta span { display: flex; align-items: center; gap: 28px; }
.hero-meta span + span::before { content: "·"; color: var(--gold-dim); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .spine { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
  .hero-copy > *:nth-child(1) { animation-delay: .04s; }
  .hero-copy > *:nth-child(2) { animation-delay: .13s; }
  .hero-copy > *:nth-child(3) { animation-delay: .22s; }
  .hero-copy > *:nth-child(4) { animation-delay: .31s; }
  .spine { animation-delay: .1s; }
  .hero-art img { opacity: 0; animation: breathe 1.5s .08s ease forwards; }
  @keyframes rise    { to { opacity: 1; transform: none; } }
  @keyframes breathe { to { opacity: 1; } }
}

/* ============================ 馆藏目录（首页 TOC） ============================ */

.toc { width: 100%; border-top: 1px solid var(--line-strong); }
.toc-row {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: baseline; gap: clamp(14px, 2.5vw, 32px);
  padding: clamp(20px, 2.6vw, 28px) 6px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color .18s ease;
}
.toc-row::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.toc-row:hover { background: var(--gold-wash); }
.toc-row:hover::before { transform: scaleY(1); }
.toc-idx {
  font-family: var(--serif-zh); font-weight: 300;
  font-size: 15px; color: var(--gold); letter-spacing: 0;
}
.toc-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.toc-title .zh { font-family: var(--serif-zh); font-size: clamp(21px, 2.2vw, 27px); font-weight: 400; }
.toc-title .en { font-family: var(--serif); font-size: clamp(16px, 1.6vw, 19px); color: var(--text-3); font-style: italic; }
.toc-note { font-size: 13px; color: var(--text-3); text-align: right; max-width: 320px; }
.toc-note .count { color: var(--gold); font-family: var(--serif); font-size: 14px; }

/* ============================ 馆藏页 ============================ */

.coll-head { padding: clamp(52px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--hairline); position: relative; }
.coll-head .shell { position: relative; }
.coll-num {
  position: absolute; right: 0; top: -0.18em;
  font-family: var(--serif-zh); font-weight: 300;
  font-size: clamp(120px, 17vw, 240px); line-height: 1;
  color: rgba(217, 168, 78, .055); pointer-events: none; user-select: none;
}
.coll-head .display { max-width: 20ch; }
.coll-head .lede { margin-top: 20px; }
.coll-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.coll-next {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line-strong);
  flex-wrap: wrap;
}

.cat-section { margin-top: clamp(40px, 5vw, 60px); }
.cat-section:first-of-type { margin-top: 0; }
.cat-section h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-section h2 .en { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--text-3); }

.catalogue { width: 100%; border-top: 1px solid var(--line-strong); }
.cat-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: clamp(12px, 2vw, 28px);
  align-items: baseline;
  padding: 19px 6px; border-bottom: 1px solid var(--line);
  transition: background-color .16s ease;
}
.cat-row:hover { background: var(--gold-wash); }
.cat-idx { font-family: var(--serif); font-size: 13px; color: var(--gold-dim); }
.cat-body { display: grid; gap: 3px; min-width: 0; }
.cat-zh { font-family: var(--serif-zh); font-size: 18.5px; font-weight: 400; }
.cat-en { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--text-3); }
.cat-side { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.cat-era { font-size: 12.5px; color: var(--text-3); }

.tag {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-3);
}
.tag-open { color: #D8B36A; border-color: rgba(217, 168, 78, .45); background: rgba(217, 168, 78, .08); }
.tag-member { color: var(--text-2); }

/* ============================ 阅读页 ============================ */

.reader-head { padding: clamp(48px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--hairline); }
.reader-head .display { font-size: clamp(34px, 4.6vw, 62px); }
.reader-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; }

.reader {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 0 clamp(26px, 4vw, 56px);
  padding: clamp(40px, 5vw, 64px) 0;
}
.reader .rule-v { background: var(--line); width: 1px; }
.reading { display: grid; gap: 22px; align-content: start; }
.reading .label { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.reading.en p { font-family: var(--serif); font-size: 19.5px; line-height: 1.85; color: var(--text); }
.reading.zh p { font-family: var(--serif-zh); font-size: 19px; line-height: 2.15; color: var(--text-2); letter-spacing: .02em; }
.reading .note { font-size: 13.5px; color: var(--text-3); font-family: var(--sans); line-height: 1.7; }

/* 中文优先模式：中文列在前 */
html[data-lang="zh"] .reader { direction: rtl; }
html[data-lang="zh"] .reader > * { direction: ltr; }

/* 术语小注 */
.glossary { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 12px; }
.gl {
  background: var(--bg); padding: 20px 22px;
  display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: baseline;
}
.gl .term { font-family: var(--serif-zh); font-size: 19px; color: var(--gold-hi); }
.gl .term small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.gl p { font-size: 15px; color: var(--text-2); }

@media (max-width: 640px) {
  .gl { grid-template-columns: 1fr; gap: 8px; }
}

/* 锁章 */
.lockwell {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 340px at 78% 18%, rgba(217, 168, 78, .12), transparent 62%),
    var(--surface);
  padding: clamp(36px, 5vw, 64px);
  display: grid; gap: 18px; justify-items: start;
}
.lockwell .seal-water {
  position: absolute; right: -30px; bottom: -40px;
  font-family: var(--serif-zh); font-size: clamp(160px, 22vw, 280px);
  line-height: 1; color: rgba(168, 64, 42, .12);
  pointer-events: none; user-select: none;
}
.lockwell h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px); }
.lockwell p { max-width: 560px; color: var(--text-2); font-size: 15.5px; }
.locked-list { width: 100%; border-top: 1px solid var(--line); margin-top: 10px; }
.locked-list div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--text-3);
}
.locked-list .zh { font-family: var(--serif-zh); color: var(--text-2); }

/* ============================ 会员 ============================ */

.hall {
  background:
    radial-gradient(1100px 520px at 80% 0%, rgba(217, 168, 78, .13), transparent 60%),
    #1D150B;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.hall-grid { display: grid; grid-template-columns: 1.1fr minmax(320px, 460px); gap: clamp(40px, 6vw, 90px); align-items: start; }
.price { display: flex; align-items: flex-end; gap: 16px; }
.price-num { font-family: var(--serif); font-size: clamp(64px, 7vw, 96px); line-height: .95; letter-spacing: -.03em; color: var(--text); }
.price-note { padding-bottom: 12px; }

.includes { list-style: none; display: grid; gap: 14px; }
.includes li { display: flex; gap: 14px; font-size: 15px; color: var(--text-2); }
.includes li::before { content: "—"; color: var(--gold); flex: none; }

.checkout-panel {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(239, 230, 208, .03), rgba(239, 230, 208, 0) 40%), var(--bg-2);
  padding: clamp(26px, 3.4vw, 40px);
  display: grid; gap: 16px; justify-items: start;
}
.checkout-panel .cp-head { display: flex; justify-content: space-between; width: 100%; align-items: baseline; }
.trust { font-size: 12.5px; color: var(--text-3); }
.pay-strip {
  width: 100%; display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 12px; border: 1px dashed var(--line-strong);
  font-size: 12px; color: var(--text-3); letter-spacing: .06em;
}

/* 对比表 */
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.compare td:first-child { color: var(--text-2); }
.compare .yes { color: var(--gold-hi); }
.compare .no  { color: var(--text-3); opacity: .7; }
.compare tr.member-col { color: var(--text); }
.compare th:last-child, .compare td:last-child { color: var(--gold-hi); }

/* ============================ FAQ / 关于 ============================ */

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 4px;
  font-family: var(--serif); font-size: 18.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 20px; color: var(--gold); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 24px; max-width: 680px; color: var(--text-2); font-size: 15px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.duo .col-head { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.duo .is-head   { color: var(--gold-hi); }
.duo .isnt-head { color: var(--text-3); }
.duo li { list-style: none; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; color: var(--text-2); }

/* ============================ 收尾 CTA / 页脚 ============================ */

.final {
  text-align: center; display: grid; gap: 22px; justify-items: center;
  padding: clamp(76px, 10vw, 128px) 0;
  background:
    radial-gradient(820px 400px at 50% 118%, rgba(217, 168, 78, .16), transparent 64%),
    var(--bg-2);
  border-top: 1px solid var(--hairline);
}

.site-foot { background: var(--deep); border-top: 1px solid var(--hairline); padding: 60px 0 36px; }
.foot-top {
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(150px, max-content));
  gap: clamp(28px, 4vw, 64px);
}
.foot-brand { display: grid; gap: 12px; justify-items: start; align-content: start; }
.foot-name { font-family: var(--serif-zh); font-size: 22px; }
.foot-zh { font-size: 13.5px; color: var(--text-3); max-width: 300px; }
.foot-col { display: grid; gap: 11px; justify-items: start; align-content: start; }
.foot-col .foot-head { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.foot-col a { font-size: 13.5px; color: var(--text-2); }
.foot-col a:hover { color: var(--gold-hi); }
.foot-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #867D63;
}

/* ============================ 登录页 ============================ */

.auth-wrap {
  min-height: calc(100vh - var(--head-h));
  display: grid; grid-template-columns: 1fr 1fr;
}
.auth-aside {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 20% 110%, rgba(217, 168, 78, .14), transparent 60%),
    #1D150B;
  border-right: 1px solid var(--hairline);
  padding: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 80px);
  display: grid; align-content: space-between;
}
.auth-aside blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; max-width: 22ch; }
.auth-aside cite { display: block; margin-top: 18px; font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.auth-main { display: grid; place-items: center; padding: 56px var(--pad-x); }
.auth-card { width: min(400px, 100%); display: grid; gap: 22px; justify-items: start; }
.auth-card form { width: 100%; display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.field input {
  font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 13px 14px; width: 100%;
  transition: border-color .18s ease, background-color .18s ease;
}
.field input:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
.divider { width: 100%; text-align: center; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.auth-note { font-size: 13px; color: var(--text-3); max-width: 400px; }

/* ============================ 试读版面 ============================ */

.plate {
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(760px 360px at 88% 4%, rgba(217, 168, 78, .09), transparent 62%),
    var(--surface);
  padding: clamp(28px, 3.6vw, 44px);
  display: grid; gap: 20px;
}
.plate-head { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.plate-head .src { font-size: 12.5px; color: var(--text-3); }
.plate blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2.1vw, 25px); line-height: 1.62;
  color: var(--text);
}
.plate .zh-line {
  font-family: var(--serif-zh); font-weight: 300;
  font-size: clamp(17px, 1.8vw, 20px); line-height: 1.9;
  letter-spacing: .12em; color: var(--text-2);
}
.plate .hair { border: 0; height: 1px; background: var(--line); }
.plate .lock-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.plate .lock-row p { font-size: 14px; color: var(--text-3); max-width: 46ch; }

/* ============================ 动效 ============================ */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================ 响应式 ============================ */

@media (max-width: 1060px) {
  .hall-grid, .split { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .site-nav { display: none; }
  .menu-btn { display: grid; }
  .head-actions .btn { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .reader { grid-template-columns: 1fr; gap: 40px; }
  .reader .rule-v { display: none; }
}
@media (max-width: 640px) {
  .hero { min-height: 92vh; }
  .hero-art img { object-position: 70% top; }
  .hero-inner { grid-template-columns: 1fr; }
  .spine { display: none; }
  .toc-row { grid-template-columns: 44px 1fr; }
  .toc-note { grid-column: 2; text-align: left; max-width: none; }
  .cat-row { grid-template-columns: 1fr; gap: 8px; }
  .cat-side { justify-content: flex-start; }
  .duo { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 30px; }
  .btn-block-sm { width: 100%; }
}
