:root {
  --bg: #050608;               /* 极具质感的冷玉哑光黑 */
  --bg-elevated: #0a0c10;      /* 精致半透明黑 */
  --surface: #101217;          /* 暗金微光表面 */
  --surface-2: #161922;
  --ink: #f4efe6;              /* 高雅宣纸白 */
  --muted: #948fa0;            /* 哑光冷银灰(对比度提亮一档,小字更稳) */
  --line: rgba(212, 178, 111, 0.18); /* 细金边分割线(略提,避免隐形) */
  --gold: #d4b26f;             /* 皇家香槟金 */
  --gold-dim: rgba(212, 178, 111, 0.05); /* 金光漫散底色 */
  --rose: #a65249;
  --violet: #7c6bb5;
  --teal: #4b8a81;
  --amber: #b27f3b;
  --slate: #5d6b7c;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(212, 178, 111, 0.03); /* 暗金羽化外发光 */
  --radius: 12px;              /* 减小过于圆润的弧度，更显精致干练 */
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", "Cormorant Garamond", serif;
  --font-sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============ Navbar (fixed top function bar) ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  background: rgba(5, 6, 8, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 6, 8, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  transition: padding 0.3s ease;
}

.navbar.scrolled .navbar-inner {
  padding-top: 11px;
  padding-bottom: 11px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  background: radial-gradient(circle at 50% 50%, rgba(212, 178, 111, 0.16), transparent 70%);
  box-shadow: 0 0 18px rgba(212, 178, 111, 0.18), inset 0 0 10px rgba(212, 178, 111, 0.1);
  transition: box-shadow 0.3s ease;
}
.logo:hover .logo-mark {
  box-shadow: 0 0 26px rgba(212, 178, 111, 0.32), inset 0 0 12px rgba(212, 178, 111, 0.16);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.logo-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--gold);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Navbar right actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-search-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(78vw, 320px);
  z-index: 210;
  padding: 88px 28px 28px;
  background: rgba(8, 9, 12, 0.98);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  padding: 16px 18px;
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  border-color: var(--line);
  color: var(--gold);
  background: var(--gold-dim);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 148px 32px 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(212, 178, 111, 0.10), transparent 60%),
    radial-gradient(700px 600px at 5% 110%, rgba(124, 107, 181, 0.06), transparent 55%);
  pointer-events: none;
}
/* 造物者空间 · 星尘层 */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 70% 18%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.6px 1.6px at 40% 72%, rgba(212, 178, 111, 0.65), transparent 60%),
    radial-gradient(1px 1px at 86% 60%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 55% 44%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.6px 1.6px at 10% 82%, rgba(124, 107, 181, 0.55), transparent 60%),
    radial-gradient(1px 1px at 92% 88%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 30% 10%, rgba(255, 255, 255, 0.4), transparent 60%);
  background-repeat: repeat;
  background-size: 620px 620px;
  opacity: 0.55;
  animation: starDrift 70s linear infinite, twinkle 6.5s ease-in-out infinite alternate;
}
/* 造物者空间 · 能量雾气层 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(440px 440px at 28% 42%, rgba(124, 107, 181, 0.14), transparent 70%),
    radial-gradient(520px 380px at 76% 64%, rgba(212, 178, 111, 0.1), transparent 70%);
  filter: blur(10px);
  animation: energyDrift 24s ease-in-out infinite alternate;
}

@keyframes starDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-140px); }
}
@keyframes twinkle {
  from { opacity: 0.38; }
  to { opacity: 0.7; }
}
@keyframes energyDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(22px, -18px) scale(1.06); }
  100% { transform: translate(-16px, 14px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after { animation: none; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: max-content;
  margin: 48px auto 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-scroll-hint svg {
  animation: bob 1.8s ease-in-out infinite;
}

.hero-scroll-hint:hover { color: var(--gold); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.gold {
  color: var(--gold);
  font-style: italic;
}

.hero-deck {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Hero search */
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.hero-search svg { color: var(--muted); flex-shrink: 0; }

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--muted); }

.hero-search-go {
  flex-shrink: 0;
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-search-go:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* Hero quick filter chips */
.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.quick-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.quick-chip .qc-count {
  margin-left: 6px;
  color: var(--gold);
  font-size: 11px;
  opacity: 0.7;
}

.quick-chip--free {
  border-color: rgba(75, 138, 129, 0.5);
  color: var(--teal);
}
.quick-chip--free:hover {
  border-color: var(--teal);
  color: #7fd6c8;
  background: rgba(75, 138, 129, 0.1);
}
.quick-chip--free .qc-count {
  color: var(--teal);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}
/* 基础交互元素焦点态(键盘可访问性;与全站现有约定一致) */
.btn:focus-visible,
.vh-btn:focus-visible,
.nav-link:focus-visible,
.nav-subscribe:focus-visible,
.plan-cta:focus-visible,
.de-door:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-gold {
  background: var(--gold);
  color: #1a1408;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: center;
}

.metric-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.metric-card:hover {
  border-color: rgba(212, 178, 111, 0.4);
  transform: translateY(-2px);
}

.metric-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  background: var(--bg-elevated);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span {
  color: var(--gold);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
}

.section-lead {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.bento-card {
  grid-column: span 4;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 160px;
}

.bento-card:nth-child(1) { grid-column: span 5; }
.bento-card:nth-child(2) { grid-column: span 3; }
.bento-card:nth-child(3) { grid-column: span 4; }
.bento-card:nth-child(4) { grid-column: span 4; }
.bento-card:nth-child(5) { grid-column: span 4; }

.bento-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 28px;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bento-card .count {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.bento-card[data-hue="rose"] { border-color: rgba(184, 107, 99, 0.35); }
.bento-card[data-hue="violet"] { border-color: rgba(139, 126, 200, 0.35); }
.bento-card[data-hue="teal"] { border-color: rgba(90, 158, 150, 0.35); }
.bento-card[data-hue="amber"] { border-color: rgba(196, 146, 74, 0.35); }
.bento-card[data-hue="slate"] { border-color: rgba(107, 122, 143, 0.35); }

/* Browser */
.vault-browser {
  padding-top: 0;
}

.browser-toolbar {
  position: sticky;
  top: 64px;
  z-index: 80;
  padding: 18px 0 20px;
  margin-bottom: 4px;
  background: linear-gradient(var(--bg) 78%, transparent);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap svg {
  position: absolute;
  left: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input {
  padding-left: 48px;
}

.filter-reset {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-reset:hover {
  border-color: var(--rose);
  color: #d98f86;
}

.search-wrap input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.chip.is-active,
.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.toolbar-row select {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.result-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

/* Masonry packs */
.pack-masonry {
  columns: 3;
  column-gap: 20px;
}

.pack-card {
  break-inside: avoid;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.pack-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 178, 111, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(212, 178, 111, 0.12);
}

.pack-card:active {
  transform: translateY(-2px) scale(0.995);
}

.pack-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* 滚动渐显 */
.pack-card.pre-reveal {
  opacity: 0;
  transform: translateY(14px);
}
.pack-card.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 加载骨架屏 */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: sk-shimmer 1.4s infinite;
}
@keyframes sk-shimmer {
  100% { transform: translateX(100%); }
}
.skeleton-card { cursor: default; pointer-events: none; }
.skeleton-card .sk-cover { aspect-ratio: 16 / 9; }
.skeleton-card .sk-line {
  height: 12px;
  border-radius: 6px;
  margin: 0 0 10px;
}
.skeleton-card .sk-line--short { width: 60%; }
.skeleton-card .sk-tags { display: flex; gap: 8px; margin-top: 14px; }
.skeleton-card .sk-chip { width: 56px; height: 20px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  .pack-card.pre-reveal { opacity: 1; transform: none; }
  .pack-card.is-revealed { transition: none; }
  .skeleton::after { animation: none; }
}

.cover-progress {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(8, 9, 12, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
}

.cover-free {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(75, 138, 129, 0.92);
  border: 1px solid rgba(127, 214, 200, 0.6);
  color: #f1fffb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(75, 138, 129, 0.35);
}

.pack-card.is-complete {
  outline: 1px solid rgba(201, 164, 92, 0.35);
}

.bento-card--featured {
  grid-column: span 8;
}

.tag-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.asset-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-2);
}

.pack-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}

.pack-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cover-gradient);
  opacity: 0.92;
}

.pack-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.95) 0%, transparent 65%);
}

.pack-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-elevated);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pack-card:hover .pack-cover img {
  transform: scale(1.04);
}

.pack-cover .cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 64px;
  opacity: 0.12;
}

.pack-cover.is-pending .cover-fallback {
  opacity: 0.22;
}

.cover-pending {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(20, 22, 30, 0.85);
  border: 1px solid rgba(170, 150, 220, 0.45);
  color: #d8cdf2;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.pack-meta {
  position: relative;
  z-index: 1;
}

.pack-meta .tier {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.pack-meta h3 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.15;
}

.pack-body {
  padding: 16px 20px 20px;
}

.pack-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-sensual {
  border-color: rgba(212, 165, 116, 0.45);
  color: #e8c9a0;
  background: rgba(212, 165, 116, 0.08);
}

.tag {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 11px;
}

.tag.limited {
  background: rgba(184, 107, 99, 0.2);
  color: var(--rose);
}

/* Plans */
.plans {
  border-top: 1px solid var(--line);
}

/* 计费周期切换（月付 / 年付） */
.billing-toggle {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 32px auto 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.bt-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.bt-opt.is-active { background: linear-gradient(180deg, #e6cd8f, var(--gold)); color: #1a140a; }
.bt-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bt-save {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(111, 207, 151, 0.16);
  color: #6fcf97;
}
.bt-opt.is-active .bt-save { background: rgba(26, 20, 10, 0.2); color: #1a140a; }

/* 计费周期：价格显隐 + 年省额 */
.plan-grid[data-billing="monthly"] [data-cycle="annual"],
.plan-grid[data-billing="annual"] [data-cycle="monthly"] { display: none; }
.price-save {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6fcf97;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* 年付标识徽章 */
.annual-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1a140a;
  background: linear-gradient(180deg, #e6cd8f, var(--gold));
  vertical-align: middle;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.plan-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
}

.plan-card.plus {
  border-color: rgba(201, 164, 92, 0.45);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.08);
}

.plan-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.plan-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
}

.plan-card .price {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--gold);
}

.plan-card .tagline {
  margin: 0 0 20px;
  color: var(--muted);
}

.plan-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--ink);
}

.plan-card li {
  margin-bottom: 6px;
}

