/* ==========================================================================
   51短剧 · 潮玩脑洞设计系统 (Dopamine Toy-Punk Design System)
   视觉概念：高饱和多巴胺撞色 + 3px 漫画描边 + 硬边贴纸阴影 + 网点/糖纹底纹
   全站唯一样式来源：所有页面通过 <link> 引入本文件，禁止页面内复制样式。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 墨色与纸色（潮玩包装底色） */
  --ink: #17092e;
  --ink-2: #241043;
  --ink-3: #37185f;
  --paper: #fff6e8;
  --paper-2: #ffeed4;
  --white: #ffffff;

  /* 多巴胺撞色 */
  --hot: #ff2d8f;      /* 桃红 */
  --tang: #ff7a18;     /* 橘子汽水 */
  --sun: #ffd400;      /* 阳光黄 */
  --acid: #d4ff3d;     /* 酸性绿 */
  --cyan: #12e0ff;     /* 电光蓝 */
  --grape: #6b2dea;    /* 葡萄紫 */
  --mint: #35ffc1;
  --berry: #b01bff;

  /* 渐变 */
  --g-hot: linear-gradient(118deg, var(--hot) 0%, var(--tang) 52%, var(--sun) 100%);
  --g-cool: linear-gradient(118deg, var(--grape) 0%, var(--berry) 45%, var(--cyan) 100%);
  --g-zing: linear-gradient(118deg, var(--acid) 0%, var(--mint) 45%, var(--cyan) 100%);
  --g-candy: linear-gradient(118deg, #ff8ac2 0%, #ffd400 100%);

  /* 字体 */
  --f-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --f-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --f-num: "DIN Alternate", "Bahnschrift", "Impact", "Arial Black", var(--f-body);

  /* 形状 */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-xl: 44px;
  --r-pill: 999px;
  --bd: 3px solid var(--ink);
  --bd-2: 4px solid var(--ink);
  --sh-sm: 5px 5px 0 rgba(23, 9, 46, 0.92);
  --sh-md: 8px 8px 0 rgba(23, 9, 46, 0.92);
  --sh-lg: 12px 12px 0 rgba(23, 9, 46, 0.92);
  --sh-soft: 0 18px 40px rgba(23, 9, 46, 0.22);
  --sh-glow: 0 0 0 6px rgba(255, 45, 143, 0.2), 0 0 34px rgba(255, 45, 143, 0.45);

  /* 节奏 */
  --gap: 24px;
  --pad: clamp(20px, 4vw, 40px);
  --sec-y: clamp(56px, 8vw, 112px);
  --max: 1240px;
  --nav-h: 74px;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px dashed var(--grape);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--acid);
  border-radius: var(--r-pill);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 版心 & 纹理 ---------- */
.wrap { width: min(var(--max), 100% - (var(--pad) * 2)); margin-inline: auto; }
.wrap-wide { width: min(1420px, 100% - (var(--pad) * 2)); margin-inline: auto; }

.texture-dots {
  background-image: radial-gradient(currentColor 1.6px, transparent 1.7px);
  background-size: 16px 16px;
}

.texture-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}

.texture-candy {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 12px, transparent 12px 26px);
}

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(34px, 5vw, 64px); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--striped { background: var(--paper-2); }
.section--striped::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 45, 143, 0.07) 0 3px, transparent 3px 22px);
  pointer-events: none;
}

.blobs { overflow: hidden; }
.blobs::before, .blobs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.blobs::before { width: 420px; height: 420px; top: -160px; right: -120px; background: radial-gradient(circle at 30% 30%, rgba(18, 224, 255, 0.35), transparent 62%); }
.blobs::after { width: 360px; height: 360px; bottom: -150px; left: -110px; background: radial-gradient(circle at 60% 40%, rgba(255, 45, 143, 0.3), transparent 64%); }

