/* =========================================================================
   黄果短剧 · 潮玩脑洞设计系统  Dopamine Toy-Box Design System
   配色：高饱和多巴胺撞色 / 硬阴影贴纸卡片 / 潮酷圆角排版
   维护：全站唯一共享样式表，任何页面不得单独复制样式
   ========================================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 撞色色板 */
  --ink: #161223;
  --ink-2: #221a38;
  --ink-3: #312546;
  --cream: #fff6e2;
  --paper: #ffffff;
  --mango: #ffc61a;
  --pink: #ff2d7a;
  --cyan: #14e4da;
  --grape: #7b2ff7;
  --lime: #c6ff3d;
  --orange: #ff6a2b;
  --blue: #3d8bff;
  --muted: #7b7391;
  --line: #e7dcc4;

  /* 形状系统 */
  --bw: 3px;
  --r-s: 10px;
  --r: 18px;
  --r-l: 26px;
  --r-xl: 34px;
  --r-pill: 999px;
  --bd: var(--bw) solid var(--ink);
  --sh-s: 4px 4px 0 var(--ink);
  --sh: 6px 6px 0 var(--ink);
  --sh-l: 10px 10px 0 var(--ink);
  --sh-xl: 16px 16px 0 var(--ink);

  /* 字体 */
  --f-display: "ZCOOL KuaiLe", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-num: "Archivo Black", "Noto Sans SC", "PingFang SC", sans-serif;

  /* 布局 */
  --maxw: 1200px;
  --pad: clamp(16px, 4vw, 34px);
  --head-h: 66px;
}

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

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(22, 18, 35, .07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

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

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

button { cursor: pointer; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p, figure { margin: 0; }

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.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: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  transition: top .2s;
}
.skip-link:focus { top: 10px; }

.noscript {
  margin: 0;
  padding: 10px var(--pad);
  background: var(--mango);
  border-bottom: var(--bd);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 3. 布局骨架 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sec { padding: clamp(46px, 7vw, 92px) 0; position: relative; }
.sec--tight { padding: clamp(30px, 4vw, 52px) 0; }
.sec--cream { background: var(--cream); }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--ink); color: #fff; }
.sec--dark .lede { color: rgba(255, 255, 255, .74); }
.sec--pink { background: var(--pink); color: #fff; }
.sec--mango { background: var(--mango); }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 4vw, 40px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  margin-bottom: 12px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: rotate(-1.6deg);
}
.kicker--pink { background: var(--pink); color: #fff; }
.kicker--cyan { background: var(--cyan); }
.kicker--mango { background: var(--mango); }
.sec--dark .kicker { border-color: #fff; box-shadow: 2px 2px 0 rgba(255, 255, 255, .9); }

.h1,
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: .01em;
}
.h1 { font-size: clamp(34px, 8.5vw, 74px); }
.h2 { font-size: clamp(26px, 5.2vw, 46px); }
.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.3;
}

.lede {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(15px, 1.9vw, 17px);
}

.hl {
  position: relative;
  display: inline-block;
  padding: 0 .12em;
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.04em;
  bottom: .06em;
  height: .42em;
  background: var(--mango);
  border-radius: 4px;
  transform: rotate(-1deg);
  z-index: -1;
}
.hl--pink::after { background: var(--pink); }
.hl--cyan::after { background: var(--cyan); }
.hl--lime::after { background: var(--lime); }

.rule {
  height: 0;
  border: 0;
  border-top: 3px dashed var(--ink);
  opacity: .5;
  margin: 26px 0;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  background: var(--mango);
  border: var(--bd);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-s);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--sh); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.btn--pink { background: var(--pink); color: #fff; }
.btn--cyan { background: var(--cyan); }
.btn--lime { background: var(--lime); }
.btn--grape { background: var(--grape); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--paper { background: var(--paper); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn--lg { padding: 17px 36px; font-size: 20px; }
.btn--block { width: 100%; }
.btn--icon { width: 46px; height: 46px; padding: 0; border-radius: 50%; }

.sec--dark .btn--paper { border-color: #fff; box-shadow: 4px 4px 0 rgba(255, 255, 255, .92); }
.sec--dark .btn--paper:hover { box-shadow: 6px 6px 0 rgba(255, 255, 255, .92); }

.linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  border-bottom: 3px solid var(--mango);
}
.linkarrow:hover { border-bottom-color: var(--pink); }

/* ---------- 5. 顶部导航 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--cream);
  border-bottom: var(--bd);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-head.is-stuck { box-shadow: 0 8px 0 rgba(22, 18, 35, .12); }

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--head-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--mango);
  border: var(--bd);
  border-radius: 13px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
  transform: rotate(-6deg);
  flex: none;
}
.brand__txt {
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.05;
}
.brand__txt em {
  font-family: var(--f-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}

.nav { display: none; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  transition: background .15s, transform .15s;
}
.nav a:hover { background: var(--lime); transform: rotate(-1.5deg); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav__cta {
  background: var(--pink) !important;
  color: #fff !important;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0 10px;
  background: var(--paper);
  border: var(--bd);
  border-radius: 13px;
  box-shadow: 3px 3px 0 var(--ink);
}
.burger span {
  display: block;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 移动端抽屉 */
.nav.is-open {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--head-h);
  bottom: 0;
  flex-direction: column;
  gap: 6px;
  padding: 22px var(--pad) 40px;
  background: var(--cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(22, 18, 35, .08) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  border-top: var(--bd);
  overflow-y: auto;
  animation: dropIn .22s ease both;
}
.nav.is-open a {
  padding: 16px 20px;
  font-family: var(--f-display);
  font-size: 22px;
  border: var(--bd);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--sh-s);
}
.nav.is-open a:nth-child(2n) { background: var(--cyan); }
.nav.is-open a:nth-child(3n) { background: var(--mango); }
.nav.is-open .nav__cta { background: var(--pink) !important; color: #fff; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 6. 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 7vw, 84px) 0 clamp(30px, 5vw, 56px);
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -1;
}
.hero::before {
  width: 340px; height: 340px;
  top: -120px; left: -80px;
  background: var(--grape);
}
.hero::after {
  width: 300px; height: 300px;
  right: -90px; bottom: -110px;
  background: var(--pink);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 72%);
}

.hero__in {
  display: grid;
  gap: clamp(26px, 5vw, 48px);
  align-items: center;
}
.hero__title { color: #fff; text-shadow: 0 0 0 var(--ink); }
.hero__title .hl::after { height: .38em; bottom: .08em; }
.hero__sub {
  margin-top: 16px;
  max-width: 46ch;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(15px, 2vw, 18px);
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.hero__tags span {
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 2px 2px 0 rgba(255, 255, 255, .9);
  transform: rotate(-1deg);
}
.hero__tags span:nth-child(2n) { background: var(--lime); transform: rotate(1.4deg); }
.hero__tags span:nth-child(3n) { background: var(--mango); }

/* 首页悬浮卡片堆 */
.hero__stack {
  position: relative;
  min-height: 300px;
}
.sticker-card {
  position: absolute;
  width: clamp(140px, 42vw, 190px);
  border: var(--bd);
  border-radius: var(--r-l);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, .9);
  overflow: hidden;
  animation: floaty 6s ease-in-out infinite;
}
.sticker-card:nth-child(1) { top: 0; left: 4%; transform: rotate(-7deg); animation-delay: 0s; }
.sticker-card:nth-child(2) { top: 74px; left: 38%; transform: rotate(4deg); animation-delay: .8s; z-index: 2; }
.sticker-card:nth-child(3) { top: 186px; left: 12%; transform: rotate(-2deg); animation-delay: 1.6s; }
.sticker-card__bar {
  padding: 8px 12px;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--ink);
  background: var(--mango);
  border-bottom: 2px solid var(--ink);
}
.sticker-card__body {
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
}
.sticker-card__body strong {
  display: block;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* 跑马灯 */
.marquee {
  overflow: hidden;
  padding: 12px 0;
  background: var(--mango);
  border-top: var(--bd);
  border-bottom: var(--bd);
}
.marquee__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: slide 26s linear infinite;
}
.marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(16px, 2.4vw, 22px);
  white-space: nowrap;
}
.marquee__track span::after { content: "★"; margin-left: 34px; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 7. 数据大字报 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 20px 16px;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-l);
  box-shadow: var(--sh);
  text-align: center;
}
.stat:nth-child(2n) { background: var(--cyan); }
.stat:nth-child(3n) { background: var(--mango); }
.stat:nth-child(4n) { background: var(--pink); color: #fff; }
.stat__num {
  display: block;
  font-family: var(--f-num);
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__label { font-size: 13px; font-weight: 700; opacity: .8; }

/* ---------- 8. 剧集卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}
.cards--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-l);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--ink); }
.card.is-hidden { display: none; }

.card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: var(--bd);
  overflow: hidden;
  --a: var(--grape);
  --b: var(--pink);
  background: linear-gradient(145deg, var(--a), var(--b));
}
.cover--v1 { --a: #7b2ff7; --b: #ff2d7a; }
.cover--v2 { --a: #ffc61a; --b: #ff6a2b; }
.cover--v3 { --a: #14e4da; --b: #3d8bff; }
.cover--v4 { --a: #c6ff3d; --b: #14e4da; }
.cover--v5 { --a: #ff2d7a; --b: #ff6a2b; }
.cover--v6 { --a: #3d8bff; --b: #7b2ff7; }

.card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .42) 2px, transparent 2.4px);
  background-size: 16px 16px;
  mix-blend-mode: overlay;
}
.card__cover::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: -42px; top: -46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
}
.card__type {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
}
.card__type--mod { background: var(--pink); }
.card__cover-title {
  position: relative;
  z-index: 2;
  font-family: var(--f-display);
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.24;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(22, 18, 35, .55);
}
.card__play {
  position: absolute;
  z-index: 2;
  right: 11px;
  bottom: 11px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: transform .16s ease;
}
.card__play::before {
  content: "";
  width: 0; height: 0;
  border-left: 10px solid var(--ink);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.card:hover .card__play { transform: scale(1.12) rotate(8deg); background: var(--mango); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 12px 13px 14px;
}
.card__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
}
.card__desc { font-size: 12.5px; color: var(--muted); }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: auto;
  padding-top: 6px;
}
.card__heat { color: var(--orange); }
.card__acts { display: flex; gap: 8px; margin-top: 8px; }
.card__acts .btn { flex: 1; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--lime);
}
.badge--live { background: var(--pink); color: #fff; }
.badge--done { background: var(--ink); color: #fff; }

/* ---------- 9. 榜单 / 横向滚动 ---------- */
.rank {
  display: grid;
  gap: 12px;
}
.rank__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
  transition: transform .16s ease, background .16s ease;
}
.rank__row:hover { transform: translateX(4px); background: var(--lime); }
.rank__no {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-size: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
}
.rank__row:nth-child(1) .rank__no { background: var(--mango); color: var(--ink); }
.rank__row:nth-child(2) .rank__no { background: var(--cyan); color: var(--ink); }
.rank__row:nth-child(3) .rank__no { background: var(--pink); color: #fff; }
.rank__info { flex: 1; min-width: 0; }
.rank__info strong { display: block; font-size: 15px; }
.rank__info span { font-size: 12.5px; color: var(--muted); }
.rank__num { font-family: var(--f-num); font-size: 15px; color: var(--orange); }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 78%);
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 10px; }
.rail::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }

