/* ============================================================
   全站 UX/UI 统合层（additive · 覆盖在 styles.css 之上）
   目标：精简导航、订阅 CTA、页脚信息架构、工具库分区、视图一致性
   ============================================================ */

/* —— 顶栏「订阅」CTA —— */
.nav-subscribe {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold), #c79a52);
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(212, 178, 111, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212, 178, 111, 0.38);
}
@media (max-width: 900px) {
  .nav-subscribe { display: none; } /* 窄屏走抽屉里的订阅入口 */
}

/* —— 移动抽屉：分组 + CTA —— */
.mobile-nav-link--cta {
  color: var(--gold) !important;
  border: 1px solid rgba(212, 178, 111, 0.4);
  border-radius: 10px;
  text-align: center;
  background: rgba(212, 178, 111, 0.08);
}
.mobile-nav-divider {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 4px;
  padding-left: 4px;
}
.mobile-nav-link--sub { font-size: 14px; color: var(--muted); }

/* —— 页脚信息架构 —— */
.site-footer {
  display: block;
  padding: 40px clamp(20px, 5vw, 64px) 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated, #0a0c10);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto 24px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand .logo-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(212, 178, 111, 0.4);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 20px;
  flex: 0 0 auto;
}
.footer-brand strong { display: block; color: var(--ink); font-size: 14.5px; }
.footer-brand em { color: var(--muted); font-size: 12.5px; font-style: normal; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-col-h {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s ease;
  cursor: pointer;
}
.footer-nav a:hover { color: var(--ink); }
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* —— 工具库分区 Tab —— */
.tk-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  background: rgba(10, 12, 16, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tk-tab {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.tk-tab:hover { color: var(--ink); }
.tk-tab.is-active {
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold), #c79a52);
}
.tk-panel { display: none; animation: rdFade 0.3s ease both; }
.tk-panel.is-active { display: block; }
@keyframes rdFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— 视图一致性微调：统一区头与容器留白 —— */
.view-panel .view-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 48px) 64px;
}
.section-head {
  margin-bottom: 28px;
}
.section-head .kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

/* —— 宇宙卡上的试玩按钮与圣经按钮间距统一 —— */
.universe-card .play-demo-btn { margin-top: 8px; }

/* ============================================================
   首页/角色库着陆 Hero（位于中栏顶部，随内容滚动）
   ============================================================ */
.vault-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 88% 0%, rgba(212, 178, 111, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(20, 24, 32, 0.92), rgba(10, 12, 16, 0.92));
}
.vault-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 0% 100%, rgba(120, 90, 160, 0.14), transparent 60%);
  pointer-events: none;
}
.vault-hero-text { position: relative; z-index: 1; max-width: 620px; }
.vault-hero-kicker {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
/* 创师宇宙 logline(北极星·首屏那口气) */
.vault-hero-logline {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(212, 178, 111, 0.18);
}
.vhl-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.vhl-lead {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-serif, "Songti SC", serif);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink, #ece7da);
}
.vhl-lead strong { color: var(--gold); font-weight: 600; }
@media (max-width: 640px) { .vhl-lead { font-size: 14.5px; line-height: 1.8; } }
.vault-hero-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.12;
  color: var(--ink);
}
.vault-hero-title em { color: var(--gold); font-style: normal; }
.vault-hero-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
}
.vault-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vault-hero-media {
  position: relative;
  z-index: 1;
  flex: 1 1 240px;
  max-width: 320px;
  min-width: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 178, 111, 0.26);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}
.vault-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.vh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.vh-btn:hover { transform: translateY(-1px); border-color: rgba(212, 178, 111, 0.5); }
.vh-btn--gold {
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold), #c79a52);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(212, 178, 111, 0.25);
}
.vh-btn--ghost { color: var(--muted); background: none; }
.vault-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 26px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.vh-stat { text-align: center; }
.vh-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
}
.vh-stat span { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) {
  .vault-hero-media { max-width: 100%; }
  .vault-hero-stats { padding-left: 0; border-left: none; gap: 18px; }
}
@media (max-width: 560px) {
  .vault-hero { padding: 20px; }
  .vault-hero-media { min-width: 100%; }
  .vault-hero-stats { width: 100%; justify-content: space-between; }
}