/* ---------- 4. 标题模块 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: var(--bd);
  background: var(--acid);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.eyebrow--hot { background: var(--hot); color: var(--white); }
.eyebrow--cyan { background: var(--cyan); }
.eyebrow--grape { background: var(--grape); color: var(--paper); }

.head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 44px); position: relative; z-index: 1; }
.head--center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(30px, 4.4vw, 54px); }
.head p { color: rgba(23, 9, 46, 0.68); font-size: clamp(15px, 1.5vw, 18px); }
.section--ink .head p { color: rgba(255, 246, 232, 0.72); }
.head .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

.title-xl { font-size: clamp(38px, 8.2vw, 104px); }

.ink-pop {
  display: inline-block;
  color: var(--sun);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--hot);
  margin-right: 4px;
}
.grad-text {
  background: var(--g-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--cool {
  background: var(--g-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: var(--hot);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: var(--bd-2);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: var(--sh-md);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 rgba(23, 9, 46, 0.92); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 rgba(23, 9, 46, 0.92); }
.btn--acid { --btn-bg: var(--acid); --btn-fg: var(--ink); }
.btn--cyan { --btn-bg: var(--cyan); --btn-fg: var(--ink); }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); }
.btn--grape { --btn-bg: var(--grape); --btn-fg: var(--paper); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--acid); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.6); }
.section--ink .btn--ghost { --btn-fg: var(--paper); }
.section--ink .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { padding: 9px 18px; font-size: 14px; box-shadow: var(--sh-sm); border-width: 3px; }
.btn--lg { padding: 18px 36px; font-size: 18px; }
.btn--wide { width: 100%; }
.btn--grad { background: var(--g-hot); color: var(--ink); }
.btn--grad-cool { background: var(--g-cool); color: var(--ink); }
.btn__ico { font-size: 1.15em; line-height: 1; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 6. 贴纸标签 ---------- */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.sticker--hot { background: var(--hot); color: var(--white); }
.sticker--acid { background: var(--acid); }
.sticker--cyan { background: var(--cyan); }
.sticker--sun { background: var(--sun); }
.sticker--grape { background: var(--grape); color: var(--paper); }
.sticker--ink { background: var(--ink); color: var(--acid); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-pill);
  background: rgba(23, 9, 46, 0.07);
  border: 2px solid rgba(23, 9, 46, 0.16);
}
.section--ink .tag { background: rgba(255, 246, 232, 0.12); border-color: rgba(255, 246, 232, 0.24); }

