/* ==========================================================================
   黄果短剧官网 · 共享设计系统
   概念：深夜放映厅 Midnight Screening
   暖黑胶片底 · 黄果金橙渐变 · 玉青点缀(AI) · 衬线标题 + 等宽数字
   所有页面共用本文件，页面通过 data-* 属性驱动 assets/js/main.js
   ========================================================================== */

/* ------------------------------ 1. 设计令牌 ------------------------------ */
:root {
  /* 墨色阶（暖黑） */
  --ink: #0c0b09;
  --ink-2: #14120f;
  --ink-3: #1d1a15;
  --ink-4: #262119;

  /* 前景 */
  --fg: #f3eee4;
  --fg-2: #cdc4b4;
  --fg-dim: #9c9282;
  --fg-mute: #6f675b;

  /* 黄果品牌色 */
  --gold: #f5a524;
  --gold-soft: #ffd166;
  --amber: #ff6b2c;
  --jade: #2ed3a3;
  --rose: #ff5f7e;
  --violet: #8b7bff;

  /* 纸色（用于浅色区块） */
  --paper: #f5efe3;
  --paper-2: #ece4d4;
  --paper-ink: #191612;

  /* 线条与容器 */
  --line: rgba(243, 238, 228, 0.1);
  --line-strong: rgba(243, 238, 228, 0.22);
  --line-paper: rgba(25, 22, 18, 0.14);

  /* 渐变 */
  --grad: linear-gradient(115deg, #ffe08a 0%, #f5a524 45%, #ff6b2c 100%);
  --grad-jade: linear-gradient(115deg, #6ef0c6 0%, #2ed3a3 55%, #12a67c 100%);
  --grad-ink: linear-gradient(180deg, rgba(20, 18, 15, 0) 0%, rgba(12, 11, 9, 0.9) 100%);

  /* 排版 */
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  /* 形状与节奏 */
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 24px 70px -30px rgba(245, 165, 36, 0.55);
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --sec-y: clamp(56px, 8vw, 112px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-4) var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.52vw + 13.6px, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 胶片颗粒与放映光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  z-index: 0;
  width: min(1200px, 120vw);
  height: 90vh;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(245, 165, 36, 0.14) 0%, rgba(255, 107, 44, 0.06) 38%, transparent 70%);
}

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

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

/* ------------------------------ 3. 排版 ------------------------------ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6.2vw, 76px);
}

h2 {
  font-size: clamp(26px, 3.6vw, 44px);
}

h3 {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.35;
}

h4 {
  font-size: 17px;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
  color: var(--fg-2);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--fg);
  font-weight: 700;
}

em {
  font-style: normal;
}

.hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl-jade {
  background: var(--grad-jade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------ 4. 布局工具 ------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  max-width: 1380px;
}

.section {
  position: relative;
  z-index: 2;
  padding-block: var(--sec-y);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 72px);
}

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.section--paper p {
  color: #4a4239;
}

.section--paper h2,
.section--paper h3,
.section--paper h4,
.section--paper strong {
  color: var(--paper-ink);
}

.section--paper .hl {
  background: linear-gradient(115deg, #b9791a 0%, #e0561b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.sec-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.sec-head--center .eyebrow::before {
  display: none;
}

.sec-desc {
  margin-top: 16px;
  font-size: clamp(15px, 1vw, 17.5px);
  color: var(--fg-dim);
  max-width: 62ch;
}

.sec-head--center .sec-desc {
  margin-inline: auto;
}

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-2);
}

.section--paper .sec-desc,
.section--paper .lead {
  color: #5a5147;
}

.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
}

.grid--tight {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.stack {
  display: grid;
  gap: clamp(14px, 2vw, 26px);
}

/* ------------------------------ 5. 按钮与徽标 ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--grad);
  color: #21160a;
  box-shadow: 0 16px 34px -18px rgba(245, 165, 36, 0.9);
}

.btn--primary:hover {
  box-shadow: 0 22px 44px -18px rgba(255, 107, 44, 0.95);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 165, 36, 0.08);
}

.btn--jade {
  background: var(--grad-jade);
  color: #06231a;
  box-shadow: 0 16px 34px -18px rgba(46, 211, 163, 0.8);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16.5px;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}

.tag--gold {
  border-color: rgba(245, 165, 36, 0.5);
  background: rgba(245, 165, 36, 0.12);
  color: var(--gold-soft);
}

.tag--jade {
  border-color: rgba(46, 211, 163, 0.45);
  background: rgba(46, 211, 163, 0.12);
  color: #7bf0cb;
}

.tag--rose {
  border-color: rgba(255, 95, 126, 0.45);
  background: rgba(255, 95, 126, 0.12);
  color: #ff9aae;
}

/* ------------------------------ 6. 顶栏与导航 ------------------------------ */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(12, 11, 9, 0.6);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 11, 9, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad);
  color: #21160a;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 12px 26px -14px rgba(245, 165, 36, 0.95);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand__text em {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--fg-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--grad);
}