/* ============================================================
   宇宙世界观卡 v2（图片封面 + 信息层级 + 突出试玩入口）
   ============================================================ */
.universe-card--v2 {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.universe-card--v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.uc-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cover-gradient, linear-gradient(145deg, #232a36, #0d1014));
  overflow: hidden;
}
.uc-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.uc-cover-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 64px;
  color: rgba(212, 178, 111, 0.22);
}
.uc-cover-grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.55) 0%, transparent 32%, transparent 50%, rgba(8, 9, 12, 0.92) 100%);
}
.uc-cover-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.uc-cover-top .tag {
  background: rgba(8, 9, 12, 0.62);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.uc-cover-foot {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 3;
}
.uc-cover-foot h3 {
  margin: 0 0 2px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.uc-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}
.uc-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
}
.uc-tagline {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uc-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
}
.uc-actions .uc-play {
  margin: 0;
  width: 100%;
  justify-content: center;
  font-weight: 600;
}
.uc-actions .uc-wb {
  margin: 0;
  width: 100%;
}
@media (min-width: 560px) {
  .uc-actions { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   订阅页：基础 vs 进阶 对比矩阵（提升转化）
   ============================================================ */
.plan-compare { max-width: 860px; margin: 36px auto 8px; }
.plan-compare-h {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 18px;
}
.compare-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 12, 16, 0.5);
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th,
.compare-table td {
  padding: 13px 16px;
  text-align: center;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.compare-table thead th em {
  font-style: normal;
  color: var(--gold);
  font-size: 13px;
  margin-left: 2px;
}
.compare-table td:first-child,
.compare-table th:first-child {
  text-align: left;
  color: var(--muted);
}
.compare-table tbody td { color: var(--muted); }
.compare-table .ct-y { color: var(--gold); font-weight: 600; }
.compare-table .ct-n { color: rgba(255, 255, 255, 0.25); }
.compare-table .ct-best {
  background: rgba(212, 178, 111, 0.07);
  color: var(--ink);
}
.compare-table thead .ct-best {
  position: relative;
  background: rgba(212, 178, 111, 0.13);
}
.compare-table thead .ct-best span {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold), #c79a52);
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.compare-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.compare-table tbody tr:hover td.ct-best { background: rgba(212, 178, 111, 0.11); }
.compare-table tfoot td { border-bottom: none; padding: 16px; }
.plan-cta--mini { padding: 9px 22px; font-size: 13px; width: auto; min-width: 96px; letter-spacing: 0.02em; }
.compare-table tfoot .plan-cta--mini.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(212, 178, 111, 0.45);
}
.compare-table tfoot .plan-cta--mini.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 178, 111, 0.08);
}

/* 进阶卡推荐强调 */
.plan-card.plus {
  border-color: rgba(212, 178, 111, 0.45);
  box-shadow: 0 14px 40px rgba(212, 178, 111, 0.1);
}

@media (max-width: 560px) {
  .compare-table th,
  .compare-table td { padding: 10px 8px; font-size: 12px; }
  .plan-compare-h { font-size: 19px; }
}

/* 免费 vs 会员：定价页顶部转化钩子表 */
.fvm-box { max-width: 760px; margin: 8px auto 34px; }
.fvm-h {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--gold);
  margin: 0 0 8px;
}
.fvm-sub {
  text-align: center;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 20px;
}
.fvm-box .compare-wrap { border-color: rgba(212, 178, 111, 0.32); }
.fvm-table thead th:first-child { font-weight: 600; color: var(--ink); }
.fvm-foot-note { font-size: 12px; color: var(--gold); }
@media (max-width: 560px) {
  .fvm-h { font-size: 19px; }
}

/* ============================================================
   收尾页（案例 / 关于）统一转化 CTA 带
   ============================================================ */
.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid rgba(212, 178, 111, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(110% 160% at 92% 0%, rgba(212, 178, 111, 0.14), transparent 58%),
    linear-gradient(135deg, rgba(20, 24, 32, 0.9), rgba(10, 12, 16, 0.92));
}
.section-cta-text h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink);
}
.section-cta-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}
.section-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 620px) {
  .section-cta { padding: 22px; }
  .section-cta-actions { width: 100%; }
  .section-cta-actions .vh-btn { flex: 1; justify-content: center; }
}