/* ---------- 7. 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 246, 232, 0.86);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: var(--bd);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.topbar.is-stuck { box-shadow: 0 10px 28px rgba(23, 9, 46, 0.16); background: rgba(255, 246, 232, 0.97); }

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 900; font-size: 21px; }
.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: var(--bd);
  background: var(--g-hot);
  box-shadow: var(--sh-sm);
  font-family: var(--f-num);
  font-size: 19px;
  color: var(--ink);
  flex: none;
}
.brand__sub { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.22em; color: rgba(23, 9, 46, 0.55); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 15px;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav__link:hover { background: rgba(255, 45, 143, 0.14); }
.nav__link.is-active { background: var(--ink); color: var(--acid); }
.nav__cta { display: inline-flex; }

.burger {
  display: none;
  width: 52px;
  height: 46px;
  border: var(--bd);
  border-radius: 14px;
  background: var(--sun);
  box-shadow: var(--sh-sm);
  padding: 0;
  place-items: center;
}
.burger span { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--ink); margin: 3px auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 8. 跑马灯 ---------- */
.marquee {
  overflow: hidden;
  border-block: var(--bd);
  background: var(--ink);
  color: var(--acid);
  font-weight: 900;
  font-size: 15px;
  padding: 11px 0;
}
.marquee--hot { background: var(--hot); color: var(--white); border-color: var(--white); }
.marquee--acid { background: var(--acid); color: var(--ink); border-color: var(--ink); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: slide 26s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 9. 卡片通用 ---------- */
.panel {
  background: var(--white);
  border: var(--bd-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(20px, 2.4vw, 30px);
  position: relative;
}
.panel--ink { background: var(--ink-2); color: var(--paper); border-color: var(--acid); box-shadow: 8px 8px 0 var(--acid); }
.panel--flat { box-shadow: none; }
.panel h3 { font-size: clamp(19px, 2vw, 24px); }

.grid { display: grid; gap: var(--gap); position: relative; z-index: 1; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 特性小卡 */
.feat { display: flex; flex-direction: column; gap: 10px; }
.feat__ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border: var(--bd);
  box-shadow: var(--sh-sm);
  background: var(--cyan);
}
.feat:nth-child(2n) .feat__ico { background: var(--hot); }
.feat:nth-child(3n) .feat__ico { background: var(--acid); }
.feat:nth-child(4n) .feat__ico { background: var(--sun); }
.feat p { color: rgba(23, 9, 46, 0.66); margin: 0; font-size: 15px; }
.section--ink .feat p { color: rgba(255, 246, 232, 0.7); }

/* ---------- 10. 剧集卡（核心组件） ---------- */
.drama-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--gap); }
.drama {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--bd-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.drama:hover { transform: translate(-4px, -4px) rotate(-0.4deg); box-shadow: 13px 13px 0 rgba(23, 9, 46, 0.92); }
.drama.is-hidden { display: none; }

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: var(--bd-2);
  display: grid;
  place-items: center;
  background: var(--g-cool);
}
.poster--hot { background: var(--g-hot); }
.poster--cool { background: var(--g-cool); }
.poster--zing { background: var(--g-zing); }
.poster--candy { background: var(--g-candy); }
.poster__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(23, 9, 46, 0.28) 1.5px, transparent 1.6px); background-size: 13px 13px; }
.poster__word {
  position: relative;
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1.1;
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  text-align: center;
  padding: 0 12px;
  text-shadow: 4px 4px 0 rgba(23, 9, 46, 0.85);
}
.poster__word--ink { color: var(--ink); text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.75); -webkit-text-stroke: 1px var(--ink); }
.poster__cat {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: -3px;
  transform: rotate(-5deg);
  padding: 4px 12px 4px 14px;
  background: var(--ink);
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 6px 14px 14px 6px;
}
.poster__badge { position: absolute; z-index: 3; top: 10px; right: 10px; transform: rotate(6deg); }
.poster__play {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: var(--bd);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s ease, background 0.18s ease;
}
.drama:hover .poster__play { background: var(--acid); transform: scale(1.1) rotate(-8deg); }
.poster__play { font-size: 0; }
.poster__play::after {
  content: "";
  display: block;
  margin-left: 8%;
  border-style: solid;
  border-color: transparent transparent transparent currentColor;
  border-width: 0.3em 0 0.3em 0.5em;
}

.drama__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.drama__title { font-size: 18px; font-weight: 900; margin: 0; }
.drama__desc { font-size: 13.5px; color: rgba(23, 9, 46, 0.62); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drama__meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; color: rgba(23, 9, 46, 0.6); margin-top: auto; flex-wrap: wrap; }
.drama__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }

/* Rank list */
.rank { display: flex; flex-direction: column; gap: 12px; }
.rank__item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--white);
  border: var(--bd);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform 0.16s ease;
}
.rank__item:hover { transform: translateX(6px); }
.rank__n { font-family: var(--f-num); font-size: 28px; font-weight: 900; color: var(--hot); -webkit-text-stroke: 1px var(--ink); }
.rank__item:nth-child(2) .rank__n { color: var(--tang); }
.rank__item:nth-child(3) .rank__n { color: var(--grape); }
.rank__t { font-weight: 900; font-size: 16px; margin: 0; }
.rank__s { font-size: 12.5px; color: rgba(23, 9, 46, 0.58); }

