/* ==========================================================================
   开拍 · 站点设计系统
   方向：accent-ladder（浅色）。一个品牌色只落在小标记上——主按钮、选中的一集、
   数据的变化；大面积交给它的浅色调，底色往品牌色最浅一档偏。
   字体：DM Sans（界面与正文同一个字族）
   规则：不用渐变（照片上文字的中性压暗除外）、不用静止阴影、外边距两侧相等
   ========================================================================== */

:root {
  /* 底色与层次 */
  --bg: #fbf7f8;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --raised: #f3f4f6;
  --active: #eeeeee;

  /* 文字三档 */
  --ink: #111827;
  --text: #111827;
  --muted: #5f6672;
  --faint: #6b6b6b;

  /* 线 */
  --border: #e5e7eb;
  --rule: #f2f2f2;
  --control: #d1d5db;

  /* 唯一品牌色 */
  --accent: #b8336a;
  --accent-ink: #ffffff;
  --accent-soft: #fdf2f7;
  --accent-track: #f8dbe8;
  --accent-deep: #6b1d3e;
  --primary: #1d1f20;

  /* 状态 */
  --positive: #247b50;
  --negative: #c4242a;
  --warning: #92400e;
  --pill-positive-bg: #dcfce7;  --pill-positive-ink: #14532d;
  --pill-negative-bg: #ffedea;  --pill-negative-ink: #831c1e;
  --pill-warning-bg: #fffbeb;   --pill-warning-ink: #92400e;
  --pill-neutral-bg: #f3f4f6;   --pill-neutral-ink: #374151;

  /* 压在照片上的文字：不能跟着正文变色，否则浅色主题下会消失 */
  --on-photo: #ffffff;
  --on-photo-muted: rgba(255, 255, 255, .78);
  --on-photo-rule: rgba(255, 255, 255, .3);

  /* 剧场端是给人读的页面，正文按阅读尺寸给 */
  --step-small: 13px;
  --step-body: 16px;
  --step-lead: 20px;
  --step-head: clamp(28px, 3vw, 40px);

  --pad: clamp(20px, 4vw, 56px);
  --gap-section: clamp(56px, 5vw, 92px);
  --radius: 8px;
  --radius-card: 8px;
  --radius-control: 6px;
  --radius-inner: 6px;
  --radius-chip: 4px;
  --gap: 24px;
  --row-height: 45px;
  --control-height: 32px;

  --fs-title: 32px;
  --fs-section: 18px;
  --fs-kpi: 24px;
  --fs-body: 14px;
  --fs-small: 12px;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "PingFang SC", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  .btn:active, .btn.is-pressed { transform: none; }
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  letter-spacing: 0;
  font-weight: 400;
}

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

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

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

.shell {
  width: 100%;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------------------------------------------------------------- 导航 */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  font-size: var(--step-small);
}

.nav .mark {
  font-family: var(--font-display);
  font-size: var(--step-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--on-photo);
}

.nav .links {
  display: flex;
  align-items: baseline;
  gap: 26px;
  color: var(--on-photo);
}

.nav .links a:hover { color: var(--on-photo); text-decoration: underline; }

.nav .credits { color: var(--on-photo-muted); font-variant-numeric: tabular-nums; }