/* ---------- 10. 功能卡 / 特色 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
}
.feature {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-l);
  box-shadow: var(--sh);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translate(-3px, -3px); box-shadow: var(--sh-l); }
.feature__ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 14px;
  background: var(--cyan);
  border: var(--bd);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-num);
  font-size: 18px;
  transform: rotate(-4deg);
}
.feature:nth-child(2n) .feature__ico { background: var(--mango); }
.feature:nth-child(3n) .feature__ico { background: var(--pink); color: #fff; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

.sec--dark .feature {
  background: var(--ink-2);
  color: #fff;
  box-shadow: 6px 6px 0 rgba(255, 255, 255, .9);
}
.sec--dark .feature p { color: rgba(255, 255, 255, .7); }
.sec--dark .feature__ico { border-color: #fff; box-shadow: 3px 3px 0 rgba(255, 255, 255, .9); }

/* ---------- 11. 筛选栏（剧库大厅） ---------- */
.filterbar {
  position: sticky;
  top: var(--head-h);
  z-index: 60;
  padding: 14px 0;
  background: var(--cream);
  border-bottom: 2px dashed var(--ink);
}
.filterbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  flex: 1 1 100%;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; }

.chip {
  flex: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .14s ease, background .14s ease;
}
.chip:hover { transform: translateY(-2px); background: var(--lime); }
.chip.is-active { background: var(--ink); color: #fff; }

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  padding: 9px 16px;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-s);
}
.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
}
.searchbox svg { flex: none; }

