/* ============================================================
   逆旅 NILV · 官网设计系统 v6
   「夜行帖 · 戏折」—— 墨黑×灯火金（夜行） / 宣纸×墨字×印泥朱（宣纸）
   结构线用文武线（粗+细双规），强调用钤印逻辑：深色灯火金、浅色印泥朱。
   ============================================================ */

:root {
  /* —— 夜行（深色） —— */
  --bg: #0a0a10;
  --bg-2: #0d0d15;
  --bg-3: #12121b;
  --surface: rgba(236, 231, 216, 0.028);
  --surface-2: rgba(236, 231, 216, 0.055);
  --line: rgba(236, 231, 216, 0.11);
  --line-strong: rgba(236, 231, 216, 0.22);
  --rule: rgba(236, 231, 216, 0.28);          /* 文武线 */
  --text: #ece7d8;
  --text-2: #b3ac9a;
  --muted: #7c766a;
  --accent: #d9a558;            /* 灯火金 */
  --accent-bright: #f0cd8a;
  --accent-deep: #a97b2e;
  --seal: #c8553a;              /* 朱砂印 */
  --seal-ink: #f6efe0;          /* 印面字色 */
  --jade: #7fbfa0;
  --amber: #e0b05c;
  --red: #cf5b40;
  --numeral: #ecc987;           /* 大数字 */
  --btn-primary-bg: #d9a558;
  --btn-primary-fg: #241a06;
  --btn-primary-bg-hover: #f0cd8a;
  --shadow: 0 30px 70px -32px rgba(0, 0, 0, 0.85);
  --grain-opacity: 0.05;
  --grain-blend: screen;
  --header-bg: rgba(10, 10, 16, 0.78);
  --footer-bg: #07070c;
  --hero-scrim: 10, 10, 16;
  --card-shadow: none;

  /* —— 本地字体：宋体 / 黑体 / 楷体沿用夜行帖字排，不发起字体网络请求 —— */
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --latin: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", "Songti SC", serif;
  --brush: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif CJK SC", "Songti SC", serif;

  --radius: 8px;
  --radius-s: 5px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  /* —— 宣纸（浅色） —— */
  --bg: #f3eee1;
  --bg-2: #ece5d2;
  --bg-3: #e5dcc5;
  --surface: rgba(255, 252, 243, 0.72);
  --surface-2: rgba(255, 253, 246, 0.92);
  --line: rgba(42, 34, 18, 0.16);
  --line-strong: rgba(42, 34, 18, 0.3);
  --rule: rgba(42, 34, 18, 0.42);
  --text: #241f13;
  --text-2: #524b39;
  --muted: #867c64;
  --accent: #b23f28;            /* 印泥朱 */
  --accent-bright: #96341f;
  --accent-deep: #8a6512;
  --seal: #b23f28;
  --seal-ink: #f8f2e2;
  --jade: #2f7d5c;
  --red: #b23f28;
  --numeral: #7c5a10;           /* 深金数字 */
  --btn-primary-bg: #262013;    /* 墨按钮 */
  --btn-primary-fg: #f3eee1;
  --btn-primary-bg-hover: #b23f28;  /* 钤印：墨落朱显 */
  --shadow: 0 24px 55px -30px rgba(74, 56, 24, 0.4);
  --grain-opacity: 0.5;
  --grain-blend: multiply;
  --header-bg: rgba(243, 238, 225, 0.85);
  --footer-bg: #1e1910;
  --hero-scrim: 243, 238, 225;
  --card-shadow: 0 2px 16px -8px rgba(74, 56, 24, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

/* 宣纸肌理：全站极淡噪点 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

::selection { background: rgba(200, 85, 58, 0.32); color: #fff; }
:root[data-theme="light"] ::selection { background: rgba(178, 63, 40, 0.22); color: #241f13; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 0; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ---------- 版式骨架 ---------- */
.container { width: min(1200px, 92vw); margin: 0 auto; }
.container-wide { width: min(1380px, 94vw); margin: 0 auto; }

.section { padding: clamp(88px, 12vh, 150px) 0; position: relative; }
.section-tight { padding: 64px 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 文武线：粗上规 + 细下规 */
.rule-double {
  height: 7px;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ---------- 字排 ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; }

.h1 { font-size: clamp(42px, 6.8vw, 92px); line-height: 1.16; font-weight: 900; letter-spacing: 0.04em; }
.h2 { font-size: clamp(29px, 4vw, 50px); line-height: 1.28; font-weight: 700; letter-spacing: 0.03em; }
.h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; }

.lead { font-size: clamp(15.5px, 1.4vw, 18px); color: var(--text-2); line-height: 2.05; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* 强调：夜行用灯火金，宣纸用印泥朱。纯色，不用渐变。 */
.gold-text, .em { font-style: normal; color: var(--accent); }

/* 着重号 · 用于标题中最关键的一词（古典着重号：字下点） */
.em-dots {
  font-style: normal;
  -webkit-text-emphasis: filled dot var(--accent);
  text-emphasis: filled dot var(--accent);
  -webkit-text-emphasis-position: under right;
  text-emphasis-position: under right;
}

/* 拉丁与数字 */
.lat, .num, .numbers .v, .step .no, .case-meta b, .hero-stats .num, .scene-card .price b {
  font-family: var(--latin);
}

/* ---------- 眉批（kicker） ---------- */
.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--seal);
  border-radius: 1px;
  transform: rotate(45deg) translateY(-1px);
  align-self: center;
  flex-shrink: 0;
}
.kicker i, .kicker .lat {
  font-style: normal;
  font-family: var(--latin);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 区块题眼印章 ---------- */
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vh, 68px); position: relative; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin: 18px 0 16px; }
.section-head p { color: var(--text-2); }