/* ---------- 11. 筛选 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: var(--bd);
  background: var(--white);
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 4px 4px 0 rgba(23, 9, 46, 0.9);
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--ink); color: var(--acid); }

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  background: var(--white);
  border: var(--bd-2);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 15.5px;
  font-weight: 600;
}
.searchbar input:focus { outline: none; }
.searchbar__ico { font-size: 18px; opacity: 0.6; }

.empty {
  display: none;
  text-align: center;
  padding: 44px 20px;
  border: 3px dashed rgba(23, 9, 46, 0.3);
  border-radius: var(--r-lg);
  font-weight: 800;
  color: rgba(23, 9, 46, 0.6);
}
.empty.is-on { display: block; }

.result-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 800; font-size: 14px; color: rgba(23, 9, 46, 0.7); }

/* ---------- 12. 数字大字报 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  position: relative;
  padding: clamp(18px, 2vw, 26px);
  border: var(--bd-2);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.stat:nth-child(1) { background: var(--acid); }
.stat:nth-child(2) { background: var(--cyan); }
.stat:nth-child(3) { background: var(--hot); color: var(--white); }
.stat:nth-child(4) { background: var(--sun); }
.stat__num {
  font-family: var(--f-num);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat__unit { font-size: 0.42em; font-family: var(--f-body); font-weight: 900; }
.stat__label { font-weight: 800; font-size: 14.5px; letter-spacing: 0.04em; }

/* ---------- 13. 对比 / 双列 ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.pill-list { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.pill-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.pill-list li::before {
  content: "✔";
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--acid);
  font-size: 12px;
  font-weight: 900;
}
.panel--ink .pill-list li::before { background: var(--acid); color: var(--ink); border-color: var(--acid); }

/* ---------- 14. 步骤流 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 24px 20px;
  border: var(--bd-2);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-md);
}
.step__n {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-weight: 900;
  font-size: 20px;
  border: var(--bd);
  background: var(--sun);
  margin-bottom: 12px;
}
.step:nth-child(2) .step__n { background: var(--hot); color: var(--white); }
.step:nth-child(3) .step__n { background: var(--cyan); }
.step:nth-child(4) .step__n { background: var(--acid); }
.step h3 { font-size: 18px; }
.step p { font-size: 14px; color: rgba(23, 9, 46, 0.65); margin: 0; }
.section--ink .step p { color: rgba(255, 246, 232, 0.68); }

/* ---------- 15. 进度条 ---------- */
.bar { height: 14px; border-radius: var(--r-pill); border: 2.5px solid var(--ink); background: rgba(23, 9, 46, 0.08); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: var(--r-pill); background: var(--g-hot); transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1); }
.bar__fill--cool { background: var(--g-cool); }
.bar__fill--zing { background: var(--g-zing); }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-weight: 800; font-size: 14px; }

/* ---------- 16. 表格 ---------- */
.table-wrap { overflow-x: auto; border: var(--bd-2); border-radius: var(--r-lg); box-shadow: var(--sh-md); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
caption { text-align: left; padding: 16px 18px 6px; font-weight: 900; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 2px solid rgba(23, 9, 46, 0.1); font-size: 14.5px; }
thead th { background: var(--ink); color: var(--acid); font-weight: 900; font-size: 13.5px; letter-spacing: 0.06em; }
tbody tr:nth-child(odd) { background: rgba(255, 212, 0, 0.16); }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 900; }

/* ---------- 17. 折叠 FAQ ---------- */
.acc { display: flex; flex-direction: column; gap: 14px; }
.acc__item { border: var(--bd-2); border-radius: var(--r-md); background: var(--white); box-shadow: var(--sh-sm); overflow: hidden; }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  font-weight: 900;
  font-size: 16.5px;
  text-align: left;
}
.acc__btn::after { content: "+"; font-family: var(--f-num); font-size: 24px; color: var(--hot); transition: transform 0.2s ease; flex: none; }
.acc__btn[aria-expanded="true"]::after { content: "−"; }
.acc__panel { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.28s ease, padding 0.2s ease; font-size: 15px; color: rgba(23, 9, 46, 0.72); }
.acc__panel.is-open { padding: 0 20px 18px; }

/* ---------- 18. Tabs ---------- */
.tabs { display: inline-flex; gap: 8px; padding: 8px; border: var(--bd-2); border-radius: var(--r-pill); background: var(--white); box-shadow: var(--sh-sm); }
.tab { padding: 10px 22px; border: 0; border-radius: var(--r-pill); background: transparent; font-weight: 900; font-size: 15px; }
.tab[aria-selected="true"] { background: var(--grape); color: var(--paper); box-shadow: 3px 3px 0 rgba(23, 9, 46, 0.9); }
.tabpanel[hidden] { display: none; }