.select {
  padding: 10px 16px;
  background: var(--cyan);
  border: var(--bd);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-s);
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

.empty {
  padding: 40px 20px;
  text-align: center;
  border: 3px dashed var(--ink);
  border-radius: var(--r-l);
  color: var(--muted);
}
.empty strong { display: block; font-family: var(--f-display); font-size: 22px; color: var(--ink); }

.list-fill { margin-top: 26px; text-align: center; }
.result-tip { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }

/* ---------- 12. 试看页 · 播放器 ---------- */
.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d0a16;
  border: var(--bd);
  border-radius: var(--r-l);
  box-shadow: var(--sh-l);
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.player-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 30%, rgba(123, 47, 247, .55), transparent 58%),
    radial-gradient(circle at 78% 72%, rgba(255, 45, 122, .5), transparent 60%);
}
.player-shell__mid {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.player-shell__btn {
  width: 74px; height: 74px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--mango);
  border: var(--bd);
  border-radius: 50%;
  box-shadow: 5px 5px 0 rgba(255, 255, 255, .9);
  transition: transform .16s ease;
}
.player-shell__btn::before {
  content: "";
  width: 0; height: 0;
  border-left: 20px solid var(--ink);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.player-shell:hover .player-shell__btn { transform: scale(1.08); }
.player-shell.is-playing .player-shell__btn { background: var(--pink); }
.player-shell.is-playing .player-shell__btn::before {
  border: 0;
  width: 16px; height: 22px;
  margin: 0;
  background: #fff;
  box-shadow: 10px 0 0 #fff;
  border-radius: 2px;
}
.player-shell__mid strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(18px, 3vw, 26px);
}
.player-shell__mid span { font-size: 13px; opacity: .8; }

