@font-face {
  font-family: "LXGW WenKai Site";
  src: url("assets/fonts/lxgw-wenkai-site.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@property --fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

:root {
  --ink-deep: #0e1d1a;
  --ink-surface: #142723;
  --ink-panel: #1a322d;
  --ink-border: rgba(214, 184, 122, 0.24);
  --ink-text-light: #f3ecdc;
  --ink-muted-light: #c8beaa;

  --paper: #f5efe2;
  --paper-warm: #ebe1cc;
  --paper-card: #fbf8f0;
  --paper-border: #d9ceb6;
  --text-main: #211f1b;
  --text-secondary: #564f43;

  --jade: #1e6b58;
  --jade-dark: #145041;
  --taptap: #12b8bf;
  --taptap-hover: #0ea4aa;
  --gold: #a57932;
  --gold-bright: #e4c177;
  --cinnabar: #a6382e;
  --cinnabar-dark: #862921;

  --font-display: "LXGW WenKai Site", "STKaiti", "Kaiti SC", "Songti SC", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-soft: 0 12px 32px rgba(14, 29, 26, 0.10);
  --shadow-ink: 0 18px 44px rgba(5, 14, 12, 0.36);
  --container-max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--paper-warm);
  scrollbar-width: thin;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-main);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}

::selection {
  background: rgba(166, 56, 46, 0.22);
  color: var(--text-main);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--paper-warm);
}

::-webkit-scrollbar-thumb {
  background: #b8a37c;
  border-radius: 999px;
  border: 2px solid var(--paper-warm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

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

.ink-section :focus-visible,
.hero :focus-visible,
.community-section :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-bright);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink-deep);
  color: var(--ink-text-light);
  border: 1px solid var(--gold-bright);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

.container {
  width: min(var(--container-max), calc(100% - 40px));
  margin-inline: auto;
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-block: 14px;
  color: var(--ink-text-light);
  background: linear-gradient(180deg, rgba(11, 24, 21, 0.72), rgba(11, 24, 21, 0));
  transition: background-color 0.26s var(--ease-out), border-color 0.26s var(--ease-out), padding-block 0.26s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding-block: 10px;
  background: var(--ink-deep);
  border-bottom-color: var(--ink-border);
  box-shadow: 0 6px 20px rgba(6, 15, 13, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand img {
  border-radius: 8px;
  border: 1px solid rgba(228, 193, 119, 0.45);
  flex: none;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

.brand-seal {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1;
  color: #fcefe8;
  background: var(--cinnabar);
  border: 1px solid rgba(244, 210, 132, 0.55);
  border-radius: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: rgba(243, 236, 220, 0.86);
  text-decoration: none;
  padding-block: 6px;
  transition: color 0.2s var(--ease-out);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-bright);
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease-out);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-sm);
  background: rgba(20, 39, 35, 0.78);
  color: var(--ink-text-light);
  cursor: pointer;
}

/* ===== 专属 TapTap 唯一下载 CTA ===== */
.tap-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #062122;
  background: var(--taptap);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.tap-cta:hover {
  background: #1ad1d8;
  box-shadow: 0 10px 26px rgba(18, 184, 191, 0.34);
}

@media (prefers-reduced-motion: no-preference) {
  .tap-cta:hover {
    transform: translateY(-2px);
  }
}

.tap-cta-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.94rem;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.tap-cta-hero {
  min-height: 58px;
  padding: 10px 22px 10px 14px;
  gap: 14px;
  background: #f5efe2;
  color: var(--ink-deep);
  border: 1px solid rgba(228, 193, 119, 0.85);
  box-shadow: 0 14px 36px rgba(6, 17, 15, 0.42);
}

.tap-cta-hero:hover {
  background: #fffaf0;
  box-shadow: 0 18px 40px rgba(6, 17, 15, 0.52);
}

.tap-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #15c5ce;
  flex: none;
}

.tap-cta-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.tap-cta-copy strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: var(--ink-deep);
}

.tap-cta-copy small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.ico-arrow {
  width: 18px;
  height: 18px;
  color: var(--jade);
  flex: none;
}

.tap-cta-full {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
}