.plan-card .notice {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.plan-notice {
  margin-top: 32px;
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.plan-notice strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.plan-notice p {
  margin: 0;
  color: var(--ink);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline-item .month {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
}

.timeline-item .title {
  font-weight: 500;
}

.timeline-item .badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(184, 107, 99, 0.2);
  color: var(--rose);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Fulfill */
.fulfill {
  border-top: 1px solid var(--line);
}

.fulfill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.marketing-links {
  margin-top: 16px;
  font-size: 13px;
}

.marketing-links a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bundle-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.fulfill-grid p {
  color: var(--muted);
}

.fulfill-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.fulfill-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fulfill-steps span {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold);
  min-width: 48px;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Detail dialog */
.detail-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.detail-shell {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

/* 详情弹窗双栏布局样式 */
.detail-dialog-split {
  display: grid;
  grid-template-columns: 4.8fr 5.2fr;
  gap: 36px;
  min-height: 60vh;
}

.detail-dialog-left {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 32px 20px 32px 32px;
}

.detail-dialog-right {
  padding: 32px 32px 32px 0;
}

/* 详情章节目录（粘性锚点导航） */
.detail-toc {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  margin-bottom: 8px;
  background: linear-gradient(to bottom, var(--bg-elevated, #0c0d11) 78%, transparent);
  scrollbar-width: thin;
}
.detail-toc::-webkit-scrollbar { height: 4px; }
.detail-toc::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 999px; }
.detail-toc button {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.detail-toc button:hover { color: var(--ink); border-color: rgba(199, 164, 96, 0.4); }
.detail-toc button.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(199, 164, 96, 0.12);
}

.detail-dialog-right .detail-section {
  scroll-margin-top: 56px;
}

/* 粘性画廊样式 */
.detail-sticky-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-cover-main {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  position: relative;
}

.detail-cover-main::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px; width: 10px; height: 10px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  z-index: 2;
}
.detail-cover-main::after {
  content: "";
  position: absolute;
  bottom: 10px; right: 10px; width: 10px; height: 10px;
  border-bottom: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  z-index: 2;
}

.detail-cover-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cover-main-fallback {
  display: none;
}

.detail-cover-main.is-pending {
  background: linear-gradient(150deg, #16131f 0%, #0c0b12 100%);
}

.detail-cover-main.is-pending .cover-main-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cover-main-fallback .cmf-glyph {
  font-family: var(--font-serif);
  font-size: 88px;
  color: rgba(216, 205, 242, 0.18);
  line-height: 1;
}

.cover-main-fallback .cmf-note {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #d8cdf2;
  border: 1px solid rgba(170, 150, 220, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(20, 22, 30, 0.6);
}

.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.thumb-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.thumb-btn--creator {
  border: 1px dashed rgba(212, 178, 111, 0.45);
  color: #ede8df;
  background: rgba(212, 178, 111, 0.03);
}

.thumb-btn--creator:hover {
  border-style: solid;
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 178, 111, 0.08);
  box-shadow: 0 0 12px rgba(212, 178, 111, 0.15);
}

/* 金句大宋体与艺术金引号 */
.detail-quote-box {
  position: relative;
  padding: 24px 28px;
  margin: 24px 0;
  border-left: 2px solid var(--gold);
  background: var(--gold-dim);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
}

/* 提示词高档底色与复制按钮 */
.prompt-block {
  position: relative;
  background: rgba(212, 178, 111, 0.04);
  border: 1px solid rgba(212, 178, 111, 0.1);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  padding: 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(212, 178, 111, 0.3);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--gold);
  color: #050608;
}

.detail-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.detail-body {
  padding: 8px 36px 36px;
  clear: both;
}

.detail-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--cover-gradient);
  position: relative;
  overflow: hidden;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-intro h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 36px;
}

.detail-intro .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-intro p {
  color: var(--muted);
}

.detail-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.detail-section h4 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.detail-section ul,
.detail-section ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-section li {
  margin-bottom: 8px;
}

.prompt-block {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-actions .btn {
  padding: 10px 18px;
  font-size: 12px;
}

.profile-card {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-card h5 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
}

.profile-card .quote {
  color: var(--gold);
  font-style: italic;
}

.asset-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.asset-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.asset-gallery--wide {
  grid-template-columns: 1fr;
  gap: 20px;
}

.asset-gallery--wide .asset-figure img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bg-elevated);
}

.asset-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bg-elevated);
}

.asset-figure.is-missing img {
  display: none;
}

.asset-figure.is-missing::before {
  content: "配图排期中";
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--muted);
  font-size: 12px;
}

.asset-figure figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}

.prompt-card {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.prompt-card h5 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 20px;
}

.prompt-card .intent {
  color: var(--gold);
  font-size: 14px;
}

.muted-small {
  color: var(--muted);
  font-size: 12px;
}

.prompt-block.neg {
  border-left: 2px solid var(--rose);
}

.variant-details {
  margin-top: 12px;
}

.variant-details summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 13px;
}

.variant-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.variant-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 8px;
}

.sales-box {
  border: 1px solid rgba(201, 164, 92, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--gold-dim);
}

.sales-title {
  font-weight: 600;
  color: var(--ink);
}

.asset-prompt {
  padding: 0 10px 10px;
}

.asset-prompt summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--gold);
}

.asset-figure {
  position: relative;
}

.tier-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(8, 9, 12, 0.82);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
}

.asset-figure.is-missing {
  opacity: 0.35;
}

/* Universe grid */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.universe-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.universe-card:hover,
.universe-card:focus-visible {
  border-color: rgba(201, 164, 92, 0.4);
  transform: translateY(-2px);
  outline: none;
}

.universe-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 8px 0;
}

.universe-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.universe-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.universe-meta .count {
  color: var(--gold);
  font-size: 12px;
}

.filters-row {
  flex-wrap: wrap;
  gap: 8px;
}

.filters-row select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.chip-genre.is-active {
  background: rgba(90, 158, 150, 0.2);
  border-color: var(--teal);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.about-grid h3 {
  font-family: var(--font-serif);
  margin-top: 0;
}

.about-grid p {
  color: var(--muted);
  font-size: 14px;
}

/* Hue gradients */
[data-hue="rose"] { --cover-gradient: linear-gradient(145deg, #3d2220 0%, #6b3834 50%, #1a1010 100%); }
[data-hue="violet"] { --cover-gradient: linear-gradient(145deg, #2a2440 0%, #4a3d6b 50%, #14101f 100%); }
[data-hue="teal"] { --cover-gradient: linear-gradient(145deg, #1a2e2c 0%, #2d524e 50%, #0d1514 100%); }
[data-hue="amber"] { --cover-gradient: linear-gradient(145deg, #3a2a14 0%, #6b5028 50%, #1a1408 100%); }
[data-hue="slate"] { --cover-gradient: linear-gradient(145deg, #1e2430 0%, #3a4558 50%, #0e1118 100%); }

/* ============ New components: featured rail, pack grid, section head, back-to-top ============ */

/* Anchor offset for fixed navbar */
section[id],
main[id] {
  scroll-margin-top: 80px;
}

/* Section head as flex (title left, action right) */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-more {
  color: var(--gold);
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.section-more:hover { opacity: 0.7; }

/* Featured rail (horizontal scroll) */
.featured-section { padding-top: 24px; }

.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 20px;
  margin-top: 32px;
  padding: 4px 4px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.featured-rail::-webkit-scrollbar { height: 8px; }
.featured-rail::-webkit-scrollbar-track { background: transparent; }
.featured-rail::-webkit-scrollbar-thumb {
  background: rgba(212, 178, 111, 0.2);
  border-radius: 999px;
}

.featured-rail .pack-card { scroll-snap-align: start; margin-bottom: 0; }

/* Pack grid (replaces masonry columns for predictable layout) */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.pack-grid .pack-card { margin-bottom: 0; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.9);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--gold); color: #1a1408; }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-search-btn span { display: none; }
  .nav-search-btn { padding: 9px 11px; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 124px; }

  .bento-card,
  .bento-card:nth-child(n) { grid-column: span 12; }

  .plan-grid,
  .fulfill-grid,
  .about-grid { grid-template-columns: 1fr; }

  .detail-hero { grid-template-columns: 1fr; }

  .timeline-item { grid-template-columns: 1fr; gap: 8px; }

  .detail-dialog-split { grid-template-columns: 1fr; gap: 8px; }

  /* 单列下左栏不再钉住，跟随内容滚动 */
  .detail-dialog-left {
    position: static;
    padding: 20px 18px 0;
  }
  .detail-dialog-right { padding: 12px 18px 24px; }
  /* 目录在堆叠后依然吸附在右栏顶部 */
  .detail-dialog-right .detail-section { scroll-margin-top: 52px; }
}

@media (max-width: 600px) {
  .navbar-inner,
  .section,
  .hero { padding-inline: 18px; }

  .navbar-inner { gap: 10px; }
  .navbar-actions { gap: 8px; }
  .nav-icon-btn,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .section { padding-block: 44px; }

  .hero { padding-top: 112px; }

  .hero h1 { font-size: clamp(34px, 9vw, 46px); }

  .hero-metrics { grid-template-columns: repeat(2, 1fr); }

  .metric-card strong { font-size: 34px; }

  .hero-search {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 12px 14px;
  }

  .hero-search input { width: 100%; padding: 6px 0; }
  .hero-search-go { width: 100%; }

  .pack-grid { grid-template-columns: 1fr; }

  .featured-rail { grid-auto-columns: minmax(240px, 84vw); }

  .section-head h2 { font-size: 28px; }

  .toolbar-row { gap: 10px; }
  .toolbar-row select { flex: 1; min-width: 120px; }

  /* 详情移动端瘦身 */
  .detail-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 14px;
  }
  .detail-shell { max-height: calc(100vh - 12px); }
  .detail-dialog-left { padding: 16px 14px 0; }
  .detail-dialog-right { padding: 10px 14px 20px; }
  #detailTitle { font-size: 27px !important; margin-bottom: 12px !important; }
  .detail-intro p { margin-bottom: 16px !important; }
  .detail-actions { flex-wrap: wrap; }
  .detail-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    text-align: center;
    white-space: nowrap;
  }
  .detail-actions .bundle-download-btn { flex-basis: 100%; }
  .detail-actions .detail-fav,
  .detail-actions .detail-share {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
  .detail-toc { padding: 8px 0; }
  .detail-toc button { font-size: 11.5px; padding: 4px 10px; }
  .detail-gallery-thumbs { gap: 6px; }
  .wardrobe-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* 账户入口在抽屉顶部已有完整版本；窄屏顶栏保留搜索、收藏与菜单。 */
  .nav-account-btn { display: none !important; }
  .navbar-inner { padding-inline: 12px; }
  .navbar-actions { gap: 7px; }
  .logo { gap: 8px; }
}

/* ===== P0 内容板块：可直接用的成品级素材 ===== */
.section-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head-inline h4 { margin: 0; }
.btn-mini {
  padding: 5px 12px !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.usecase-grid { display: flex; flex-direction: column; gap: 8px; }
.usecase-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  background: var(--gold-dim);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.usecase-scene { color: var(--gold); font-family: var(--font-serif); font-size: 14px; }
.usecase-fit { color: var(--muted); font-size: 13px; line-height: 1.55; }

.quote-list { display: flex; flex-direction: column; gap: 8px; }
.quote-chip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.quote-chip:hover { border-color: rgba(212, 178, 111, 0.3); background: var(--gold-dim); }
.quote-chip > span {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.65;
  color: #ece6da;
}
.mini-copy {
  flex: none;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(212, 178, 111, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mini-copy:hover { background: var(--gold); color: #16130c; }
.mini-copy--wide { padding: 5px 14px; font-size: 11px; }

.social-intro {
  position: relative;
  padding: 14px 16px;
  background: var(--gold-dim);
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
.social-intro p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.75;
  color: #ece6da;
}
.social-intro .mini-copy { position: absolute; top: 12px; right: 12px; }
.hash-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag-hash {
  background: rgba(124, 107, 181, 0.12);
  border-color: rgba(124, 107, 181, 0.3);
  color: #b3a7da;
}

.name-grid { display: flex; flex-direction: column; gap: 6px; }
.name-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.name-pick { color: var(--gold); font-family: var(--font-serif); font-size: 16px; }
.name-meaning { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.dlg-actions { display: flex; gap: 8px; }
.dlg-mood {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.7;
  margin: 0 0 10px;
}
.dlg-box {
  padding: 16px 18px;
  background: var(--gold-dim);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 10px;
}
.dlg-line {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.6;
}
.dlg-line:last-child { margin-bottom: 0; }
.dlg-who {
  flex: none;
  min-width: 56px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 14px;
}
.dlg-text { color: var(--ink); }
.dlg-narration {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 1px dashed var(--line);
  color: var(--muted);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.6;
}

.manifest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.manifest-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.manifest-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.extra-asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.extra-asset {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.extra-asset-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.extra-asset-head strong { color: var(--ink); font-size: 14px; display: block; }
.extra-asset-head em { color: var(--gold); font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }
.ea-status { flex: none; font-size: 11px; padding: 2px 9px; border-radius: 999px; }
.ea-ready { color: #7fd6c8; background: rgba(75, 138, 129, 0.15); }
.ea-pending { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.extra-asset-intent { margin: 8px 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}
.spec-key {
  flex: none;
  min-width: 64px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 14px;
}
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qa-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 10px;
  background: var(--gold-dim);
}
.qa-q { margin: 0 0 6px; font-size: 13px; color: var(--gold); font-family: var(--font-serif); }
.qa-a { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.6; }

.detail-entitlement-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: -8px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 178, 111, 0.28);
  border-radius: 12px;
  background: rgba(212, 178, 111, 0.08);
}
.entitlement-kicker {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-entitlement-box strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16.5px;
}
.detail-entitlement-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}
.entitlement-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.entitlement-side > span {
  color: var(--muted);
  font-size: 11.5px;
}
.entitlement-action {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(212, 178, 111, 0.5);
  border-radius: 9px;
  background: rgba(212, 178, 111, 0.14);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.entitlement-action:hover {
  background: var(--gold);
  color: #17120a;
}
.entitlement-action--ghost {
  border-color: var(--line);
  background: transparent;
}

.detail-materia-sync {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: -4px 0 22px;
  padding: 15px 16px;
  border: 1px solid rgba(75, 138, 129, 0.34);
  border-radius: 12px;
  background: rgba(75, 138, 129, 0.08);
}
.detail-materia-kicker {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-materia-sync strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
}
.detail-materia-sync p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}
.detail-materia-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-materia-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(75, 138, 129, 0.42);
  border-radius: 9px;
  background: rgba(75, 138, 129, 0.09);
  color: #8bd4cb;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.detail-materia-link:hover { background: rgba(75, 138, 129, 0.18); }
.detail-materia-link--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--gold);
}

.project-import-kit {
  padding: 20px 18px 22px;
  border: 1px solid rgba(212, 178, 111, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212, 178, 111, 0.08), rgba(75, 138, 129, 0.08)),
    rgba(255, 255, 255, 0.015);
}
.project-import-head {
  align-items: flex-start;
}
.project-import-head p {
  margin: 5px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.project-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}
.project-checklist-card,
.project-delivery-note,
.deliverable-bundle-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 6, 8, 0.38);
}
.project-checklist-card {
  padding: 16px 16px 14px;
}
.project-delivery-note {
  padding: 16px;
}
.project-card-kicker {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-checklist-card strong,
.project-delivery-note strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.35;
}
.project-checklist-card p,
.project-delivery-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.project-delivery-note code {
  color: #8bd4cb;
  font-family: inherit;
  font-weight: 700;
}
.project-checklist-card ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.project-checklist-card li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}
.project-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(212, 178, 111, 0.34);
  border-radius: 50%;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}
.project-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(212, 178, 111, 0.42);
  border-radius: 9px;
  background: rgba(212, 178, 111, 0.1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.project-action-btn:hover {
  background: var(--gold);
  color: #17120a;
}
.project-action-btn--primary {
  min-width: 124px;
}
.project-bundle-title {
  margin: 20px 0 10px;
}
.project-bundle-title > span {
  color: var(--muted);
  font-size: 11.5px;
}
.deliverable-bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.deliverable-bundle-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 250px;
  padding: 14px;
}
.deliverable-bundle-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.deliverable-bundle-head h5 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.35;
}
.bundle-fit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}
.bundle-fit--hot {
  border-color: rgba(75, 138, 129, 0.5);
  color: #8bd4cb;
  background: rgba(75, 138, 129, 0.1);
}
.deliverable-bundle-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.deliverable-bundle-card li {
  margin: 0;
}
.deliverable-bundle-card .project-action-btn {
  width: 100%;
}

.production-dossier-panel {
  padding: 20px 18px 22px;
  border: 1px solid rgba(86, 192, 173, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(86, 192, 173, 0.08), rgba(212, 178, 111, 0.05)),
    rgba(255, 255, 255, 0.015);
}
.production-dossier-head {
  align-items: flex-start;
}
.production-dossier-head p {
  max-width: 700px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.production-dossier-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}
.production-dossier-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(86, 192, 173, 0.28);
  border-radius: 999px;
  color: #9be5da;
  background: rgba(86, 192, 173, 0.08);
  font-size: 11.5px;
  font-weight: 700;
}
.production-dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.production-dossier-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 6, 8, 0.38);
}
.production-dossier-preview {
  position: relative;
  display: grid;
  min-height: 118px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 20%, rgba(86, 192, 173, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(212, 178, 111, 0.14), rgba(0, 0, 0, 0.34));
}
.production-dossier-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.production-dossier-preview span {
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: 0.08em;
}
.production-dossier-card-body {
  display: grid;
  gap: 7px;
  padding: 13px 14px 14px;
}
.production-dossier-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.production-dossier-card h5 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
}
.production-dossier-status {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(212, 178, 111, 0.12);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.production-dossier-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.52;
}
.production-dossier-card small {
  color: #8bd4cb;
  font-size: 11px;
  line-height: 1.45;
}
.production-dossier-manifest {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}
.production-dossier-manifest summary {
  padding: 11px 13px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.production-dossier-manifest pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 13px;
  border-top: 1px solid var(--line);
  color: #b7eee6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
  line-height: 1.58;
  white-space: pre-wrap;
}