.player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
}
.player-bar__time { font-family: var(--f-num); font-size: 13px; flex: none; }
.player-bar__track {
  position: relative;
  flex: 1;
  height: 12px;
  background: var(--line);
  border: 2px solid var(--ink);
  border-radius: 99px;
  overflow: hidden;
}
.player-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--mango), var(--pink));
  transition: width .28s linear;
}

.danmaku {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.danmaku span {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .65);
  animation: dm 9s linear infinite;
}
.danmaku span:nth-child(1) { top: 14%; animation-delay: 0s; }
.danmaku span:nth-child(2) { top: 34%; animation-delay: 2.4s; color: var(--lime); }
.danmaku span:nth-child(3) { top: 54%; animation-delay: 4.2s; color: var(--cyan); }
.danmaku span:nth-child(4) { top: 72%; animation-delay: 6.1s; color: var(--mango); }
@keyframes dm {
  from { transform: translateX(0); }
  to { transform: translateX(-165vw); }
}

.eps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
}
.ep {
  padding: 10px 6px;
  font-family: var(--f-num);
  font-size: 14px;
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .14s ease, background .14s ease;
}
.ep:hover { transform: translateY(-2px); background: var(--lime); }
.ep.is-active { background: var(--pink); color: #fff; }
.ep.is-lock { color: var(--muted); background: var(--line); }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tab {
  padding: 9px 20px;
  font-weight: 700;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--ink);
}
.tab.is-active { background: var(--ink); color: #fff; }

.info-list { display: grid; gap: 10px; }
.info-list__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
}
.info-list__row dt { font-weight: 700; min-width: 74px; }
.info-list__row dd { margin: 0; color: var(--muted); flex: 1; }