/* 导航里的身份入口：未登录时是个按钮，长相与导航链接一致 */
.nav .nav-auth {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav .nav-auth:hover { color: var(--on-photo); text-decoration: underline; }

.nav--solid .nav-auth:hover { color: var(--accent); text-decoration: none; }
.nav--solid .nav-auth { color: var(--ink); }

/* 实底导航（剧集/播放/我的）：回到页面底色上的墨色 */
.nav--solid .mark { color: var(--ink); }
.nav--solid .links { color: var(--ink); }
.nav--solid .links a:hover { color: var(--accent); text-decoration: none; }
.nav--solid .credits { color: var(--muted); }

.nav--solid {
  position: static;
  border-bottom: 0;
  padding-bottom: 0;
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease,
    transform 120ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 按下即反馈：不等 click */
.btn:active, .btn.is-pressed { transform: scale(0.97); }

.btn:hover { background: var(--surface-2); }

.btn:active { transform: translateY(1px); }

.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

.btn--primary:hover { background: #a02b5c; }

.btn--quiet {
  border: 0;
  padding: 0;
  height: auto;
  color: var(--muted);
}

.btn--quiet:hover { color: var(--ink); }

/* ---------------------------------------------------------------- 首屏 */

/* 首屏媒体与底部过渡的权威定义在本文件后段的同名小节，
   这里不再重复，避免两套高度与两套遮罩互相覆盖。 */

.hero__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 var(--pad) 30px;
  background: linear-gradient(180deg, /* taste-skill-ignore: 照片上文字所需的中性压暗 */
    rgba(10, 13, 20, 0) 0%,
    rgba(10, 13, 20, .55) 42%,
    rgba(10, 13, 20, .94) 100%);
}

.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
}

.hero__line {
  max-width: 44ch;
  color: var(--on-photo);
  font-size: var(--step-lead);
  line-height: 1.45;
}

.hero__name {
  display: block;
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(120px, 19vw, 300px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--on-photo);
}

/* ---------------------------------------------------------------- 版块骨架 */

.section {
  padding-top: var(--gap-section);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section__note {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.7;
}

/* ---------------------------------------------------------------- 可输入的标题 */

.compose__input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7.4vw, 118px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  padding: 0;
  caret-color: var(--accent);
}

.compose__input::placeholder { color: var(--surface-2); }

.compose__split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: 44px;
}

.compose__answer { min-width: 0; }

.params {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
}

.params__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  font-size: var(--step-small);
  color: var(--muted);
  padding: 9px 0;
}

.params__row b { color: var(--ink); font-weight: 400; text-align: right; }

.compose__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  font-size: var(--step-body);
  color: var(--ink);
}

.compose__row + .compose__row { border-top: 0; }

.compose__no {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.compose__meta {
  color: var(--muted);
  font-size: var(--step-small);
  white-space: nowrap;
}

.compose__hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--step-small);
}

.compose__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.compose__example {
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--step-body);
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.compose__example:hover { background: var(--surface-2); color: var(--ink); }

/* ---------------------------------------------------------------- 流程分段 */

.stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

/* 左栏承载文字：一句话、滑块、四段说明；右栏只放界面片段与竖屏成片 */
.stages__left {
  display: grid;
  gap: 24px;
  align-content: start;
}

.stages__clause {
  padding: 0;
}

.stages__clause p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.stages__clause span { color: var(--accent-deep); }

.stages__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
  padding: 0;
}

.clip {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

/* 真实界面片段：不做假 dashboard，只有一条镜头卡 */
.fragment {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}

.fragment__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--step-small);
  color: var(--muted);
}

.fragment__title {
  margin: 10px 0 14px;
  font-size: 17px;
  line-height: 1.45;
}

.fragment__kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  font-size: var(--step-small);
  color: var(--muted);
}

.fragment__kv b { color: var(--ink); font-weight: 400; }

.fragment__bar {
  margin-top: 18px;
  height: 3px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.fragment__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: var(--accent);
  transition: width 220ms ease;
}

.stages__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 0;
}

.stages__item h3 {
  margin: 0 0 6px;
  font-size: var(--step-body);
  font-weight: 500;
}

.stages__item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.7;
}

.stages__track {
  margin-top: 0;
}

.stages__track input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
}

.stages__track input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: var(--surface-2);
}

.stages__track input[type="range"]::-moz-range-track {
  height: 8px;
  background: var(--surface-2);
}

.stages__track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -12px;
  background: var(--accent);
  border-radius: var(--radius);
}

.stages__track input[type="range"]::-moz-range-thumb {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
}

.stages__names {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--step-body);
}

.stages__names .on { color: var(--ink); }

/* ---------------------------------------------------------------- 实测陈述 */

.fact {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-lead);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.fact b {
  font-weight: 400;
  color: var(--ink);
  transition: color 400ms ease;
}

/* ---------------------------------------------------------------- 剧场 */

.theater {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}

.card {
  display: block;
}

.card__art {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
}

.card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.03);
  transition: transform 400ms ease, filter 400ms ease;
}

.card:hover .card__art img { transform: scale(1.03); filter: brightness(1) contrast(1.02); }

.card__art--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: var(--step-body);
}

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--step-small);
}

.card__title {
  margin: 4px 0 0;
  font-size: var(--step-body);
  line-height: 1.35;
}