/* ============================================================
   移动端优化 + 细节抛光
   ============================================================ */

/* Logo 在窄屏不换行 */
.logo-text strong { white-space: nowrap; }

/* 侧栏搜索框图标不压字 */
.shell-sidebar .search-wrap input { padding-left: 38px; }

/* 手机：角色库「内容优先」——Hero + 角色网格在前，筛选器在后
   （搜索仍可经顶栏放大镜触达，点击后自动定位输入框） */
@media (max-width: 760px) {
  .app-shell { display: flex; flex-direction: column; }
  .shell-main { order: 1; }
  .shell-sidebar {
    order: 2;
    border-bottom: none;
    border-top: 1px solid var(--line);
  }
  .vault-hero { padding: 18px 18px 20px; }
  .vault-hero-title { font-size: 23px; }
  .vault-hero-actions .vh-btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    white-space: nowrap;
  }
  .vault-hero-stats { width: 100%; justify-content: space-between; margin-top: 4px; }
}

/* 视图进场动画（尊重 prefers-reduced-motion） */
@media (prefers-reduced-motion: no-preference) {
  .view-panel.is-active .view-inner > * { animation: rdRise 0.45s ease both; }
  .view-panel.is-active .view-inner > *:nth-child(2) { animation-delay: 0.05s; }
  .view-panel.is-active .view-inner > *:nth-child(3) { animation-delay: 0.1s; }
}
@keyframes rdRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 统一焦点可见性（无障碍） */
:where(a, button, [tabindex="0"], input, select, .vh-btn, .gt-btn):focus-visible {
  outline: 2px solid rgba(212, 178, 111, 0.75);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 角色库空状态（搜索无结果 / 筛选过严） */
.pack-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 64px 24px;
  color: var(--muted);
}
.pack-empty-glyph {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 178, 111, 0.35);
  border-radius: 16px;
  font-family: var(--font-serif);
  font-size: 30px;
  color: rgba(212, 178, 111, 0.6);
  margin-bottom: 6px;
}
.pack-empty h3 { margin: 0; font-family: var(--font-serif); font-size: 20px; color: var(--ink); }
.pack-empty p { margin: 0 0 12px; font-size: 13.5px; }

/* 剧场选择器：顶对齐，标题始终在最上、卡片向下滚动（修 21 卡溢出截断） */
.gt-screen:has(.gt-chooser) { justify-content: flex-start; }

/* 修复：移动/平板详情滑出层半透明导致背后网格透出 → 改为不透明 */
@media (max-width: 1180px) {
  .shell-detail {
    background: #0a0c11;
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.6);
  }
}

/* 修复：.btn-ghost 未设背景 → 浏览器默认浅色按钮底导致「白底白字」不可见
   统一为暗色半透明底 + 金边 + 亮色文字，影响会员中心 / 订阅 / 各处 ghost 按钮 */
.btn-ghost {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  border: 1px solid rgba(212, 178, 111, 0.4);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 178, 111, 0.1);
}