.section-head[data-seal]::before {
  content: attr(data-seal);
  position: absolute;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--brush);
  font-size: 30px;
  line-height: 1;
  color: var(--seal-ink);
  background: var(--seal);
  border-radius: 7px;
  transform: rotate(-2.5deg);
  box-shadow:
    inset 0 0 0 2.5px rgba(246, 239, 224, 0.34),
    inset 0 0 0 4px var(--seal),
    inset 0 0 14px rgba(60, 8, 0, 0.28),
    0 10px 24px -12px rgba(150, 52, 24, 0.55);
  opacity: 0;
  transform: rotate(-7deg) scale(1.18);
  transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
}
.section-head[data-seal].visible::before,
.section-head[data-seal]:not(.reveal)::before {
  opacity: 1;
  transform: rotate(-2.5deg);
}
.section-head:not(.center)[data-seal] { padding-left: 76px; min-height: 52px; }
.section-head:not(.center)[data-seal]::before { left: 0; top: 0; }
.section-head.center[data-seal] { padding-top: 72px; }
.section-head.center[data-seal]::before { left: 50%; margin-left: -26px; top: 0; }

/* CTA 印章 */
.cta-box[data-seal]::before {
  content: attr(data-seal);
  position: absolute;
  top: 28px;
  left: 50%;
  width: 52px; height: 52px;
  margin-left: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--brush);
  font-size: 30px;
  line-height: 1;
  color: var(--seal-ink);
  background: var(--seal);
  border-radius: 7px;
  transform: rotate(-2.5deg);
  box-shadow:
    inset 0 0 0 2.5px rgba(246, 239, 224, 0.34),
    inset 0 0 0 4px var(--seal),
    inset 0 0 14px rgba(60, 8, 0, 0.28),
    0 10px 24px -12px rgba(150, 52, 24, 0.55);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.35s, border-color 0.35s, color 0.35s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
}
:root:not([data-theme="light"]) .btn-primary { color: #241a06; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 13px; letter-spacing: 0.1em; }
.btn-block { width: 100%; }

/* ---------- 徽记与标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  background: transparent;
}
.badge .dot { width: 6px; height: 6px; border-radius: 1px; background: var(--seal); transform: rotate(45deg); }
.badge.green .dot { background: var(--jade); }
.badge.red .dot { background: var(--red); }

.tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.12em;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--serif);
}

/* ---------- 卡片 · 折笺 ---------- */
.card {
  position: relative;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.5s var(--ease), border-color 0.35s, background 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 1px;
  background: var(--line-strong);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  margin-bottom: 24px;
  transition: border-color 0.35s, color 0.35s;
}
.card:hover .icon { border-color: var(--accent); }
.card .icon svg { width: 21px; height: 21px; }

.card h3 { margin-bottom: 12px; letter-spacing: 0.02em; }
.card p { color: var(--text-2); font-size: 14.5px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-family: var(--serif);
  font-weight: 600;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1380px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--seal);
  display: grid;
  place-items: center;
  font-family: var(--brush);
  font-size: 25px;
  line-height: 1;
  color: var(--seal-ink);
  transform: rotate(-2.5deg);
  box-shadow:
    inset 0 0 0 2px rgba(246, 239, 224, 0.32),
    inset 0 0 0 3.5px var(--seal),
    inset 0 0 12px rgba(60, 8, 0, 0.3),
    0 8px 20px -8px rgba(150, 52, 24, 0.6);
  transition: transform 0.5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(0deg) scale(1.04); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-family: var(--serif); font-size: 19px; letter-spacing: 0.3em; font-weight: 700; }