.site-header__cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  margin: 3.4px auto;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ------------------------------ 7. 页脚 ------------------------------ */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.4) 0%, rgba(12, 11, 9, 1) 60%);
  padding-block: clamp(40px, 5vw, 66px) 28px;
}

.site-footer__grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(140px, 1fr));
}

.site-footer__about p {
  max-width: 34ch;
  font-size: 14.5px;
  color: var(--fg-dim);
}

.foot-col h3 {
  font-size: 14px;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 14px;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.foot-col a {
  font-size: 14.5px;
  color: var(--fg-dim);
  transition: color 0.2s ease;
}

.foot-col a:hover {
  color: var(--gold);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-mute);
}

.site-footer__bottom p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 13px;
}

/* ------------------------------ 8. 首页 Hero ------------------------------ */
.hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: clamp(46px, 8vw, 96px) clamp(30px, 5vw, 64px);
}

.hero__grid {
  display: grid;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

.hero__title {
  margin-bottom: 22px;
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  padding-left: 0.06em;
}

.hero__sub {
  max-width: 44ch;
  font-size: clamp(15.5px, 1.05vw, 18px);
  color: var(--fg-2);
}

.hero__actions {
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--fg-dim);
}

.hero__meta b {
  display: block;
  font-family: var(--font-mono);
  font-size: 21px;
  color: var(--fg);
  font-weight: 600;
}

.hero__stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 8px;
}

.hero__card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__card--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.hero__card--wide .card__pic {
  font-size: clamp(20px, 3.4vw, 38px);
}

.hero__card:nth-child(1) {
  transform: rotate(-1.6deg);
}

.hero__card:nth-child(2) {
  transform: rotate(1.4deg) translateY(-14px);
}

.hero__card--wide {
  transform: rotate(-0.6deg);
}

/* 播放脉冲 */
.pulse-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 11, 9, 0.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.pulse-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(255, 95, 126, 0.7);
  animation: pulse 1.9s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(255, 95, 126, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 126, 0);
  }
}

/* ------------------------------ 9. 字幕跑马灯 ------------------------------ */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(29, 26, 21, 0.5);
  padding-block: 13px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__track b {
  color: var(--gold);
}

.ticker__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.75;
}

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

/* ------------------------------ 10. 数据大字报 ------------------------------ */
.stats {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.stat {
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(38, 33, 25, 0.9) 0%, rgba(20, 18, 15, 0.7) 100%);
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__num sub {
  font-size: 0.45em;
  vertical-align: baseline;
  margin-left: 3px;
  color: var(--fg-dim);
  -webkit-text-fill-color: var(--fg-dim);
}

.stat__label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-dim);
}