/* ---------- 13. 创作者生态 ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 20px 20px 20px 18px;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-l);
  box-shadow: var(--sh);
}
.step__no {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-size: 20px;
  background: var(--mango);
  border: var(--bd);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}
.step:nth-child(2) .step__no { background: var(--cyan); }
.step:nth-child(3) .step__no { background: var(--lime); }
.step:nth-child(4) .step__no { background: var(--pink); color: #fff; }

.acc { display: grid; gap: 12px; }
.acc__item {
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
  overflow: hidden;
}
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: 17px;
}
.acc__btn::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  font-family: var(--f-body);
  font-weight: 700;
  background: var(--mango);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: transform .2s ease;
}
.acc__item.is-open .acc__btn::after { transform: rotate(45deg); background: var(--pink); color: #fff; }
.acc__panel {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.acc__item.is-open .acc__panel { display: block; animation: dropIn .2s ease both; }

.split {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.reward-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  font-size: 14px;
}
.reward-table th,
.reward-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 2px solid var(--line);
}
.reward-table th {
  background: var(--ink);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 15px;
}
.reward-table tr:last-child td { border-bottom: 0; }
.reward-table tbody tr:nth-child(2n) { background: rgba(255, 198, 26, .16); }

/* ---------- 14. APP 下载页 ---------- */
.dl { display: grid; gap: 12px; }
.dl__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-l);
  box-shadow: var(--sh);
  transition: transform .16s ease, box-shadow .16s ease;
}
.dl__item:hover { transform: translate(-3px, -3px); box-shadow: var(--sh-l); }
.dl__ico {
  flex: none;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  background: var(--grape);
  color: #fff;
  border: var(--bd);
  border-radius: 15px;
  font-family: var(--f-num);
  font-size: 17px;
}
.dl__item:nth-child(2) .dl__ico { background: var(--cyan); color: var(--ink); }
.dl__item:nth-child(3) .dl__ico { background: var(--orange); }
.dl__meta { flex: 1; min-width: 0; }
.dl__meta strong { display: block; font-size: 16px; }
.dl__meta span { font-size: 12.5px; color: var(--muted); }