/* ===== 首屏：青岚山门画卷 ===== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 640px;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--ink-text-light);
  background: var(--ink-deep);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  image-rendering: auto;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 58% at 50% 44%, rgba(12, 27, 23, 0.42) 0%, rgba(11, 24, 21, 0.72) 70%, rgba(10, 21, 18, 0.90) 100%),
    linear-gradient(180deg, rgba(10, 22, 19, 0.56) 0%, rgba(10, 22, 19, 0.16) 38%, rgba(14, 29, 26, 0.92) 100%);
}

.hero-motes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-motes span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 214, 146, 0.72);
  box-shadow: 0 0 12px rgba(244, 214, 146, 0.55);
  opacity: 0.45;
}

.hero-motes span:nth-child(1) { left: 16%; top: 72%; width: 5px; height: 5px; }
.hero-motes span:nth-child(2) { left: 32%; top: 64%; width: 7px; height: 7px; }
.hero-motes span:nth-child(3) { left: 48%; top: 78%; width: 4px; height: 4px; }
.hero-motes span:nth-child(4) { left: 64%; top: 66%; width: 6px; height: 6px; }
.hero-motes span:nth-child(5) { left: 78%; top: 74%; width: 5px; height: 5px; }
.hero-motes span:nth-child(6) { left: 86%; top: 58%; width: 7px; height: 7px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-motes span {
    animation: mote-rise 12s ease-in-out infinite;
  }
  .hero-motes span:nth-child(2) { animation-duration: 15s; animation-delay: -3s; }
  .hero-motes span:nth-child(3) { animation-duration: 11s; animation-delay: -6s; }
  .hero-motes span:nth-child(4) { animation-duration: 16s; animation-delay: -2s; }
  .hero-motes span:nth-child(5) { animation-duration: 13s; animation-delay: -8s; }
  .hero-motes span:nth-child(6) { animation-duration: 14s; animation-delay: -5s; }
}

.hero-motes.paused span {
  animation-play-state: paused;
}

@keyframes mote-rise {
  0% { transform: translate3d(0, 18px, 0) scale(0.8); opacity: 0; }
  25% { opacity: 0.65; }
  75% { opacity: 0.4; }
  100% { transform: translate3d(24px, -110px, 0) scale(1.1); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding-top: 108px;
  padding-bottom: 36px;
}

.hero-center {
  max-width: 760px;
  text-align: center;
}

.hero-logo-wrap {
  margin: 0 auto 14px;
  width: min(470px, 82vw);
}

.hero-logo {
  width: 100%;
  filter: drop-shadow(0 12px 28px rgba(4, 12, 10, 0.68));
}

.hero-motto {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: 0.24em;
  color: var(--gold-bright);
  text-shadow: 0 3px 16px rgba(6, 15, 13, 0.72);
}

.hero-lead {
  margin: 0 auto 30px;
  max-width: 58ch;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: rgba(245, 239, 226, 0.92);
  text-shadow: 0 2px 12px rgba(6, 15, 13, 0.78);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.qr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  letter-spacing: 0.04em;
  color: var(--ink-text-light);
  background: rgba(14, 29, 26, 0.74);
  border: 1px solid rgba(228, 193, 119, 0.56);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.qr-trigger:hover {
  background: rgba(24, 48, 42, 0.92);
  border-color: var(--gold-bright);
}

.hero-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.hero-tags li {
  padding: 5px 13px;
  font-size: 0.86rem;
  color: #efe5cf;
  background: rgba(14, 29, 26, 0.64);
  border: 1px solid rgba(228, 193, 119, 0.34);
  border-radius: 999px;
}

.hero-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px 22px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  letter-spacing: 0.1em;
  color: rgba(243, 236, 220, 0.84);
  text-decoration: none;
  padding: 6px 14px;
}

.scroll-cue:hover {
  color: var(--gold-bright);
}

.motion-toggle {
  position: absolute;
  right: 24px;
  bottom: 20px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: rgba(243, 236, 220, 0.78);
  background: rgba(14, 29, 26, 0.66);
  border: 1px solid rgba(228, 193, 119, 0.3);
  border-radius: 999px;
  cursor: pointer;
}

.motion-toggle:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ===== 通用章节排版 ===== */
.section {
  padding-block: clamp(64px, 8vw, 108px);
}

.paper-section {
  background: var(--paper);
  color: var(--text-main);
}

.warm-section {
  background: var(--paper-warm);
  color: var(--text-main);
  border-top: 1px solid var(--paper-border);
}

.ink-section {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(35, 76, 65, 0.42), transparent 65%),
    var(--ink-deep);
  color: var(--ink-text-light);
}

.sec-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 68ch;
}

.sec-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.06em;
  text-wrap: balance;
}