.empty {
  max-width: 54ch;
  color: var(--muted);
  font-size: var(--step-lead);
  line-height: 1.5;
}

.empty strong { color: var(--ink); font-weight: 400; }

/* ---------------------------------------------------------------- 结尾 / 页脚 */

.closing {
  padding-top: var(--gap-section);
}

.closing p {
  margin: 0 0 28px;
  max-width: 34ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.closing__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 48px;
  margin-top: 44px;
}

.closing__cols h3 {
  margin: 0 0 10px;
  font-size: var(--step-body);
  font-weight: 500;
}

.closing__cols p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.7;
}

.footer {
  margin-top: var(--gap-section);
  padding: 28px var(--pad) 40px;
  color: var(--muted);
  font-size: var(--step-small);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ---------------------------------------------------------------- 详情页 */

.detail__head {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  padding-top: 36px;
}

.detail__cover {
  min-height: 46vh;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.detail__cover img { width: 100%; height: 100%; object-fit: cover; }

.detail__title {
  margin: 0 0 16px;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.detail__sub {
  margin: 0 0 26px;
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--step-lead);
  line-height: 1.6;
}

.detail__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--muted);
  font-size: var(--step-body);
}

.detail__facts b { color: var(--ink); font-weight: 400; }

.detail__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.stills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.stills figure { margin: 0; }

.stills img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(.88) contrast(1.03);
}

.stills figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--step-small);
}

.detail__head + .section { padding-top: calc(var(--gap-section) + 44px); }

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 56px;
}

.episode {
  display: block;
  padding: 18px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  transition: background-color 160ms ease;
}

.episode:hover { background: var(--surface-2); }

.episode__no {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-lead);
  line-height: 1;
  letter-spacing: -0.02em;
}

.episode__tag {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--step-small);
}

.episode--locked .episode__no { color: var(--muted); }

/* ---------------------------------------------------------------- 播放页 */

.watch__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 7.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.watch__sub { margin: 0 0 28px; color: var(--muted); font-size: var(--step-lead); }

.player {
  position: relative;
  height: 70vh;
  max-height: 720px;
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.player video { width: 100%; height: 100%; object-fit: contain; }

.watch__grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.watch__side { padding-top: 4px; }

.paywall {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
}

.paywall .price {
  font-family: var(--font-display);
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.04em;
}

.paywall .price small { font-size: 18px; color: var(--muted); margin-left: 6px; }

.paywall p { margin: 0; color: var(--muted); font-size: var(--step-body); }

.watch__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------------------------------------------------------------- 我的 */

#theater-section { padding-top: calc(var(--gap-section) + 72px); }

#recharge-section { padding-top: calc(var(--gap-section) + 64px); }

@media (max-width: 860px) {
  #recharge-section { padding-top: calc(var(--gap-section) + 96px); }
}

.me__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 0;
}

.me__stat .v {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.03em;
}

.me__stat .k { display: block; margin-top: 8px; color: var(--muted); font-size: var(--step-body); }

.library { margin-top: 56px; display: grid; gap: 2px; }

.library__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  background: var(--surface);
  padding-left: 18px;
  padding-right: 18px;
}

.library__row a { color: var(--ink); }
.library__row a:hover { color: var(--accent); }
.library__meta { color: var(--muted); font-size: var(--step-small); }

/* ---------------------------------------------------------------- 弹窗与提示 */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 11, .82);
}

.modal {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); /* taste-skill-ignore: 弹窗是真浮层 */
}

/* 登录 / 注册 切换：两格分段，选中格用品牌色的浅调，不铺满整块 */
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-control);
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  height: 32px;
  border: 0;
  border-radius: calc(var(--radius-control) - 2px);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.auth-tab.is-on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

.auth-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- 首屏：竖屏视频卡
   暗色画面不再铺满整屏，而是被浅色地色框住的一张竖版卡：
   9:16 正好是短剧的形态，动起来比一张静帧更有冲击，也不会和底色打架。 */

.hero { position: relative; }

.hero__photo {
  position: relative;
  /* 大篇幅画面：比七成屏再高一点点，仍然留出下方内容的提示 */
  height: clamp(460px, 78svh, 760px);
  min-height: 680px;
  overflow: hidden;
}