/* ---------- 19. 手机端视频舞台（试看页） ---------- */
.stage { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(24px, 4vw, 54px); align-items: start; }
.phone {
  position: relative;
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: 42px;
  background: var(--ink);
  box-shadow: var(--sh-lg);
}
.phone__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--g-cool); display: grid; place-items: center; }
.phone__screen--hot { background: var(--g-hot); }
.phone__screen--zing { background: var(--g-zing); }
.phone__notch { position: absolute; z-index: 6; top: 22px; left: 50%; transform: translateX(-50%); width: 120px; height: 24px; border-radius: var(--r-pill); background: var(--ink); }
.phone__ui { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: space-between; padding: 34px 18px 18px; color: var(--white); pointer-events: none; }
.phone__info h3 { margin: 0 0 6px; font-size: 19px; -webkit-text-stroke: 0.5px var(--ink); }
.phone__info p { margin: 0; font-size: 13px; opacity: 0.9; }
.phone__side { position: absolute; right: 12px; bottom: 90px; display: flex; flex-direction: column; gap: 12px; z-index: 5; }
.phone__act {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--white);
  background: rgba(23, 9, 46, 0.35);
  font-size: 19px;
  transition: transform 0.16s ease, background 0.16s ease;
}
.phone__act:hover { transform: scale(1.12); background: var(--hot); }
.phone__act.is-on { background: var(--acid); color: var(--ink); }
.phone__big {
  position: absolute;
  z-index: 6;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: var(--bd-2);
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: var(--sh-md);
  transition: transform 0.18s ease, background 0.18s ease;
  z-index: 7;
}
.phone__big::after {
  content: "";
  display: block;
  margin-left: 7%;
  border-style: solid;
  border-color: transparent transparent transparent currentColor;
  border-width: 0.33em 0 0.33em 0.55em;
}
.phone__big:hover { background: var(--acid); transform: scale(1.06); }
.phone__bar { position: absolute; left: 18px; right: 18px; bottom: 22px; z-index: 5; pointer-events: none; }
.phone__timer { font-family: var(--f-num); font-size: 12.5px; margin: 0 0 6px; letter-spacing: 0.06em; display: inline-block; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(23, 9, 46, 0.72); color: var(--acid); }
.phone__screen.playing .phone__big { display: none; }

.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; }
.ep {
  padding: 11px 6px;
  border: var(--bd);
  border-radius: 12px;
  background: var(--white);
  text-align: center;
  font-family: var(--f-num);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 3px 3px 0 rgba(23, 9, 46, 0.9);
  transition: transform 0.14s ease, background 0.14s ease;
}
.ep:hover { transform: translateY(-2px); }
.ep.is-active { background: var(--hot); color: var(--white); }
.ep.is-free { background: var(--acid); color: var(--ink); }
.ep.is-free.is-active { background: var(--hot); color: var(--white); }

.side-info { display: flex; flex-direction: column; gap: 18px; }

/* ---------- 20. 弹窗播放器 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__mask { position: absolute; inset: 0; background: rgba(23, 9, 46, 0.78); backdrop-filter: blur(4px); }
.modal__box {
  position: relative;
  width: min(940px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--ink-2);
  border: 4px solid var(--acid);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.2s ease;
  color: var(--paper);
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--bd-2);
  background: var(--acid);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  z-index: 3;
}
.modal__screen { position: relative; aspect-ratio: 16 / 9; background: var(--g-cool); display: grid; place-items: center; overflow: hidden; border-bottom: 3px solid var(--acid); }
.modal__screen.modal__screen--vert { height: min(56vh, 500px); aspect-ratio: auto; }
.modal__box--vert { width: min(390px, 100%); }
.modal__box--vert .modal__screen { height: min(56vh, 500px); aspect-ratio: auto; }
.modal__box--vert .modal__art strong { font-size: 26px; }
.modal__art { text-align: center; padding: 24px; }
.modal__art strong { display: block; font-size: clamp(24px, 4vw, 44px); font-family: var(--f-display); font-weight: 900; -webkit-text-stroke: 1.5px var(--ink); }
.modal__art span { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 13px; letter-spacing: 0.16em; opacity: 0.9; }
.modal__bar { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 24px; }
.modal__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.modal__title { font-size: 20px; font-weight: 900; margin: 0; }
.modal__note { font-size: 13px; color: rgba(255, 246, 232, 0.66); margin: 0; }
.timer { font-family: var(--f-num); font-size: 13.5px; letter-spacing: 0.08em; color: var(--acid); }

/* ---------- 21. Toast ---------- */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 26px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: var(--bd-2);
  border-radius: var(--r-pill);
  background: var(--acid);
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--sh-md);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  max-width: 90vw;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 22. 表单 ---------- */
.form { display: grid; gap: 16px; }
.form .grid-2 { gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 900; font-size: 14px; }
.field .req { color: var(--hot); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: var(--bd);
  border-radius: 16px;
  background: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 4px rgba(107, 45, 234, 0.2); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--hot); background: #fff0f6; }
