
/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

/* Swiss / International Typographic Style
   白 #fff · 黑 #0a0a0a · 红 #e2231a — 无圆角、无阴影、无渐变 */
:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #2b2b2b;
  --gray: #5f5f5f;
  --gray-2: #8a8a8a;
  --rule: #d9d9d9;
  --red: #e2231a;
  --red-ink: #c31b12;
  --red-bright: #ff5a4a;

  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", "Roboto Mono", Consolas, "Courier New", monospace;

  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── 文本 ─────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.lead { max-width: 58ch; color: var(--gray); font-size: 16px; line-height: 1.65; }
.footnote { margin-top: 18px; color: var(--gray); font-size: 11px; line-height: 1.65; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--rule);
  color: var(--gray);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tag--gold { border-color: var(--red); color: var(--red); }
.tag--liu { border-color: var(--ink); color: var(--ink); }

/* ── 按钮 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn--danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 10px; }
.btn[disabled] { opacity: 0.35; cursor: default; }

.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 表单 ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > legend {
  padding: 0;
  color: var(--gray);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
fieldset.field { display: block; margin: 0; border: 0; padding: 0; }
fieldset.field > legend { margin-bottom: 8px; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  color-scheme: light;
}
input::placeholder { color: var(--gray-2); }
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus, input[type="date"]:focus, select:focus {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
input[aria-invalid="true"] { border-color: var(--red); background: #fff5f4; }

.field__error { margin: 2px 0 0; color: var(--red); font-size: 11px; line-height: 1.5; }

.segmented { display: inline-flex; border: 1px solid var(--ink); }
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 46px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.segmented label + label span { border-left: 1px solid var(--ink); }
.segmented input:checked + span { background: var(--red); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--red); outline-offset: -3px; }

.segmented--tabs { border: 0; gap: 0; overflow: visible; }
.segmented--tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-left: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.segmented--tabs button:first-child { border-left: 1px solid var(--ink); }
.segmented--tabs button:hover { background: #f2f2f2; }
.segmented--tabs button.is-active { background: var(--ink); color: #fff; }

/* ── 顶部导航 ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.34s var(--ease),
    opacity 0.34s var(--ease),
    visibility 0s,
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.nav-scrolled .site-header {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.34s var(--ease),
    opacity 0.34s var(--ease),
    visibility 0s 0.34s,
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.nav-scrolled .site-header.is-revealed {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.34s var(--ease),
    opacity 0.34s var(--ease),
    visibility 0s,
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.nav-hotspot {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 59;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: default;
}
.nav-hotspot:focus-visible { outline: none; }
.site-header .brand__name { color: var(--ink); transition: color 0.2s var(--ease); }
.site-header .brand__sub { color: var(--gray); transition: color 0.2s var(--ease); }
.site-header .nav a { color: var(--gray); }
.site-header .nav a[aria-current="page"] { color: var(--ink); }
.site-header .btn--ghost { background-color: transparent; border-color: var(--ink); color: var(--ink); }
.site-header .menu-btn { background-color: transparent; border-color: var(--ink); color: var(--ink); transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease); }

.nav-on-dark .site-header .brand__name { color: #ffffff; }
.nav-on-dark .site-header .brand__sub { color: rgba(255, 255, 255, 0.62); }
.nav-on-dark .site-header .nav a { color: rgba(255, 255, 255, 0.8); }
.nav-on-dark .site-header .nav a[aria-current="page"] { color: #ffffff; }
.nav-on-dark .site-header .btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }
.nav-on-dark .site-header .menu-btn { border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }

.site-header:hover,
.site-header:focus-within {
  background-color: #0a0a0a;
  border-bottom-color: #0a0a0a;
}
.site-header:hover .brand__name,
.site-header:focus-within .brand__name { color: #ffffff; }
.site-header:hover .brand__sub,
.site-header:focus-within .brand__sub { color: rgba(255, 255, 255, 0.62); }
.site-header:hover .nav a,
.site-header:focus-within .nav a { color: rgba(255, 255, 255, 0.8); }
.site-header:hover .nav a[aria-current="page"],
.site-header:focus-within .nav a[aria-current="page"] { color: #ffffff; }
.site-header:hover .btn--ghost,
.site-header:focus-within .btn--ghost { border-color: #ffffff; color: #ffffff; }
.site-header:hover .menu-btn,
.site-header:focus-within .menu-btn { border-color: #ffffff; color: #ffffff; }

.nav-on-dark .site-header:hover,
.nav-on-dark .site-header:focus-within {
  background-color: var(--paper);
  border-bottom-color: var(--paper);
}
.nav-on-dark .site-header:hover .brand__name,
.nav-on-dark .site-header:focus-within .brand__name { color: var(--ink); }
.nav-on-dark .site-header:hover .brand__sub,
.nav-on-dark .site-header:focus-within .brand__sub { color: var(--gray); }
.nav-on-dark .site-header:hover .nav a,
.nav-on-dark .site-header:focus-within .nav a { color: var(--gray); }
.nav-on-dark .site-header:hover .nav a[aria-current="page"],
.nav-on-dark .site-header:focus-within .nav a[aria-current="page"] { color: var(--ink); }
.nav-on-dark .site-header:hover .btn--ghost,
.nav-on-dark .site-header:focus-within .btn--ghost { border-color: var(--ink); color: var(--ink); }
.nav-on-dark .site-header:hover .menu-btn,
.nav-on-dark .site-header:focus-within .menu-btn { border-color: var(--ink); color: var(--ink); }

.site-header .btn--ghost:hover,
.site-header .btn--ghost:focus-visible,
.nav-on-dark .site-header .btn--ghost:hover,
.nav-on-dark .site-header .btn--ghost:focus-visible {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.header__inner { display: flex; align-items: center; gap: 32px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: none; }
.brand__seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.brand__sub { color: var(--gray); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav a {
  position: relative;
  padding: 10px 14px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--red);
}

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

/* ── 首页 ─────────────────────────────────────────────── */
.view { animation: viewIn 0.24s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero { position: relative; min-height: clamp(520px, 82vh, 860px); background: #050505; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.16) 38%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(ellipse at 50% 52%, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.12) 46%, transparent 72%);
}
.hero-orb {
  position: absolute;
  left: 50%;
  top: 71%;
  z-index: 2;
  width: clamp(120px, 13vw, 190px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: difference;
}
.hero-orb__stage { position: absolute; inset: 0; }
.orb-name {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #ffffff;
  font-family: var(--sans);
  font-size: clamp(7px, 0.72vw, 10px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  will-change: transform, opacity;
}
.hero__copy { width: 100%; max-width: 360px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero-start { position: relative; width: 100%; max-width: 360px; }
.hero-start__frame {
  display: flex;
  width: 100%;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.18);
}
.hero-start__frame:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }

.hero-start__trigger {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gray);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}
.hero-start__trigger:hover { background: rgba(0, 0, 0, 0.035); }
.hero-start__trigger:focus-visible { outline: none; }

.hero-start__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666666;
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.hero-start__value.is-set { color: #1a1a1a; font-weight: 400; }
.hero-start__chevron { color: #9a9a9a; transition: transform 0.18s var(--ease); }
.hero-start.is-open .hero-start__chevron { transform: rotate(180deg); }

.hero-start__submit {
  flex: none;
  min-width: 92px;
  height: 100%;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.18s var(--ease);
}
.hero-start__submit:hover { background: #262626; }
.hero-start__submit:focus-visible { outline: none; }
.hero-start__submit[disabled] { opacity: 0.55; }

.birth-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: 100%;
  padding: 14px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.1);
}
.birth-pop:not([hidden]) { animation: popIn 0.18s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.birth-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.birth-pop__title { color: var(--gray); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.birth-pop__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 2px;
  background: #f5f5f5;
  color: #6b6b6b;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.birth-pop__close:hover { background: #ececec; color: #111111; }
.birth-pop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.birth-pop__grid .field--wide { grid-column: 1 / -1; }
.birth-pop input[type="date"], .birth-pop select {
  height: 42px;
  border-color: #d9d9d9;
  border-radius: 0;
  background: #ffffff;
}
.birth-pop input[type="date"]:focus, .birth-pop select:focus {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.birth-pop .segmented { width: 100%; border-color: #d9d9d9; border-radius: 0; overflow: hidden; }
.birth-pop .segmented label { flex: 1 1 0; }
.birth-pop .segmented span { width: 100%; min-width: 0; height: 42px; border-color: #d9d9d9; }
.birth-pop .segmented label + label span { border-left: 1px solid #d9d9d9; }
.birth-pop .field > label, .birth-pop .field > legend { color: #7a7a7a; font-size: 9px; }
.birth-pop .field__error { font-size: 10px; }
.hero-start__submit .spinner { width: 10px; height: 10px; border-width: 1px; }




.section { padding: 104px 0; border-bottom: 1px solid var(--ink); }
.view[data-view="home"] .section:last-of-type { border-bottom: 0; }

.section__head { max-width: 800px; margin-bottom: 48px; }
.sancai-head { display: flex; justify-content: space-between; gap: 32px; margin-bottom: 80px; }
.sancai-head .section__head { min-width: 0; margin-bottom: 0; }
.sancai-cta {
  flex: none;
  align-self: flex-start;
  min-height: 64px;
  margin-top: 16px;
  padding: 0 36px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.sancai-cta:focus-visible { outline-color: var(--ink); outline-offset: 4px; }
.section__head h2 { margin-bottom: 18px; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.02; }
.section__head h2.sancai-title {
  margin-bottom: 28px;
  color: var(--red);
  font-family: "Arial Black", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.8;
  text-transform: uppercase;
}
.sancai-summary { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; line-height: 1.5; }
.sancai-quote { max-width: 39em; margin: 18px 0 0; }
.sancai-quote p { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.65; }
.sancai-quote cite { display: block; margin-top: 4px; color: var(--gray); font-size: 12px; font-style: normal; }
.sancai-disclaimer { margin-top: 18px; color: var(--gray); font-size: 14px; line-height: 1.6; }
.section__head .lead { font-size: 16px; }

.quote {
  margin: 0 0 56px;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--red);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 16px;
  color: var(--gray);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.triad article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 444px;
  padding: 32px 24px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
}
.triad__visual {
  display: grid;
  place-items: center;
  width: 100%;
  transform: translateY(64px);
  transition: transform 0.28s var(--ease);
}
.triad__glyph, .triad__char { grid-area: 1 / 1; }
.triad__glyph {
  --od-ratio: 1 / 1;
  width: min(100%, 240px);
  opacity: 1;
  transition: opacity 0.2s var(--ease);
}
.triad__char {
  display: block;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.2s var(--ease), transform 0.28s var(--ease);
}
.triad__detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 112px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.2s var(--ease), transform 0.28s var(--ease);
}
.triad h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.triad p { max-width: 28ch; color: inherit; font-size: 16px; line-height: 1.55; }
.triad article:is(:hover, :focus-visible) { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-12px); }
.triad article:is(:hover, :focus-visible) .triad__glyph { opacity: 0; }
.triad article:is(:hover, :focus-visible) .triad__char,
.triad article:is(:hover, :focus-visible) .triad__detail { opacity: 1; }
.triad article:is(:hover, :focus-visible) .triad__visual,
.triad article:is(:hover, :focus-visible) .triad__char,
.triad article:is(:hover, :focus-visible) .triad__detail { transform: none; }
.triad article:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.cap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 56px 28px 0;
  border-right: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s;
}
.cap + .cap { padding-left: 24px; }
.cap:last-child { border-right: 0; }
.cap:hover { background: #f7f7f7; }
.cap:hover h3 { color: var(--red); }
.cap__icon { position: absolute; top: 22px; right: 24px; color: var(--ink); transition: color 0.18s var(--ease); }
.cap:hover .cap__icon { color: var(--red); }
.cap h3 { margin-top: 6px; font-size: 20px; letter-spacing: -0.015em; }
.cap p { color: var(--gray); font-size: 13px; line-height: 1.7; }

.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.path__item { padding: 24px 24px 16px 0; border-right: 1px solid var(--rule); }
.path__item + .path__item { padding-left: 24px; }
.path__item:last-child { border-right: 0; }
.path__item h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 22px; }
.path__item p { color: var(--gray); font-size: 13px; }
.path__status { padding: 2px 6px; border: 1px solid var(--rule); color: var(--gray); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
.path__status--open { border-color: var(--red); color: var(--red); }

.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px 28px 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}
.entry + .entry { padding-left: 32px; border-left: 1px solid var(--rule); }
.entry:hover h3 { color: var(--red); }
.entry h3 { margin-bottom: 8px; font-size: 24px; }
.entry p { color: var(--gray); font-size: 13px; line-height: 1.7; }
.entry__arrow { display: flex; align-items: center; color: var(--red); transition: transform 0.18s var(--ease); }
.entry:hover .entry__arrow { transform: translateX(4px); }

/* ── 页脚 ─────────────────────────────────────────────── */
.site-footer { padding: 56px 0 24px; border-top: 1px solid var(--ink); background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.3fr .9fr .9fr .9fr; gap: 32px; align-items: start; }
.footer__brand p { max-width: 36ch; margin-top: 16px; color: var(--gray); font-size: 12px; line-height: 1.7; }
.footer__col h4 { margin-bottom: 16px; color: var(--gray); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.footer__col a, .footer__col button {
  display: block;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.footer__col a:hover, .footer__col button:hover { color: var(--red); }
.footer__col a[aria-current="page"] { color: var(--red); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--gray);
  font-size: 10px;
  line-height: 1.7;
}
.footer__bottom p:first-child { max-width: 76ch; }

/* ── 内页头 ───────────────────────────────────────────── */
.view-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  gap: 0 40px;
  align-items: end;
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 40px;
}
.back-link {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.back-link:hover { color: var(--red); }
.view-head .eyebrow { grid-column: 1 / -1; }
.view-head h1 { grid-column: 1; font-size: clamp(38px, 4.6vw, 64px); line-height: 0.98; }
.view-head p { grid-column: 2; align-self: end; color: var(--gray); font-size: 15px; line-height: 1.65; }

/* ── 排盘 ─────────────────────────────────────────────── */
.panel { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); background: var(--paper); padding: 24px 0; }
.chart-form { max-width: 900px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.form-note { margin-top: 16px; color: var(--gray); font-size: 11px; line-height: 1.6; }

.chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.chart-head h2 { margin-bottom: 6px; font-size: clamp(28px, 3vw, 40px); }
.chart-birth { color: var(--gray); font-size: 12px; letter-spacing: 0.02em; }
.chart-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.chart-result {
  position: relative;
  isolation: isolate;
  margin: -40px calc(50% - 50vw) 0;
  padding: 40px max(32px, calc(50vw - 588px)) 64px;
  background: #050505;
  color: #ffffff;
}
.chart-result .chart-head { border-bottom-color: rgba(255, 255, 255, 0.18); }
.chart-result .chart-head h2 { color: #ffffff; }
.chart-result .chart-birth { color: #b8b8b8; }
.chart-result .eyebrow { color: var(--red-bright); }
.chart-result .btn--ghost { border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #ffffff; }
.chart-result .btn--ghost:hover { border-color: #ffffff; background: #ffffff; color: #000000; }
.chart-result .chart-sphere:focus-visible { outline-color: var(--red-bright); }
.chart-result .chart-sphere::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 26%,
    rgba(229, 34, 26, 0.06) 44%,
    transparent 68%
  );
}
.chart-result .sphere-name { color: #ffffff; }

.chart-sphere {
  position: relative;
  isolation: isolate;
  width: min(100%, 760px);
  height: min(76vh, 760px);
  min-height: 420px;
  margin: 24px auto 0;
  outline: none;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.chart-sphere:active { cursor: grabbing; }
.chart-sphere:focus-visible { outline: 2px solid var(--red); outline-offset: 8px; }
.chart-sphere__stage { position: absolute; inset: 0; }
.sphere-name {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform, opacity;
}

.chart-meta { display: flex; flex-wrap: wrap; margin: 0; border-bottom: 1px solid var(--rule); }
.chart-meta div { display: flex; flex-direction: column; gap: 2px; padding: 14px 28px 14px 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.chart-meta div:last-child { margin-right: 0; border-right: 0; }
.chart-meta dt { color: var(--gray); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.chart-meta dd { margin: 0; font-size: 14px; font-weight: 700; }

.timebar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 24px 0 16px; }
.timebar__caption { color: var(--gray); font-size: 11px; }

.chart-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }

.chart-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(140px, auto);
  border: 1px solid var(--ink);
  background: var(--paper);
}

.palace {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.palace:hover { background: #f2f2f2; }
.palace.is-selected { background: var(--ink); color: #fff; box-shadow: inset 0 3px 0 var(--red); }
.palace.is-selected .palace__name, .palace.is-selected .star { color: #fff; }
.palace.is-selected .palace__branch, .palace.is-selected .palace__ages, .palace.is-selected .palace__minor, .palace.is-selected .palace__borrow, .palace.is-selected .palace__empty { color: #bdbdbd; }
.palace.is-selected .star__br { color: #bdbdbd; }
.palace.is-selected .tag { border-color: #666; color: #ddd; }
.palace.is-selected .tag--gold { border-color: var(--red-bright); color: var(--red-bright); }
.palace.is-daxian { box-shadow: inset 0 3px 0 var(--red); }
.palace.is-liunian { outline: 2px solid var(--red); outline-offset: -2px; }

.palace__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.palace__name { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.palace__branch { color: var(--gray); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.palace__stars { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.palace__empty { display: flex; flex-direction: column; gap: 2px; color: var(--gray); font-size: 12px; }
.palace__borrow { color: var(--gray); font-size: 9px; letter-spacing: 0.02em; }

.star { position: relative; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.star--major { font-weight: 700; }
.star--lucky { color: #333; font-weight: 400; }
.star--sha { color: var(--gray); font-weight: 400; }
.star--minor { color: #444; font-weight: 400; }
.star__br { margin-left: 2px; color: var(--gray); font-family: var(--mono); font-size: 9px; vertical-align: 0.12em; }

.palace__minor { display: block; color: var(--gray); font-size: 9px; line-height: 1.6; letter-spacing: 0.01em; }
.palace__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 4px; }
.palace__ages { color: var(--gray); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.palace__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }

.sihua {
  position: relative;
  top: -0.45em;
  margin-left: 1px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.sihua--lu { color: var(--red); }
.sihua--quan { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.sihua--ke { color: var(--red); text-decoration: overline; }
.sihua--ji { padding: 0 2px; background: var(--red); color: #fff; }
.sihua--flow { outline: 1px solid currentColor; outline-offset: 1px; }
.palace.is-selected .sihua--lu,
.palace.is-selected .sihua--quan,
.palace.is-selected .sihua--ke { color: var(--red-bright); }
.palace.is-selected .sihua--ji { background: var(--red-bright); color: var(--ink); }

.chart-center {
  grid-area: 2 / 2 / 4 / 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--ink);
  color: #fff;
  border-top: 4px solid var(--red);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.chart-center__eyebrow { color: var(--red-bright); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.chart-center__title { color: #fff; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.chart-center__meta { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 20px; margin: 2px 0 0; text-align: left; }
.chart-center__meta div { display: flex; align-items: baseline; gap: 6px; }
.chart-center__meta dt { color: #9a9a9a; font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.chart-center__meta dd { margin: 0; color: #fff; font-size: 12px; }
.sihua-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.sihua-legend .legend--lu { color: var(--red-bright); }
.sihua-legend .legend--quan { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.sihua-legend .legend--ke { color: #fff; text-decoration: overline; }
.sihua-legend .legend--ji { padding: 0 3px; background: var(--red-bright); color: var(--ink); }

.chart-side { position: sticky; top: 88px; border-top: 2px solid var(--ink); padding-top: 20px; }
.side__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.side__name { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.side__meta { color: var(--gray); font-family: var(--mono); font-size: 9px; }
.side__desc { margin: 16px 0; color: var(--gray); font-size: 13px; line-height: 1.7; }
.side__group { margin-top: 16px; }
.side__group h4 { margin-bottom: 8px; color: var(--gray); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.side__stars { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.side__stars .star { font-size: 15px; }
.side__borrow { margin-top: 12px; padding: 12px; border-left: 3px solid var(--red); background: #f7f7f7; color: var(--ink); font-size: 12px; line-height: 1.6; }
.side__sanfang { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--rule); }
.side__sanfang h4 { margin-bottom: 8px; color: var(--gray); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.side__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.side__chip { padding: 3px 8px; border: 1px solid var(--rule); color: var(--ink); font-size: 11px; }
.side__chip--self { border-color: var(--red); color: var(--red); }

.chart-list { display: none; margin-top: 24px; border-top: 2px solid var(--ink); }
.palace-card { border-bottom: 1px solid var(--rule); }
.palace-card summary { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 34px 14px 0; cursor: pointer; list-style: none; }
.palace-card summary::-webkit-details-marker { display: none; }
.palace-card summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 20px; font-weight: 700; line-height: 1; }
.palace-card[open] summary::after { content: "−"; }
.palace-card__top { display: flex; align-items: baseline; gap: 10px; }
.palace-card__name { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.palace-card__ages { color: var(--gray); font-family: var(--mono); font-size: 9px; }
.palace-card__stars { color: var(--ink-2); font-size: 13px; }
.palace-card__tags { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.palace-card__body { padding: 0 0 16px; }
.palace-card__desc { margin-bottom: 10px; color: var(--gray); font-size: 13px; line-height: 1.7; }
.palace-card__group { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.palace-card__group .star { font-size: 14px; }
.palace-card__empty { margin-bottom: 8px; color: var(--gray); font-size: 12px; }
.small-note { margin-top: 8px; color: var(--gray); font-family: var(--mono); font-size: 9px; letter-spacing: 0.02em; }

.insight { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink); }
.insight__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.insight__head h2 { font-size: 24px; }
.tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--ink); }
.tabs button {
  position: relative;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.tabs button + button { border-left: 1px solid var(--rule); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); }
.insight__panel h3 { margin-bottom: 14px; font-size: clamp(20px, 2.4vw, 28px); }
.insight__panel p { max-width: 70ch; margin-bottom: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.insight__panel p:last-child { margin-bottom: 0; }

/* ── 合盘 ─────────────────────────────────────────────── */
.pair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pair-panel { padding: 24px 32px 24px 0; border-right: 1px solid var(--rule); }
.pair-panel + .pair-panel { padding-left: 32px; border-right: 0; }
.pair-panel h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 20px; font-size: 20px; }
.pair-panel h3 span { color: var(--gray); font-family: var(--mono); font-size: 10px; }
.pair-fields { display: flex; flex-direction: column; gap: 18px; }

.heming-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.heming-note { color: var(--gray); font-size: 11px; }

.heming-result { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink); }
.score-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.score__label { margin-bottom: 10px; color: var(--gray); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.score__num { color: var(--ink); font-size: clamp(72px, 9vw, 120px); font-weight: 700; line-height: 0.85; letter-spacing: -0.05em; white-space: nowrap; }
.score__num span { margin-left: 6px; color: var(--gray); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.score__note { margin-top: 12px; color: var(--gray); font-size: 10px; }

.dims { display: flex; flex-direction: column; gap: 14px; }
.dim { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 16px; align-items: center; }
.dim__name { color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.dim__bar { height: 8px; background: #ededed; overflow: hidden; }
.dim__fill { width: 100%; height: 100%; background: var(--red); transform: scaleX(var(--v, 0.5)); transform-origin: left center; transition: transform 0.5s var(--ease); }
.dim__val { color: var(--ink); font-family: var(--mono); font-size: 12px; text-align: right; }

.pair-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--ink); }
.pair-card { padding: 20px 32px 8px 0; border-right: 1px solid var(--rule); }
.pair-card + .pair-card { padding-left: 32px; border-right: 0; }
.pair-card h3 { margin-bottom: 12px; font-size: 20px; }
.pair-card dl { display: grid; gap: 8px; margin: 0; }
.pair-card dl div { display: flex; gap: 12px; }
.pair-card dt { min-width: 52px; color: var(--gray); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pair-card dd { margin: 0; color: var(--ink); font-size: 13px; }

.reading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ink); }
.reading h3 { margin-bottom: 12px; font-size: 16px; }
.reading ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.reading li + li { margin-top: 8px; }
.reading li::marker { color: var(--red); }
.reading p { margin-bottom: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }

/* ── 知识库 ───────────────────────────────────────────── */
.knowledge-body { margin-top: 8px; }
.knowledge-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }

.star-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.star-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.star-btn:nth-child(2n) { border-right: 0; }
.star-btn:hover { background: #f2f2f2; }
.star-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.star-btn[aria-pressed="true"] span { color: #bdbdbd; }
.star-btn strong { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.star-btn span { color: var(--gray); font-size: 9px; letter-spacing: 0.08em; }

.know-detail { position: sticky; top: 88px; border-top: 2px solid var(--ink); padding-top: 20px; }
.know-detail h3 { margin-bottom: 4px; font-size: 40px; letter-spacing: -0.03em; }
.know-kicker { margin-bottom: 20px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.know-detail p { margin-bottom: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.know-detail .footnote { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--gray); font-size: 11px; }

.palace-know-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.palace-know { border-top: 1px solid var(--ink); padding-top: 14px; }
.palace-know h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 18px; }
.palace-know h3 span { color: var(--gray); font-family: var(--mono); font-size: 9px; }
.palace-know p { color: var(--gray); font-size: 13px; line-height: 1.7; }

.sihua-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.sihua-block { border-top: 2px solid var(--ink); padding-top: 16px; }
.sihua-block--lu { border-top-color: var(--red); }
.sihua-block--quan { border-top-color: var(--red); }
.sihua-block__char { margin-bottom: 12px; color: var(--red); font-size: 72px; font-weight: 700; line-height: 0.9; }
.sihua-block h3 { margin-bottom: 8px; font-size: 16px; }
.sihua-block p { color: var(--gray); font-size: 13px; line-height: 1.7; }

/* ── 子页面 ───────────────────────────────────────────── */
.subpage { max-width: 800px; padding-bottom: 96px; }
.subpage__block { padding: 30px 0; border-top: 1px solid var(--rule); }
.subpage__block:first-of-type { border-top: 0; }
.subpage__block h2 { margin-bottom: 12px; font-size: clamp(24px, 2.8vw, 34px); }
.subpage__block h3 { margin-bottom: 6px; font-size: 18px; }
.subpage__block p { max-width: 70ch; margin-bottom: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.subpage__block p:last-child { margin-bottom: 0; }
.subpage__block ul { margin: 0 0 12px; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.subpage__block li::marker { color: var(--red); }
.subpage__meta { margin: 0 0 10px; color: var(--gray); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.subpage__note { margin-top: 16px; color: var(--gray); font-size: 11px; line-height: 1.65; }
.subpage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.subpage-grid article { padding: 20px 24px 20px 0; border-right: 1px solid var(--rule); }
.subpage-grid article + article { padding-left: 24px; }
.subpage-grid article:last-child { border-right: 0; }
.subpage-grid h3 { margin-bottom: 8px; font-size: 18px; }
.subpage-grid p { color: var(--gray); font-size: 13px; line-height: 1.7; }
.subpage-grid .subpage__meta { font-size: 10px; line-height: 1.4; }
.subpage-grid .tag { display: inline-flex; margin-bottom: 12px; }
.subpage-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.subpage-grid--four article { padding-right: 20px; }
.subpage-grid--four article + article { padding-left: 20px; }

.classics { border-top: 1px solid var(--ink); }
.classics article { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.classics__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.classics__head h3 { margin: 0; font-size: 18px; }
.classics article p { margin: 0; color: var(--gray); font-size: 13px; line-height: 1.7; }

.subpage-link { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--ink); }
.subpage-link a { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
.subpage-link a:hover { color: var(--ink); }

.path__link { display: block; color: inherit; text-decoration: none; }
.path__link:hover h3, .path__link[aria-current="page"] h3 { color: var(--red); }

/* ── 抽屉 / toast ─────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; padding: 20px 24px 32px; background: var(--paper); color: var(--ink); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.drawer__close { width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.drawer nav { display: flex; flex-direction: column; margin-top: 16px; }
.drawer nav a { padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.drawer nav a[aria-current="page"] { color: var(--red); }
.drawer .btn { width: 100%; margin-top: 28px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 260;
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  border: 0;
  border-left: 4px solid var(--red);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* ── 开场：排版式 ─────────────────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
  transition: opacity 0.45s var(--ease), visibility 0s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.45s var(--ease), visibility 0s 0.45s; }
.intro.is-fading { opacity: 0; transition-duration: 0.7s; }
.intro.is-resetting, .intro.is-resetting * { transition-duration: 0s !important; transition-delay: 0s !important; }

.intro__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.08) 1px, transparent 1px);
  background-size: calc(100% / 12) 25%;
  opacity: 1;
  transition: opacity 1s var(--ease);
}
.intro.is-collapsed .intro__grid { opacity: 0.35; }

.intro__frame {
  position: relative;
  width: min(92vw, 1200px);
  min-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.intro__top {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.intro__rule {
  height: 12px;
  background: var(--red);
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 1.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.intro.is-collapsed .intro__rule { transform: scaleX(0); }
.intro__kicker {
  margin-top: 32px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.intro__title {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(72px, 14vw, 190px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.045em;
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.intro__title span { color: var(--red); }
.intro__bottom {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.8s var(--ease);
}
.intro:not(.has-content) .intro__kicker,
.intro:not(.has-content) .intro__title,
.intro:not(.has-content) .intro__bottom { opacity: 0; transform: translateY(16px); }

.intro__skip {
  position: absolute;
  right: 32px;
  bottom: 32px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}
.intro__skip:hover { background: var(--ink); color: #fff; }

/* 开场落在影像上 */
.intro { background: #050505; color: #fff; }
.intro__media { position: absolute; inset: 0; z-index: 0; }
.intro__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.intro__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.78) 100%);
}
.intro__grid {
  z-index: 2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
}
.intro__frame { z-index: 3; border-color: rgba(255, 255, 255, 0.45); }
.intro__top { color: rgba(255, 255, 255, 0.6); }
.intro__kicker { color: var(--red-bright); }
.intro__title { color: #ffffff; }
.intro__title span { color: var(--red-bright); }
.intro__bottom { color: rgba(255, 255, 255, 0.62); }
.intro__skip { z-index: 4; border-color: rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.25); color: #ffffff; }
.intro__skip:hover { background: #ffffff; border-color: #ffffff; color: #000000; }

.intro-skip .intro { display: none; }

/* ── 账户入口 / 菜单 ──────────────────────────────────── */
.account-entry-wrap { position: relative; }
.account-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}
.account-entry__avatar,
.account-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.account-entry__name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-entry.is-guest .account-entry__avatar { display: none; }
.account-entry.is-guest { padding-left: 8px; padding-right: 8px; }
.nav-on-dark .site-header .account-entry { color: #ffffff; }
.site-header:hover .account-entry,
.site-header:focus-within .account-entry { color: #ffffff; }
.nav-on-dark .site-header:hover .account-entry,
.nav-on-dark .site-header:focus-within .account-entry { color: var(--ink); }

.account-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 75;
  width: 236px;
  padding: 8px 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}
.account-menu__head { padding: 10px 16px 12px; border-bottom: 1px solid var(--rule); }
.account-menu__name { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__email { overflow: hidden; margin-top: 2px; color: var(--gray); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu button:hover { background: #f4f4f4; color: var(--red); }
.account-menu button:last-child { margin-top: 6px; border-top: 1px solid var(--rule); color: var(--red); }

/* ── 登录 / 注册 ─────────────────────────────────────── */
.auth-mode .site-header,
.auth-mode .site-footer,
.auth-mode .nav-hotspot { display: none !important; }

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  min-height: 100svh;
  background: var(--paper);
}
.auth__visual { position: relative; min-height: 100svh; overflow: hidden; background: #050505; color: #fff; }
.auth__media { position: absolute; inset: 0; z-index: 0; }
.auth__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.auth__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.64) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.46) 0%, transparent 56%);
}
.auth__top {
  position: absolute;
  top: 26px;
  left: clamp(28px, 3.4vw, 48px);
  right: clamp(28px, 3.4vw, 48px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.auth__top .brand__name,
.auth__mobilehead .brand__name { color: #ffffff; }
.auth__home {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s var(--ease);
}
.auth__home:hover { color: #ffffff; }
.auth__quote {
  position: absolute;
  left: clamp(28px, 4vw, 64px);
  top: 23%;
  z-index: 3;
  max-width: 20ch;
  color: #ffffff;
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.auth__quote em { color: var(--red-bright); font-style: normal; }
.auth__quote span {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.auth-orb {
  position: absolute;
  left: 50%;
  top: 71%;
  z-index: 2;
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: difference;
}
.auth-orb__stage { position: absolute; inset: 0; }
.auth-orb .orb-name { font-size: clamp(8px, 0.8vw, 11px); letter-spacing: 0.08em; }
.auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(44px, 6vw, 88px) clamp(24px, 5.6vw, 80px);
  background: var(--paper);
}
.auth__mobilehead { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.auth__mobilehead .brand__name { color: var(--ink); }
.auth__mobilehead .auth__home { color: var(--gray); }
.auth__mobilehead .auth__home:hover { color: var(--red); }
.auth__form { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-panel h1 { margin-bottom: 12px; font-size: clamp(38px, 4vw, 58px); line-height: 0.98; }
.auth-panel h1:focus { outline: none; }
.auth__lead { max-width: 36ch; margin-bottom: 28px; color: var(--gray); font-size: 14px; line-height: 1.7; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--ink); }
.auth-tabs button {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 0 18px 0 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.auth-tabs button + button { padding-left: 18px; }
.auth-tabs button[aria-selected="true"] { border-bottom-color: var(--red); color: var(--ink); }
.auth-tabs button:hover { color: var(--ink); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .field { gap: 7px; }
.auth-form .field > label { font-size: 9px; }
.auth-form input { height: 48px; }
.auth-form .field__error { font-size: 10px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); font-size: 11px; line-height: 1.5; cursor: pointer; }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--red); }
.auth-consent { align-items: flex-start; margin: 2px 0; }
.auth-consent input { margin-top: 1px; }
.auth-link { color: var(--red); font-size: 11px; font-weight: 600; text-decoration: none; }
.auth-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-toggle {
  position: absolute;
  right: 1px;
  top: 1px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
}
.password-toggle:hover { color: var(--ink); }
.code-row { display: flex; gap: 8px; }
.code-row .field { flex: 1; }
.code-row input { min-width: 0; }
.code-btn {
  flex: none;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.code-btn:hover { background: var(--ink); color: #fff; }
.code-btn[disabled] { opacity: 0.4; cursor: default; }
.auth-submit { width: 100%; min-height: 50px; margin-top: 4px; }
.auth-error { margin: 0; padding: 10px 12px; border-left: 3px solid var(--red); background: #fff2f1; color: var(--red-ink); font-size: 11px; line-height: 1.55; }
.auth-demo {
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: #f6f6f6;
  color: var(--gray);
  font-size: 10.5px;
  line-height: 1.65;
}
.auth-demo strong { color: var(--ink); font-weight: 700; }
.auth-switch { margin-top: 22px; color: var(--gray); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { color: var(--red); }
.auth-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--gray-2); font-size: 10px; line-height: 1.7; text-align: center; }
.auth-note a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.auth-note a:hover { color: var(--red); }
.auth-panel[hidden] { display: none !important; }

/* ── 个人中心 ─────────────────────────────────────────── */
.account-tabs { display: flex; flex-wrap: wrap; margin-bottom: 32px; border-bottom: 1px solid var(--ink); }
.account-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-bottom: 3px solid transparent;
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.account-tabs a:first-child { padding-left: 0; }
.account-tabs a:hover { color: var(--ink); }
.account-tabs a[aria-current="page"] { border-bottom-color: var(--red); color: var(--ink); }
.account-panel[hidden] { display: none !important; }

.account-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: #0a0a0a;
  color: #fff;
}
.account-hero .eyebrow { margin-bottom: 8px; color: var(--red-bright); }
.account-hero h2 { margin-bottom: 4px; color: #fff; font-size: clamp(26px, 3vw, 38px); }
.account-hero__email { overflow: hidden; color: rgba(255, 255, 255, 0.6); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-hero .btn { margin-left: auto; flex: none; }
.account-avatar--lg { width: 64px; height: 64px; border-color: rgba(255, 255, 255, 0.5); font-size: 22px; font-weight: 400; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.account-stats > div { padding: 20px 24px 20px 0; border-right: 1px solid var(--rule); }
.account-stats > div + div { padding-left: 24px; }
.account-stats > div:last-child { border-right: 0; }
.account-stats span { display: block; margin-bottom: 5px; color: var(--gray); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.account-stats strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s;
}
.account-actions a + a { padding-left: 24px; }
.account-actions a:last-child { border-right: 0; }
.account-actions a:hover { background: #f6f6f6; color: var(--red); }
.account-actions a span { color: var(--red); font-size: 18px; font-weight: 400; }

.account-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.account-section-head .eyebrow { margin-bottom: 8px; }
.account-section-head h2 { font-size: clamp(26px, 3vw, 38px); }
.account-section-head > p { max-width: 44ch; color: var(--gray); font-size: 13px; line-height: 1.7; }
.account-section-head .btn { flex: none; }

.account-form { max-width: 900px; }
.account-form .form-actions { align-items: center; }
.account-form .form-actions .btn--ghost { border-color: var(--rule); color: var(--gray); }
.account-form .form-actions .btn--ghost:hover { border-color: var(--ink); color: #fff; }
.account-form .field > label { font-size: 9px; }
.account-form .segmented span { min-width: 70px; }

.account-block { margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.account-block h3 { margin-bottom: 14px; font-size: 18px; }
.account-block p { max-width: 66ch; color: var(--gray); font-size: 13px; line-height: 1.7; }
.session-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 12px 0; border-top: 1px solid var(--rule); color: var(--ink); font-size: 13px; }
.session-row span:last-child { color: var(--gray); font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; }

.account-danger { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 22px 0 0; border-top: 3px solid var(--red); }
.account-danger h3 { margin-bottom: 6px; font-size: 18px; }
.account-danger p { max-width: 56ch; color: var(--gray); font-size: 12px; line-height: 1.7; }
.account-danger .btn { flex: none; }

.charts-list { border-top: 0; }
.chart-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.chart-card__main { min-width: 0; }
.chart-card .eyebrow { margin-bottom: 8px; }
.chart-card h3 { overflow: hidden; margin-bottom: 6px; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.chart-card__birth { color: var(--ink-2); font-size: 13px; }
.chart-card__meta { margin-top: 6px; color: var(--gray-2); font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; }
.chart-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chart-card__actions .btn { min-height: 38px; }
.charts-empty { padding: 48px 0; border-bottom: 1px solid var(--rule); text-align: center; }
.charts-empty h3 { margin-bottom: 8px; font-size: 22px; }
.charts-empty p { margin-bottom: 22px; color: var(--gray); font-size: 13px; }

/* ── 确认弹层 ─────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 24px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.modal__panel { position: relative; z-index: 1; width: min(460px, 100%); padding: 32px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); }
.modal__panel h2 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 36px); }
.modal__panel p { color: var(--gray); font-size: 13px; line-height: 1.7; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.modal__actions .btn { flex: none; }

/* ── 抽屉账户区 ───────────────────────────────────────── */
.drawer { overflow-y: auto; }
.drawer__account { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ink); }
.drawer__login { display: flex; align-items: center; min-height: 46px; color: var(--red); font-size: 14px; font-weight: 700; text-decoration: none; }
.drawer__login:hover { color: var(--ink); }
.drawer__userrow { display: flex; align-items: center; gap: 12px; }
.drawer__userrow .account-avatar { width: 38px; height: 38px; font-size: 13px; }
.drawer__username { color: var(--ink); font-size: 14px; font-weight: 700; }
.drawer__useremail { overflow: hidden; max-width: 24ch; color: var(--gray); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.drawer__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-top: 10px; }
.drawer__links a,
.drawer__links button {
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.drawer__links a:hover { color: var(--red); }
.drawer__links button { color: var(--red); }
.drawer .btn { margin-top: 22px; }

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .chart-shell { grid-template-columns: minmax(0, 1fr); }
  .chart-side { position: static; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap:nth-child(2) { border-right: 0; }
  .cap:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .cap:nth-child(3) { padding-left: 0; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header__actions .btn--sm { display: none; }

  .view-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .view-head h1, .view-head p { grid-column: 1; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .subpage-grid, .subpage-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subpage-grid article:nth-child(2n) { border-right: 0; }

  .pair-grid { grid-template-columns: minmax(0, 1fr); }
  .pair-panel { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .pair-panel + .pair-panel { padding-left: 0; }

  .score-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reading { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .knowledge-grid { grid-template-columns: minmax(0, 1fr); }
  .know-detail { position: static; }
  .palace-know-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path__item:nth-child(2) { border-right: 0; }
  .path__item:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

@media (max-width: 767px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .sancai-head { flex-direction: column; gap: 0; margin-bottom: 64px; }
  .sancai-cta { align-self: flex-end; margin-top: 24px; }
  .btn--sm { min-height: 44px; }
  .footer__col a, .footer__col button { display: flex; align-items: center; min-height: 44px; }
  .hero-start__frame { height: 44px; }
  .hero-start__submit { min-width: 92px; }
  .birth-pop { width: 100%; }

  .triad { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .triad article { min-height: 400px; padding: 24px; }
  .triad__glyph { width: min(100%, 220px); }

  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .cap, .cap + .cap, .cap:nth-child(3) { padding: 22px 0; border-right: 0; border-top: 0; border-bottom: 1px solid var(--rule); }
  .cap:last-child { border-bottom: 0; }

  .entry-grid { grid-template-columns: minmax(0, 1fr); }
  .entry, .entry + .entry { padding: 22px 0; border-left: 0; }

  .path { grid-template-columns: minmax(0, 1fr); }
  .path__item, .path__item + .path__item { padding: 20px 0; border-top: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .path__item:last-child { border-bottom: 0; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .subpage { padding-bottom: 64px; }
  .subpage-grid, .subpage-grid--four { grid-template-columns: minmax(0, 1fr); }
  .subpage-grid article, .subpage-grid article + article { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .subpage-grid article:last-child { border-bottom: 0; }

  .chart-head { flex-direction: column; align-items: stretch; }
  .chart-actions .btn { flex: 1 1 0; }
  .chart-result { padding-left: 20px; padding-right: 20px; }
  .chart-sphere { height: 68vh; min-height: 360px; margin-top: 18px; }
  .sphere-name { font-size: clamp(20px, 5.4vw, 26px); }
  .chart-meta div { margin-right: 20px; padding-right: 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .star-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palace-know-grid { grid-template-columns: minmax(0, 1fr); }
  .sihua-grid { grid-template-columns: minmax(0, 1fr); }
  .pair-view { grid-template-columns: minmax(0, 1fr); }
  .pair-card, .pair-card + .pair-card { padding: 20px 0 8px; border-right: 0; }
  .dim { grid-template-columns: 80px minmax(0, 1fr) 36px; gap: 12px; }
  .score__num span { font-size: 10px; }

  .intro { padding: 20px; }
  .intro__frame { min-height: 74vh; padding: 28px 0; }
  .intro__rule { height: 8px; }
  .intro__title { font-size: clamp(62px, 18vw, 110px); }
  .intro__top { font-size: 9px; letter-spacing: 0.1em; }
  .intro__bottom { flex-direction: column; gap: 4px; font-size: 9px; }
  .intro__skip { right: 20px; bottom: 20px; }
}

@media (max-width: 400px) {
  .star-grid { grid-template-columns: minmax(0, 1fr); }
  .star-btn:nth-child(2n) { border-right: 1px solid var(--rule); }
  .segmented span { min-width: 50px; padding: 0 10px; }
  .hero-start__trigger { padding: 0 12px; }
  .hero-start__submit { min-width: 84px; padding: 0 12px; }
  .hero-start__value { font-size: 12px; }
  .birth-pop { padding: 16px; border-radius: 16px; }
  .birth-pop__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .account-entry__name { display: none; }
  .account-entry.is-guest .account-entry__name { display: inline; }
  .auth__visual { grid-column: 1; }
  .auth__panel { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__visual { display: none; }
  .auth__panel { min-height: 100svh; padding: 32px 24px 48px; justify-content: flex-start; }
  .auth__mobilehead { display: flex; }
  .auth__form { max-width: 480px; }
  .auth__quote { font-size: clamp(30px, 6vw, 44px); }

  .account-hero { padding: 24px; }
  .account-hero .btn { margin-left: 0; }
  .account-stats { grid-template-columns: minmax(0, 1fr); }
  .account-stats > div, .account-stats > div + div { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .account-stats > div:last-child { border-bottom: 0; }
  .account-actions { grid-template-columns: minmax(0, 1fr); }
  .account-actions a, .account-actions a + a { padding: 0; border-right: 0; }
  .account-actions a + a { border-top: 1px solid var(--rule); }
}

@media (max-width: 767px) {
  .account-menu { right: -4px; width: 220px; }
  .auth__panel { padding: 24px 20px 44px; }
  .auth__mobilehead { margin-bottom: 30px; }
  .auth-panel h1 { font-size: clamp(34px, 10vw, 46px); }
  .auth__lead { margin-bottom: 22px; font-size: 13px; }
  .auth-tabs { margin-bottom: 20px; }
  .auth-tabs button { padding-right: 14px; font-size: 10px; }
  .auth-tabs button + button { padding-left: 14px; }
  .auth-demo { font-size: 10px; }
  .code-btn { padding: 0 10px; font-size: 9px; }

  .account-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 0; border-top: 1px solid var(--ink); }
  .account-tabs a, .account-tabs a:first-child { min-height: 44px; padding: 0 10px; border-bottom: 1px solid var(--rule); }
  .account-tabs a:nth-child(2n) { border-left: 1px solid var(--rule); }
  .account-tabs a[aria-current="page"] { border-bottom: 3px solid var(--red); }
  .account-hero { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .account-hero h2 { font-size: 26px; }
  .account-hero .btn { width: 100%; margin-top: 6px; }
  .account-avatar--lg { width: 54px; height: 54px; font-size: 18px; }
  .account-actions a { min-height: 60px; }
  .chart-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chart-card__actions .btn { flex: 1 1 0; }
  .account-section-head { align-items: flex-start; }
  .account-section-head .btn { width: 100%; }
  .account-danger { flex-direction: column; align-items: flex-start; }
  .account-danger .btn { width: 100%; }
  .modal__panel { padding: 24px; }
  .modal__actions { flex-direction: column-reverse; }
  .modal__actions .btn { width: 100%; }
  .drawer__links { grid-template-columns: minmax(0, 1fr); }
  .drawer .btn { margin-top: 18px; }
}

@media (max-width: 400px) {
  .code-row { flex-wrap: wrap; }
  .code-btn { width: 100%; }
  .auth__mobilehead .brand__name { font-size: 13px; }
}

@media (hover: none) {
  .triad__visual, .triad__char, .triad__detail { transform: none; }
  .triad__detail { opacity: 1; }
  .triad article:is(:hover, :focus-visible) { background: var(--paper); border-color: var(--rule); color: var(--ink); transform: none; }
  .triad article:is(:hover, :focus-visible) .triad__glyph { opacity: 1; }
  .triad article:is(:hover, :focus-visible) .triad__char { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .view { animation: none; }
  .triad article:is(:hover, :focus-visible), .triad__visual, .triad__char, .triad__detail { transform: none; }
}


.melab-password-dialog{border:1px solid #222;max-width:480px;width:calc(100% - 32px);padding:28px}.melab-password-dialog::backdrop{background:rgba(0,0,0,.55)}.melab-password-dialog input{display:block;width:100%;padding:12px;margin:12px 0 20px}.melab-password-dialog h2{font-size:24px}#connectionStatus{font-size:14px;color:#c31b12}body.admin-bar .nav{top:32px}@media(max-width:782px){body.admin-bar .nav{top:46px}}