@media (max-width: 600px) {
  .qa-grid { grid-template-columns: 1fr; }
  .detail-entitlement-box { grid-template-columns: 1fr; }
  .entitlement-side { align-items: stretch; }
  .detail-materia-sync { grid-template-columns: 1fr; }
  .detail-materia-actions { align-items: stretch; }
  .project-import-kit { padding: 16px 14px 18px; }
  .production-dossier-panel { padding: 16px 14px 18px; }
  .project-import-head { align-items: stretch; }
  .project-import-grid,
  .production-dossier-grid,
  .deliverable-bundle-grid { grid-template-columns: 1fr; }
  .deliverable-bundle-card { min-height: 0; }
  .project-action-btn--primary { width: 100%; }
}

/* 人物年表 */
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 6px;
  position: relative;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(255, 255, 255, 0.08));
}
.tl-item {
  position: relative;
  padding: 0 0 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-phase {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}
.tl-event { font-size: 13.5px; color: var(--ink); line-height: 1.65; }

/* 服装设定 */
.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.wardrobe-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wd-occasion { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.wd-palette {
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(199, 164, 96, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.wd-silhouette { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.wd-items { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-chip {
  font-size: 11.5px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}
.wd-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; font-style: italic; }

@media (max-width: 600px) {
  .wardrobe-grid { grid-template-columns: 1fr; }
}

/* 随身物档案 */
.prop-list { list-style: none; margin: 0; padding: 0; }
.prop-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.prop-item:last-child { border-bottom: none; }
.prop-name { font-size: 13.5px; font-weight: 600; color: var(--gold); }
.prop-note { font-size: 13px; color: var(--ink); line-height: 1.6; }

/* 习惯与癖好 */
.habit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.habit-label {
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 9px;
  white-space: nowrap;
}
.habit-like { color: #9fe0c8; background: rgba(75, 138, 129, 0.18); border: 1px solid rgba(127, 214, 200, 0.3); }
.habit-dislike { color: #e6a6a6; background: rgba(150, 70, 70, 0.16); border: 1px solid rgba(214, 140, 140, 0.3); }
.habit-chip {
  font-size: 11.5px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}

@media (max-width: 600px) {
  .extra-asset-grid { grid-template-columns: 1fr; }
}

.license-list { padding-left: 0; list-style: none; margin: 0; }
.license-list li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 3px 0;
}

/* 免费试读徽章 */
.badge-free {
  background: linear-gradient(135deg, #4b8a81, #2f5a54);
  color: #eafff9;
  border: none;
  font-weight: 600;
}

/* ============ 世界观圣经（P2） ============ */
.world-bible-btn {
  margin-top: 14px;
  width: 100%;
  padding: 9px 14px;
  border: 1px solid rgba(212, 178, 111, 0.35);
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 12.5px;
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
}
.world-bible-btn:hover {
  background: rgba(212, 178, 111, 0.12);
  border-color: var(--gold);
  color: #fff;
}

/* 整宇宙打包 */
.universe-bundle {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.ub-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.ub-price s { color: var(--muted); font-size: 12px; }
.ub-price strong { color: var(--ink); font-size: 15px; }
.ub-save {
  font-size: 11px;
  font-weight: 600;
  color: #1a1206;
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
}
.bundle-btn {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.bundle-btn:hover {
  border-color: rgba(255, 111, 135, 0.5);
  color: #ff8da3;
  background: rgba(40, 12, 18, 0.4);
}
.wb-pro {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  font-size: 10px;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  color: #050608;
  background: var(--gold);
  border-radius: 999px;
  vertical-align: middle;
}

.world-dialog .detail-shell { padding: 0; }
.world-body {
  padding: 32px 40px 40px;
  max-height: 86vh;
  overflow-y: auto;
}
.world-head { margin-bottom: 24px; }
.world-head h2 {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--gold);
  font-weight: 500;
  margin: 8px 0 12px;
}
.world-tagline {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}
.world-list { margin: 0; padding-left: 18px; }
.world-list li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 6px;
}
.relation-web { margin: 0; padding-left: 0; list-style: none; }
.relation-web li {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--gold-dim);
  border-left: 2px solid var(--gold);
  border-radius: 8px;
}

/* 核心角色 · 手工具名群像 */
.named-cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.nc-card {
  border: 1px solid var(--line);
  border-left: 2px solid rgba(212, 178, 111, .5);
  border-radius: 10px;
  background: var(--surface);
  padding: 13px 15px;
}
.nc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nc-head strong { font-family: var(--font-serif); font-size: 16px; color: var(--gold); }
.nc-role { font-size: 12px; color: var(--ink); opacity: .8; white-space: nowrap; }
.nc-faction { display: inline-block; margin: 4px 0 6px; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.nc-note { margin: 0; font-size: 13px; line-height: 1.62; color: var(--ink); opacity: .9; }
.named-cast-more { margin: 6px 0 12px; font-size: 12px; color: var(--muted); letter-spacing: .05em; }
/* 暗面 · 深挖者彩蛋(折叠·刻意低调) */
.world-darkline { margin: 26px 0 0; border: 1px dashed rgba(212, 178, 111, .28); border-radius: 10px; background: rgba(20, 16, 28, .35); padding: 4px 16px; }
.world-darkline > summary { cursor: pointer; padding: 12px 0; font-size: 13px; color: var(--muted); letter-spacing: .04em; list-style: none; user-select: none; }
.world-darkline > summary::-webkit-details-marker { display: none; }
.world-darkline > summary::before { content: "◇ "; color: var(--gold); opacity: .7; }
.world-darkline[open] > summary { color: var(--gold); border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.wd-note { font-size: 12px; line-height: 1.6; color: var(--muted); opacity: .85; margin: 4px 0 12px; }
.wd-layers { list-style: none; padding: 0; margin: 0 0 10px; }
.wd-layers li { padding: 9px 0; border-bottom: 1px solid rgba(212, 178, 111, .1); }
.wd-layers li:last-child { border-bottom: none; }
.wd-tier { display: inline-block; font-family: var(--font-serif); font-size: 13.5px; color: var(--gold); margin-bottom: 4px; }
.wd-layers li p { margin: 2px 0 0; font-size: 13px; line-height: 1.62; color: var(--ink); opacity: .88; }
/* 剧组小人物群像(紧凑速写) + 人间细节 */
.folk-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; }
.folk-list li { padding: 8px 0; border-bottom: 1px solid rgba(212, 178, 111, .1); }
.folk-name { font-family: var(--font-serif); font-size: 14px; color: var(--gold); margin-right: 8px; }
.folk-role { font-size: 11.5px; color: var(--muted); }
.folk-list li p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink); opacity: .82; }
.texture-list { margin: 0; padding-left: 18px; }
.texture-list li { margin-bottom: 7px; font-size: 13px; line-height: 1.6; color: var(--ink); opacity: .85; }
/* 片场异闻 · 客串样板 */
.cameo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cameo-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 13px 15px; }
.cameo-card strong { display: block; font-family: var(--font-serif); font-size: 14.5px; color: var(--gold); margin-bottom: 6px; }
.cameo-card p { margin: 0; font-size: 12.5px; line-height: 1.62; color: var(--ink); opacity: .85; }
.ensemble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ensemble-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface) 0%, #08090d 100%);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.ensemble-card:hover { border-color: rgba(212, 178, 111, 0.45); transform: translateY(-2px); }
.ensemble-cover {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center top;
}
.ensemble-free {
  position: absolute;
  top: 3px;
  left: 3px;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(75, 138, 129, 0.92);
  color: #f1fffb;
}
.ensemble-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ensemble-meta strong { color: var(--ink); font-size: 14px; }
.ensemble-meta em { color: var(--gold); font-size: 11px; font-style: normal; }
.ensemble-meta small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ending-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 10px;
  background: var(--gold-dim);
}
.ending-card h5 {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 16px;
}
.ending-trigger {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.03em;
}
.ending-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ 创作者工具库 ============ */
.toolkit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tk-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--surface) 0%, #08090d 100%);
}
.tk-card--wide { grid-column: 1 / -1; }
.tk-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
}

.tk-table-wrap { overflow-x: auto; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tk-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.tk-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--ink); }
.tk-plat { color: var(--gold); font-family: var(--font-serif); font-size: 15px; }
.tk-size { font-variant-numeric: tabular-nums; }
.tk-ratio { color: var(--teal); }