.hero__photo img,
.hero__photo video,
.clip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 默认取偏中间；具体取哪一段由每条片子自己的 data-focus 决定 */
  object-position: center 45%;
  display: block;
  /* 轻微往暖里调一点，别让雨夜冷光跟浅色底对打 */
  filter: saturate(0.96) contrast(1.02) brightness(1.03);
}

/* 每条片子声明自己的取景：主体在头顶就 top，在半身就 middle */
.hero__photo video[data-focus="top"],
.clip[data-focus="top"] { object-position: center top; }

.hero__photo video[data-focus="middle"],
.clip[data-focus="middle"] { object-position: center 45%; }

.hero__photo video[data-focus="bottom"],
.clip[data-focus="bottom"] { object-position: center bottom; }

/* 剧照底部融进页面底色：图不再是一块黑，而是沉到浅色地面里。
   渐变晚一点开始、整体调淡，宽屏下才不会被压住大半幅画面。 */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, /* taste-skill-ignore: 照片与底色衔接所需的中性过渡 */
    rgba(251, 247, 248, 0) 54%,
    rgba(251, 247, 248, .55) 72%,
    rgba(251, 247, 248, .9) 88%,
    var(--bg) 100%);
}

.hero__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--pad) 18px;
  background: none;
}

.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
}

/* 文字落在过渡出来的浅色区，用墨色，不用白字 */
.hero__name {
  color: var(--ink);
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0;
}

.hero__line {
  color: var(--ink);
  font-size: var(--step-lead);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0;
}

@media (max-width: 900px) {
  /* 手机首屏回到整屏高度：媒体够高，底部过渡才不会吃掉大半画面 */
  .hero__photo { height: 100svh; min-height: 560px; }
  .hero__name { font-size: clamp(40px, 12vw, 64px); }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__line { font-size: 16px; }
}

.modal h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.modal p { margin: 0 0 20px; color: var(--muted); font-size: var(--step-body); line-height: 1.55; }

.modal .field { margin-bottom: 14px; }

.modal label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 15px; }

.modal input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--bg);
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 17px;
}

.modal .error { margin: 0 0 12px; color: var(--negative); font-size: 15px; min-height: 1.2em; }

.modal-actions { display: flex; justify-content: flex-end; gap: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 12px);
  z-index: 80;
  padding: 12px 20px;
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: var(--step-body);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

/* ---------------------------------------------------------------- 手机 */

@media (max-width: 860px) {
  .hero__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero__name { font-size: 23vw; }

  .stages { grid-template-columns: 1fr; }

  .stages__panel { order: -1; padding-bottom: 24px; }

  .stages__clause { padding-top: 0; }

  .stages__names { grid-template-columns: repeat(2, 1fr); }

  .detail__head { grid-template-columns: 1fr; }

  .detail__cover { width: min(240px, 62vw); }

  .watch__grid { grid-template-columns: 1fr; }

  .player { max-width: 100%; }

  .nav .links { gap: 18px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- 入场与点亮 */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.in { opacity: 1; transform: none; }

/* 签名动作：刊头从略小处撑开，只做一次 */
.hero__name {
  transform-origin: left bottom;
  animation: name-in 900ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes name-in {
  from { opacity: 0; transform: scale(.94); letter-spacing: -.07em; }
  to { opacity: 1; transform: none; }
}

/* 实测数字：逐条点亮 */
.fact b { color: var(--muted); transition: color 400ms ease; }

.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 56px;
}

.numbers__item .v {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.numbers__item .k {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .compose__split { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; gap: 28px; }
}
.fact b.on { color: var(--ink); }

.compose__row { transition: background-color 160ms ease; }
.compose__row:hover { background: var(--surface); }

/* 子页首屏：整幅真实画面打头，给页面一个主导元素 */
.pagehero {
  display: flex;
  justify-content: center;
  padding: 18px var(--pad) 0;
}

.pagehero img {
  height: 62vh;
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
  filter: brightness(.92) contrast(1.02);
}

.detail__body { padding-top: 30px; padding-bottom: 76px; }

/* 详情页正文两栏：右侧放第一张剧照，别让半边空着 */
.detail__body {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-top: 28px;
  padding-bottom: 72px;
}

.detail__poster img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
  filter: brightness(.92) contrast(1.02);
}

.detail__side img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(.88) contrast(1.03);
}

/* 播放页两栏收紧，别把播放器和信息拉成一东一西 */
.watch__grid {
  grid-template-columns: minmax(0, 400px) minmax(0, 380px);
  justify-content: start;
  gap: 40px;
}

.stills { margin-bottom: 36px; }

@media (max-width: 860px) {
  .detail__body { grid-template-columns: 1fr; }
  .detail__poster img { max-height: 42svh; width: auto; margin: 0 auto; }
  .detail__side { display: none; }
}

/* 尊重减弱动效：内容必须可见 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* 剧场工具条：搜索 + 题材 */
.theater-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.theater-tools .search { flex: 1; min-width: 220px; }

.theater-tools input[type="search"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--step-body);
}