.sec-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.sec-head-ink .sec-sub {
  color: var(--ink-muted-light);
}

/* ===== 第二卷：实机映象 Tabs（严格遵循 tabs 指南） ===== */
.tablist.scroller {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: 2.5rem;
  scrollbar-width: none;
  border-bottom: 1px solid var(--paper-border);
  margin-bottom: 28px;
  --fade-size: 2.5rem;
  --fade-dir: right;
  --fade-start-pos: 0;
  --fade-end-pos: 100%;
  mask:
    linear-gradient(black, black) no-clip subtract,
    linear-gradient(to var(--fade-dir), black, transparent) var(--fade-start-pos) 0 / var(--fade-start) 100% no-repeat no-clip,
    linear-gradient(to var(--fade-dir), transparent, black) var(--fade-end-pos) 0 / var(--fade-end) 100% no-repeat no-clip;
  animation: reveal-fade-start linear both, hide-fade-end linear both;
  animation-timeline: scroll(self inline);
  animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%;
  transition: --fade-start 0.2s, --fade-end 0.2s;
}

.tablist.scroller::-webkit-scrollbar {
  display: none;
}

.tablist.scroller.more-start {
  --fade-start: var(--fade-size);
}

.tablist.scroller.more-end {
  --fade-end: var(--fade-size);
}

@keyframes reveal-fade-start {
  to { --fade-start: var(--fade-size); }
}

@keyframes hide-fade-end {
  from { --fade-end: var(--fade-size); }
}

.tablist [role="tab"] {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  min-height: 46px;
  padding: 10px 18px 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s var(--ease-out);
}

.tablist [role="tab"]:hover {
  color: var(--text-main);
}

.tablist [role="tab"][aria-selected="true"] {
  color: var(--cinnabar);
}

.tablist [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 10px 0;
  border-block-end: 3px solid var(--cinnabar);
}

.showcase-panels {
  display: grid;
}

.showcase-panels > [role="tabpanel"] {
  grid-area: 1 / 1;
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.stage-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #cfc2a6;
  border-radius: var(--radius-md);
  background: var(--ink-deep);
  overflow: hidden;
  cursor: zoom-in;
}

.stage-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .stage-frame:hover img {
    transform: scale(1.025);
  }
}

.zoom-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: #f6efe0;
  background: rgba(14, 29, 26, 0.82);
  border: 1px solid rgba(228, 193, 119, 0.55);
  border-radius: 999px;
}

.stage-copy h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.1vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-deep);
}

.stage-copy p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.detail-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--text-main);
}

.detail-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* 三大初始地貌 */
.biomes-block {
  margin-top: clamp(44px, 6vw, 68px);
}

.biomes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.biomes-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-deep);
}

.biomes-head p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.biomes-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.biome-plate {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border: 1px solid #c9ba9c;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-deep);
  cursor: zoom-in;
}

.biome-plate img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .biome-plate:hover img {
    transform: scale(1.04);
  }
}

.biome-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, rgba(12, 24, 21, 0) 0%, rgba(12, 24, 21, 0.88) 76%);
  color: var(--ink-text-light);
}

.biome-overlay strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.biome-overlay span {
  font-size: 0.84rem;
  color: rgba(243, 236, 220, 0.88);
}

/* ===== 第三卷：十门血脉画廊 ===== */
.tier-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-pill {
  min-height: 40px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--ink-muted-light);
  background: rgba(26, 50, 45, 0.72);
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.filter-pill:hover {
  color: var(--ink-text-light);
  border-color: rgba(228, 193, 119, 0.56);
}