.logo-text span { font-size: 9px; letter-spacing: 0.42em; color: var(--muted); text-transform: uppercase; font-family: var(--latin); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 13px;
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.06em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  bottom: 2px;
  width: 5px;
  height: 5px;
  background: var(--seal);
}
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span { width: 17px; height: 1.6px; background: var(--text); transition: 0.35s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 5vw 30px;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; animation: menuIn 0.4s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
  padding: 13px 10px;
  font-size: 16px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* 文字区底气：保证可读 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--hero-scrim), 0.5) 0%, rgba(var(--hero-scrim), 0) 26%, rgba(var(--hero-scrim), 0) 52%, rgba(var(--hero-scrim), 0.72) 78%, var(--bg) 99%),
    radial-gradient(58vw 60vh at 30% 46%, rgba(var(--hero-scrim), 0.5), transparent 68%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1380px, 94vw);
  margin: 0 auto;
  padding-top: calc(var(--nav-h) + 4vh);
  padding-bottom: 5vh;
  text-align: left;
}
.hero-badge { margin-bottom: 30px; animation: fadeUp 1s var(--ease) 0.15s both; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .line { display: block; animation: fadeUp 1.1s var(--ease) both; }
.hero h1 .line:nth-child(1) { animation-delay: 0.25s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.4s; }
.hero .lead { max-width: 560px; margin: 0 0 40px; animation: fadeUp 1.1s var(--ease) 0.55s both; }
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; animation: fadeUp 1.1s var(--ease) 0.7s both; }

/* 竖排引文 · 李白 */
.hero-side {
  position: absolute;
  right: max(3vw, calc((100vw - 1380px) / 2));
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: 0.42em;
  line-height: 2.3;
  color: var(--muted);
  display: flex;
  gap: 16px;
  max-height: 46vh;
  animation: fadeUp 1.4s var(--ease) 1s both;
}
.hero-side em { font-style: normal; color: var(--accent); }
.hero-side .who { font-size: 11px; letter-spacing: 0.4em; color: var(--muted); opacity: 0.8; }

.hero-stats {
  position: relative;
  z-index: 2;
  width: min(1380px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--rule);
  animation: fadeUp 1.1s var(--ease) 0.85s both;
}
.hero-stats .stat { padding: 22px 12px 26px; text-align: center; position: relative; }
.hero-stats .stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.hero-stats .num { font-size: clamp(24px, 2.6vw, 34px); color: var(--numeral); line-height: 1.2; font-weight: 600; }
.hero-stats .num sub, .hero-stats .num sup { font-size: 0.5em; }
.hero-stats .label { font-size: 12px; color: var(--muted); letter-spacing: 0.14em; margin-top: 7px; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.42em;
  writing-mode: vertical-rl;
  animation: fadeUp 1s var(--ease) 1.3s both;
}
.scroll-cue .mouse {
  width: 1px;
  height: 42px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 0;
  width: 1px;
  height: 30%;
  background: var(--accent);
  animation: dropline 2s ease-in-out infinite;
}
@keyframes dropline { 0% { top: -30%; } 70%, 100% { top: 110%; } }