.field__err { font-size: 12.5px; font-weight: 800; color: var(--hot); display: none; }
.field.has-err .field__err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(23, 9, 46, 0.72); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--hot); }

/* ---------- 23. 下载页组件 ---------- */
.dl-card { display: grid; grid-template-columns: 78px 1fr auto; gap: 18px; align-items: center; }
.dl-icon {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  border: var(--bd);
  background: var(--g-hot);
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-weight: 900;
  font-size: 27px;
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: rgba(23, 9, 46, 0.66); font-weight: 700; }
.qr {
  width: 100%;
  aspect-ratio: 1;
  border: var(--bd-2);
  border-radius: var(--r-md);
  background: var(--white);
  padding: 12px;
  box-shadow: var(--sh-sm);
}
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr-cap { font-size: 13px; font-weight: 800; color: rgba(23, 9, 46, 0.7); }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shot {
  border: var(--bd);
  border-radius: var(--r-md);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  position: relative;
  background: var(--g-cool);
  box-shadow: var(--sh-sm);
  display: grid;
  place-items: center;
}
.shot:nth-child(2) { background: var(--g-hot); }
.shot:nth-child(3) { background: var(--g-zing); }
.shot:nth-child(4) { background: var(--g-candy); }
.shot__label {
  position: absolute;
  inset: auto 10px 12px 10px;
  z-index: 3;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(23, 9, 46, 0.82);
  color: var(--acid);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
}
.shot__mock { position: absolute; inset: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.2); border: 2px dashed rgba(255, 255, 255, 0.55); }