/* ------------------------------ 11. 剧集卡片 ------------------------------ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 165, 36, 0.45);
  box-shadow: var(--shadow-glow);
}

.card.is-hidden {
  display: none;
}

.card__poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-3);
}

.card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-ink);
  opacity: 0.85;
}

.card__pic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  color: rgba(12, 11, 9, 0.42);
  letter-spacing: 0.06em;
  transition: transform 0.5s ease;
}

.card:hover .card__pic {
  transform: scale(1.08);
}

.card__pic::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 9px);
  opacity: 0.5;
}

.card__badges {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 11px;
  right: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__badges .tag {
  background: rgba(12, 11, 9, 0.72);
  backdrop-filter: blur(6px);
}

.card__ep {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  background: rgba(12, 11, 9, 0.72);
  border-radius: 999px;
  padding: 3px 9px;
  backdrop-filter: blur(6px);
}

.card__heat {
  position: absolute;
  z-index: 3;
  left: 11px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gold-soft);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 15px 17px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.32;
}

.card__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
}

.card__play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.card__play:hover {
  background: var(--grad);
  border-color: transparent;
  color: #21160a;
}

/* 海报渐变（CSS 艺术，零依赖） */
.p-1 {
  background: linear-gradient(150deg, #ffb347 0%, #ff6b2c 55%, #7a1f2b 100%);
}

.p-2 {
  background: linear-gradient(150deg, #6ef0c6 0%, #1f9e8a 50%, #123a4d 100%);
}

.p-3 {
  background: linear-gradient(150deg, #ffd166 0%, #e0781b 55%, #3d1a12 100%);
}

.p-4 {
  background: linear-gradient(150deg, #8bb8ff 0%, #4a5fd0 50%, #1b1c46 100%);
}

.p-5 {
  background: linear-gradient(150deg, #ff8fa6 0%, #d1405f 55%, #3c0f22 100%);
}

.p-6 {
  background: linear-gradient(150deg, #ffe9a8 0%, #c9a227 50%, #2f2a12 100%);
}

.p-7 {
  background: linear-gradient(150deg, #c6a2ff 0%, #7a4ad6 50%, #241640 100%);
}

.p-8 {
  background: linear-gradient(150deg, #9ff0a8 0%, #2f9e4f 55%, #10301c 100%);
}

.p-9 {
  background: linear-gradient(150deg, #ffc9a3 0%, #c9552b 55%, #3a1208 100%);
}

.p-10 {
  background: linear-gradient(150deg, #a8e6ff 0%, #2b7fa8 55%, #0e2433 100%);
}

.p-11 {
  background: linear-gradient(150deg, #f2b3ff 0%, #9a3ec9 55%, #2c0f3a 100%);
}

.p-12 {
  background: linear-gradient(150deg, #ffd0a1 0%, #b07a2a 45%, #241a0c 100%);
}

/* ------------------------------ 12. 心情筛选 ------------------------------ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.chip {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--fg-2);
  transition: all 0.22s ease;
}

.chip:hover {
  color: var(--fg);
  border-color: rgba(245, 165, 36, 0.5);
}

.chip.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #21160a;
  font-weight: 600;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.search-bar input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.search-bar input::placeholder {
  color: var(--fg-mute);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--gold);
}

.empty-note {
  padding: 40px 0;
  text-align: center;
  color: var(--fg-dim);
  display: none;
}

.empty-note.is-visible {
  display: block;
}

/* ------------------------------ 13. 榜单 ------------------------------ */
.rank {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.rank li:hover {
  background: rgba(245, 165, 36, 0.07);
  border-color: rgba(245, 165, 36, 0.35);
  transform: translateX(4px);
}

.rank__no {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-mute);
}

.rank li:nth-child(-n + 3) .rank__no {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rank__main {
  min-width: 0;
}

.rank__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.rank__sub {
  display: block;
  font-size: 13px;
  color: var(--fg-mute);
}

.rank__heat {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--gold-soft);
  white-space: nowrap;
}

.rank-item {
  display: block;
}

/* ------------------------------ 14. 图文双栏 ------------------------------ */
.split {
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.feature-list i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(245, 165, 36, 0.35);
  background: rgba(245, 165, 36, 0.1);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
}

.feature-list h4 {
  margin-bottom: 4px;
}

.feature-list p {
  font-size: 14.5px;
  color: var(--fg-dim);
}

.section--paper .feature-list i {
  border-color: rgba(185, 121, 26, 0.35);
  background: rgba(185, 121, 26, 0.1);
  color: #a86a12;
}

.section--paper .feature-list p {
  color: #5a5147;
}

/* 24 心情卡 */
.mood-card {
  display: grid;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(38, 33, 25, 0.85), rgba(20, 18, 15, 0.6));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.mood-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 165, 36, 0.45);
}

.mood-card span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.mood-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
}

.mood-card p {
  font-size: 14px;
  color: var(--fg-dim);
  margin: 0;
}

/* ------------------------------ 15. 流程步骤 ------------------------------ */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 198px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.steps h4 {
  margin-bottom: 8px;
}

.steps p {
  font-size: 14.5px;
  color: var(--fg-dim);
  margin: 0;
}

/* ------------------------------ 16. 时间轴 ------------------------------ */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 1px solid var(--line-strong);
  display: grid;
  gap: 26px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
}

.timeline b {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 6px;
}

.timeline h4 {
  margin-bottom: 5px;
}

.timeline p {
  font-size: 14.5px;
  color: var(--fg-dim);
  margin: 0;
}

/* ------------------------------ 17. 下载区 ------------------------------ */
.download {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid rgba(245, 165, 36, 0.28);
  background: radial-gradient(circle at 12% 18%, rgba(245, 165, 36, 0.22) 0%, transparent 55%), linear-gradient(150deg, #1f1a12 0%, #14120f 60%, #0c0b09 100%);
  padding: clamp(28px, 4.4vw, 56px);
}

.qr {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  flex-shrink: 0;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: #0c0b09;
  padding: 12px;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.qr-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  margin-top: 10px;
  text-align: center;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.22s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(245, 165, 36, 0.1);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.store-btn em {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}

.store-btn strong {
  font-size: 14.5px;
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ------------------------------ 18. FAQ ------------------------------ */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 4px 18px;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.faq details[open] {
  border-color: rgba(245, 165, 36, 0.4);
  background: rgba(245, 165, 36, 0.05);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq__body {
  padding-bottom: 16px;
  font-size: 14.5px;
  color: var(--fg-dim);
}

.section--paper .faq details {
  border-color: var(--line-paper);
  background: rgba(255, 255, 255, 0.5);
}

.section--paper .faq .faq__body {
  color: #5a5147;
}

/* ------------------------------ 19. 弹窗播放器 ------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 5, 4, 0.82);
  backdrop-filter: blur(8px);
}

.modal.is-open {
  display: grid;
}

.modal__panel {
  position: relative;
  width: min(780px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, #1c1915 0%, #121008 100%);
  box-shadow: var(--shadow);
  animation: modalIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(245, 165, 36, 0.22) 0%, transparent 60%), #0a0908;
  border-bottom: 1px solid var(--line);
}

.modal__screen-text {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
}

.modal__screen-text b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0;
  color: var(--fg);
}

.modal__body {
  padding: clamp(20px, 3vw, 30px);
}

.modal__body h3 {
  margin-bottom: 8px;
}

.modal__body p {
  font-size: 14.5px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(12, 11, 9, 0.8);
  color: var(--fg);
  font-size: 19px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.kv div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}

.kv div strong {
  font-size: 15px;
}

/* ------------------------------ 20. 回顶 ------------------------------ */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(20, 18, 15, 0.9);
  backdrop-filter: blur(8px);
  color: var(--fg);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.28s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ------------------------------ 21. 内页 Hero ------------------------------ */
.page-hero {
  position: relative;
  z-index: 2;
  padding-block: clamp(40px, 6vw, 82px) clamp(24px, 3.6vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-hero__title {
  margin-bottom: 18px;
}

.page-hero__desc {
  max-width: 62ch;
  font-size: clamp(15.5px, 1.05vw, 18px);
  color: var(--fg-dim);
}

.page-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}

.crumb a:hover {
  color: var(--gold);
}

/* ------------------------------ 22. 正文散文 ------------------------------ */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h3 {
  margin-top: 1.4em;
  margin-bottom: 0.45em;
}

.prose ul,
.prose ol {
  padding-left: 1.15em;
  color: var(--fg-2);
  display: grid;
  gap: 8px;
}

.prose li::marker {
  color: var(--gold);
}

.panel {
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(38, 33, 25, 0.7), rgba(20, 18, 15, 0.5));
}

.panel--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: var(--line-paper);
}

.panel--paper p {
  color: #4a4239;
}

.panel--paper h3,
.panel--paper h4,
.panel--paper strong {
  color: var(--paper-ink);
}

.notice {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(245, 165, 36, 0.3);
  border-left-width: 3px;
  background: rgba(245, 165, 36, 0.07);
  font-size: 14px;
  color: var(--fg-2);
}

.notice b {
  color: var(--gold-soft);
}

/* 联系卡 */
.contact-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.contact-card span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
}

.contact-card strong {
  font-size: 16px;
  word-break: break-all;
}

/* ------------------------------ 23. 动效 ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

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

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

/* ------------------------------ 24. 响应式 ------------------------------ */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__stack {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.25s ease, padding 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 380px;
    opacity: 1;
    padding-bottom: 12px;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-header__cta {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .download {
    text-align: center;
  }

  .store-row,
  .btn-row {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .rank li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .rank__heat {
    grid-column: 2;
    font-size: 12.5px;
  }

  .brand__text em {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  }

  .card__title {
    font-size: 15.5px;
  }

  .card__desc {
    display: none;
  }

  .qr {
    margin-inline: auto;
  }
}

/* ------------------------------ 25. 轻提示与状态 ------------------------------ */
[id] {
  scroll-margin-top: 86px;
}

.btn.is-done,
.btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--fg-mute);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 200;
  max-width: min(90vw, 460px);
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(245, 165, 36, 0.45);
  background: rgba(20, 18, 15, 0.96);
  color: var(--fg);
  font-size: 14.5px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease;
}

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

.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;
}

/* ------------------------------ 26. 间距工具类 ------------------------------ */
.u-mt-s {
  margin-top: 14px;
}

.u-mt {
  margin-top: 20px;
}

.u-mt-lg {
  margin-top: 34px;
}

.u-center {
  text-align: center;
}

.u-center .btn-row,
.u-center .store-row {
  justify-content: center;
}

.u-circle {
  display: grid;
  place-items: center;
}

@media print {
  body::before,
  body::after,
  .site-header,
  .to-top,
  .modal {
    display: none !important;
  }
}