/* ---------- 内页 Hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(64px, 10vh, 110px)) 0 clamp(56px, 8vh, 90px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 380px at 18% -10%, rgba(200, 85, 58, 0.07), transparent 60%),
    radial-gradient(700px 400px at 88% 0%, rgba(217, 165, 88, 0.06), transparent 60%);
}
:root[data-theme="light"] .page-hero .bg-glow {
  background:
    radial-gradient(760px 380px at 18% -10%, rgba(178, 63, 40, 0.06), transparent 60%),
    radial-gradient(700px 400px at 88% 0%, rgba(138, 101, 18, 0.07), transparent 60%);
}
/* 巨型题字水印 */
.page-hero::before {
  content: attr(data-glyph);
  position: absolute;
  right: -2vw;
  bottom: -0.32em;
  font-family: var(--brush);
  font-size: clamp(200px, 30vw, 430px);
  line-height: 1;
  color: var(--text);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumbs { font-size: 12px; letter-spacing: 0.24em; color: var(--muted); margin-bottom: 22px; font-family: var(--serif); }
.page-hero .crumbs a { color: var(--muted); transition: color 0.3s; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .h1 { font-size: clamp(34px, 5vw, 64px); margin-bottom: 20px; }
.page-hero .lead { max-width: 680px; }

/* ---------- 戏目跑马灯 ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 64px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee-item i { width: 5px; height: 5px; background: var(--seal); transform: rotate(45deg); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 图文对分 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.split + .split { margin-top: clamp(72px, 10vh, 120px); }
.split .visual { position: relative; }
.split .copy .kicker { margin-bottom: 18px; }
.split .copy .h2 { margin-bottom: 20px; }
.split .copy p { color: var(--text-2); margin-bottom: 18px; }
.split.flip .visual { order: 2; }
.split .checklist { margin-top: 26px; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.checklist li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 5px; }
.checklist li b { color: var(--text); font-weight: 600; }

/* ---------- 产品 Mock 窗 ---------- */
.mock {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.mock::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
:root[data-theme="light"] .mock { background: var(--surface-2); }
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar .title { margin-left: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.16em; font-family: var(--serif); }
.mock-body { padding: 26px; position: relative; z-index: 1; }

.canvas-node {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-3);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-2);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
:root[data-theme="light"] .canvas-node { background: var(--surface-2); }
.canvas-node b { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 2px; font-weight: 600; }
.canvas-node .n-tag { font-size: 10px; color: var(--accent); letter-spacing: 0.2em; font-family: var(--latin); font-weight: 600; }
.mock:hover .canvas-node.c1 { transform: translateY(-5px); }
.mock:hover .canvas-node.c3 { transform: translateY(-4px); }
.canvas-node.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 24px -14px rgba(0, 0, 0, 0.6); }
.canvas-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas-svg path { stroke: var(--line-strong); stroke-width: 1.2; fill: none; stroke-dasharray: 5 5; animation: dashmove 24s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -400; } }

/* 耳返对话 */
.ear-msg { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-end; }
.ear-msg .avatar {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--serif);
}
.ear-msg.ai .avatar { background: var(--seal); color: var(--seal-ink); transform: rotate(-2deg); }
.ear-msg.me .avatar { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }
.ear-msg .bubble {
  padding: 11px 16px;
  border-radius: 3px 12px 12px 12px;
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 82%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
}
.ear-msg.ai .bubble { border-color: var(--line-strong); color: var(--text); }
.ear-meta { display: flex; gap: 9px; margin-top: 6px; flex-wrap: wrap; }
.ear-chip {
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.06em;
}
.ear-chip.on { color: var(--jade); border-color: var(--jade); }
.wave { display: inline-flex; align-items: center; gap: 2.5px; height: 14px; margin-left: 8px; vertical-align: middle; }
.wave i { width: 2.5px; border-radius: 1px; background: var(--accent); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 6px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.wave i:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.wave i:nth-child(4) { height: 13px; animation-delay: 0.45s; }
.wave i:nth-child(5) { height: 5px; animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.15); } }