.theater-tools input[type="search"]::placeholder { color: var(--muted); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  height: 34px;
  padding: 0 14px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: var(--step-small);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.chip:hover { background: var(--surface-2); color: var(--ink); }

.chip.on { background: var(--accent); color: var(--accent-ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 充值套餐 */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.package {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
}

.package__price {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.package__coins { font-size: var(--step-body); }

.package__note {
  color: var(--muted);
  font-size: var(--step-small);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* 创作端：手动添加镜头 */
.add-shot {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0;
}

.add-shot input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--step-small);
}

.add-shot input::placeholder { color: var(--muted); }

/* 创作流程指引 */
.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 var(--pad) 14px;
  color: var(--muted);
  font-size: var(--step-small);
}

.flow__step { color: var(--muted); }
.flow__step.done { color: var(--ink); }
.flow__step.now { color: var(--accent); }
.flow__sep { color: var(--surface-2); }

/* 章节正文：默认收起，点开看全文 */
.cr-content {
  margin: 8px 0 4px;
}

.cr-content summary {
  cursor: pointer;
  color: var(--accent);
  font-size: var(--step-small);
  list-style: none;
}

.cr-content summary::-webkit-details-marker { display: none; }

.cr-content summary::before {
  content: "展开 ";
  color: var(--muted);
}

.cr-content[open] summary::before { content: "收起 "; }

.cr-text {
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px;
}

/* 章节行里的拆分控件 */
.split-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--step-small);
}

.split-form label { display: inline-flex; align-items: center; gap: 4px; }

.split-form input {
  width: 54px;
  height: 30px;
  padding: 0 8px;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--step-small);
}

/* 章节行的拆分：默认只显示结论，高级输入收起来 */
.split-form .split-hint { color: var(--muted); font-size: var(--step-small); }
.split-form .split-adv { display: inline-flex; align-items: center; gap: 6px; }
.split-form .split-adv[hidden] { display: none; }

/* 密码框里的眼睛 */
.pw-wrap { position: relative; }

.pw-wrap input { padding-right: 42px; }

.pw-eye {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-control);
}

.pw-eye:hover { color: var(--ink); background: var(--surface-2); }

.pw-eye svg { width: 18px; height: 18px; }
.pw-eye .eye-off { display: none; }
.pw-eye.is-on .eye-on { display: none; }
.pw-eye.is-on .eye-off { display: block; }

/* 导航里的「我的」：下拉放编辑资料与退出 */
.nav-menu { position: relative; display: inline-block; }

.nav-menu__toggle {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-menu__toggle::after {
  content: "▾";
  font-size: 10px;
  opacity: .7;
}

.nav-menu__toggle:hover { opacity: .8; }

.nav-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 172px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 28px rgba(17, 24, 39, .12); /* taste-skill-ignore: 下拉是真浮层 */
}

.nav-menu__list a,
.nav-menu__list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 0;
  background: none;
  border-radius: var(--radius-control);
  color: var(--ink);
  font: inherit;
  font-size: var(--step-small);
  cursor: pointer;
  text-decoration: none;
}

.nav-menu__list a:hover,
.nav-menu__list button:hover { background: var(--surface-2); }

.nav-menu__list [data-nav-logout] { color: var(--negative); }

/* details 形态的下拉：收起时列表不占位，展开时才出现 */
.nav-menu > summary { list-style: none; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu__list { display: none; }
.nav-menu[open] .nav-menu__list { display: grid; }