.tk-steps { list-style: none; padding: 0; margin: 0; }
.tk-step { display: flex; gap: 12px; margin-bottom: 14px; }
.tk-step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 178, 111, 0.4);
  color: var(--gold);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tk-step strong { color: var(--ink); font-size: 14px; }
.tk-step p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.tk-pitfalls { display: flex; flex-direction: column; gap: 12px; }
.tk-pitfall { padding: 10px 14px; background: var(--gold-dim); border-radius: 10px; }
.tk-problem { margin: 0 0 4px; font-size: 13px; color: #d98a8a; }
.tk-fix { margin: 0; font-size: 13px; color: #7fd6c8; line-height: 1.55; }

.tk-templates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-tpl {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.tk-tpl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.tk-tpl-head strong { color: var(--ink); font-size: 14px; display: block; }
.tk-tpl-head em { color: var(--gold); font-size: 11px; font-style: normal; }
.tk-tpl-body {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono, monospace);
}

@media (max-width: 880px) {
  .toolkit-grid { grid-template-columns: 1fr; }
  .tk-templates { grid-template-columns: 1fr; }
}

/* ============ Teaching + Materia sync ============ */
.docsite-section-visual,
.docsite-visual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, var(--surface) 0%, #08090d 100%);
}
.docsite-section-visual {
  margin: -4px 0 24px;
}
.docsite-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: -4px 0 24px;
}
.docsite-section-visual img,
.docsite-visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.docsite-section-visual figcaption,
.docsite-visual-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.docsite-section-visual strong,
.docsite-visual-card strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 18px;
}
.docsite-section-visual span,
.docsite-visual-card span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.docsite-visual-card[data-docsite-visual="materia-icon-visual"] img,
.materia-icon-visual img,
.receipt-card-visual img {
  aspect-ratio: 1 / 1;
}

.free-sample-gateway {
  margin-top: 22px;
}
.free-sample-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(86, 192, 173, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(86, 192, 173, 0.08), rgba(212, 178, 111, 0.05)),
    rgba(255, 255, 255, 0.02);
}
.free-sample-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.free-sample-overview strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}
.free-sample-overview p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}
.free-sample-filter,
.free-sample-open {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(86, 192, 173, 0.38);
  border-radius: 8px;
  background: rgba(86, 192, 173, 0.1);
  color: #9be5da;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.free-sample-filter {
  padding: 8px 13px;
  white-space: nowrap;
}
.free-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.free-sample-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.free-sample-cover {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 24% 18%, rgba(86, 192, 173, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(212, 178, 111, 0.12), rgba(0, 0, 0, 0.28));
}
.free-sample-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.free-sample-cover.is-missing {
  display: grid;
  place-items: center;
}
.free-sample-glyph {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 22px;
}
.free-sample-card .badge-free {
  position: absolute;
  right: 12px;
  top: 12px;
}
.free-sample-card-body {
  display: grid;
  gap: 10px;
  padding: 15px 16px 16px;
}
.free-sample-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11.5px;
}
.free-sample-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.25;
}
.free-sample-card p {
  display: -webkit-box;
  min-height: 62px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.free-sample-open {
  width: 100%;
  padding: 8px 12px;
}
.free-sample-filter:hover,
.free-sample-open:hover {
  border-color: rgba(86, 192, 173, 0.62);
  background: rgba(86, 192, 173, 0.16);
}

.agent-manifest-body {
  margin-top: 22px;
}
.agent-manifest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}
.agent-contract-stack {
  display: grid;
  gap: 14px;
}
.agent-contract-card,
.agent-manifest-json-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.agent-contract-card {
  padding: 16px 18px;
}
.agent-contract-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.agent-contract-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
}
.agent-contract-card p,
.agent-contract-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}
.agent-contract-card p {
  margin: 0 0 12px;
}
.agent-contract-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}
.agent-manifest-json-card {
  overflow: hidden;
}
.agent-manifest-json-card .section-head-inline {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.agent-manifest-json {
  max-height: 430px;
  margin: 0;
  overflow: auto;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.28);
  color: #b7eee6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.58;
  white-space: pre-wrap;
}
.agent-manifest-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 18px;
}
.agent-manifest-stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1;
}
.agent-manifest-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.app-pack-body,
.creator-case-body,
.quality-ledger-body,
.phase18-qa-body {
  margin-top: 22px;
}
.app-pack-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(212, 178, 111, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(212, 178, 111, 0.08), rgba(86, 192, 173, 0.05)),
    rgba(255, 255, 255, 0.02);
}
.app-pack-summary span,
.quality-ledger-hero span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.app-pack-summary strong,
.quality-ledger-hero strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}
.app-pack-summary p,
.quality-ledger-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}
.app-pack-stats {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.app-pack-stats strong {
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}
.app-pack-stats span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}
.app-pack-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}
.app-pack-card {
  display: grid;
  grid-template-columns: minmax(132px, 0.46fr) minmax(0, 1fr);
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.app-pack-media {
  margin: 0;
  min-height: 100%;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}
.app-pack-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}
.app-pack-copy {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px 18px 18px;
}
.app-pack-app {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.app-pack-card h3,
.case-playbook-card h3,
.quality-ledger-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.3;
}
.app-pack-card p,
.app-pack-card li,
.app-pack-agent,
.case-playbook-card li,
.case-playbook-card p,
.case-playbook-note p,
.quality-ledger-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.64;
}
.app-pack-card p {
  margin: 0;
}
.app-pack-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}
.app-pack-agent {
  padding: 10px 12px;
  border: 1px solid rgba(86, 192, 173, 0.22);
  border-radius: 8px;
  background: rgba(86, 192, 173, 0.07);
}
.case-playbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.case-playbook-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.case-playbook-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.case-playbook-copy {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}
.case-playbook-copy > span {
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
}
.case-playbook-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}
.case-playbook-card p {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.case-playbook-card p strong {
  margin-right: 8px;
  color: var(--teal);
}
.case-playbook-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(86, 192, 173, 0.22);
  border-radius: 8px;
  background: rgba(86, 192, 173, 0.06);
}
.case-playbook-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 20px;
}
.case-playbook-note p {
  margin: 0;
}
.quality-ledger-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 0.75fr)) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}
.quality-ledger-hero figure {
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}
.quality-ledger-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quality-ledger-hero > div {
  display: grid;
  align-content: center;
  padding: 18px 20px;
  border: 1px solid rgba(212, 178, 111, 0.2);
  border-radius: 8px;
  background: rgba(212, 178, 111, 0.05);
}
.quality-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.quality-ledger-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.quality-ledger-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.quality-ledger-card p {
  margin: 9px 0 0;
}

.phase18-qa-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.phase18-qa-summary,
.phase18-qa-stats,
.phase18-queue-note,
.phase18-candidate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.phase18-qa-summary {
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(86, 192, 173, 0.08), rgba(212, 178, 111, 0.05)),
    rgba(255, 255, 255, 0.02);
}
.phase18-qa-summary span,
.phase18-candidate-head span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.phase18-qa-summary strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}
.phase18-qa-summary p,
.phase18-queue-note p,
.phase18-candidate-card dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.66;
}
.phase18-qa-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}
.phase18-qa-stats div {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 14px 16px;
  background: #0d1014;
}
.phase18-qa-stats strong {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1;
  word-break: break-word;
}
.phase18-qa-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
}
.phase18-qa-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(280px, 0.9fr);
  gap: 14px;
  margin-bottom: 18px;
}
.phase18-decision-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.phase18-decision-row {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.phase18-decision-row strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.25;
}
.phase18-decision-row p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.phase18-decision-row span,
.phase18-decision-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(212, 178, 111, 0.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 10.5px;
  line-height: 1.3;
}
.phase18-queue-note {
  min-width: 0;
  padding: 16px 18px;
}
.phase18-queue-note strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 19px;
}
.phase18-queue-note code,
.phase18-candidate-card code {
  display: block;
  overflow-wrap: anywhere;
  color: #b7eee6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
  line-height: 1.58;
}
.phase18-queue-note pre {
  min-width: 0;
  max-height: 210px;
  margin: 10px 0 0;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}
.phase18-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 14px;
}
.phase18-candidate-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 16px 18px;
}
.phase18-candidate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.phase18-candidate-head strong {
  color: var(--teal);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}
.phase18-candidate-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.3;
}
.phase18-candidate-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.phase18-candidate-card dl > div {
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.phase18-candidate-card dt {
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.phase18-candidate-card dd {
  margin: 4px 0 0;
  word-break: break-word;
}
.phase18-decision-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.phase18-decision-chip {
  border-color: rgba(86, 192, 173, 0.28);
  color: #b7eee6;
  background: rgba(86, 192, 173, 0.06);
}
.phase18-decision-result {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.phase18-decision-result strong {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 12px;
}

.materia-quick-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(75, 138, 129, 0.32);
  border-radius: 12px;
  background: rgba(75, 138, 129, 0.08);
}
.mq-visual {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(75, 138, 129, 0.34);
  border-radius: 12px;
  background: rgba(75, 138, 129, 0.08);
}
.mq-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.mq-kicker,
.sync-step {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.materia-quick-entry strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
}
.materia-quick-entry p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.mq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.mq-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(75, 138, 129, 0.42);
  border-radius: 10px;
  color: #8bd4cb;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.mq-link--ghost {
  border-color: var(--line);
  color: var(--gold);
}

.learning-grid,
.sync-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.learning-card,
.sync-flow-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, var(--surface) 0%, #08090d 100%);
}
.learning-card span {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 26px;
}
.learning-card h3,
.sync-flow-card h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
}
.materia-install-guide {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(86, 192, 173, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(86, 192, 173, 0.08), rgba(212, 178, 111, 0.04)),
    rgba(255, 255, 255, 0.02);
}
.materia-install-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.materia-install-head h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}
.materia-install-head p,
.materia-install-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}
.materia-install-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}
.materia-install-steps li {
  min-height: 142px;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  counter-increment: install-step;
}
.materia-install-steps li::before {
  content: counter(install-step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
}
.materia-install-steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}
.learning-card p,
.sync-flow-card p,
.materia-action-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}
.learning-note,
.materia-action-panel {
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(212, 178, 111, 0.18);
  border-radius: 12px;
  background: rgba(212, 178, 111, 0.05);
}
.learning-note strong,
.materia-action-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 20px;
}
.learning-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.materia-action-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 880px) {
  .materia-quick-entry,
  .free-sample-overview,
  .app-pack-summary,
  .phase18-qa-dashboard,
  .agent-manifest-grid,
  .materia-action-panel { grid-template-columns: 1fr; }
  .mq-visual { width: 84px; height: 84px; }
  .docsite-visual-grid { grid-template-columns: 1fr; }
  .docsite-section-visual figcaption,
  .docsite-visual-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .materia-install-head,
  .materia-install-steps { grid-template-columns: 1fr; }
  .materia-install-steps li { min-height: 0; }
  .mq-actions { justify-content: flex-start; }
  .free-sample-filter { justify-self: start; }
  .learning-grid,
  .sync-flow-grid,
  .app-pack-matrix,
  .case-playbook-grid,
  .phase18-qa-ledger,
  .phase18-candidate-grid,
  .quality-ledger-hero,
  .quality-ledger-grid { grid-template-columns: 1fr; }
  .app-pack-card { grid-template-columns: 1fr; }
  .app-pack-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .app-pack-media img { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
  .free-sample-grid { grid-template-columns: 1fr; }
  .free-sample-overview,
  .agent-contract-card,
  .agent-manifest-json-card .section-head-inline {
    padding-left: 14px;
    padding-right: 14px;
  }
  .agent-manifest-stats { grid-template-columns: 1fr; }
  .agent-manifest-json {
    max-height: 340px;
    padding: 14px;
    font-size: 11.5px;
  }
  .usecase-row,
  .name-row { grid-template-columns: 1fr; gap: 4px; }
  .world-body { padding: 24px 18px 28px; }
  .ensemble-grid { grid-template-columns: 1fr; }
}

/* ===== 收藏 / 会员中心 ===== */
.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.nav-fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #1a1206;
  background: var(--gold);
  border-radius: 999px;
}

.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.nav-account-btn:hover { border-color: var(--gold); }
.account-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8a6d3a);
  color: #1a1206;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}
.account-avatar--lg { width: 46px; height: 46px; font-size: 22px; }