/* 中栏滚动条微调，贴合金调 */
.shell-main::-webkit-scrollbar { width: 9px; }
.shell-main::-webkit-scrollbar-thumb {
  background: rgba(212, 178, 111, 0.18);
  border-radius: 9px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.shell-main::-webkit-scrollbar-thumb:hover { background: rgba(212, 178, 111, 0.34); background-clip: padding-box; }

/* ============================================================
   会员中心 · 月度限定「专题刊」（高级会员核心权益）
   ============================================================ */
.edition { margin-bottom: 8px; }
.edition-hero {
  position: relative;
  border: 1px solid rgba(212, 178, 111, 0.3);
  border-radius: 16px;
  padding: 20px 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(212, 178, 111, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.edition-hero::before {
  content: "限";
  position: absolute;
  right: 14px;
  bottom: -18px;
  font-family: var(--font-serif);
  font-size: 110px;
  line-height: 1;
  color: rgba(212, 178, 111, 0.07);
  pointer-events: none;
}
/* 有专题封面：图片做底，强暗渐变压顶保证文字可读；隐藏「限」水印 */
.edition-hero.has-cover {
  background-image:
    linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.8) 52%, rgba(8, 10, 14, 0.95) 100%),
    var(--edition-cover);
  background-size: cover, cover;
  background-position: center 20%, center 20%;
  background-repeat: no-repeat, no-repeat;
  border-color: rgba(212, 178, 111, 0.5);
}
.edition-hero.has-cover::before { display: none; }
.edition-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.edition-kicker {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.edition-mood {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  white-space: nowrap;
}
.edition-theme {
  margin: 10px 0 6px;
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--ink);
  line-height: 1.25;
}
.edition-tagline {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(231, 224, 211, 0.82);
  line-height: 1.65;
}
.edition-tagline--sm { font-size: 13px; margin-bottom: 8px; }
.edition-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 12px;
  border-left: 2px solid rgba(212, 178, 111, 0.4);
}
.edition-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.edition-highlights li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: rgba(231, 224, 211, 0.9);
  line-height: 1.55;
}
.edition-highlights li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}
.edition-roles-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.edition-roles-head strong { color: var(--gold); font-weight: 600; }
.er-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* 独家附赠 */
.edition-bonus { margin-top: 22px; }
.bonus-grid { display: grid; gap: 12px; }
.bonus-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.022);
}
.bonus-card.is-locked { border-style: dashed; border-color: rgba(212, 178, 111, 0.28); }
.bonus-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.bonus-kind {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(212, 178, 111, 0.12);
  border: 1px solid rgba(212, 178, 111, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}
.bonus-head strong { font-family: var(--font-serif); font-size: 16px; color: var(--ink); }
.bonus-summary { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.bonus-script {
  margin-top: 11px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 11px 13px;
  display: grid;
  gap: 7px;
}
.bonus-line { margin: 0; display: flex; gap: 9px; font-size: 13px; line-height: 1.55; }
.bl-who {
  flex: none;
  min-width: 64px;
  color: var(--gold);
  font-weight: 600;
}
.bl-text { color: rgba(231, 224, 211, 0.92); }
.bonus-points { margin: 11px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.bonus-points li { font-size: 13px; color: rgba(231, 224, 211, 0.88); line-height: 1.55; }
.bonus-lock {
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--gold);
  background: rgba(212, 178, 111, 0.08);
  border-radius: 8px;
  padding: 9px 12px;
  text-align: center;
}
.bonus-play {
  margin-top: 12px;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #1a140a;
  background: linear-gradient(180deg, #e6cd8f, var(--gold));
  border: none;
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.bonus-play:hover { filter: brightness(1.07); transform: translateY(-1px); }
.bonus-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 往期专题（已下架，紧凑） */
.edition--past {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: 16px;
}
.past-ed-head { display: flex; align-items: center; gap: 12px; }
.past-ed-headtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.past-ed-thumb {
  flex: none;
  width: 72px;
  height: 48px;
  border-radius: 8px;
  background-size: cover;
  background-position: center 22%;
  border: 1px solid rgba(212, 178, 111, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.past-ed-theme { margin: 0; font-family: var(--font-serif); font-size: 18px; color: var(--ink); }
.past-ed-bonus { margin: 8px 0 0; font-size: 12px; color: rgba(231, 224, 211, 0.45); }
.past-ed-bonus--lock { color: rgba(231, 224, 211, 0.55); line-height: 1.6; }

/* 往期番外可试玩条（会员） */
.past-ed-bonusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 178, 111, 0.06);
  border: 1px solid rgba(212, 178, 111, 0.18);
}
.past-ed-bonusmeta {
  font-size: 12px;
  color: rgba(231, 224, 211, 0.62);
  line-height: 1.5;
}
.past-ed-bonusmeta em { display: block; font-style: normal; color: rgba(231, 224, 211, 0.4); font-size: 11px; margin-top: 2px; }
.bonus-play.past-ed-play {
  margin-top: 0;
  width: auto;
  flex: none;
  padding: 7px 14px;
  font-size: 12.5px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .edition-theme { font-size: 21px; }
  .edition-hero { padding: 16px 16px; }
  .bl-who { min-width: 52px; }
}

/* ============================================================
   详情页补全：戏剧动机引擎 + 造型基准（既有数据，新接入 UI）
   ============================================================ */
.mc-intro { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
.mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.mc-cell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.022);
}
.mc-cell dt {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 7px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mc-cell dt em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-family: inherit;
}
.mc-cell dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.85);
}

.an-anchors { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.an-key {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  flex: none;
}
.an-rule {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  padding: 11px 13px;
  background: rgba(212, 178, 111, 0.06);
  border-left: 2px solid rgba(212, 178, 111, 0.4);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 720px) {
  .mc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   首页 · 本月限定专题导流带（非会员可见 → 转化）
   ============================================================ */
.vault-edition {
  display: grid;
  grid-template-columns: 240px 1fr;
  margin: 0 0 18px;
  border: 1px solid rgba(212, 178, 111, 0.32);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.vault-edition:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}
.vault-edition:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ve-cover {
  position: relative;
  background-size: cover;
  background-position: center 22%;
  background-color: #11141b;
  min-height: 168px;
}
.ve-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0) 60%, rgba(10, 12, 17, 0.9) 100%);
}
.ve-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a140a;
  background: var(--gold);
  border-radius: 6px;
  padding: 3px 9px;
}
.ve-body { padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; }
.ve-kicker {
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.ve-theme { font-family: var(--font-serif); font-size: 23px; margin: 9px 0 7px; color: var(--ink); line-height: 1.25; }
.ve-tagline { font-size: 13.5px; color: rgba(231, 224, 211, 0.78); line-height: 1.6; margin: 0 0 15px; }
.ve-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ve-meta { font-size: 12px; color: var(--muted); }

@media (max-width: 700px) {
  .vault-edition { grid-template-columns: 1fr; }
  .ve-cover { min-height: 132px; }
  .ve-cover::after { background: linear-gradient(180deg, rgba(8, 10, 14, 0) 55%, rgba(10, 12, 17, 0.92) 100%); }
}

/* ============================================================
   顶部导航「更多」下拉
   ============================================================ */
.nav-more { position: relative; display: flex; align-items: center; }
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-more-btn svg { transition: transform 0.18s ease; }
.nav-more.is-open .nav-more-btn svg { transform: rotate(180deg); }
.nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 196px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  background: rgba(13, 15, 20, 0.97);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  z-index: 60;
}
.nav-more.is-open .nav-more-menu { display: flex; }
/* 左侧分组下拉(资源/创作/了解)菜单左对齐(默认 right:0 适合最右"更多") */
.nav-more--left .nav-more-menu { left: 0; right: auto; }
/* 互动剧场:独立可玩栏目,微金色强调 + 播放图标 */
.nav-link--theater { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid rgba(212, 178, 111, 0.32); cursor: pointer; font: inherit; color: var(--gold); }
.nav-link--theater svg { opacity: 0.9; }
.nav-link--theater:hover { background: rgba(212, 178, 111, 0.1); color: var(--gold); border-color: rgba(212, 178, 111, 0.5); }
.nav-link--theater::after { content: none; }
.nav-more-item { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; }
.nav-more-item {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  color: rgba(231, 224, 211, 0.85);
  text-decoration: none;
  border-radius: 9px;
  transition: background 0.14s ease, color 0.14s ease;
}
.nav-more-item:hover { background: rgba(212, 178, 111, 0.1); color: var(--gold); }
.nav-more-item--dim { color: var(--muted); font-size: 12.5px; }
.nav-more-divider {
  display: block;
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}