.filter-pill.active {
  color: var(--ink-deep);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.bloodline-stage {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.bloodline-roster {
  display: grid;
  gap: 8px;
}

.bl-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 8px 14px;
  text-align: left;
  color: var(--ink-text-light);
  background: rgba(22, 43, 38, 0.72);
  border: 1px solid rgba(214, 184, 122, 0.16);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.bl-option:hover {
  background: rgba(31, 61, 54, 0.88);
  border-color: rgba(228, 193, 119, 0.44);
}

.bl-option.active {
  background: #203d36;
  border-color: var(--gold-bright);
}

.bl-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bl-glyph {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  border-radius: 6px;
  color: #fffaf0;
  background: var(--bl-accent, var(--jade));
  flex: none;
}

.bl-id-qingyun { --bl-accent: #b48636; }
.bl-id-baizang { --bl-accent: #45637a; }
.bl-id-qingyang { --bl-accent: #3d7a64; }
.bl-id-xuanying { --bl-accent: #3c547d; }
.bl-id-zhuming { --bl-accent: #a8442f; }
.bl-id-daizong { --bl-accent: #7c6a38; }
.bl-id-weishang { --bl-accent: #5d6e64; }
.bl-id-longshang { --bl-accent: #7b6248; }
.bl-id-hanshang { --bl-accent: #4f7a7c; }
.bl-id-huaishang { --bl-accent: #4b6978; }

.realm-desc {
  margin: 0;
  color: var(--text-secondary);
}

.mwg-display-probe {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  display: block;
  transition-property: display;
  transition-duration: 1s;
  transition-behavior: allow-discrete;
}

.mwg-display-probe.is-hidden {
  display: none;
}

.sr-copy-buf {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.bl-option strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.04rem;
}

.bl-tier-tag {
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(228, 193, 119, 0.34);
  color: var(--ink-muted-light);
}

.bl-tier-tag.xian {
  color: #ffe299;
  border-color: rgba(240, 190, 72, 0.75);
  background: rgba(180, 134, 54, 0.24);
}

.bl-tier-tag.ling {
  color: #bcebd8;
  border-color: rgba(93, 185, 148, 0.5);
  background: rgba(45, 110, 94, 0.24);
}

.bloodline-dossier {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(20px, 3vw, 32px);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ink);
}

.portrait-scroll-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(228, 193, 119, 0.42);
  background: var(--paper);
}

.portrait-scroll-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.stigma-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff6ec;
  background: var(--cinnabar);
  border: 1px solid rgba(255, 224, 166, 0.75);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.tier-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  color: var(--ink-deep);
  background: var(--gold-bright);
}

.lifespan-chip {
  color: var(--ink-muted-light);
}

.dossier-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.dossier-title-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 400;
  color: var(--gold-bright);
}

.stigma-pill {
  padding: 4px 12px;
  font-size: 0.86rem;
  color: #fceae5;
  background: rgba(166, 56, 46, 0.34);
  border: 1px solid rgba(224, 118, 102, 0.56);
  border-radius: 999px;
}

.dossier-lore {
  margin: 0 0 18px;
  color: var(--ink-text-light);
}

.dossier-facts {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(14, 29, 26, 0.56);
  border: 1px solid rgba(214, 184, 122, 0.18);
  border-radius: var(--radius-md);
}

.dossier-facts > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.92rem;
}

.dossier-facts dt {
  color: var(--gold-bright);
  font-family: var(--font-display);
}

.dossier-facts dd {
  margin: 0;
  color: var(--ink-muted-light);
}

.radar-block {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.radar-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}

.radar-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(14, 29, 26, 0.52);
  border: 1px solid rgba(214, 184, 122, 0.14);
  font-size: 0.86rem;
}

.stat-row span {
  color: var(--ink-muted-light);
}

.stat-row strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* ===== 第四卷：五境问道 + 九大道统 ===== */
.realms-wrap {
  margin-bottom: clamp(44px, 6vw, 64px);
}

.realms-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.realm-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  text-align: left;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.realm-node:hover {
  border-color: var(--gold);
}

.realm-node.active {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--ink-text-light);
}

.realm-step {
  font-size: 0.78rem;
  color: var(--gold);
}

.realm-node.active .realm-step {
  color: var(--gold-bright);
}

.realm-node strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.realm-node small {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.realm-node.active small {
  color: var(--ink-muted-light);
}

.realm-detail {
  padding: 20px 24px;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
}

.realm-detail-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 8px;
}

.realm-detail-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--ink-deep);
}

.realm-sub-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.realm-sub-stages span {
  padding: 3px 10px;
  font-size: 0.82rem;
  color: var(--jade-dark);
  background: rgba(30, 107, 88, 0.10);
  border: 1px solid rgba(30, 107, 88, 0.24);
  border-radius: 999px;
}

.dao-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.dao-toolbar h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-deep);
}

.dao-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
  min-height: 44px;
  padding: 0 14px;
  background: var(--paper-card);
  border: 1px solid #c9ba9c;
  border-radius: 999px;
  color: var(--text-secondary);
}

.dao-search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.94rem;
  color: var(--text-main);
}

.dao-search input::placeholder {
  color: #6b6356;
}

.dao-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}

.dao-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dao-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  text-align: left;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}

.dao-item:hover {
  border-color: var(--gold);
}

.dao-item.active {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--ink-text-light);
}