/* 卡片星标 */
.fav-star {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 9, 12, 0.7);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.fav-star:hover { transform: scale(1.12); color: #ff8da3; border-color: rgba(255, 141, 163, 0.5); }
.fav-star.is-fav { color: #ff6f87; border-color: rgba(255, 111, 135, 0.6); background: rgba(40, 12, 18, 0.8); }
.fav-star.is-fav svg { fill: #ff6f87; }
.fav-star:active { transform: scale(0.92); }

/* 详情页收藏按钮（带文字） */
.detail-fav {
  position: static;
  width: auto;
  height: auto;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}
.detail-fav .df-label { font-size: 12px; }

.detail-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.detail-share:hover { color: var(--gold); border-color: var(--gold); }

/* 会员中心 slide-over */
.member-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 460px);
  z-index: 320;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated, #0c0d11);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.member-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.member-id { display: flex; align-items: center; gap: 12px; }
.member-id strong { display: block; font-size: 15px; color: var(--ink); }
.member-id span { font-size: 12px; color: var(--muted); }
.member-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.member-close:hover { color: var(--gold); border-color: var(--gold); }

.member-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.member-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.member-tab:hover { color: var(--ink); }
.member-tab.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(199, 164, 96, 0.12);
}

.member-body { flex: 1; overflow-y: auto; padding: 20px 24px 32px; }
.member-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.member-sec-head h4 { margin: 0; font-size: 15px; color: var(--ink); }
.member-sec-head span { font-size: 12px; color: var(--muted); }
.member-sec-head--receipts {
  align-items: center;
  gap: 12px;
}
.member-sec-head--receipts > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.member-card-grid { display: flex; flex-direction: column; gap: 10px; }
.member-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.member-card:hover { border-color: rgba(199, 164, 96, 0.4); transform: translateX(-2px); }
.mc-cover {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}
.mc-cover img { width: 100%; height: 100%; object-fit: cover; }
.mc-glyph { font-family: var(--font-serif); font-size: 24px; opacity: 0.3; }
.mc-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-meta strong { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-meta em { font-size: 11.5px; color: var(--muted); font-style: normal; }
.member-card .fav-star { position: static; flex: 0 0 auto; }

.member-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.member-empty p { margin: 0; max-width: 340px; }
.member-empty-glyph {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--gold);
  background: rgba(212, 178, 111, 0.1);
  border: 1px solid rgba(212, 178, 111, 0.3);
}
.member-empty-cta {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(212, 178, 111, 0.12);
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.member-empty-cta:hover { background: var(--gold); color: #1a140a; }
.member-empty-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.receipt-intro {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.receipt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.receipt-action {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.receipt-action:hover,
.receipt-action:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 178, 111, 0.1);
}
.receipt-action:focus-visible {
  outline: 2px solid rgba(212, 178, 111, 0.45);
  outline-offset: 2px;
}
.receipt-action--primary {
  border-color: rgba(212, 178, 111, 0.56);
  background: rgba(212, 178, 111, 0.14);
  color: var(--gold);
}
.business-receipt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.business-receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.receipt-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.receipt-type {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid rgba(212, 178, 111, 0.36);
  border-radius: 999px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
}
.receipt-main strong {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.35;
}
.receipt-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.receipt-meta {
  word-break: break-word;
  opacity: 0.75;
}
.receipt-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.receipt-status {
  color: #8bd4cb;
  font-size: 11px;
  font-weight: 700;
}
.receipt-side time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.receipt-open {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  font-size: 11.5px;
  cursor: pointer;
}
.receipt-open:hover {
  border-color: var(--gold);
  background: rgba(212, 178, 111, 0.1);
}

@media (max-width: 600px) {
  .member-sec-head--receipts {
    align-items: stretch;
    flex-direction: column;
  }
  .receipt-actions {
    justify-content: stretch;
  }
  .receipt-action {
    flex: 1 1 130px;
  }
  .business-receipt {
    grid-template-columns: 1fr;
  }
  .receipt-side {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .receipt-side time {
    white-space: normal;
  }
}

.footer-link-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--gold); }

/* ============ 首次访问欢迎导览 ============ */
.onboard {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.onboard[hidden] { display: none; }
.onboard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.78);
  backdrop-filter: blur(4px);
}
.onboard-card {
  position: relative;
  width: min(460px, 100%);
  background: linear-gradient(180deg, #1c1813, #14110d);
  border: 1px solid rgba(212, 178, 111, 0.34);
  border-radius: 20px;
  padding: 36px 32px 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
  animation: onboardIn 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes onboardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.onboard-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.onboard-x:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.onboard-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.onboard-step { text-align: center; }
.onboard-glyph {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: var(--font-serif);
  font-size: 30px;
  color: #1a140a;
  background: linear-gradient(180deg, #e6cd8f, var(--gold));
  box-shadow: 0 10px 28px rgba(212, 178, 111, 0.3);
}
.onboard-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.onboard-step h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.35;
}
.onboard-step p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.onboard-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 18px;
}
.onboard-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(212, 178, 111, 0.28);
  transition: all 0.25s ease;
}
.onboard-dot.is-active { background: var(--gold); width: 22px; border-radius: 4px; }
.onboard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.onboard-skip-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 4px;
}
.onboard-skip-link:hover { color: var(--ink); }
.onboard-skip-link:focus-visible,
.onboard-next:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.onboard-next { flex: 0 0 auto; }
@media (max-width: 480px) {
  .onboard-card { padding: 30px 22px 20px; }
  .onboard-step h2 { font-size: 19px; }
}

.member-overview { display: flex; gap: 12px; margin-bottom: 20px; }
.mo-stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.mo-stat strong { display: block; font-family: var(--font-serif); font-size: 28px; color: var(--gold); }
.mo-stat span { font-size: 12px; color: var(--muted); }

/* 下载额度仪表盘 */
.quota-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(199, 164, 96, 0.06), transparent);
}
.quota-box--off { background: var(--surface); }
.quota-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.quota-head h4 { margin: 0; font-size: 14px; color: var(--ink); }
.quota-balance { font-size: 12.5px; color: var(--muted); }
.quota-balance strong { font-family: var(--font-serif); font-size: 20px; color: var(--gold); margin-right: 2px; }
.quota-balance--off { color: var(--muted); font-style: italic; }
.quota-meter {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 10px;
}
.quota-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #e6cd8f);
  transition: width 0.3s ease;
}
.quota-rows { display: flex; gap: 10px; margin-bottom: 8px; }
.quota-row {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  color: var(--muted);
}
.quota-row strong { color: var(--ink); font-size: 13.5px; }
.quota-note { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.member-cta {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.member-cta p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 会员状态 / 里程碑 / 限定 */
.member-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(199, 164, 96, 0.07), transparent);
}
.ms-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
}
.ms-row > span:first-child { flex: 0 0 72px; }
.ms-row strong { color: var(--ink); }
.ms-row em { color: var(--muted); font-style: normal; font-size: 12px; margin-left: auto; }
.ms-on { color: #6fcf97; font-weight: 600; }
.ms-off { color: var(--muted); }

.member-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.member-actions .btn { flex: 1; min-width: 130px; padding: 11px 14px; font-size: 12.5px; }

.milestone-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}
.milestone-box h4 { margin: 0 0 6px; font-size: 14px; color: var(--ink); }