/* ============================================================
   全局搜索浮层（Ctrl+K）
   ============================================================ */
.global-search {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(60px, 12vh, 130px) 18px 40px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.global-search[hidden] { display: none; }
.global-search.is-open { opacity: 1; }
.gs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(6px);
}
.gs-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(620px, 78vh);
  display: flex;
  flex-direction: column;
  background: rgba(13, 15, 20, 0.98);
  border: 1px solid rgba(212, 178, 111, 0.22);
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.18s ease;
}
.global-search.is-open .gs-panel { transform: none; }
.gs-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.gs-input-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-sans);
  color: #ede8df;
}
.gs-input-row input::placeholder { color: rgba(130, 126, 138, 0.7); }
.gs-kbd,
.gs-foot kbd {
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.03);
}
.gs-results {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
}
.gs-hint,
.gs-empty {
  padding: 14px 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.gs-empty { text-align: center; padding: 34px 18px; }
.gs-section { margin-bottom: 6px; }
.gs-section-label {
  display: block;
  padding: 8px 12px 5px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.gs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  transition: background 0.13s ease;
}
.gs-item:hover,
.gs-item.is-active { background: rgba(212, 178, 111, 0.1); }
.gs-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 34px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gs-thumb--world { background: linear-gradient(135deg, rgba(212, 178, 111, 0.16), rgba(120, 90, 40, 0.1)); }
.gs-glyph { font-family: var(--font-serif); font-size: 16px; color: var(--gold); }
.gs-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gs-text strong {
  font-size: 13.5px;
  color: #ede8df;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-text small {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-tag {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: var(--gold);
  border: 1px solid rgba(212, 178, 111, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}
.gs-tag--free { color: #9fe3c3; border-color: rgba(110, 214, 165, 0.4); }
.gs-foot {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.gs-foot span { display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 640px) {
  .global-search { padding: 12px; align-items: stretch; }
  .gs-panel { max-height: none; }
  .gs-foot { display: none; }
}

/* 会员态头像（订阅后顶栏即时切换） */
.account-avatar.is-member {
  background: linear-gradient(135deg, var(--gold), #c79a52);
  color: #1a1408;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(212, 178, 111, 0.35);
}

/* ===== Learn 页：可展开教程卡 ===== */
.learning-grid { align-items: start; }
details.learning-card { padding: 0; overflow: hidden; }
details.learning-card > summary {
  position: relative;
  display: block;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}
details.learning-card > summary::-webkit-details-marker { display: none; }
details.learning-card > summary:hover { background: rgba(212, 178, 111, 0.05); }
.learning-card .learning-num {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 26px;
}
.learning-card .learning-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(212, 178, 111, 0.35);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-sans, inherit);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.learning-card .learning-toggle::after {
  content: "▾";
  font-size: 10px;
  transition: transform 0.2s ease;
}
details[open].learning-card .learning-toggle::after { transform: rotate(180deg); }
details[open].learning-card > summary { background: rgba(212, 178, 111, 0.04); }
.learning-outline {
  padding: 4px 24px 22px;
  border-top: 1px dashed var(--line);
}
.learning-outline ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.learning-outline li::marker { color: var(--gold); }
.learning-outline li strong { color: var(--ink); font-weight: 600; }
.learning-cta {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(212, 178, 111, 0.4);
  color: var(--gold);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.learning-cta:hover { color: var(--ink); border-color: var(--ink); }

/* ===== App 包页：卡片动作按钮 ===== */
.app-pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.app-pack-btn {
  padding: 7px 14px;
  border: 1px solid rgba(212, 178, 111, 0.45);
  border-radius: 999px;
  background: rgba(212, 178, 111, 0.08);
  color: var(--gold);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.app-pack-btn:hover { background: var(--gold); color: #1a1408; }
.app-pack-actions .mini-copy {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
}

/* ===== 案例页：复制执行清单按钮 ===== */
.case-playbook-copy-btn {
  justify-self: start;
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
}

/* ===== Phase18 QA：类型筛选 + 对照原角色 ===== */
.phase18-kind-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}
.phase18-kind-chip {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.phase18-kind-chip:hover { color: var(--gold); border-color: rgba(212, 178, 111, 0.4); }
.phase18-kind-chip.is-active {
  background: rgba(212, 178, 111, 0.12);
  border-color: rgba(212, 178, 111, 0.5);
  color: var(--gold);
}
.phase18-open-pack {
  justify-self: start;
  margin-top: 10px;
  padding: 6px 13px;
  border: 1px solid rgba(212, 178, 111, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.phase18-open-pack:hover { background: var(--gold); color: #1a1408; }
.phase18-candidate-card[hidden] { display: none; }

/* ===== 质量账本 / 源质同步：CTA 行 ===== */
.ledger-cta-row,
.materia-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.ledger-cta-btn {
  padding: 9px 18px;
  border: 1px solid rgba(212, 178, 111, 0.45);
  border-radius: 999px;
  background: rgba(212, 178, 111, 0.08);
  color: var(--gold);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ledger-cta-btn:hover { background: var(--gold); color: #1a1408; }
.materia-cta-row .mini-copy {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
}