.dao-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dao-icon {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  flex: none;
}

.dao-item strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
}

.dao-item small {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.dao-item.active small {
  color: var(--ink-muted-light);
}

.dao-detail {
  padding: 24px 26px;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.dao-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dao-detail-head img {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
}

.dao-detail-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink-deep);
}

.dao-detail-head span {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.86rem;
  color: var(--cinnabar);
}

.dao-detail-desc {
  margin: 0 0 18px;
  color: var(--text-main);
}

.dao-meta-list {
  margin: 0;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-border);
}

.dao-meta-list > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.92rem;
}

.dao-meta-list dt {
  font-family: var(--font-display);
  color: var(--gold);
}

.dao-meta-list dd {
  margin: 0;
  color: var(--text-secondary);
}

.dao-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--paper-card);
  border: 1px dashed var(--paper-border);
  border-radius: var(--radius-md);
}

/* ===== 第五卷：宗门密录 ===== */
.chronicle-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.col-heading {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--ink-deep);
}

.version-scroll {
  margin-bottom: 12px;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
}

.version-scroll summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.version-scroll summary::-webkit-details-marker {
  display: none;
}

.version-scroll summary strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 400;
  color: var(--ink-deep);
  flex: 1;
}

.ver-badge {
  padding: 2px 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fffaf0;
  background: var(--jade);
  border-radius: 4px;
}

.ver-date {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.version-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--paper-border);
}

.ver-tagline {
  margin: 12px 0 10px;
  font-size: 0.9rem;
  color: var(--cinnabar);
}

.version-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.origin-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.origin-list li {
  padding: 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
}

.origin-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.origin-top strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink-deep);
}

.origin-top span {
  font-size: 0.82rem;
  color: var(--jade);
}

.origin-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.codes-panel {
  padding: 18px;
  background: var(--ink-deep);
  color: var(--ink-text-light);
  border-radius: var(--radius-md);
}

.codes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 14px;
}

.codes-head .col-heading {
  margin: 0;
  color: var(--gold-bright);
}

.codes-head small {
  font-size: 0.82rem;
  color: var(--ink-muted-light);
}

.codes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.code-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(228, 193, 119, 0.28);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}

.code-btn:hover {
  border-color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.11);
}

.code-btn code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.code-btn span {
  font-size: 0.82rem;
  color: var(--ink-muted-light);
}

/* ===== 第六卷：道友同游 ===== */
.community-section {
  position: relative;
  padding-block: clamp(68px, 9vw, 110px);
  color: var(--ink-text-light);
  background: var(--ink-deep);
  overflow: hidden;
}

.community-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.community-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.community-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 27, 24, 0.92) 0%, rgba(16, 31, 27, 0.82) 55%, rgba(14, 27, 24, 0.90) 100%);
}

.community-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 36px;
  align-items: center;
}

.community-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.community-copy > p {
  margin: 0 0 26px;
  max-width: 56ch;
  color: rgba(243, 236, 220, 0.90);
}

.community-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.community-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink-text-light);
  background: rgba(14, 29, 26, 0.72);
  border: 1px solid rgba(228, 193, 119, 0.40);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.92rem;
}

.ghost-btn:hover {
  border-color: var(--gold-bright);
  background: rgba(25, 50, 44, 0.90);
}

.ghost-btn small {
  color: var(--gold-bright);
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: var(--paper-card);
  color: var(--text-main);
  border: 1px solid var(--gold-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ink);
}

.qr-frame {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2d8c2;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.qr-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-deep);
}

.qr-card small {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0a1613;
  color: var(--ink-muted-light);
  border-top: 1px solid rgba(214, 184, 122, 0.18);
  padding-block: 30px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--ink-text-light);
}

.footer-brand p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-muted-light);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