/* 匹配列表 */
.match-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 11px;
  background: var(--surface);
  transition: border-color 0.35s, transform 0.4s var(--ease);
}
.match-row:hover { border-color: var(--line-strong); transform: translateX(4px); }
.match-row .face {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--brush);
  color: var(--accent);
  font-size: 19px;
  flex-shrink: 0;
}
:root[data-theme="light"] .match-row .face { background: var(--bg-2); }
.match-row .info { flex: 1; min-width: 0; }
.match-row .info b { font-size: 13.5px; display: block; font-weight: 600; }
.match-row .info span { font-size: 11.5px; color: var(--muted); }
.match-row .score { font-family: var(--latin); color: var(--numeral); font-size: 17px; font-weight: 600; }
.match-row.picked { border-color: var(--jade); }
.match-row.picked .pick { color: var(--jade); }
.match-row .pick { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

/* ---------- 数 · 戏单带 ---------- */
.band {
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers .n { padding: clamp(34px, 4vw, 52px) 20px; text-align: center; position: relative; }
.numbers .n + .n::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line); }
.numbers .v { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; color: var(--numeral); font-weight: 600; letter-spacing: 0.02em; }
.numbers .v small { font-size: 0.4em; color: var(--muted); font-family: var(--serif); letter-spacing: 0.1em; margin-left: 5px; }
.numbers .k { font-size: 13.5px; color: var(--text); margin-top: 12px; letter-spacing: 0.1em; font-family: var(--serif); font-weight: 600; }
.numbers .s { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* ---------- 场景卡 · 戏折 ---------- */
.scene-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px 30px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.35s;
  display: flex;
  flex-direction: column;
}
.scene-card::after {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 1px;
  background: var(--line-strong);
  opacity: 0;
  transition: opacity 0.4s;
}
.scene-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.scene-card:hover::after { opacity: 1; }
.scene-card .glyph {
  font-family: var(--brush);
  font-size: 56px;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 22px;
}
.scene-card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: 0.02em; }
.scene-card p { font-size: 14px; color: var(--text-2); flex: 1; }
.scene-card .price {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.scene-card .price b { font-size: 20px; color: var(--numeral); font-weight: 600; }
.scene-card .price span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.scene-card.is-featured { border-color: var(--line-strong); }
.scene-card.is-featured::before {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: var(--seal);
  border-radius: 5px;
  transform: rotate(6deg);
  font-family: var(--brush);
  font-size: 21px;
  color: var(--seal-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(246, 239, 224, 0.32), inset 0 0 0 2.5px var(--seal), inset 0 0 10px rgba(60, 8, 0, 0.3);
}
.scene-card.is-featured[data-word]::before { content: attr(data-word); }

/* ---------- 知情分级 ---------- */
.tier-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 34px 30px;
  position: relative;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform 0.5s var(--ease), border-color 0.35s;
}
.tier-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.tier-card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; border-top: 3px solid; border-radius: var(--radius) var(--radius) 0 0; }
.tier-card.t-green::before { border-color: var(--jade); }
.tier-card.t-yellow::before { border-color: var(--accent); }
.tier-card.t-red::before { border-color: var(--red); }
.tier-card .t-label { font-family: var(--serif); font-size: 26px; margin: 14px 0 6px; letter-spacing: 0.08em; }
.tier-card.t-green .t-label { color: var(--jade); }
.tier-card.t-yellow .t-label { color: var(--accent); }
.tier-card.t-red .t-label { color: var(--red); }
.tier-card .t-en { font-size: 11px; letter-spacing: 0.3em; color: var(--muted); text-transform: uppercase; font-family: var(--latin); }
.tier-card p { font-size: 14px; color: var(--text-2); margin-top: 12px; }
.tier-card ul { margin-top: 18px; display: grid; gap: 9px; }
.tier-card ul li { font-size: 13px; color: var(--text-2); display: flex; gap: 9px; }
.tier-card ul li::before { content: "—"; color: var(--muted); flex-shrink: 0; }