/* ---------- 24. CTA 大横幅 ---------- */
.cta {
  position: relative;
  border: var(--bd-2);
  border-radius: var(--r-xl);
  background: var(--g-hot);
  padding: clamp(28px, 5vw, 60px);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.cta--cool { background: var(--g-cool); }
.cta__title { font-size: clamp(26px, 4.6vw, 52px); margin: 0 0 12px; color: var(--white); -webkit-text-stroke: 1.5px var(--ink); }
.cta p { max-width: 620px; color: var(--white); font-weight: 700; }
.cta__deco { position: absolute; inset: 0; background-image: radial-gradient(rgba(23, 9, 46, 0.16) 2px, transparent 2.1px); background-size: 20px 20px; pointer-events: none; }

/* ---------- 25. 页脚 ---------- */
.footer { background: var(--ink); color: rgba(255, 246, 232, 0.75); padding: clamp(40px, 6vw, 72px) 0 26px; border-top: var(--bd-2); }
.footer a:hover { color: var(--acid); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.footer h4 { color: var(--paper); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer li { margin-bottom: 9px; font-size: 14.5px; }
.footer__brand { max-width: 380px; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.foot-note { border-top: 2px solid rgba(255, 246, 232, 0.16); padding-top: 18px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- 26. 回顶 ---------- */
.totop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: var(--bd-2);
  background: var(--acid);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  box-shadow: var(--sh-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.totop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 27. 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- 28. Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 84px) 0 clamp(30px, 5vw, 64px); background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(38px, 7.4vw, 92px); line-height: 1.22; margin: 18px 0 20px; }
.hero__lead { font-size: clamp(16px, 1.8vw, 20px); color: rgba(255, 246, 232, 0.78); max-width: 560px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.hero__art { position: relative; display: grid; gap: 14px; }
.hero__tile {
  border: var(--bd-2);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-lg);
  background: var(--g-cool);
}
.hero__tile:nth-child(2) { background: var(--g-hot); }
.hero__tile:nth-child(3) { background: var(--g-zing); }
.hero__tile span { font-family: var(--f-display); font-weight: 900; font-size: clamp(20px, 2.6vw, 34px); color: var(--white); -webkit-text-stroke: 1.5px var(--ink); text-shadow: 4px 4px 0 rgba(23, 9, 46, 0.8); }
.hero__stack { display: grid; grid-template-columns: repeat(2, 1fr); }
.hero__stack .hero__tile:first-child { grid-column: span 2; }
.pulse { position: absolute; z-index: 1; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 255, 61, 0.28), transparent 65%); left: -70px; top: -70px; }

.live-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; color: var(--acid); }
.live-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgba(255, 45, 143, 0.32); animation: blip 1.4s ease-in-out infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- 29. 小程序性工具类 ---------- */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-44 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; } .gap-20 { gap: 20px; }
.center { text-align: center; } .left { text-align: left; }
.flex { display: flex; } .col { display: flex; flex-direction: column; }
.wrap-f { flex-wrap: wrap; } .aic { align-items: center; } .jcb { justify-content: space-between; }
.rel { position: relative; }
.z1 { position: relative; z-index: 1; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.muted { color: rgba(23, 9, 46, 0.62); }
.section--ink .muted { color: rgba(255, 246, 232, 0.66); }
.big-note { font-size: 15px; font-weight: 700; }
.hr-dots { border: 0; border-top: 3px dashed rgba(23, 9, 46, 0.25); margin: 30px 0; }
.breathe { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(-1deg); } 50% { transform: scale(1.04) rotate(1deg); } }

/* ---------- 30. 响应式 ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stage { grid-template-columns: 1fr; }
  .phone { max-width: 380px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    background: var(--paper);
    border-bottom: var(--bd-2);
    box-shadow: 0 20px 40px rgba(23, 9, 46, 0.22);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow: auto;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 16px; font-size: 17px; border: 2px solid rgba(23, 9, 46, 0.12); border-radius: var(--r-md); background: var(--white); }
  .nav__link.is-active { background: var(--ink); color: var(--acid); border-color: var(--ink); }
  .nav__cta { display: none; }
  .burger { display: grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-card { grid-template-columns: 64px 1fr; }
  .dl-card .btn { grid-column: 1 / -1; width: 100%; }
  .dl-icon { width: 64px; height: 64px; font-size: 22px; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps, .stats, .shots { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .drama-grid { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }
  .btn { padding: 14px 22px; font-size: 15.5px; }
  .btn--lg { padding: 15px 24px; font-size: 16.5px; }
  .cta { border-radius: var(--r-lg); }
  .modal__box { border-width: 3px; }
  .head h2 { font-size: clamp(27px, 8vw, 38px); }
  .rank__item { grid-template-columns: 36px 1fr; }
  .rank__item .drama__foot { grid-column: 1 / -1; }
  .searchbar { padding-left: 14px; }
  .poster__word { font-size: 22px; }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1 { font-size: 34px; }
}

/* ---------- 31. 动效偏好与无 JS 兜底 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .breathe, .live-dot i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .drama, .chip { transition: none; }
}

html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) .nav__links { position: static; transform: none; opacity: 1; visibility: visible; display: flex; flex-wrap: wrap; background: transparent; border: 0; box-shadow: none; padding: 0; max-height: none; }
html:not(.js) .burger { display: none; }
html:not(.js) .acc__panel { max-height: none; padding: 0 20px 18px; }
html:not(.js) .totop { display: none; }

@media print {
  .topbar, .footer, .totop, .marquee { display: none; }
  body { background: #fff; color: #000; }
}