/* ===== 原生 Dialog 顶层动效与防滚动穿透（严格遵循 modern-web-guidance） ===== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(8, 17, 15, 0);
  transition-property: background-color, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.modal-dialog {
    transform: translateY(10px) scale(0.97);
  }
  dialog.drawer-dialog {
    transform: translateX(24px);
  }
}

:is(dialog[open]):where(:not([data-closing])) {
  opacity: 1;
}

@starting-style {
  :is(dialog[open]):where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(dialog[open]):where(:not([data-closing])) {
    transform: translate3d(0, 0, 0) scale(1);
  }
  @starting-style {
    :is(dialog.modal-dialog[open]):where(:not([data-closing])) {
      transform: translateY(10px) scale(0.97);
    }
    :is(dialog.drawer-dialog[open]):where(:not([data-closing])) {
      transform: translateX(24px);
    }
  }
}

:is(dialog[open]):where(:not([data-closing]))::backdrop {
  background-color: rgba(8, 17, 15, 0.76);
}

@starting-style {
  :is(dialog[open]):where(:not([data-closing]))::backdrop {
    background-color: rgba(8, 17, 15, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog,
  dialog::backdrop {
    transition-duration: 0.1s;
  }
}

.icon-close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(228, 193, 119, 0.45);
  background: rgba(14, 29, 26, 0.86);
  color: var(--ink-text-light);
  cursor: pointer;
}

.icon-close:hover {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.lightbox-shell {
  position: relative;
  width: min(1080px, calc(100vw - 32px));
  background: var(--ink-deep);
  border: 1px solid rgba(228, 193, 119, 0.42);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-ink);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: #091311;
}

.lightbox-figure figcaption {
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-text-light);
  border-top: 1px solid var(--ink-border);
}

.qr-modal-shell {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  text-align: center;
  background: var(--paper-card);
  color: var(--text-main);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ink);
}

.qr-modal-shell h3 {
  margin: 0 32px 8px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 400;
  color: var(--ink-deep);
  text-wrap: balance;
}

.qr-modal-shell p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.qr-frame-lg {
  display: inline-block;
  margin-bottom: 18px;
}

.qr-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.copy-link-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
  color: var(--ink-deep);
  background: var(--paper-warm);
  border: 1px solid #c9ba9c;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.copy-link-btn:hover {
  border-color: var(--gold);
}

/* 移动端导航抽屉 */
.drawer-dialog {
  margin: 0 0 0 auto;
  height: 100svh;
  max-height: 100svh;
  max-width: min(310px, 84vw);
  width: 100%;
}

.drawer-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: var(--ink-deep);
  color: var(--ink-text-light);
  border-left: 1px solid var(--ink-border);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-border);
}

.drawer-links {
  display: grid;
  gap: 6px;
  margin-block: 18px auto;
}

.drawer-links a {
  padding: 12px 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.drawer-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
}

/* Toast 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-deep);
  background: var(--paper-card);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(5, 14, 12, 0.45);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== 隐私政策独立页 ===== */
.privacy-page {
  background: var(--paper);
}

.privacy-shell {
  padding: 96px 20px 64px;
}

.privacy-paper {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.privacy-head {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--paper-border);
}

.privacy-head h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--ink-deep);
}

.privacy-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 0.9rem;
}

.privacy-meta dt {
  color: var(--gold);
  font-family: var(--font-display);
}

.privacy-meta dd {
  margin: 0;
  color: var(--text-secondary);
}

.privacy-sec {
  margin-top: 26px;
}

.privacy-sec h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--jade-dark);
}

.privacy-sec code {
  padding: 1px 6px;
  font-size: 0.88em;
  background: var(--paper-warm);
  border-radius: 4px;
}

.privacy-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--paper-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.back-home {
  color: var(--cinnabar);
  text-decoration: none;
  font-family: var(--font-display);
}

/* ===== 响应式断点 ===== */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .stage-grid,
  .bloodline-stage,
  .dao-layout,
  .chronicle-split,
  .community-inner {
    grid-template-columns: 1fr;
  }
  .bloodline-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .realms-rail {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .qr-card {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 28px);
  }
  .biomes-strip {
    grid-template-columns: 1fr;
  }
  .bloodline-dossier {
    grid-template-columns: 1fr;
  }
  .dossier-portrait-col {
    max-width: 280px;
    margin-inline: auto;
  }
  .radar-block {
    grid-template-columns: 1fr;
  }
  .radar-canvas {
    max-width: 210px;
    margin-inline: auto;
  }
  .dao-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .privacy-meta {
    grid-template-columns: 1fr;
  }
  .hero-bottom-bar {
    justify-content: space-between;
  }
  .motion-toggle {
    position: static;
  }
}

@media (max-width: 440px) {
  .brand {
    gap: 7px;
  }
  .brand-text {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }
  .header-actions {
    gap: 8px;
  }
  .tap-cta-sm {
    padding: 0 12px;
    font-size: 0.86rem;
    gap: 6px;
  }
  .bloodline-roster,
  .codes-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .tap-cta-hero,
  .qr-trigger {
    width: 100%;
    justify-content: center;
  }
}