/* ---------- 路线图 · 行旅 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--seal);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--bg);
}
.tl-item .t-phase { font-size: 12px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 7px; font-family: var(--serif); font-weight: 600; }
.tl-item h3 { font-size: 19px; margin-bottom: 8px; }
.tl-item p { font-size: 14px; color: var(--text-2); max-width: 560px; }

/* ---------- 步骤（真序列用汉字数） ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step .no {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.15;
  color: var(--accent);
  font-weight: 600;
  counter-increment: step;
}
.step .no::before { content: attr(data-han); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-2); max-width: 620px; }

/* ---------- 表 · 老戏单 ---------- */
.table-wrap {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  overflow: hidden;
  overflow-x: auto;
  background: var(--surface);
}
.table-wrap::before { content: none; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 15px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
th {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.1em;
  font-family: var(--serif);
  background: var(--bg-2);
  border-bottom: 2px solid var(--rule);
  white-space: nowrap;
}
td { color: var(--text-2); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.3s; }
tbody tr:hover { background: var(--surface-2); }
td b { color: var(--text); font-weight: 600; }

/* ---------- 诗句 ---------- */
.quote-band { text-align: center; position: relative; overflow: hidden; }
.quote-band .poem {
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.7;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.quote-band .poem em { font-style: normal; color: var(--accent); }
.quote-band .src { margin-top: 24px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.34em; font-family: var(--serif); }

/* ---------- 手风琴 ---------- */
.accordion { border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 8px;
  font-size: 15.5px;
  font-weight: 500;
  text-align: left;
  transition: color 0.3s;
  font-family: var(--serif);
  letter-spacing: 0.03em;
}
.acc-head:hover { color: var(--accent); }
.acc-head .ic {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease), border-color 0.3s, background 0.3s;
  border-radius: 2px;
}
.acc-head .ic svg { width: 11px; height: 11px; }
.acc-item.open .acc-head .ic { transform: rotate(45deg); border-color: var(--seal); background: var(--seal); color: var(--seal-ink); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--ease); }
.acc-body-inner { padding: 0 8px 26px; font-size: 14.5px; color: var(--text-2); line-height: 2; max-width: 820px; }

