/* ============================================================
   择剧 · 资料馆与公共页
   与 theme.css 的双主题令牌共用；这里只加新页面的版式与组件。
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 9999;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 13px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

.page-shell .wrap { max-width: 1320px; }
.page-root { min-height: 42vh; }

/* 全站导航：在主胶囊下面的一条细导航，横向可滑，移动端不挤 */
.sitebar {
  display: flex; align-items: center; gap: 4px;
  margin: 14px 0 0; padding: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  overflow-x: auto; scrollbar-width: none;
}
.sitebar::-webkit-scrollbar { display: none; }
.sitebar a {
  flex: 0 0 auto; padding: 8px 15px; border-radius: 999px;
  color: var(--dim); font-size: 12.5px; text-decoration: none;
  letter-spacing: .02em; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.sitebar a:hover { color: var(--ink); background: var(--surface-2); }
.sitebar a.on { color: #fff; background: var(--accent); }
.sitebar .sitebar-me { margin-left: auto; color: var(--ink); }
.headnav-sep { color: var(--line-strong); font-size: 10px; padding: 0 2px; }
html[data-theme="light"] .sitebar { box-shadow: var(--shadow-soft); }

/* ---------- 编辑排版：页头 ---------- */
.page-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 32px;
  margin: 46px 0 10px; padding: 38px 0 30px;
  border-bottom: 1px solid var(--line);
}
.page-index {
  order: 2; font-size: clamp(90px, 14vw, 190px); line-height: .72;
  font-weight: 800; letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}
.page-hero-copy { order: 1; min-width: 0; }
.page-eyebrow {
  display: inline-block; color: var(--accent); font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
}
.page-title {
  margin: 12px 0 14px; max-width: 13em;
  font-size: clamp(42px, 5.6vw, 82px); line-height: 1.02;
  font-weight: 800; letter-spacing: -.055em; text-wrap: balance;
}
.page-deck {
  max-width: 62ch; margin: 0; color: var(--dim);
  font-size: 15px; line-height: 1.75; text-wrap: pretty;
}
.page-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px;
  color: var(--dim); font-size: 12.5px;
}
.page-meta b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 15px; }
.page-meta > span { display: inline-flex; align-items: baseline; gap: 5px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* 区块标题：编号 + 英文小标 + 中文标题；同一层级只出现一次 */
.page-section { margin: 54px 0; }
.section-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: 14px; margin-bottom: 22px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  color: var(--accent); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.section-head h2 { margin: 0; font-size: clamp(21px, 2vw, 27px); font-weight: 800; letter-spacing: -.03em; }
.section-note { color: var(--faint); font-size: 12px; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 18px; color: var(--faint); font-size: 12px;
}
.breadcrumbs a { color: var(--dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs i { font-style: normal; color: var(--line-strong); }

/* ---------- 通用按钮/小控件 ---------- */
.page-root .btn.sm { padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.page-root .btn.block { display: flex; width: 100%; justify-content: center; margin-top: 10px; }
.text-link { color: var(--accent); font-size: 12.5px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--dim);
  cursor: pointer; transition: .18s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--dim);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  transition: .18s var(--ease);
}
.chip i {
  font-style: normal; font-size: 10px; color: var(--faint);
  padding: 1px 5px; border-radius: 999px; background: var(--surface-2);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip.on i { color: var(--accent); background: rgba(26, 115, 232, .12); }
.mood-tag, .story-mood, .hit-type {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--dim);
  font-size: 10.5px; letter-spacing: .04em;
}
.faint { color: var(--faint); }

/* ---------- 片库 ---------- */
.library-section { margin-top: 30px; }
.library-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.search-field {
  flex: 1 1 260px; display: flex; align-items: center;
  min-height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.search-field input, .search-hero input {
  width: 100%; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 13.5px;
}
.sort-field { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.sort-field select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px;
}
.library-tools { display: flex; align-items: center; gap: 14px; }
.library-count { color: var(--faint); font-size: 12px; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.auth-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  padding: 0 24px 28px; color: var(--faint); font-size: 11px;
}
.auth-legal a { color: var(--dim); text-decoration: none; }
.auth-legal a:hover { color: var(--accent); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.story-poster {
  position: relative; display: block; aspect-ratio: 16 / 10;
  background: var(--surface-2); overflow: hidden; text-decoration: none;
}
.story-poster-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.story-card:hover .story-poster-img { transform: scale(1.035); }
.story-poster-fallback {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background:
    linear-gradient(150deg, rgba(26, 115, 232, .10), transparent 55%),
    var(--surface-2);
}
.story-poster-fallback b { font-size: 46px; font-weight: 800; color: var(--ink); opacity: .85; }
.story-poster-fallback span { color: var(--faint); font-size: 11px; }
.story-mood {
  position: absolute; left: 12px; top: 12px;
  background: var(--poster-badge-bg); color: var(--poster-badge-ink);
  font-weight: 600;
}
.story-play {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(10, 14, 20, .55);
  backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .26);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.story-card:hover .story-play { transform: scale(1.08); background: var(--accent); }
.story-soon {
  position: absolute; right: 12px; bottom: 12px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(10, 14, 20, .6); color: #fff; font-size: 10.5px;
}
.story-body { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 16px; }
.story-body h3 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.story-body h3 a { color: var(--ink); text-decoration: none; }
.story-logline {
  margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.story-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--faint); font-size: 11px; }
.story-meta b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.story-actions { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.story-actions .icon-btn { margin-left: auto; }

/* ---------- 播放页 ---------- */
.watch-stage {
  margin: 18px 0 0; border-radius: var(--r-panel); overflow: hidden;
  background: #050608; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.watch-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 74vh; background: #050608; }
.watch-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.watch-cover {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end;
  padding: 34px; color: #fff; cursor: default;
  background-image: linear-gradient(90deg, rgba(4, 6, 10, .92) 0%, rgba(4, 6, 10, .55) 46%, rgba(4, 6, 10, .18) 100%), var(--cover, none);
  background-size: cover; background-position: center;
  transition: opacity .5s var(--ease);
}
.watch-cover.off { opacity: 0; pointer-events: none; }
.watch-cover-inner { max-width: 560px; }
.watch-cover .page-eyebrow { color: #8ab4f8; }
.watch-cover h2 { margin: 10px 0 8px; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.02em; }
.watch-cover p { margin: 0 0 18px; max-width: 460px; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.7; }
.watch-cover .btn.lg { padding: 12px 26px; font-size: 14px; }
.watch-cover-note { display: block; margin-top: 12px; color: rgba(255, 255, 255, .5); font-size: 12px; }
.watch-placeholder { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; padding: 30px; color: #f4f6fa; }
.watch-placeholder-poster { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; }
.watch-placeholder h2 { margin: 8px 0; font-size: 26px; color: #fff; }
.watch-placeholder p { color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.7; }
.watch-placeholder .btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
.watch-info-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px;
  padding: 30px 0 8px;
}
.watch-copy .page-eyebrow { color: var(--accent); }
.watch-title {
  margin: 10px 0 12px; font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04; letter-spacing: -.05em;
}
.watch-logline { max-width: 56ch; margin: 0 0 14px; color: var(--dim); font-size: 14px; line-height: 1.75; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.watch-hint { margin: 10px 0 0; color: var(--faint); font-size: 11px; }
.watch-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
.watch-aside { display: flex; flex-direction: column; gap: 12px; }
.aside-card {
  padding: 16px 17px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface);
}
.aside-label {
  display: block; margin-bottom: 8px; color: var(--accent);
  font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.aside-card p { margin: 0 0 8px; color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.aside-card p:last-child { margin-bottom: 0; }
.scene-rail-section { margin-top: 28px; }
.scene-rail { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.scene-pill {
  flex: 0 0 172px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-family: inherit; text-align: left; cursor: pointer;
  transition: .18s var(--ease);
}
.scene-pill b { color: var(--accent); font-size: 10px; letter-spacing: .12em; }
.scene-pill span { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scene-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.scene-panel {
  margin-top: 14px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--r-card); background: var(--surface);
}
.scene-panel-head { display: flex; align-items: center; gap: 12px; }
.scene-panel-head h3 { margin: 0; font-size: 18px; }
.scene-panel-head .btn { margin-left: auto; }
.scene-panel-mood { color: var(--faint); font-size: 11.5px; margin: 6px 0 12px; }
.scene-beats p { margin: 6px 0; color: var(--dim); font-size: 13px; line-height: 1.7; }
.scene-beats b { color: var(--ink); }
.scene-choice { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.scene-choice span {
  padding: 5px 9px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 11px;
}

/* ---------- 剧集档案 ---------- */
.story-hero {
  position: relative; min-height: 430px; margin-top: 18px;
  display: flex; align-items: flex-end;
  border-radius: var(--r-panel); overflow: hidden;
  background-image:
    linear-gradient(100deg, rgba(5, 8, 12, .97) 0%, rgba(5, 8, 12, .86) 52%, rgba(5, 8, 12, .52) 100%),
    var(--hero-poster, none);
  background-size: cover; background-position: center 30%;
  border: 1px solid var(--line);
}
html[data-theme="light"] .story-hero { background-color: #0b1118; }
.story-hero-mark {
  position: absolute; right: 3%; top: -7%; font-size: clamp(190px, 30vw, 420px);
  font-weight: 800; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14); pointer-events: none;
}
.story-hero-copy { position: relative; z-index: 2; padding: 46px 44px 38px; color: #fff; max-width: 840px; }
.story-hero-copy .page-eyebrow { color: #9fc3ff; }
.story-hero-copy .page-title { color: #fff; margin: 12px 0 14px; }
.story-hero-copy .page-deck { color: rgba(255, 255, 255, .72); }
.story-hero-copy .page-meta { color: rgba(255, 255, 255, .58); }
.story-hero-copy .page-meta b { color: #fff; }
.story-hero-copy .breadcrumbs { color: rgba(255, 255, 255, .45); }
.story-hero-copy .breadcrumbs a { color: rgba(255, 255, 255, .68); }
.story-hero-copy .btn { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.story-hero-copy .btn.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.story-hero-copy .btn.on { color: #fff; border-color: #fff; }
.dossier-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; margin-top: 28px; }
.dossier-tabs { display: flex; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--dim); font-family: inherit; font-size: 13px; cursor: pointer;
}
.tab-btn i { font-style: normal; font-size: 10px; color: var(--faint); }
.tab-btn.on { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .tab-btn.on { background: var(--accent); color: #fff; }
.tab-btn.on i { color: inherit; opacity: .6; }
.tab-panel { padding-top: 18px; }
.scene-list { display: flex; flex-direction: column; }
.scene-row {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.scene-no { color: var(--line-strong); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; }
.scene-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.scene-top b { color: var(--accent); font-size: 10px; letter-spacing: .1em; }
.scene-top h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.scene-row p { margin: 7px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.dossier-aside { display: flex; flex-direction: column; gap: 12px; }
.dossier-aside .btn.block { margin-top: 2px; }
.ending-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ending-card {
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); transition: .2s var(--ease);
}
.ending-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ending-code { display: inline-block; color: var(--accent); font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.ending-card h3 { margin: 6px 0 7px; font-size: 16px; }
.ending-card p { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.65; }
.ending-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--faint); font-size: 10.5px; }
.ending-meta a { margin-left: auto; color: var(--accent); text-decoration: none; }
.route-summary { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.route-summary > span {
  display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--dim); font-size: 12px;
}
.route-summary b { color: var(--ink); flex: 0 0 auto; }
.route-summary .planned { opacity: .62; }
.making-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pipe-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.pipe-step {
  padding: 5px 9px; border-radius: 999px; background: var(--surface-2);
  color: var(--faint); font-size: 10.5px;
}
.pipe-step.ok { background: var(--accent-soft); color: var(--accent); }

/* ---------- 继续观看 ---------- */
.continue-list { display: flex; flex-direction: column; gap: 10px; }
.continue-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); text-decoration: none; color: inherit;
  transition: .2s var(--ease);
}
.continue-row:hover { border-color: var(--accent); transform: translateY(-2px); }
.continue-poster { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.continue-poster img { width: 100%; height: 100%; object-fit: cover; }
.continue-copy { align-self: center; }
.continue-copy h3 { margin: 4px 0 6px; font-size: 18px; }
.continue-copy p { margin: 0 0 8px; color: var(--dim); font-size: 12.5px; }

/* ---------- 创作 ---------- */
.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; }
.create-form textarea, .create-form input {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.7;
  resize: vertical; outline: 0; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.create-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.example-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.create-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.create-aside { display: flex; flex-direction: column; gap: 12px; }
.create-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--dim); font-size: 11.5px; }
.create-flow span { padding: 5px 8px; border-radius: 6px; background: var(--surface-2); }
.create-flow i { color: var(--line-strong); font-style: normal; }
.create-draft {
  margin-top: 22px; padding: 20px; border: 1px solid var(--accent);
  border-radius: var(--r-card); background: var(--accent-soft);
}
.create-draft h3 { margin: 6px 0 8px; font-size: 20px; }
.draft-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.draft-frames i { display: block; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- 工作台 ---------- */
.studio-summary {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px; margin-bottom: 22px; border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; background: var(--line);
}
.studio-summary > div { padding: 16px; background: var(--surface); }
.studio-summary b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.studio-summary span { color: var(--faint); font-size: 11px; }
.pipeline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pipeline-card {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); transition: .2s var(--ease);
}
.pipeline-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pipeline-head { display: flex; align-items: flex-start; gap: 14px; }
.pipeline-head h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.03em; }
.pipeline-head h3 a { color: var(--ink); text-decoration: none; }
.pipeline-ring {
  margin-left: auto; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 999px;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0);
  position: relative;
}
.pipeline-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 999px; background: var(--surface); }
.pipeline-ring b { position: relative; z-index: 1; font-size: 12px; font-variant-numeric: tabular-nums; }
.pipeline-logline { margin: 10px 0 12px; color: var(--dim); font-size: 12.5px; line-height: 1.65; }
.pipeline-steps { display: flex; flex-wrap: wrap; gap: 5px; }
.pipeline-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; color: var(--faint); font-size: 10.5px; }
.pipeline-actions { display: flex; gap: 7px; margin-top: 14px; }

/* ---------- 角色馆 ---------- */
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.cast-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); overflow: hidden;
  transition: .2s var(--ease);
}
.cast-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cast-portrait { aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.cast-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cast-mono {
  width: 76px; height: 76px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 32px; font-weight: 800; letter-spacing: -.04em;
}
.cast-copy { padding: 13px 14px 15px; }
.cast-copy h3 { margin: 0 0 3px; font-size: 15px; }
.cast-copy p { margin: 0 0 8px; color: var(--dim); font-size: 11.5px; line-height: 1.55; }
.cast-traits { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.cast-traits span { padding: 3px 6px; border-radius: 6px; background: var(--surface-2); color: var(--faint); font-size: 10px; }
.cast-copy .text-link { font-size: 11px; }

/* ---------- 结局图鉴 ---------- */
.atlas-project {
  padding: 24px; margin-bottom: 20px;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background: var(--surface);
}
.atlas-project > header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.atlas-project > header h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.atlas-project > header h2 a { color: var(--ink); text-decoration: none; }
.atlas-project > header p { margin: 0 0 0 auto; color: var(--faint); font-size: 11.5px; }
.atlas-routes { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; position: relative; }
.atlas-routes::before {
  content: ""; position: absolute; left: 89px; top: 28px; bottom: 28px;
  width: 1px; background: var(--line);
}
.atlas-lane { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.route-name {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  padding: 7px 10px; border-radius: 8px; background: var(--surface);
  color: var(--ink); font-size: 12px;
}
.route-name i { margin-top: 3px; color: var(--faint); font-style: normal; font-size: 9.5px; letter-spacing: .08em; }
.route-nodes { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-node {
  position: relative; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent-soft);
  color: var(--accent); font-family: inherit; font-size: 12px; cursor: pointer;
  transition: .2s var(--ease);
}
.atlas-node::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 14px; height: 1px;
  background: var(--line-strong);
}
.atlas-node small { margin-left: 6px; opacity: .6; font-size: 9px; }
.atlas-node:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--accent-soft); }
.atlas-node.ghost { border-style: dashed; border-color: var(--line-strong); background: transparent; color: var(--faint); cursor: default; }
.atlas-node.ghost::before { background: var(--line); }
.atlas-project .ending-grid { margin-top: 6px; }

/* ---------- 榜单 ---------- */
.rank-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 22px; }
.rank-tab { padding: 8px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-family: inherit; font-size: 12.5px; cursor: pointer; }
.rank-tab.on { background: var(--accent); color: #fff; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.podium-card {
  position: relative; display: flex; flex-direction: column;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); text-decoration: none; color: inherit;
  transition: .2s var(--ease);
}
.podium-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.podium-card.rank-1 { border-color: var(--accent); box-shadow: var(--shadow); }
.podium-no {
  position: absolute; left: 12px; top: 10px; z-index: 1;
  font-size: 30px; font-weight: 800; color: #fff; line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45); letter-spacing: -.06em;
}
.podium-poster { aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.podium-poster img { width: 100%; height: 100%; object-fit: cover; }
.podium-poster .story-poster-fallback b { font-size: 34px; }
.podium-card h3 { margin: 0 0 4px; font-size: 16px; }
.podium-card p { margin: 0 0 8px; color: var(--dim); font-size: 11.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.podium-metric { color: var(--accent); font-size: 11px; font-weight: 700; }
.rank-list { margin-top: 22px; border-top: 1px solid var(--line); }
.rank-row {
  display: grid; grid-template-columns: 44px 68px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background .18s var(--ease);
}
.rank-row:hover { background: var(--surface-2); }
.rank-no { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.rank-thumb { aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-row h3 { margin: 0 0 3px; font-size: 14px; }
.rank-row p { margin: 0; color: var(--faint); font-size: 11px; }
.rank-metric { color: var(--accent); font-size: 11.5px; font-weight: 600; }

/* ---------- 搜索 ---------- */
.search-section { margin-top: 34px; }
.search-hero {
  display: flex; align-items: center; min-height: 68px; padding: 0 24px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.search-hero:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-hero input { font-size: 17px; }
.search-hints { display: flex; align-items: baseline; gap: 12px; margin: 14px 4px 22px; color: var(--faint); font-size: 11.5px; flex-wrap: wrap; }
.search-hints > div { display: flex; flex-wrap: wrap; gap: 6px; }
.search-results { margin-top: 10px; }
.search-group { margin-bottom: 24px; }
.search-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.search-group h3 i { font-style: normal; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); font-size: 10px; }
.search-hit {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  text-decoration: none; color: inherit; transition: background .15s var(--ease);
}
.search-hit:hover { background: var(--surface-2); }
.hit-icon {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-size: 13px;
}
.hit-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hit-copy b { font-size: 13.5px; }
.hit-copy small { color: var(--faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-type { margin-left: auto; flex: 0 0 auto; }
.search-default .section-head { margin-bottom: 10px; }

/* ---------- 社区 ---------- */
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
.relay-feed { display: flex; flex-direction: column; gap: 12px; }
.relay-card {
  display: block; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--r-card); background: var(--surface);
  text-decoration: none; color: inherit; transition: .2s var(--ease);
}
.relay-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.relay-card h3 { margin: 6px 0 6px; font-size: 20px; letter-spacing: -.03em; }
.relay-card p { margin: 0 0 12px; color: var(--dim); font-size: 12.5px; line-height: 1.65; }
.relay-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 11px; }
.relay-meta .text-link { margin-left: auto; }
.community-aside { display: flex; flex-direction: column; gap: 12px; }
.steps-list { margin: 0 0 12px; padding-left: 18px; color: var(--dim); font-size: 12.5px; line-height: 1.8; }

/* ---------- 个人中心 ---------- */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
.profile-account {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface);
}
.profile-avatar-lg {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: 999px;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font-size: 26px; font-weight: 800;
}
.profile-account h2 { margin: 4px 0 3px; font-size: 22px; }
.profile-account p { margin: 0 0 8px; color: var(--dim); font-size: 12px; }
.profile-block { margin-top: 26px; }
.mini-history { display: flex; flex-direction: column; }
.mini-history a {
  display: flex; align-items: baseline; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.mini-history a:hover { color: var(--accent); }
.mini-history span { font-size: 13px; }
.mini-history small { margin-left: auto; color: var(--faint); font-size: 10.5px; }
.profile-aside { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 设置 ---------- */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
.setting-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); margin-bottom: 14px; }
.setting-head h3 { margin: 0 0 4px; font-size: 18px; }
.setting-head p { margin: 0 0 16px; color: var(--dim); font-size: 12px; line-height: 1.6; }
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-option {
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-family: inherit; cursor: pointer; text-align: left;
}
.theme-option.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-swatch { width: 100%; height: 48px; border-radius: 8px; border: 1px solid var(--line); }
.theme-swatch.light { background: linear-gradient(135deg, #f5f7fb 50%, #1a73e8 50%); }
.theme-swatch.dark { background: linear-gradient(135deg, #000 50%, #4285f4 50%); }
.theme-option b { font-size: 13px; }
.theme-option small { color: var(--faint); font-size: 10.5px; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px;
}
.setting-row select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.setting-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.setting-foot { display: flex; gap: 8px; margin-top: 14px; }
.settings-aside { display: flex; flex-direction: column; gap: 12px; }
.mini-player { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #0b0d10; color: #fff; }
.mini-play { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); font-size: 11px; }
.mini-player b { display: block; font-size: 12px; }
.mini-player small { color: rgba(255, 255, 255, .55); font-size: 10px; }
.mini-sub { margin-top: 8px; padding: 8px; border-radius: 6px; background: var(--surface-2); color: var(--dim); font-size: 11px; text-align: center; }

/* ---------- 定价 ---------- */
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 20px; }
.billing-toggle button { padding: 8px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-family: inherit; font-size: 12.5px; cursor: pointer; }
.billing-toggle button.on { background: var(--accent); color: #fff; }
.billing-toggle i { font-style: normal; margin-left: 4px; font-size: 10px; opacity: .8; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.plan-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-eyebrow { color: var(--accent); font-size: 9.5px; font-weight: 700; letter-spacing: .18em; }
.plan-card h2 { margin: 10px 0 4px; font-size: 24px; letter-spacing: -.03em; }
.plan-note { margin: 0 0 16px; color: var(--faint); font-size: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; padding: 10px 0 16px; border-bottom: 1px solid var(--line); }
.plan-price b { font-size: 34px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--faint); font-size: 11px; }
.plan-card ul { margin: 14px 0 18px; padding: 0; list-style: none; }
.plan-card li { padding: 5px 0; color: var(--dim); font-size: 12.5px; }
.plan-card li::before { content: "✓"; color: var(--accent); margin-right: 8px; }
.compare-wrap { margin-top: 26px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table th { color: var(--faint); font-size: 11px; font-weight: 600; }
.compare-table td:not(:first-child) { color: var(--dim); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
.about-copy h2 { margin: 26px 0 10px; font-size: 23px; letter-spacing: -.03em; }
.about-copy > p { color: var(--dim); font-size: 13.5px; line-height: 1.8; max-width: 62ch; }
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.value-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.value-grid b { color: var(--accent); font-size: 10px; letter-spacing: .14em; }
.value-grid h3 { margin: 6px 0; font-size: 15px; }
.value-grid p { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.6; }
.about-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.about-steps > div { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); font-size: 12px; }
.about-steps b { color: var(--accent); font-size: 10px; }
.timeline { margin-top: 14px; border-left: 1px solid var(--line); padding-left: 16px; display: flex; flex-direction: column; gap: 14px; }
.timeline b { display: block; color: var(--accent); font-size: 10px; letter-spacing: .08em; }
.timeline span { color: var(--dim); font-size: 12.5px; line-height: 1.65; }
.about-aside { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 帮助 ---------- */
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
.faq-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; cursor: pointer; font-size: 13.5px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--accent); font-size: 18px; line-height: 1; transition: transform .2s var(--ease); }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 16px 15px; color: var(--dim); font-size: 12.5px; line-height: 1.75; }
.help-aside { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 博客 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.post-open {
  width: 100%; padding: 20px; border: 0; background: transparent; color: inherit;
  font-family: inherit; text-align: left; cursor: pointer;
}
.post-open:hover h2 { color: var(--accent); }
.post-tag { color: var(--accent); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; }
.post-open h2 { margin: 8px 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; transition: color .18s var(--ease); }
.post-open p { margin: 0 0 14px; color: var(--dim); font-size: 12px; line-height: 1.65; }
.post-meta { display: flex; gap: 12px; color: var(--faint); font-size: 10.5px; }
.post-panel {
  margin-top: 22px; padding: 26px; border: 1px solid var(--accent);
  border-radius: var(--r-panel); background: var(--surface);
}
.post-panel-head { position: relative; padding-right: 80px; }
.post-panel-head h2 { margin: 8px 0; font-size: 28px; letter-spacing: -.04em; }
.post-panel-head p { margin: 0 0 16px; color: var(--dim); font-size: 13px; line-height: 1.7; }
.post-panel-head .btn { position: absolute; right: 0; top: 0; }
.post-panel > p { max-width: 70ch; color: var(--dim); font-size: 13.5px; line-height: 1.85; }

/* ---------- 开发者 ---------- */
.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; align-items: start; }
.docs-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { padding: 8px 10px; border-radius: 8px; color: var(--dim); font-size: 12px; text-decoration: none; }
.docs-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.docs-body h2 { margin: 26px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body p { color: var(--dim); font-size: 13px; line-height: 1.75; max-width: 70ch; }
.docs-body code { padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-size: 11.5px; }
.code-block {
  margin: 12px 0 18px; padding: 15px 16px; border-radius: 10px;
  background: #07090c; color: #d6e2f5; overflow-x: auto;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7;
}
html[data-theme="light"] .code-block { background: #0b1118; }
.docs-foot { display: flex; gap: 8px; margin-top: 26px; }

/* ---------- 法务 ---------- */
.legal-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; align-items: start; }
.legal-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 3px; }
.legal-toc .page-eyebrow { margin-bottom: 8px; }
.legal-toc a { padding: 7px 9px; border-radius: 7px; color: var(--dim); font-size: 11.5px; text-decoration: none; }
.legal-toc a:hover { color: var(--accent); background: var(--accent-soft); }
.legal-body h2 { margin: 24px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.legal-body p { max-width: 72ch; color: var(--dim); font-size: 13.5px; line-height: 1.85; }
.legal-note { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); }
.legal-note b { color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.legal-note p { margin: 6px 0 0; font-size: 12px; }

/* ---------- 状态 / 骨架 / 提示 ---------- */
.state-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-panel);
}
.state-icon {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--faint); font-size: 20px; margin-bottom: 12px;
}
.state-box.error .state-icon { background: var(--accent-soft); color: var(--danger); }
.state-box h2 { margin: 0 0 6px; font-size: 20px; }
.state-box p { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.65; max-width: 48ch; }
.state-actions { display: flex; gap: 8px; margin-top: 16px; }
.page-skeleton { padding: 30px 0; }
.page-skeleton > span { display: block; height: 14px; border-radius: 6px; background: var(--surface-2); margin-bottom: 12px; animation: sk 1.3s ease-in-out infinite; }
.page-skeleton > span:nth-child(1) { width: 28%; height: 10px; }
.page-skeleton > span:nth-child(2) { width: 58%; height: 46px; }
.page-skeleton > span:nth-child(3) { width: 42%; }
.page-skeleton > span:nth-child(4) { width: 32%; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.sk-grid i { display: block; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--surface-2); animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.toast {
  position: fixed; left: 50%; bottom: 108px; z-index: 9000;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 12px;
  box-shadow: var(--shadow); transition: .22s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.notfound { padding: 80px 0 40px; }
.notfound > b {
  display: block; font-size: clamp(120px, 24vw, 280px); line-height: .8;
  letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px var(--line-strong);
}
.notfound h1 { margin: 18px 0 10px; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.04em; }
.notfound p { max-width: 52ch; color: var(--dim); font-size: 13.5px; line-height: 1.75; }

/* ---------- 站脚 ---------- */
.sitefoot {
  margin-top: 70px; padding: 38px 0 30px;
  border-top: 1px solid var(--line);
}
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 26px; }
.foot-brand { position: relative; min-width: 0; }
.foot-brand .brand { font-size: 26px; }
.foot-brand p { max-width: 28ch; margin: 10px 0 0; color: var(--dim); font-size: 12px; line-height: 1.7; }
.foot-mark {
  display: block; margin-top: 18px; font-size: clamp(40px, 7vw, 92px); line-height: .8;
  font-weight: 800; letter-spacing: -.07em; color: transparent;
  -webkit-text-stroke: 1px var(--line); opacity: .55; user-select: none;
}
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-col h3 { margin: 0 0 5px; color: var(--faint); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.foot-col a { color: var(--dim); font-size: 12px; text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 10.5px;
}
.foot-bottom .icp { color: var(--dim); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline-grid { grid-template-columns: 1fr; }
  .watch-info-grid { grid-template-columns: 1fr; }
  .watch-aside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dossier-layout { grid-template-columns: 1fr; }
  .dossier-aside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .create-layout, .community-layout, .profile-layout, .settings-layout, .about-grid, .help-layout { grid-template-columns: 1fr; }
  .create-aside, .community-aside, .profile-aside, .settings-aside, .about-aside, .help-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout, .legal-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .podium { gap: 10px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .page-shell .wrap { padding-left: 16px; padding-right: 16px; }
  .page-hero { grid-template-columns: 1fr; gap: 8px; margin-top: 28px; padding: 22px 0 20px; }
  .page-index { order: 0; font-size: 86px; justify-self: end; margin-bottom: -20px; }
  .page-title { font-size: clamp(36px, 10vw, 54px); }
  .page-deck { font-size: 13px; }
  .story-grid, .cast-grid, .post-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .story-body { padding: 11px 12px 13px; }
  .story-body h3 { font-size: 14px; }
  .story-logline { font-size: 11.5px; }
  .story-actions .btn { padding: 7px 9px; }
  .story-actions .icon-btn { width: 30px; height: 30px; }
  .watch-frame-wrap { aspect-ratio: 4 / 3; }
  .watch-placeholder { grid-template-columns: 1fr; padding: 20px; }
  .watch-placeholder-poster { width: 120px; }
  .watch-aside, .dossier-aside, .create-aside, .community-aside, .profile-aside, .settings-aside, .about-aside, .help-aside { grid-template-columns: 1fr; }
  .watch-title { font-size: 32px; }
  .story-hero { min-height: 420px; }
  .story-hero-copy { padding: 28px 20px 24px; }
  .story-hero-copy .page-title { font-size: 38px; }
  .ending-grid, .making-grid, .value-grid { grid-template-columns: 1fr; }
  .studio-summary { grid-template-columns: repeat(3, 1fr); }
  .studio-summary > div:last-child { grid-column: span 2; }
  .atlas-project { padding: 16px; }
  .atlas-routes::before { left: 69px; }
  .atlas-lane { grid-template-columns: 110px 1fr; gap: 10px; }
  .route-name { font-size: 11px; }
  .atlas-node { padding: 8px 10px; font-size: 11px; }
  .podium { grid-template-columns: 1fr; }
  .podium-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
  .podium-poster { margin: 0; grid-row: span 3; }
  .podium-no { font-size: 22px; }
  .rank-row { grid-template-columns: 30px 56px 1fr; }
  .rank-metric { grid-column: 2 / -1; font-size: 10.5px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .docs-layout, .legal-layout { grid-template-columns: 1fr; }
  .docs-nav, .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .search-hero { min-height: 58px; padding: 0 16px; }
  .search-hero input { font-size: 15px; }
  .continue-row { grid-template-columns: 110px 1fr; gap: 12px; }
  .continue-copy h3 { font-size: 15px; }
  .profile-account { align-items: flex-start; }
  .watch-cover { padding: 18px; align-items: center; }
  .watch-cover p, .watch-cover-note { display: none; }
  .watch-cover h2 { font-size: 22px; margin: 6px 0 12px; }
  .watch-cover .btn.lg { padding: 10px 20px; font-size: 13px; }
  .sitebar {
    margin-top: 10px;
    -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, #000 86%, transparent 100%);
  }
  .sitebar a { padding: 7px 11px; font-size: 12px; }
}
@media (max-width: 430px) {
  .story-grid, .cast-grid, .post-grid { grid-template-columns: 1fr; }
  .story-poster { aspect-ratio: 16 / 9; }
  .watch-frame-wrap { aspect-ratio: 16 / 9; }
  .studio-summary { grid-template-columns: 1fr 1fr; }
  .studio-summary > div:last-child { grid-column: span 2; }
  .atlas-routes::before { display: none; }
  .atlas-lane { grid-template-columns: 1fr; }
  .atlas-node::before { display: none; }
  .rank-row { grid-template-columns: 26px 48px 1fr; gap: 9px; }
  .rank-row p { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-card, .story-poster-img, .pipeline-card, .cast-card, .relay-card, .podium-card, .continue-row, .scene-pill, .atlas-node, .chip, .icon-btn {
    transition: none !important;
  }
  .page-skeleton > span, .sk-grid i { animation: none !important; }
  .wallet-glow, .tpl-act-bar i::after { animation: none !important; }
}

/* ============================================================
   账户 / 商业化 / 素材 / 模板 / 数据 / 通知
   ============================================================ */

/* ---------- 顶栏通知入口 ---------- */
.topbar-bell {
  position: relative; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--dim); text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.topbar-bell:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.bell-dot {
  position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}

/* ---------- 钱包 ---------- */
.wallet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.wallet-main { min-width: 0; }
.aurora-card {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.wallet-card {
  padding: 26px 28px 24px; color: #fff;
  background: radial-gradient(120% 150% at 8% 6%, #16345c 0%, #0b1220 52%, #05080e 100%);
}
.wallet-glow {
  position: absolute; inset: -45%; pointer-events: none; opacity: .85;
  background:
    radial-gradient(38% 38% at 18% 28%, rgba(26, 115, 232, .60), transparent 70%),
    radial-gradient(34% 34% at 82% 18%, rgba(76, 141, 255, .42), transparent 70%),
    radial-gradient(42% 42% at 62% 92%, rgba(122, 92, 255, .30), transparent 70%);
  filter: blur(34px); animation: auroraDrift 16s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(4%, 3%, 0) rotate(9deg) scale(1.08); }
}
.wallet-top, .wallet-balance, .wallet-stats, .wallet-actions { position: relative; z-index: 1; }
.wallet-top { display: flex; align-items: center; justify-content: space-between; }
.wallet-top .page-eyebrow { color: #8ab4f8; }
.wallet-chip {
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .7); font-size: 10px; letter-spacing: .12em;
}
.wallet-balance { margin: 20px 0 16px; }
.wallet-balance b { display: block; font-size: clamp(42px, 6vw, 58px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.wallet-balance span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .5); font-size: 12px; }
.wallet-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.wallet-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.wallet-stats span { color: rgba(255, 255, 255, .5); font-size: 11px; }
.wallet-actions { display: flex; gap: 10px; margin-top: 20px; }
.wallet-actions .btn { color: #fff; border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .06); }
.wallet-actions .btn.primary { background: var(--accent); border-color: var(--accent); }
.wallet-plans-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 34px; }
.wallet-plans-head .section-head { margin: 0; }
.wallet-cycle { margin-bottom: 0; }
.wallet-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.wallet-plan { display: flex; flex-direction: column; }
.wallet-plan ul { flex: 1; }
.wallet-plan.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wallet-ledger { margin-top: 34px; }
.order-mini-list { display: flex; flex-direction: column; gap: 8px; }
.order-mini {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--dim); font-size: 12px; text-decoration: none;
}
.order-mini-id { color: var(--ink); font-family: ui-monospace, monospace; font-size: 11.5px; }
.order-mini-amt { color: var(--ink); font-weight: 700; }
.wallet-aside { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 订单 ---------- */
.status-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.status-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--dim); font-family: inherit; font-size: 12px; cursor: pointer;
}
.status-tab i { font-style: normal; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--faint); font-size: 10px; }
.status-tab.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.status-tab.on i { background: rgba(255, 255, 255, .6); color: var(--accent); }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.order-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.order-card.is-new { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order-head h3 { margin: 6px 0 0; font-size: 19px; letter-spacing: -.02em; }
.order-head h3 small { color: var(--faint); font-size: 11px; font-weight: 500; margin-left: 6px; }
.order-amount { font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.order-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--faint); font-size: 11.5px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.wait { color: #b06000; background: rgba(240, 160, 40, .14); }
.status-badge.ok { color: var(--accent); background: var(--accent-soft); }
.status-badge.on { color: #137333; background: rgba(52, 168, 83, .14); }
.status-badge.off { color: var(--faint); background: var(--surface-2); }
html[data-theme="dark"] .status-badge.wait { color: #ffb95c; }
html[data-theme="dark"] .status-badge.on { color: #6ddc8b; }
.order-note, .license-note {
  margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface-2);
}
.order-note b, .license-note b { display: block; margin-bottom: 6px; font-size: 12px; }
.order-note p, .license-note p { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.75; }

/* ---------- 我的收藏 ---------- */
.fav-list { display: flex; flex-direction: column; gap: 12px; }
.fav-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
}
.fav-poster { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.fav-copy h3 { margin: 4px 0 6px; font-size: 18px; letter-spacing: -.02em; }
.fav-copy h3 a { color: inherit; text-decoration: none; }
.fav-copy p { margin: 0 0 8px; color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.fav-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 220px; }

/* ---------- 素材市场 ---------- */
.asset-feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-panel);
  background: var(--surface); box-shadow: var(--shadow); margin-bottom: 26px;
}
.asset-feature-art { position: relative; min-height: 280px; background: var(--surface-2); overflow: hidden; }
.asset-feature-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-feature-copy { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.asset-feature-copy h2 { margin: 10px 0 10px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.asset-feature-copy p { margin: 0 0 18px; color: var(--dim); font-size: 13px; line-height: 1.8; max-width: 52ch; }
.asset-filters { margin-bottom: 18px; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.asset-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.asset-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.asset-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.asset-card:hover .asset-thumb img { transform: scale(1.04); }
.asset-thumb > span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--accent); background:
    radial-gradient(60% 60% at 30% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(50% 50% at 80% 80%, rgba(122, 92, 255, .14), transparent 70%), var(--surface-2);
}
.asset-kind {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(6, 10, 18, .62); color: #fff; font-style: normal; font-size: 10px; letter-spacing: .06em;
  backdrop-filter: blur(6px);
}
.asset-body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 4px; }
.asset-body h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.asset-body p { margin: 0; color: var(--faint); font-size: 11.5px; }
.asset-foot { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.asset-foot b { font-size: 20px; letter-spacing: -.03em; }
.asset-foot span { color: var(--faint); font-size: 11px; }
.asset-foot em { margin-left: auto; color: var(--accent); font-style: normal; font-size: 11px; }

/* ---------- 模板中心 ---------- */
.tpl-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 26px;
  padding: 28px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}
.tpl-feature h2 { margin: 8px 0 10px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.04em; }
.tpl-feature p { margin: 0 0 18px; max-width: 56ch; color: var(--dim); font-size: 13px; line-height: 1.8; }
.tpl-structure { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; }
.tpl-act-bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  position: relative; overflow: hidden;
}
.tpl-act-bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 40%);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  pointer-events: none;
}
.tpl-act-bar b { position: relative; z-index: 1; color: var(--accent); font-size: 10px; letter-spacing: .1em; }
.tpl-act-bar span { position: relative; z-index: 1; font-size: 12.5px; }
.tpl-feature-side { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.tpl-feature-side > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tpl-feature-side b { display: block; font-size: 26px; letter-spacing: -.04em; }
.tpl-feature-side span { color: var(--faint); font-size: 11px; }
.tpl-filters { margin-bottom: 18px; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tpl-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.tpl-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.tpl-card h3 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.tpl-seed { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.75; min-height: 66px; }
.tpl-stats { display: flex; gap: 10px; color: var(--faint); font-size: 11px; }
.tpl-stats b { color: var(--ink); font-size: 13px; }
.tpl-acts { display: flex; flex-direction: column; gap: 5px; margin: 2px 0 6px; }
.tpl-acts span { display: flex; gap: 8px; color: var(--dim); font-size: 11.5px; }
.tpl-acts i {
  width: 17px; height: 17px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 9.5px; flex: 0 0 auto;
}
.tpl-card .btn { margin-top: auto; align-self: flex-start; }
.tpl-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 11px 14px; border: 1px solid var(--accent); border-radius: 12px;
  background: var(--accent-soft); font-size: 12px;
}
.tpl-note b { color: var(--accent); }
.tpl-note span { color: var(--dim); }
.tpl-note a { margin-left: auto; color: var(--accent); font-size: 11.5px; }

/* ---------- 创作者数据 ---------- */
.creator-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.creator-main { min-width: 0; }
.creator-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.creator-stat {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
}
.creator-stat span { display: block; color: var(--faint); font-size: 11px; }
.creator-stat b { display: block; margin-top: 6px; font-size: 28px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.chart-card, .creator-table-wrap {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface);
}
.chart-card { margin-bottom: 18px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.chart-head h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.03em; }
.chart-note { color: var(--faint); font-size: 11.5px; }
.chart-bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding: 8px 4px 0; }
.chart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar {
  position: relative; width: 100%; max-width: 74px; height: var(--h, 30%);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--accent), rgba(26, 115, 232, .35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: filter .2s;
}
.chart-bar:hover { filter: brightness(1.08); }
.chart-bar i {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-style: normal; color: var(--accent); font-size: 11px; font-weight: 700;
}
.chart-col small { color: var(--faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.creator-table-wrap { overflow-x: auto; }
.creator-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.creator-table th, .creator-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.creator-table th { color: var(--faint); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.creator-table td a { color: var(--ink); text-decoration: none; }
.creator-table td a:hover { color: var(--accent); }
.creator-table td small { display: block; color: var(--faint); font-size: 10px; }
.row-progress { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.row-progress i {
  position: relative; flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden;
}
.row-progress i::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 1%);
  border-radius: 999px; background: var(--accent);
}
.row-progress b { color: var(--faint); font-size: 10.5px; font-weight: 600; }
.creator-aside { display: flex; flex-direction: column; gap: 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.mini-stats b { display: block; font-size: 20px; letter-spacing: -.03em; }
.mini-stats span { color: var(--faint); font-size: 10.5px; }
.suggest-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.suggest-list a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .2s; }
.suggest-list a:hover { border-color: var(--accent); }
.suggest-list b { display: block; font-size: 12px; color: var(--accent); }
.suggest-list span { display: block; margin-top: 3px; color: var(--dim); font-size: 11.5px; line-height: 1.6; }

/* ---------- 通知 ---------- */
.notif-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.notif-bar .status-tabs { margin-bottom: 0; }
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease);
}
.notif-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.notif-item.unread { border-left: 3px solid var(--accent); }
.notif-kind {
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--faint);
  font-size: 10px; letter-spacing: .06em; white-space: nowrap; margin-top: 2px;
}
.notif-item h3 { margin: 0 0 4px; font-size: 14.5px; letter-spacing: -.01em; }
.notif-item p { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.65; }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 8px; }

@media (max-width: 980px) {
  .wallet-layout, .creator-layout { grid-template-columns: 1fr; }
  .wallet-aside, .creator-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-plans, .asset-grid, .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-feature, .tpl-feature { grid-template-columns: 1fr; }
  .asset-feature-art { min-height: 220px; }
  .tpl-feature-side { flex-direction: row; }
  .tpl-feature-side > div { flex: 1; }
  .fav-row { grid-template-columns: 120px minmax(0, 1fr); }
  .fav-acts { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}
@media (max-width: 600px) {
  .wallet-plans, .asset-grid, .tpl-grid, .creator-stats { grid-template-columns: 1fr; }
  .wallet-aside, .creator-aside { grid-template-columns: 1fr; }
  .creator-stats { grid-template-columns: 1fr 1fr; }
  .wallet-card { padding: 22px 20px; }
  .wallet-plans-head { flex-direction: column; align-items: flex-start; }
  .order-mini { grid-template-columns: 1fr auto; }
  .order-mini-id { grid-column: 1 / -1; }
  .order-head { flex-direction: column; gap: 6px; }
  .fav-row { grid-template-columns: 1fr; }
  .fav-poster { aspect-ratio: 16 / 9; }
  .tpl-feature { padding: 20px; }
  .tpl-feature-side { flex-direction: column; }
  .chart-bars { height: 150px; gap: 8px; }
  .notif-item { grid-template-columns: auto 1fr; }
  .notif-dot { display: none; }
}

/* ============================================================
   顶部统一悬浮导航（Aceternity Floating Navbar + Animated Tabs）
   ============================================================ */
.topbar {
  position: sticky; top: 12px; z-index: 90;
  margin: 0 0 28px;
}
.topbar-inner {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 7px 10px 7px 18px;
  border: 1px solid var(--dock-border);
  border-radius: 999px;
  background-color: var(--dock-bg);
  background-image: linear-gradient(115deg, rgba(26, 115, 232, .10), transparent 42%, rgba(122, 92, 255, .10));
  box-shadow: 0 10px 32px rgba(25, 35, 60, .12), inset 0 1px 0 rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  transition: padding .28s var(--ease), box-shadow .28s var(--ease);
}
.topbar-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 46%);
  opacity: .55;
}
html[data-theme="dark"] .topbar-inner::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), transparent 46%);
  opacity: 1;
}
/* 流动渐变描边：一圈蓝紫光束沿胶囊边缘缓慢巡航 */
.topbar-inner::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--beam-angle), transparent 0 60%, rgba(26, 115, 232, .95) 75%, rgba(122, 92, 255, .9) 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none; z-index: 2; opacity: .72;
  animation: beamSpin 7s linear infinite;
}
html[data-theme="dark"] .topbar-inner::after {
  opacity: .9;
  background: conic-gradient(from var(--beam-angle), transparent 0 58%, rgba(96, 156, 255, 1) 74%, rgba(168, 130, 255, .95) 84%, transparent 92%);
}
.topbar .brand {
  position: relative; z-index: 1;
  flex: 0 0 auto; padding: 6px 2px;
  font-size: 22px; font-weight: 800; line-height: 1;
  letter-spacing: -.05em; text-decoration: none;
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 0%, #7a5cff 52%, var(--accent) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(26, 115, 232, .22));
  animation: brandShimmer 7s ease-in-out infinite;
}
@keyframes brandShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
html[data-theme="dark"] .topbar .brand {
  background: linear-gradient(100deg, #8ab4f8 0%, #c3a6ff 55%, #8ab4f8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(96, 156, 255, .38));
}
.primarynav {
  position: relative; flex: 1 1 auto; min-width: 0; isolation: isolate;
  display: flex; align-items: center; gap: 2px;
  margin: 0 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.primarynav::-webkit-scrollbar { display: none; }
.primarynav a {
  position: relative; z-index: 1; flex: 0 0 auto;
  padding: 8px 13px; border-radius: 999px;
  color: var(--dim); font-size: 12.5px; text-decoration: none;
  white-space: nowrap; letter-spacing: .01em;
  transition: color .2s var(--ease);
}
.primarynav a::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(26, 115, 232, .40), transparent 72%);
  opacity: 0; transition: opacity .2s var(--ease);
}
html[data-theme="dark"] .primarynav a::before {
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 156, 255, .48), transparent 72%);
}
.primarynav a:hover::before, .primarynav a:focus-visible::before { opacity: 1; }
.primarynav a:hover { color: var(--ink); }
.primarynav a.on { color: var(--accent); font-weight: 600; }
.primarynav.no-glider a.on { background: var(--accent-soft); }
.nav-glider {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 0;
  border-radius: 999px; background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, .26), 0 4px 14px rgba(26, 115, 232, .20);
  opacity: 0; pointer-events: none;
  transition: transform .46s cubic-bezier(.34, 1.56, .64, 1), width .46s cubic-bezier(.34, 1.56, .64, 1), opacity .2s;
}
.nav-glider.on { opacity: 1; }
html[data-theme="dark"] .nav-glider {
  background: rgba(76, 141, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(96, 156, 255, .42), 0 4px 18px rgba(76, 141, 255, .30);
}
.topbar-tail { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-cta {
  position: relative; z-index: 1; flex: 0 0 auto;
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, #1a73e8, #4c8dff);
  color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 115, 232, .28);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(26, 115, 232, .38); }
.nav-cta.on { box-shadow: 0 0 0 3px rgba(26, 115, 232, .22), 0 6px 18px rgba(26, 115, 232, .38); }

/* 「更多」：主栏只留高频入口，其余收进可扫读的下拉 */
.nav-more-btn {
  position: relative; z-index: 1;
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--dim); font-family: inherit; font-size: 12.5px;
  cursor: pointer; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-more-btn:hover, .nav-more-btn.on { color: var(--accent); }
.nav-more {
  position: absolute; top: calc(100% + 10px); right: 10px; z-index: 96;
  width: min(520px, calc(100vw - 28px)); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow);
}
.nav-more[hidden] { display: none; }
.nav-more a {
  display: block; padding: 10px 12px; border-radius: 12px;
  color: inherit; text-decoration: none;
  transition: background .16s var(--ease);
}
.nav-more a:hover { background: var(--surface-2); }
.nav-more a.on { background: var(--accent-soft); }
.nav-more b { display: block; font-size: 13px; letter-spacing: -.01em; }
.nav-more span { display: block; margin-top: 2px; color: var(--faint); font-size: 11px; }
.nav-more-divider { display: none; grid-column: 1 / -1; height: 1px; margin: 5px 4px; background: var(--line); }
.nav-more .more-mobile { display: none; }

.topbar.compact .topbar-inner {
  padding-top: 4px; padding-bottom: 4px;
  box-shadow: 0 6px 20px rgba(25, 35, 60, .10), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.topbar.compact .primarynav a { padding-top: 6px; padding-bottom: 6px; }

@media (max-width: 760px) {
  .topbar { top: 8px; margin-bottom: 20px; }
  .topbar-inner { gap: 2px; padding: 5px 4px 5px 8px; }
  .topbar .brand { font-size: 18px; padding: 5px 2px; }
  .primarynav { margin: 0; padding: 3px; }
  .primarynav a { padding: 9px 7px; font-size: 12px; min-height: 38px; display: inline-flex; align-items: center; }
  .primarynav a.nav-wide { display: none; }
  .nav-more-btn { padding: 9px 7px; min-height: 38px; }
  .nav-cta { height: 36px; padding: 0 10px; font-size: 12px; }
  .topbar-tail { gap: 4px; }
  .topbar-tail .health { display: none; }
  .topbar-account { padding: 0 5px 0 2px; }
  .topbar-account .account-name { display: none; }
  .nav-more {
    top: calc(100% + 8px); right: 6px;
    width: calc(100vw - 24px); max-height: 68vh; overflow-y: auto;
    grid-template-columns: 1fr;
  }
  .nav-more-divider { display: block; }
  .nav-more .more-mobile { display: block; }
  .nav-more a { padding: 12px 12px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-inner::after, .topbar .brand { animation: none !important; }
}

/* ============================================================
   信息架构：观众 / 创作者分流、新手三步、卡片层级
   ============================================================ */
.path-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 14px; }
.path-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 196px;
  padding: 26px 26px 22px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  color: inherit; text-decoration: none;
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.path-watch {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(26, 115, 232, .16), transparent 60%),
    linear-gradient(150deg, rgba(26, 115, 232, .07), transparent 58%),
    var(--surface);
}
.path-make {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(122, 92, 255, .18), transparent 60%),
    linear-gradient(150deg, rgba(122, 92, 255, .07), transparent 58%),
    var(--surface);
}
.path-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.path-eyebrow { color: var(--accent); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; }
.path-card h2 { margin: 2px 0 0; font-size: clamp(25px, 3vw, 33px); letter-spacing: -.04em; }
.path-card p { margin: 0; max-width: 36ch; color: var(--dim); font-size: 13px; line-height: 1.75; }
.path-go { margin-top: auto; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.path-go i { font-style: normal; margin-left: 4px; }

.onboard-strip {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin-bottom: 6px; padding: 15px 20px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2);
}
.onboard-head { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.onboard-head b { font-size: 13px; }
.onboard-steps { display: flex; flex: 1 1 auto; gap: 26px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.onboard-steps li { display: flex; align-items: baseline; gap: 8px; }
.onboard-steps b { color: var(--accent); font-size: 10px; letter-spacing: .08em; }
.onboard-steps span { font-size: 12.5px; font-weight: 600; }
.onboard-steps small { color: var(--faint); font-size: 11px; }

/* 剧集卡片：标题 > 简介 > 元数据，主按钮更重 */
.story-body h3 { font-size: 18px; font-weight: 700; }
.story-meta { gap: 4px 0; }
.story-meta span + span::before {
  content: "·"; margin: 0 8px; color: var(--line-strong); font-weight: 700;
}
.story-actions .btn.primary {
  padding: 9px 16px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(26, 115, 232, .22);
}
.story-actions .btn.primary:hover { box-shadow: 0 6px 18px rgba(26, 115, 232, .34); }
.hero-meta { gap: 6px 0; }
.hero-meta span + span::before {
  content: "·"; margin: 0 9px; color: currentColor; opacity: .42;
}
.badge[title] { cursor: help; }

.glossary { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.glossary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 0; }
.glossary dl > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.glossary dt { font-size: 15px; font-weight: 700; }
.glossary dt span { margin-left: 6px; color: var(--faint); font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.glossary dd { margin: 6px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.75; }

@media (max-width: 760px) {
  .path-split { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .path-card { min-height: 168px; padding: 20px; }
  .onboard-strip { gap: 12px; padding: 14px 16px; }
  .onboard-steps { gap: 12px 20px; }
  .onboard-steps li { width: calc(50% - 10px); }
  .glossary dl { grid-template-columns: 1fr; }
}