.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  aspect-ratio: 9 / 18.6;
  padding: 12px;
  background: var(--ink);
  border: var(--bd);
  border-radius: 42px;
  box-shadow: var(--sh-xl);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(170deg, #2a1d47, #14101f 62%);
  overflow: hidden;
  padding: 30px 16px 16px;
  color: #fff;
}
.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 20px;
  background: var(--ink);
  border-radius: 99px;
}
.phone__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.phone__tile {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .5);
  background: linear-gradient(150deg, var(--grape), var(--pink));
}
.phone__tile:nth-child(2n) { background: linear-gradient(150deg, var(--cyan), var(--blue)); }
.phone__tile:nth-child(3n) { background: linear-gradient(150deg, var(--mango), var(--orange)); }
.phone__title {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.2;
}
.phone__tabs {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .12);
  border-radius: 99px;
  font-size: 11px;
}
.phone__tabs i {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

.qr {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 0 auto;
  background:
    repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 14px 14px;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
}
.qr::before,
.qr::after {
  content: "";
  position: absolute;
  width: 40px; height: 40px;
  background: #fff;
  border: 7px solid var(--ink);
  border-radius: 6px;
}
.qr::before { top: 8px; left: 8px; }
.qr::after { bottom: 8px; right: 8px; box-shadow: -116px 0 0 -7px var(--ink); }

.log { display: grid; gap: 12px; }
.log__item {
  padding: 16px 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-left: 8px solid var(--pink);
  border-radius: var(--r);
}
.log__item:nth-child(2n) { border-left-color: var(--cyan); }
.log__item:nth-child(3n) { border-left-color: var(--mango); }
.log__ver { font-family: var(--f-num); font-size: 14px; color: var(--orange); }

.vote {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vote__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
}
.vote__item:hover { background: var(--lime); }
.vote__item.is-voted { background: var(--ink); color: #fff; }
.vote__num { font-family: var(--f-num); font-size: 13px; color: var(--pink); }
.vote__item.is-voted .vote__num { color: var(--mango); }

/* ---------- 15. 订阅表单 ---------- */
.subform {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-l);
  box-shadow: var(--sh);
}
.subform input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  outline: none;
}
.sub-tip { margin-top: 10px; font-size: 13px; font-weight: 700; }
.sub-tip.is-ok { color: #1c8a4b; }
.sub-tip.is-err { color: var(--pink); }

/* ---------- 16. 弹窗 / Toast / 回到顶部 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 0;
  background: rgba(22, 18, 35, .72);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: grid; place-items: center; animation: fade .18s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__box {
  position: relative;
  width: min(720px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--cream);
  border: var(--bd);
  border-radius: 0;
}
.modal__box--slim { width: min(440px, 100%); }
.modal__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  padding-right: 46px;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: #fff;
  border: var(--bd);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 20px;
  line-height: 1;
}
.modal__close:hover { background: var(--ink); }

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 160;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  box-shadow: 4px 4px 0 rgba(255, 198, 26, .9);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  animation: dropIn .2s ease both;
}
.toast--ok { background: #1c8a4b; }

.to-top {
  position: fixed;
  right: 16px;
  bottom: 86px;
  z-index: 100;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--mango);
  border: var(--bd);
  border-radius: 50%;
  box-shadow: var(--sh-s);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-4px) rotate(-8deg); }

/* 移动端底部标签栏 */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper);
  border-top: var(--bd);
}
.tabbar a {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 2px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.tabbar a i {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  background: var(--line);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-style: normal;
  font-family: var(--f-num);
  font-size: 11px;
  color: var(--ink);
}
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] i { background: var(--mango); transform: rotate(-6deg); }

/* ---------- 17. 页脚 ---------- */
.site-foot {
  background: var(--ink);
  color: #fff;
  padding: clamp(34px, 6vw, 62px) 0 calc(clamp(34px, 6vw, 62px) + 74px);
  border-top: var(--bd);
}
.foot-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
.foot__brand {
  font-family: var(--f-display);
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot__slogan {
  margin-top: 10px;
  max-width: 34ch;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}
.foot__title {
  font-family: var(--f-display);
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--mango);
}
.foot-links { display: grid; gap: 8px; }
.foot-links a { color: rgba(255, 255, 255, .7); font-size: 14px; }
.foot-links a:hover { color: var(--lime); }
.foot__bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px dashed rgba(255, 255, 255, .28);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}
.foot__kws { font-size: 12px; color: rgba(255, 255, 255, .42); line-height: 1.9; }

/* ---------- 18. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .58s cubic-bezier(.2, .8, .2, 1) var(--d, 0s),
              transform .58s cubic-bezier(.2, .8, .2, 1) var(--d, 0s);
}
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 19. 响应式 ---------- */
@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(250px, 44%); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .burger { display: none; }
  .hero__in { grid-template-columns: 1.06fr .94fr; }
  .hero__stack { min-height: 400px; }
  .sticker-card { width: 200px; }
  .sticker-card__body { font-size: 13px; }
  .split { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .tabbar { display: none; }
  .toast-wrap { bottom: 28px; }
  .to-top { bottom: 28px; right: 28px; }
  .site-foot { padding-bottom: clamp(34px, 6vw, 62px); }
  .modal__box { border-radius: var(--r-l); box-shadow: var(--sh-xl); max-height: 88vh; }
  .modal.is-open { padding: 24px; }
}

@media (min-width: 1100px) {
  .rail { grid-auto-columns: minmax(260px, 30%); }
}

/* ---------- 20. 动效降级 & 打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-head,
  .tabbar,
  .to-top,
  .toast-wrap,
  .marquee { display: none !important; }
}