/* 会员等级徽章 + 晋级进度 */
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tier-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #1a140a;
  background: linear-gradient(180deg, #e6cd8f, var(--gold));
}
.tier-glyph { font-size: 13px; }
.tier-tenure { font-size: 12px; color: var(--muted); }
.tier-rookie { background: linear-gradient(180deg, #d9d2c4, #b9ad96); }
.tier-resident { background: linear-gradient(180deg, #cfe6d6, #8fc7a3); color: #10231a; }
.tier-veteran { background: linear-gradient(180deg, #e6cd8f, var(--gold)); }
.tier-confidant { background: linear-gradient(135deg, #f0d89a, #d4a35c 58%, #b07cc6); color: #231018; }
.tier-guest { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.tier-progress { margin-bottom: 14px; }
.tp-meter { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 7px; }
.tp-meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #e6cd8f); transition: width 0.3s ease; }
.tp-note { margin: 0; font-size: 12px; color: var(--muted); }
.tp-note strong { color: var(--gold); }
.tp-note--max { color: #6fcf97; font-weight: 600; }

.milestone-list { list-style: none; margin: 10px 0 0; padding: 0; }
.milestone-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.milestone-list li:last-child { border-bottom: none; }
.milestone-list li.is-reached { color: var(--ink); }
.ms-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  flex: 0 0 auto;
}
.milestone-list li.is-reached .ms-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px rgba(199, 164, 96, 0.5); }
.milestone-list strong { color: inherit; }

.limited-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.limited-note strong { color: var(--gold); }

.limited-card .mc-open {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.limited-card.is-retired { opacity: 0.62; }
.limited-state {
  flex: 0 0 auto;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.limited-state.is-owned { color: #6fcf97; border-color: rgba(111, 207, 151, 0.5); }
.limited-state.is-locked { color: var(--muted); }
.limited-claim {
  flex: 0 0 auto;
  padding: 7px 16px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1206;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.limited-claim:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* 卡片限定角标 */
.cover-limited {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1a1206;
  background: linear-gradient(135deg, #e7c97a, #c7a460);
  box-shadow: 0 4px 12px rgba(199, 164, 96, 0.4);
}

/* 详情限定横幅 */
.detail-limited {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
  padding: 12px 16px;
  border: 1px solid rgba(199, 164, 96, 0.3);
  border-radius: 12px;
  background: rgba(199, 164, 96, 0.06);
  font-size: 13px;
  color: var(--muted);
}
.detail-limited .dl-tag {
  font-weight: 600;
  color: var(--gold);
}
.detail-limited.is-locked { border-color: var(--line); background: var(--surface); opacity: 0.85; }
.detail-limited.is-owned .dl-tag { color: #6fcf97; }
.detail-limited .limited-claim { margin-left: auto; }

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.panel-backdrop.is-open { opacity: 1; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  z-index: 400;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(20, 22, 30, 0.96);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 13.5px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 移动抽屉账户/收藏 */
.mobile-account {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.mobile-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav-btn span {
  min-width: 20px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--gold);
}

@media (max-width: 600px) {
  .toast { bottom: 20px; width: max-content; max-width: calc(100vw - 32px); }
  .nav-account-btn .account-label { display: none; }
  .nav-account-btn { padding: 6px; }
}

/* 创世之言 · The Word */
.the-word {
  position: relative;
  margin: 4px 0 0;
  padding: 18px 20px 18px 24px;
  border: 1px solid rgba(199, 164, 96, 0.28);
  border-left: 2px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(199, 164, 96, 0.08), rgba(199, 164, 96, 0.01));
  overflow: hidden;
}
.the-word::after {
  content: "“";
  position: absolute;
  top: -18px;
  right: 10px;
  font-family: var(--font-serif);
  font-size: 90px;
  color: rgba(199, 164, 96, 0.12);
  line-height: 1;
  pointer-events: none;
}
.tw-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.tw-text {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: #ede8df;
}
.tw-note {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* 公平权益机制 */
.fairness-box {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(199, 164, 96, 0.05), transparent 70%);
}
.fairness-head h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
}
.fairness-head p { margin: 0 0 20px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.fairness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fair-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.fair-card.highlight {
  border-color: rgba(199, 164, 96, 0.5);
  background: linear-gradient(135deg, rgba(199, 164, 96, 0.1), var(--surface));
}
.fair-ico {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 18px;
  font-family: var(--font-serif);
}
.fair-card h4 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.fair-card p { margin: 0; font-size: 12.8px; color: var(--muted); line-height: 1.7; }
.fair-card p strong { color: var(--gold); }
.fairness-foot {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--ink);
}

/* 创师之路 · 阶位与造物三相预览 */
.cway-box { margin: 40px 0; padding: 28px; border: 1px solid rgba(212,178,111,.3); border-radius: 16px; background: linear-gradient(160deg, var(--gold-dim), rgba(212,178,111,.03)); }
.cway-head h3 { font-family: var(--font-serif); font-size: 22px; color: var(--ink); margin: 6px 0 8px; }
.cway-lead { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; max-width: 760px; }
.cway-soon { display: inline-block; margin-left: 6px; font-size: 10px; letter-spacing: .05em; color: var(--gold); border: 1px solid rgba(212,178,111,.5); border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.cway-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 10px; }
@media (max-width: 720px) { .cway-paths { grid-template-columns: 1fr; } }
.cway-path { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 18px; border-top: 3px solid var(--muted); }
.cway-path--li { border-top-color: #6ea8ff; }
.cway-path--shi { border-top-color: #e0b45c; }
.cway-path--ming { border-top-color: #b884e6; }
.cway-emblem { font-size: 22px; }
.cway-path h4 { font-family: var(--font-serif); font-size: 17px; color: var(--ink); margin: 8px 0 2px; }
.cway-genre { font-size: 11.5px; letter-spacing: .06em; color: var(--gold); margin: 0 0 8px; }
.cway-for { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.cway-apex { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; }
.cway-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 6px 0 0; }
.cway-note strong, .cway-foot strong { color: var(--gold); }
.cway-ladder { margin: 24px 0 0; }
.cway-ladder-h { font-size: 14px; color: var(--ink); margin: 0 0 12px; }
.cway-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cway-steps li { display: flex; gap: 14px; align-items: baseline; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cway-steps .cway-lv { flex: 0 0 148px; font-weight: 600; color: var(--ink); font-size: 13px; }
.cway-steps .cway-perk { font-size: 13px; color: var(--muted); line-height: 1.5; }
.cway-steps .cway-perk strong { color: var(--ink); }
.cway-steps li.is-ascend { border-color: rgba(212,178,111,.55); background: var(--gold-dim); }
.cway-steps li.is-ascend .cway-lv { color: var(--gold); }
.cway-steps li.is-apex { border-color: rgba(184,132,230,.5); background: rgba(184,132,230,.06); }
.cway-steps li.is-apex .cway-lv { color: #b884e6; }
@media (max-width: 560px) { .cway-steps li { flex-direction: column; gap: 3px; } .cway-steps .cway-lv { flex: none; } }
.cway-foot { margin: 18px 0 0; font-size: 13px; color: var(--ink); line-height: 1.6; }

/* 品牌触点(火苗/徽章图) */
.logo-mark--flame { width: 34px; height: 34px; object-fit: contain; border: none !important; background: none !important; border-radius: 8px; padding: 0 !important; box-shadow: none !important; }
img.cway-emblem { display: inline-block; width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
.link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 0 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 常见问题 FAQ */
.faq-box { margin-top: 44px; }
.faq-h {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 18px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(201, 164, 92, 0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--gold);
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}
.faq-item p strong { color: var(--ink); }

@media (max-width: 860px) {
  .fairness-grid { grid-template-columns: 1fr; }
}

.about-subhead {
  margin: 28px 0 18px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ===== 信任 · 创作案例 ===== */
.usecase-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.uc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.uc-card:hover { border-color: rgba(199, 164, 96, 0.4); transform: translateY(-4px); }
.uc-tag {
  align-self: flex-start;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(199, 164, 96, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
}
.uc-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}
.uc-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.uc-by {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--ink);
}
.uc-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8a6d3a);
  color: #1a1206;
  font-family: var(--font-serif);
  font-size: 14px;
}

/* 用户口碑墙 */
.praise-wall {
  columns: 3 240px;
  column-gap: 16px;
  margin-top: 8px;
}
.praise-card {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-elevated));
}
.praise-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.praise-stars .ps-half { opacity: 0.35; }
.praise-card blockquote {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}
.praise-card blockquote::before {
  content: "“";
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 22px;
  margin-right: 2px;
  line-height: 0;
}
.praise-card figcaption { display: flex; align-items: center; gap: 10px; }
.praise-av {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8a6d3a);
  color: #1a1206;
  font-family: var(--font-serif);
  font-size: 14px;
  flex: 0 0 auto;
}
.praise-who { display: flex; flex-direction: column; line-height: 1.3; }
.praise-who strong { font-size: 13px; color: var(--ink); }
.praise-who em { font-size: 11.5px; color: var(--muted); font-style: normal; }
@media (max-width: 720px) {
  .praise-wall { columns: 1; }
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(199, 164, 96, 0.06), transparent);
}
.ts-item { text-align: center; }
.ts-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--gold);
}
.ts-item span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 600px) {
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ============================================================
   标准三栏布局 · 顶栏 + 视图切换（2026-05 UX 重写）
   一条主滚动条 / 中栏：卡网格 · 右栏：详情
   ============================================================ */
:root {
  --nav-h: 64px;
}

.app-main {
  padding-top: var(--nav-h);
}

/* 视图切换：顶栏导航在多视图间切换，取代长单页滚动 */
.view-panel {
  display: none;
}
.view-panel.is-active {
  display: block;
}

/* 非三栏视图（宇宙/工具/案例/订阅/关于）：居中内容，页面滚动 */
.view-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 32px 88px;
}
.view-inner .section-head {
  margin-bottom: 28px;
}

/* ---------- 角色库三栏 ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) clamp(360px, 33vw, 470px);
  height: calc(100vh - var(--nav-h));
}

.shell-sidebar {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 20px 18px 48px;
  background: rgba(10, 12, 16, 0.45);
}
.shell-main {
  overflow-y: auto;
  padding: 22px 26px 64px;
}
.shell-detail {
  border-left: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 左栏分组 */
.sidebar-block {
  margin-bottom: 22px;
}
.sidebar-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.72;
  margin-bottom: 10px;
}
.shell-sidebar .search-wrap {
  width: 100%;
  margin: 0;
}
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-filters select {
  width: 100%;
}
.shell-sidebar .filter-reset {
  width: 100%;
  margin-top: 12px;
}
.shell-sidebar .chip-row,
.shell-sidebar .hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.sidebar-metrics .metric-card {
  padding: 10px 12px;
}

/* 中栏 */
.shell-main-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.shell-main-head h2 {
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--gold);
  font-weight: 500;
  margin: 0;
}

/* 活跃筛选标签条：可视化多维筛选 + 逐项移除 */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
}
.active-filters .af-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.af-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  border: 1px solid rgba(212, 178, 111, 0.4);
  border-radius: 999px;
  background: rgba(212, 178, 111, 0.1);
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.af-chip:hover {
  border-color: var(--rose);
  background: rgba(217, 143, 134, 0.14);
  color: #e7b3ab;
}
.af-chip .af-x {
  font-size: 15px;
  line-height: 1;
  opacity: 0.7;
}
.af-chip:hover .af-x { opacity: 1; }
.af-chip:focus-visible,
.af-clear-all:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.af-clear-all {
  padding: 5px 12px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.af-clear-all:hover { color: var(--rose); }
.shell-main .pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 18px;
}
.pack-card.is-selected {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* 分批加载控件：横跨整行 */
.pack-loadmore {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 14px 0 6px;
}
.loadmore-btn {
  padding: 11px 28px;
  border-radius: 999px;
  border: 1px solid rgba(212, 178, 111, 0.45);
  background: rgba(212, 178, 111, 0.08);
  color: var(--gold);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.loadmore-btn:hover { background: var(--gold); color: #1a140a; }
.loadmore-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- 右栏详情 ---------- */
.shell-detail .detail-empty {
  margin: auto;
  text-align: center;
  padding: 40px 30px;
  color: var(--muted);
}
.detail-empty .de-glyph {
  display: block;
  font-family: var(--font-serif);
  font-size: 46px;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 14px;
}
.detail-empty strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
}
.detail-empty p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 30ch;
  margin: 0 auto;
}
.detail-pane-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.detail-pane-back {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 2px;
}
.detail-pane-back:hover {
  text-decoration: underline;
}
.detail-pane-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.detail-pane-close:hover {
  color: var(--ink);
  border-color: var(--gold);
}
.detail-pane-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 64px;
}
.detail-pane-scroll .detail-sticky-gallery {
  margin-bottom: 22px;
}
.detail-pane-doc .detail-section {
  scroll-margin-top: 8px;
  margin-top: 24px;
  padding-top: 22px;
}
/* 右栏内强制单列（覆盖旧双栏 grid 残留） */
.detail-pane-doc .detail-dialog-split {
  display: block;
}

/* 主角档案：dt/dd 层次更清晰，分隔更舒展 */
.detail-pane-doc .profile-dl > div {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(212, 178, 111, 0.1);
}
.detail-pane-doc .profile-dl > div:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.detail-pane-doc .profile-dl dt {
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.detail-pane-doc .profile-dl dd {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.72;
}

/* 缩略图切换按钮：换行不溢出 */
.detail-pane-scroll .detail-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

/* 提示词区：长 prompt 自动换行不横向溢出 */
.detail-pane-doc .prompt-block {
  overflow-x: hidden;
}
.detail-pane-doc .prompt-block {
  line-height: 1.78;
}
.detail-pane-doc .prompt-block code {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.78;
  letter-spacing: 0.01em;
}

/* ---------- 右栏分组 Tab：20+ 区块归 4 组，单组单屏，消灭 16 屏超长滚动 ---------- */
.detail-pane-doc .detail-tabs-anchor {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
}
.detail-pane-doc .detail-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  gap: 5px;
  padding: 12px 0 11px;
  margin: 8px 0 4px;
  background: linear-gradient(to bottom, var(--bg-elevated, #0c0d11) 84%, transparent);
  border-bottom: 1px solid var(--line);
}
.detail-pane-doc .detail-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.detail-pane-doc .detail-tab .dt-count {
  font-family: var(--font-sans, inherit);
  font-size: 10px;
  font-weight: 500;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}
.detail-pane-doc .detail-tab:hover {
  color: var(--ink);
  border-color: rgba(199, 164, 96, 0.45);
}
.detail-pane-doc .detail-tab.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(199, 164, 96, 0.13);
  box-shadow: 0 2px 14px -6px rgba(199, 164, 96, 0.5);
}
/* 当前组第一个区块紧贴 Tab，去掉多余上边距 */
.detail-pane-doc .detail-section[data-group-first] {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}
/* 切组淡入，明确提示内容已切换 */
.detail-pane-doc .detail-section[data-detail-group] {
  animation: detailGroupFade 0.28s ease;
}
@keyframes detailGroupFade {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
/* 中屏：取消独立右栏，详情滑入覆盖（窄屏整页详情） */
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .shell-detail {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 180;
    border-left: none;
    transform: translateX(102%);
    transition: transform 0.32s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }
  .shell-detail.has-detail {
    transform: translateX(0);
  }
}
/* 手机：单列堆叠，body 滚动；侧栏置顶 */
@media (max-width: 760px) {
  .app-shell {
    display: block;
    height: auto;
  }
  .shell-sidebar {
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 16px 20px;
  }
  .shell-main {
    overflow: visible;
    padding: 18px 16px 48px;
  }
  .shell-main .pack-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .view-inner {
    padding: 28px 18px 64px;
  }
}

/* ===== 平行宇宙 · 性别镜像 ===== */
.detail-mirror .mirror-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.mirror-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(44, 35, 26, 0.55), rgba(20, 18, 16, 0.4));
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.mirror-card:hover {
  border-color: rgba(201, 162, 90, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.mirror-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.mirror-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mirror-card.is-pending .mirror-figure img {
  display: none;
}
.mirror-pending-note {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.mirror-card.is-pending .mirror-pending-note {
  display: flex;
}
.mirror-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.mirror-badge--m {
  background: rgba(74, 128, 196, 0.88);
  color: #eaf3ff;
}
.mirror-badge--f {
  background: rgba(196, 90, 128, 0.88);
  color: #ffeaf3;
}
.mirror-body {
  padding: 14px 16px 16px;
}
.mirror-namerow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mirror-name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--gold);
  font-weight: 500;
}
.mirror-vs {
  font-size: 12px;
  color: var(--muted);
}
.mirror-logline {
  font-size: 13.5px;
  line-height: 1.7;
  color: #ddd5c8;
  margin: 0 0 10px;
}
.mirror-note {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.72;
}

/* ===== 奇物仓库 ===== */
.detail-relic .relic-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.relic-grid {
  display: grid;
  gap: 14px;
}
.relic-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(44, 35, 26, 0.5), rgba(20, 18, 16, 0.4));
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.relic-card:hover {
  border-color: rgba(201, 162, 90, 0.5);
  transform: translateY(-2px);
}
.relic-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.relic-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.relic-card.is-pending .relic-figure img {
  display: none;
}
.relic-pending {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12.5px;
}
.relic-card.is-pending .relic-pending {
  display: flex;
}
.relic-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 90, 0.35);
  backdrop-filter: blur(5px);
}
.relic-body {
  padding: 13px 15px 15px;
}
.relic-name {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 7px;
}
.relic-lore {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.relic-power {
  font-size: 13px;
  color: #ddd5c8;
  line-height: 1.65;
  margin: 0 0 9px;
}
.relic-power-label {
  display: inline-block;
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 90, 0.4);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 6px;
}
.relic-linked {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.8;
}

/* ===== 剧情点 / 爽点仓库 ===== */
.detail-hooks .hooks-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.hooks-subhead {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  margin: 20px 0 10px;
  font-weight: 600;
}
.hook-grid,
.payoff-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hook-card,
.payoff-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(40, 32, 24, 0.35);
}
.hook-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.hook-type--伏笔 { background: rgba(100, 140, 200, 0.2); color: #9bb8e8; }
.hook-type--转折 { background: rgba(200, 140, 80, 0.2); color: #e8b88a; }
.hook-type--悬念 { background: rgba(160, 100, 200, 0.2); color: #c8a0e8; }
.hook-type--回收 { background: rgba(100, 180, 140, 0.2); color: #9ed8b8; }
.hook-title,
.payoff-title {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  margin: 0 0 6px;
}
.hook-beat,
.payoff-desc {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 6px;
}
.hook-use {
  font-size: 11px;
  color: var(--muted);
}
.payoff-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #e8a090;
  background: rgba(200, 100, 80, 0.15);
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* ===== 工具库 · 全宇宙仓库浏览 ===== */
.vault-browser-lead {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.vault-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.vault-chip {
  padding: 5px 11px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.vault-chip:hover { color: var(--ink); border-color: rgba(199, 164, 96, 0.45); }
.vault-chip.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(199, 164, 96, 0.12);
}
.vault-section h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  margin: 0 0 10px;
}
.vault-section + .vault-section { margin-top: 20px; }
.vault-relic-grid,
.vault-hook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.vault-relic-card,
.vault-hook-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}
.vault-uni {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.vault-relic-card h5,
.vault-hook-card h5 {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  margin: 0 0 6px;
}
.vault-tag { font-size: 11px; color: var(--muted); margin: 0 0 6px; }
.vault-lore,
.vault-hook-card p {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 6px;
}
.vault-power {
  font-size: 12px;
  color: #ddd5c8;
  line-height: 1.55;
  margin: 0 0 6px;
}
.vault-power strong { color: var(--gold); font-weight: 600; }
.vault-linked { font-size: 11px; color: var(--muted); }
.vault-empty { font-size: 13px; color: var(--muted); }

/* ===== 多线剧情分支树 ===== */
.branch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.branch-head h4 { margin: 0; }
.branch-play-btn {
  flex: none;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(196, 158, 90, 0.22), rgba(196, 158, 90, 0.08));
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.branch-play-btn:hover {
  background: linear-gradient(135deg, rgba(196, 158, 90, 0.4), rgba(196, 158, 90, 0.18));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.branch-play-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.detail-branch .branch-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
}
.branch-spine {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.branch-node--spine {
  position: relative;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(201, 162, 90, 0.65);
  border-radius: 8px;
  background: rgba(40, 32, 24, 0.4);
}
.branch-act {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.branch-beat {
  font-size: 13px;
  color: #ddd5c8;
  line-height: 1.6;
  margin: 0;
}
.branch-connector {
  width: 2px;
  height: 15px;
  margin-left: 20px;
  background: linear-gradient(rgba(201, 162, 90, 0.6), rgba(201, 162, 90, 0.2));
}
.branch-fork {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed rgba(201, 162, 90, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}
.branch-fork-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 12px;
}
.branch-leaves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.branch-leaf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(40, 32, 24, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.branch-leaf:hover {
  border-color: rgba(201, 162, 90, 0.5);
  transform: translateX(3px);
}
.branch-leaf::before {
  content: "\21b3";
  color: rgba(201, 162, 90, 0.7);
  font-size: 14px;
}
.branch-cond {
  font-size: 11px;
  color: var(--muted);
  background: rgba(201, 162, 90, 0.12);
  border: 1px solid rgba(201, 162, 90, 0.3);
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
}
.branch-end {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
}

/* ===================================================================
   d 视觉精修层（补全 b 遗漏的评分可视化 + 区块/Tab/动效统一）
   =================================================================== */

/* ---- d_cards：卡片评分行（官方基线档 + 社区评分 3 态）补全 ---- */
.pack-rating {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-height: 24px;
  margin-top: 10px;
}
.pack-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  border: 1px solid currentColor;
  background: rgba(8, 9, 12, 0.5);
  white-space: nowrap;
}
.pack-tier-badge--official::before {
  content: "档 ";
  font-size: 9px;
  font-weight: 500;
  opacity: 0.65;
}
.tier-paper,
.pack-tier-badge--paper {
  color: #9aa0aa;
}
.tier-parallel,
.pack-tier-badge--parallel {
  color: #5fb6c9;
}
.tier-strong,
.pack-tier-badge--strong {
  color: #6ec07a;
}
.tier-mad,
.pack-tier-badge--mad {
  color: #c07ad6;
}
.tier-god,
.pack-tier-badge--god {
  color: var(--gold);
}
.tier-beyond,
.pack-tier-badge--beyond {
  color: #e0607a;
  border-color: rgba(224, 96, 122, 0.7);
  background: linear-gradient(100deg, rgba(224, 96, 122, 0.16), rgba(201, 162, 90, 0.16));
}
.community-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1;
}
.cs-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cs-dot.is-on {
  background: currentColor;
  border-color: currentColor;
  box-shadow: 0 0 6px -1px currentColor;
}
.cs-label {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cs-count {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
.cs-brew {
  position: relative;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.cs-brew > i {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(201, 162, 90, 0.6), var(--gold));
  border-radius: 999px;
}
.community-stars--brewing .cs-label,
.community-stars--empty .cs-label,
.cs-label--muted {
  color: var(--muted);
  font-weight: 500;
  font-size: 10.5px;
  opacity: 0.85;
}

/* ---- d_detail_rhythm：详情区块标题统一金色竖条（含镜像/奇物/分支）---- */
.detail-pane-doc .detail-section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-pane-doc .detail-section h4::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(var(--gold), rgba(201, 162, 90, 0.35));
  flex: none;
}

/* ---- d_tabs：Tab 计数徽章化 ---- */
.detail-pane-doc .detail-tab .dt-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.8;
}
.detail-pane-doc .detail-tab.is-active .dt-count {
  background: rgba(201, 162, 90, 0.2);
  opacity: 1;
}

/* ---- d_tokens：全局微动效（尊重 reduced-motion）---- */
@media (prefers-reduced-motion: no-preference) {
  .pack-tier-badge {
    transition: transform 0.2s ease;
  }
  .pack-card:hover .pack-rating .pack-tier-badge--official {
    transform: translateY(-1px);
  }
}

/* ---- d_chrome：顶栏 + 左侧筛选栏精修 ---- */
.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
}
.nav-link:hover::after {
  transform: scaleX(0.6);
  opacity: 0.5;
}
.nav-link.is-active:hover::after {
  transform: scaleX(1);
  opacity: 1;
}
.shell-sidebar .sidebar-block + .sidebar-block {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.shell-sidebar .sidebar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.85;
}
.shell-sidebar .sidebar-label::before {
  content: "";
  width: 2px;
  height: 11px;
  border-radius: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.shell-sidebar .quick-chip {
  padding: 6px 12px;
  font-size: 12.5px;
}
.shell-sidebar .sidebar-filters select {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 30px 9px 12px;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23c9a25a' stroke-width='1.6' d='M2.5 4.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.shell-sidebar .sidebar-filters select:hover {
  border-color: rgba(201, 162, 90, 0.45);
}
.shell-sidebar .sidebar-filters select option {
  background: #14161c;
  color: var(--ink);
}
.shell-sidebar::-webkit-scrollbar {
  width: 8px;
}
.shell-sidebar::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 90, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.shell-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 162, 90, 0.4);
  background-clip: padding-box;
}
.shell-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* ── 非角色包：示例角色组 / 类型圣经迷你卡 ── */
.nc-cast {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nc-cast-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(201, 162, 90, 0.05);
  min-width: 96px;
}
.nc-cast-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
}
.nc-cast-role {
  font-size: 11.5px;
  color: var(--muted);
}
.nc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.nc-mini-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.nc-mini-card:hover {
  border-color: rgba(201, 162, 90, 0.5);
  transform: translateY(-2px);
}
.nc-mini-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--gold);
  margin-bottom: 4px;
}
.nc-mini-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  margin-bottom: 6px;
}
.nc-mini-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── game_seed 多分支剧本树 ── */
.gbt-nodes {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gbt-node {
  border: 1px solid var(--line);
  border-left: 3px solid rgba(201, 162, 90, 0.55);
  border-radius: 10px;
  padding: 12px 14px;
}
.gbt-q {
  margin: 0 0 10px;
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--ink);
}
.gbt-step {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 90, 0.45);
  border-radius: 999px;
  padding: 1px 8px;
  margin-right: 8px;
  vertical-align: middle;
}
.gbt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gbt-choice {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(201, 162, 90, 0.04);
}
.gbt-choice b {
  color: var(--ink);
  font-weight: 600;
}
.gbt-choice em {
  font-style: normal;
  color: var(--muted);
  font-size: 11.5px;
}
.gbt-fork {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.gbt-endings {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gbt-ending {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.gbt-ending:hover {
  border-color: rgba(201, 162, 90, 0.5);
  transform: translateY(-2px);
}
.gbt-end-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.gbt-end-name {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--gold);
}
.gbt-end-cond {
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
.gbt-end-out {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   演员门户 / 双入口（Phase 1 重设计 · 把演员升为第一支柱）
   ============================================================ */

/* 导航：演员支柱描金 */
.nav-link--pillar { color: var(--gold); font-weight: 600; }

/* 首页双入口 hero */
.vault-hero--dual { display: flex; flex-direction: column; gap: 18px; }
.vault-hero-intro .vault-hero-title em { color: var(--gold); font-style: normal; }
.dual-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .dual-entry { grid-template-columns: 1fr; } }
.de-door {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.de-door:hover { transform: translateY(-3px); border-color: rgba(212, 178, 111, .42); box-shadow: var(--shadow); }
.de-door--actors { background: linear-gradient(140deg, rgba(178, 127, 59, .20), var(--surface) 62%); }
.de-door--works { background: linear-gradient(140deg, rgba(75, 138, 129, .15), var(--surface) 62%); }
.de-eyebrow { font-size: 11.5px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.de-title { font-family: var(--font-serif); font-size: 26px; color: var(--ink); }
.de-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.de-cta { margin-top: 6px; font-size: 14px; color: var(--gold); font-weight: 600; }
.vault-hero-actions--mini { display: flex; gap: 10px; flex-wrap: wrap; }

/* 演员门户容器 */
.actors-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 28px 80px; }
.actors-intro { margin-bottom: 28px; }
.actors-kicker { font-size: 12px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin: 0; }
.actors-intro h1 { font-family: var(--font-serif); font-size: 34px; color: var(--ink); margin: 8px 0; }
.actors-lead { color: var(--muted); max-width: 780px; line-height: 1.75; margin: 0; }
.actors-lead strong { color: var(--ink); }
.actors-section { margin-bottom: 38px; }
.actors-section-label { display: inline-block; font-size: 12.5px; letter-spacing: .08em; color: var(--gold); margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.actor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.actors-empty { color: var(--muted); padding: 40px; text-align: center; }

/* 演员卡 */
.actor-card { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.actor-card:hover { transform: translateY(-4px); border-color: rgba(212, 178, 111, .42); box-shadow: var(--shadow); }
.actor-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.actor-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; position: relative; z-index: 1; }
.actor-cover-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 84px; color: rgba(212, 178, 111, .08); z-index: 0; }
.actor-cover-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 8, .04) 32%, rgba(5, 6, 8, .92)); z-index: 2; }
.actor-cover-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; z-index: 3; }
.actor-reel-count { font-size: 11.5px; color: var(--ink); background: rgba(5, 6, 8, .6); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; backdrop-filter: blur(4px); white-space: nowrap; }
.actor-cover-foot { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 3; }
.actor-cover-foot h3 { font-family: var(--font-serif); font-size: 20px; color: var(--ink); margin: 0 0 3px; }
.actor-cover-foot p { font-size: 12px; color: rgba(244, 239, 230, .72); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* tag 变体 */
.tag--gold { background: rgba(212, 178, 111, .16); color: var(--gold); border-color: rgba(212, 178, 111, .4); }
.tag--free { background: rgba(75, 138, 129, .16); color: #7fc4b8; border-color: rgba(75, 138, 129, .4); }

/* 演员档案页 */
.actor-profile { animation: apFade .25s ease; }
@keyframes apFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ap-back { display: inline-block; color: var(--gold); text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.ap-back:hover { text-decoration: underline; }
.ap-hero { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(140deg, rgba(178, 127, 59, .12), var(--surface) 56%); margin-bottom: 32px; }
@media (max-width: 760px) { .ap-hero { grid-template-columns: 1fr; } }
.ap-hero-cover { border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
.ap-hero-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ap-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ap-hero-text h1 { font-family: var(--font-serif); font-size: 36px; color: var(--ink); margin: 0 0 10px; }
.ap-tagline { font-size: 16px; color: var(--ink); line-height: 1.6; margin: 0 0 14px; }
.ap-lore { font-size: 13.5px; color: var(--muted); line-height: 1.7; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--gold-dim); border-radius: 0 8px 8px 0; margin: 0 0 14px; }
.ap-lore span { color: var(--gold); margin-right: 8px; font-weight: 600; }
.ap-cast-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.ap-reel-head { margin-bottom: 14px; }
.ap-reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ap-role { display: block; text-decoration: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .16s ease, border-color .16s ease; }
.ap-role:hover { transform: translateY(-3px); border-color: rgba(212, 178, 111, .42); }
.ap-role-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.ap-role-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ap-role-kind { position: absolute; top: 8px; left: 8px; font-size: 11px; color: var(--ink); background: rgba(5, 6, 8, .66); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; backdrop-filter: blur(4px); }
.ap-role-kind.is-signature { color: var(--gold); border-color: rgba(212, 178, 111, .5); background: rgba(212, 178, 111, .14); }
.ap-role-free { position: absolute; top: 8px; right: 8px; font-size: 11px; color: #7fc4b8; background: rgba(75, 138, 129, .18); border: 1px solid rgba(75, 138, 129, .4); border-radius: 99px; padding: 2px 8px; }
.ap-role { width: 100%; text-align: left; font: inherit; cursor: pointer; color: inherit; padding: 0; }
.ap-role-meta { padding: 10px 12px; }
.ap-role-meta strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.ap-role-meta span { font-size: 12px; color: var(--muted); }
.ap-role-logline { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink); opacity: .82; }
/* 戏里戏外 · 交情(演员群像互链) */
.ap-relations { margin: 28px 0 0; }
.ap-relation-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.ap-relation { display: block; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: transform .16s ease, border-color .16s ease; }
.ap-relation:hover { transform: translateY(-2px); border-color: rgba(212, 178, 111, .42); }
.ap-relation strong { display: block; font-size: 13.5px; color: var(--gold); margin-bottom: 3px; }
.ap-relation span { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* 档案页文案层:本尊小传 / 早年作品 / 年龄时间线 */
.ap-bio { margin: 4px 0 30px; }
.ap-bio-list { margin: 0; display: grid; gap: 12px; }
.ap-bio-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: start; }
.ap-bio-row dt { font-size: 12.5px; color: var(--gold); font-weight: 600; padding-top: 2px; }
.ap-bio-row dd { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.72; }
@media (max-width: 560px) { .ap-bio-row { grid-template-columns: 1fr; gap: 4px; } }
.ap-early { margin: 30px 0; }
.ap-early-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ap-early-card { display: block; text-decoration: none; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--surface); color: inherit; cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.ap-early-card.is-static { cursor: default; }
.ap-early-card:not(.is-static):hover { transform: translateY(-2px); border-color: rgba(212, 178, 111, .5); }
.ap-early-card strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.ap-early-card span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ap-ageline { margin: 30px 0; }
.ap-ageline-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .ap-ageline-strip { grid-template-columns: repeat(3, 1fr); } }
.ap-age-cell { text-align: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); padding-bottom: 10px; }
.ap-age-cell.is-current { border-color: rgba(212, 178, 111, .55); box-shadow: 0 0 0 1px rgba(212, 178, 111, .25) inset; }
.ap-age-thumb { aspect-ratio: 3 / 4; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ap-age-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ap-age-cell.is-pending .ap-age-thumb { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 8px, rgba(255,255,255,.02) 8px, rgba(255,255,255,.02) 16px); }
.ap-age-soon { font-size: 11.5px; color: var(--muted); opacity: .7; }
.ap-age-cell strong { display: block; font-size: 13px; color: var(--ink); margin: 8px 0 2px; }
.ap-age-cell > span { font-size: 11.5px; color: var(--muted); }
.ap-age-cell.is-current > span { color: var(--gold); }
.ap-ageline-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }

/* 本尊脸模 · 身份基准 */
.ap-facemodel { margin: 22px 0; }
.ap-facemodel-row { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; }
.ap-facemodel-thumb { flex: 0 0 auto; width: 108px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.ap-facemodel-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ap-facemodel-row p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
@media (max-width: 560px) { .ap-facemodel-row { flex-direction: column; align-items: flex-start; } .ap-facemodel-thumb { width: 96px; } }

/* 桥B:资源站→同伴 转化 CTA */
.ap-bridge { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 34px 0; padding: 24px 28px; border: 1px solid rgba(212, 178, 111, .42); border-radius: 14px; background: linear-gradient(135deg, var(--gold-dim), rgba(212, 178, 111, .04)); }
.ap-bridge-kicker { display: inline-block; font-size: 12px; letter-spacing: .08em; color: var(--gold); margin-bottom: 8px; }
.ap-bridge-text h2 { font-family: var(--font-serif); font-size: 21px; color: var(--ink); margin: 0 0 8px; line-height: 1.35; }
.ap-bridge-text p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; max-width: 560px; }
.ap-bridge-cta { flex-shrink: 0; font: inherit; font-size: 14px; font-weight: 600; color: #0b0c0e; background: var(--gold); border: none; border-radius: 99px; padding: 12px 24px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.ap-bridge-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(212, 178, 111, .28); }
.ap-bridge-cta.is-noted { background: var(--gold-dim); color: var(--gold); cursor: default; border: 1px solid rgba(212, 178, 111, .42); }
@media (max-width: 600px) { .ap-bridge { padding: 20px; } .ap-bridge-cta { width: 100%; } }
/* 桥B 候补登记表单 */
.ap-waitlist { flex-shrink: 0; max-width: 340px; }
.ap-waitlist-lead { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.ap-waitlist-form { display: flex; gap: 8px; }
.ap-waitlist-input { flex: 1; min-width: 0; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; }
.ap-waitlist-input:focus { outline: none; border-color: rgba(212, 178, 111, .5); }
.ap-waitlist-submit { flex-shrink: 0; font: inherit; font-size: 13px; font-weight: 600; color: #0b0c0e; background: var(--gold); border: none; border-radius: 99px; padding: 10px 18px; cursor: pointer; }
.ap-waitlist-submit:disabled { opacity: .6; cursor: default; }
.ap-waitlist-msg { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.ap-waitlist-msg.is-ok { color: var(--gold); }
@media (max-width: 600px) { .ap-waitlist { max-width: none; } .ap-waitlist-form { flex-direction: column; } .ap-waitlist-submit { width: 100%; } }

/* 定妆照 lightbox */
.actor-still-lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 32px; }
.actor-still-lb[hidden] { display: none; }
.aslb-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 6, .82); backdrop-filter: blur(6px); }
.aslb-panel { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; max-width: 960px; max-height: 88vh; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 760px) { .aslb-panel { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; } }
.aslb-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--line); background: rgba(5, 6, 8, .6); color: var(--ink); cursor: pointer; font-size: 15px; }
.aslb-close:hover { border-color: rgba(212, 178, 111, .5); color: var(--gold); }
.aslb-img { background: #07080b; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.aslb-img img { max-width: 100%; max-height: 88vh; object-fit: contain; display: block; }
.aslb-meta { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; align-content: start; }
.aslb-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.aslb-meta h3 { font-family: var(--font-serif); font-size: 22px; color: var(--ink); margin: 0; }
.aslb-lore { font-size: 13px; color: var(--muted); line-height: 1.7; padding: 10px 12px; border-left: 2px solid var(--gold); background: var(--gold-dim); border-radius: 0 8px 8px 0; margin: 0; }
.aslb-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.aslb-sync { font-size: 12.5px; color: var(--ink); line-height: 1.6; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.aslb-sync strong { color: var(--gold); }

/* 演员↔宇宙 反向互链 */
.ap-cast-into { margin-top: 34px; }
.ap-uni-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-uni-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.ap-uni-chip:hover { border-color: rgba(212, 178, 111, .45); transform: translateY(-2px); background: var(--gold-dim); }
.ap-uni-chip span { font-size: 13.5px; }
.ap-uni-chip em { font-style: normal; font-size: 11px; color: var(--muted); }
/* 宇宙弹窗：可出演演员 */
.world-cast .world-cast-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.world-cast-row { display: flex; flex-wrap: wrap; gap: 12px; }
.world-cast-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .16s ease, transform .16s ease; }
.world-cast-chip:hover { border-color: rgba(212, 178, 111, .45); transform: translateY(-2px); }
.wcc-cover { width: 34px; height: 34px; border-radius: 99px; background-size: cover; background-position: top center; flex: none; border: 1px solid var(--line); }
.wcc-meta { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.wcc-meta strong { font-size: 13.5px; color: var(--ink); }
.wcc-meta em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ③ 作品聚合落地页 */
.works-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 28px 80px; }
.works-intro { margin-bottom: 26px; }
.works-kicker { font-size: 12px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin: 0; }
.works-intro h1 { font-family: var(--font-serif); font-size: 32px; color: var(--ink); margin: 8px 0; }
.works-lead { color: var(--muted); max-width: 780px; line-height: 1.75; margin: 0; }
.works-section-label { font-size: 12.5px; letter-spacing: .08em; color: var(--gold); margin: 30px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.works-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.works-cat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.works-cat:hover { transform: translateY(-3px); border-color: rgba(212, 178, 111, .42); background: var(--gold-dim); }
.works-cat-n { font-family: var(--font-serif); font-size: 28px; color: var(--gold); line-height: 1; }
.works-cat strong { font-size: 15px; color: var(--ink); }
.works-cat-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.works-worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.works-world { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-align: left; border-left: 3px solid var(--teal); transition: transform .16s ease, border-color .16s ease; }
.works-world[data-hue="rose"] { border-left-color: var(--rose); }
.works-world[data-hue="violet"] { border-left-color: var(--violet); }
.works-world[data-hue="amber"] { border-left-color: var(--amber); }
.works-world[data-hue="slate"] { border-left-color: var(--slate); }
.works-world:hover { transform: translateY(-2px); border-color: rgba(212, 178, 111, .42); }
.works-world strong { font-size: 14.5px; color: var(--ink); }
.works-world span { font-size: 11.5px; color: var(--muted); }
/* 旗舰主线宇宙(骑士×机甲):描金强调 + 主线标 */
.works-world.is-flagship { border-color: rgba(212, 178, 111, .45); border-left-color: var(--gold); background: linear-gradient(180deg, var(--gold-dim), var(--surface)); }
.ww-flag { font-size: 10.5px; letter-spacing: .06em; color: var(--gold); margin-bottom: 2px; }
/* 移动端筛选折叠:默认收起,先见角色网格;桌面不显 toggle、筛选常开 */
.sidebar-mobile-toggle { display: none; }
@media (max-width: 760px) {
  .sidebar-mobile-toggle { display: block; width: 100%; padding: 11px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
  .shell-sidebar > .sidebar-block { display: none; }
  .shell-sidebar.is-open > .sidebar-block { display: block; }
}
.works-cross { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
@media (max-width: 640px) { .works-cross { grid-template-columns: 1fr; } }
.works-cross-card { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(140deg, rgba(178, 127, 59, .12), var(--surface) 60%); text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.works-cross-card:hover { transform: translateY(-3px); border-color: rgba(212, 178, 111, .42); }
.works-cross-card strong { font-family: var(--font-serif); font-size: 18px; color: var(--ink); }
.works-cross-card span { font-size: 12.5px; color: var(--muted); }