/* ---------- 表单 ---------- */
.form-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(28px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-2); letter-spacing: 0.1em; font-family: var(--serif); font-weight: 600; }
.field label i { color: var(--seal); font-style: normal; }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--sans);
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  appearance: none;
}
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background: var(--surface-2); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23867c64' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select:where(:not([data-theme])) { }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--seal);
  box-shadow: 0 0 0 3px rgba(200, 85, 58, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.75; }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-3);
  border: 1px solid var(--seal);
  color: var(--text);
  padding: 14px 26px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s, transform 0.45s var(--ease);
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast b { color: var(--accent); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-box {
  position: relative;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(56px, 8vw, 96px) clamp(28px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
}
/* 巨型印底 */
.cta-box::after {
  content: "逆";
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  font-family: var(--brush);
  font-size: clamp(160px, 22vw, 300px);
  line-height: 1;
  color: var(--seal);
  opacity: 0.035;
  pointer-events: none;
}
.cta-box .h2 { margin-bottom: 18px; }
.cta-box p { color: var(--text-2); max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 2px solid var(--rule);
  background: var(--footer-bg);
  padding: clamp(56px, 8vh, 84px) 0 34px;
  position: relative;
  color: #b8b09c;
}
.footer .logo-text b { color: #ece7d8; }
.footer .logo-text span { color: #7c766a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 0.9fr; gap: 30px; margin-bottom: 54px; }
.footer-brand p { font-size: 13.5px; color: #8f8875; margin: 20px 0 24px; max-width: 300px; line-height: 2; }
.footer h4 {
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: #ece7d8;
  margin-bottom: 20px;
  font-weight: 600;
  font-family: var(--serif);
}
.footer-col a { display: block; font-size: 13.5px; color: #8f8875; padding: 5.5px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-couplet {
  position: absolute;
  top: clamp(56px, 8vh, 84px);
  right: 3vw;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.5em;
  color: #615b4d;
  display: flex;
  gap: 14px;
  pointer-events: none;
}
.footer-couplet .seal-mini {
  writing-mode: horizontal-tb;
  width: 26px; height: 26px;
  background: var(--seal);
  color: var(--seal-ink);
  font-family: var(--brush);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  align-self: flex-end;
  margin-top: 14px;
}
@media (min-width: 1280px) {
  .footer-grid { padding-right: 76px; }
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(236, 231, 216, 0.16);
  display: grid;
  place-items: center;
  color: #8f8875;
  transition: all 0.35s var(--ease);
}
.footer-social a:hover { color: var(--seal-ink); background: var(--seal); border-color: var(--seal); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(236, 231, 216, 0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6d675a;
}
.footer-bottom a { color: #6d675a; }
.footer-bottom a:hover { color: var(--accent-bright); }
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- 显现动效 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-34px); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); transition-delay: var(--d, 0s); }
.reveal-r { opacity: 0; transform: translateX(34px); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); transition-delay: var(--d, 0s); }
.reveal-l.visible, .reveal-r.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-scale.visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- 通用小件 ---------- */
.pill-row { display: flex; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 0; border: none; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.note-box {
  border-left: 2px solid var(--seal);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  line-height: 1.9;
}
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 2px solid var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--brush);
  font-size: 19px;
  color: var(--seal-ink);
  background: var(--seal);
  margin-left: -10px;
  transform: rotate(-2deg);
}
.avatar-stack span:nth-child(2) { background: var(--accent-deep); transform: rotate(1.5deg); }
.avatar-stack span:nth-child(3) { background: #5a5346; transform: rotate(-1deg); }
:root[data-theme="light"] .avatar-stack span:nth-child(3) { background: #3a352a; }
.avatar-stack span:nth-child(4) { background: var(--jade); transform: rotate(2deg); }
.avatar-stack span:first-child { margin-left: 0; }

/* 案例卡 · 先例簿 */
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform 0.5s var(--ease), border-color 0.35s;
  display: flex;
  flex-direction: column;
}
.case-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.case-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.case-cover .big {
  font-family: var(--brush);
  font-size: 100px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.32;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}
.case-card:hover .case-cover .big { transform: scale(1.08); opacity: 0.5; }
.case-cover .cover-tag { position: absolute; top: 16px; left: 16px; }
.case-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: 0.02em; }
.case-body p { font-size: 14px; color: var(--text-2); flex: 1; }
.case-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--muted);
}
.case-meta b { color: var(--numeral); font-size: 17px; font-weight: 600; }

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .hero-side { display: none; }
  .footer-couplet { display: none; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-couplet { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .visual { order: 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); display: grid; }
  .hero-stats .stat:nth-child(3)::before { display: none; }
  .hero-content { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  /* 窄屏正文占据画面主体：加强文字区底气 */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(var(--hero-scrim), 0.55) 0%, rgba(var(--hero-scrim), 0.12) 22%, rgba(var(--hero-scrim), 0.55) 46%, rgba(var(--hero-scrim), 0.8) 72%, var(--bg) 99%),
      radial-gradient(160vw 90vh at 50% 50%, rgba(var(--hero-scrim), 0.55), transparent 78%);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers .n:nth-child(3)::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; gap: 16px; }
  .step .no { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-inner { gap: 10px; }
  .logo { gap: 9px; }
  .logo-mark { width: 34px; height: 34px; font-size: 21px; }
  .logo-text b { font-size: 16px; letter-spacing: 0.18em; }
  .logo-text span { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-sm { padding: 9px 14px; font-size: 12px; }
  .nav-burger { width: 38px; height: 38px; }
  .section-head[data-seal]::before { width: 42px; height: 42px; font-size: 24px; }
  .section-head:not(.center)[data-seal] { padding-left: 0; padding-top: 60px; }
  .section-head:not(.center)[data-seal]::before { left: 0; top: 0; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-l, .reveal-r, .reveal-scale { opacity: 1; transform: none; }
  .section-head[data-seal]::before { opacity: 1; transform: rotate(-2.5deg); }
}
