/* ==========================================================================
   黄果短剧 · 官网样式
   移动端优先 / 无外部依赖 / 单文件
   --------------------------------------------------------------------------
   目录
   01 设计变量
   02 基础重置
   03 排版与容器
   04 按钮 · 徽标 · 标签
   05 顶部导航
   06 首屏 Hero
   07 滚动海报墙
   08 数据指标
   09 热播榜
   10 题材分类
   11 产品特色
   12 播放体验
   13 三步上手
   14 免费 / 会员
   15 用户口碑
   16 常见问题
   17 下载专区
   18 页脚
   19 移动端悬浮条 / 返回顶部 / 下载兜底弹框
   20 法务页（隐私政策 / 用户协议）
   21 动效与无障碍
   ========================================================================== */

/* ---------- 01 设计变量 ---------- */
:root {
  /* 深色底 */
  --ink-900: #0a0a0f;
  --ink-800: #101017;
  --ink-700: #17171f;
  --ink-600: #22222c;
  --ink-line: rgba(255, 255, 255, 0.1);

  /* 浅色底 */
  --paper: #fffdf7;
  --paper-2: #f6f1e6;
  --paper-line: rgba(23, 20, 15, 0.09);

  /* 品牌色：取自 Logo 的黄果金 + 叶片绿 */
  --gold-200: #fff0bd;
  --gold-300: #ffe08a;
  --gold-400: #ffce5c;
  --gold-500: #ffc02e;
  --gold-600: #f0a202;
  --gold-ink: #a15c00;
  --leaf: #71c047;
  --coral: #ff5c6c;
  --violet: #7c5cff;

  /* 文字 */
  --text: #f7f5f0;
  --text-dim: #b3afa6;
  --on-light: #17140f;
  --on-light-dim: #5f594f;

  /* 尺寸 */
  --maxw: 1180px;
  --pad: clamp(18px, 5vw, 32px);
  --header-h: 62px;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 38px;

  --shadow-sm: 0 2px 10px rgba(20, 14, 0, 0.06);
  --shadow-md: 0 18px 40px -22px rgba(20, 14, 0, 0.35);
  --shadow-lg: 0 36px 80px -32px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 18px 50px -18px rgba(255, 192, 46, 0.55);

  /* 组件语义色（由区块覆盖） */
  --muted: var(--text-dim);
  --line-soft: var(--ink-line);
  --card: rgba(255, 255, 255, 0.045);
  --card-line: rgba(255, 255, 255, 0.09);
}

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

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

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

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

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

::selection {
  background: var(--gold-500);
  color: #17140f;
}

[hidden] {
  display: none !important;
}

/* ---------- 03 排版与容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(56px, 8.5vw, 108px);
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.section--dark {
  background: var(--ink-900);
  color: var(--text);
  --muted: var(--text-dim);
  --line-soft: var(--ink-line);
  --card: rgba(255, 255, 255, 0.045);
  --card-line: rgba(255, 255, 255, 0.09);
}

.section--light {
  background: var(--paper);
  color: var(--on-light);
  --muted: var(--on-light-dim);
  --line-soft: var(--paper-line);
  --card: #ffffff;
  --card-line: rgba(23, 20, 15, 0.08);
}

.section--cream {
  background: var(--paper-2);
  color: var(--on-light);
  --muted: var(--on-light-dim);
  --line-soft: rgba(23, 20, 15, 0.1);
  --card: #ffffff;
  --card-line: rgba(23, 20, 15, 0.08);
}

/* 段落级锚点偏移：正好让区块顶边贴住吸顶导航底边 */
[id] {
  scroll-margin-top: var(--header-h);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.section--dark .eyebrow {
  color: var(--gold-400);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

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

.section__head--center .eyebrow::before {
  display: none;
}

.section__title {
  margin-top: 14px;
  font-size: clamp(25px, 6.2vw, 42px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section__lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 60ch;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

/* 光斑背景 */
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.glow--gold {
  background: radial-gradient(circle, rgba(255, 192, 46, 0.5), transparent 70%);
}

.glow--coral {
  background: radial-gradient(circle, rgba(255, 92, 108, 0.38), transparent 70%);
}

.glow--violet {
  background: radial-gradient(circle, rgba(124, 92, 255, 0.34), transparent 70%);
}

/* ---------- 04 按钮 · 徽标 · 标签 ---------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: #1a1405;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 700;
  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;
  box-shadow: var(--glow-gold);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--gold-400);
}

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

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.section--light .btn--ghost,
.section--cream .btn--ghost {
  --btn-fg: var(--on-light);
  border-color: rgba(23, 20, 15, 0.2);
}

.section--light .btn--ghost:hover,
.section--cream .btn--ghost:hover {
  background: rgba(23, 20, 15, 0.05);
  border-color: rgba(23, 20, 15, 0.36);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.badge--gold {
  background: linear-gradient(135deg, #ffe08a, #ffc02e);
  border-color: transparent;
  color: #1a1405;
}

.badge--live {
  background: rgba(255, 92, 108, 0.16);
  border-color: rgba(255, 92, 108, 0.4);
  color: #ffb5bd;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 92, 108, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 92, 108, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 92, 108, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 92, 108, 0);
  }
}

/* ---------- 05 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-stuck {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: var(--ink-line);
  box-shadow: 0 14px 30px -24px rgba(0, 0, 0, 0.9);
}

.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 18px -8px rgba(255, 192, 46, 0.8);
}

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

.brand__name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand__sub {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header__actions .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

/* 汉堡按钮 */
.nav-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle__bars {
  position: relative;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: background 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.drawer.is-open {
  display: block;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.66);
  backdrop-filter: blur(3px);
  animation: fade 0.25s ease both;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  padding: 22px var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: var(--ink-800);
  border-left: 1px solid var(--ink-line);
  box-shadow: -30px 0 60px -30px #000;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  animation: slide-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 16px;
  font-weight: 600;
}

.drawer__nav a::after {
  content: "›";
  font-size: 20px;
  color: var(--text-dim);
}

.drawer__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.drawer__note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- 06 首屏 Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(30px, 6vw, 56px);
  padding-bottom: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(120% 90% at 50% -10%, #1c1a24 0%, transparent 60%),
    var(--ink-900);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}

.hero__glow-a {
  top: -140px;
  left: -90px;
  width: 380px;
  height: 380px;
}

.hero__glow-b {
  top: 120px;
  right: -140px;
  width: 420px;
  height: 420px;
}

.hero__inner {
  display: grid;
  gap: clamp(34px, 7vw, 56px);
  align-items: center;
}

.hero__copy {
  max-width: 620px;
}

.hero__tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 9px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: var(--text-dim);
}

.hero__tag img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero__tag strong {
  color: var(--text);
  font-weight: 700;
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(32px, 9vw, 62px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(96deg, #ffe08a 6%, #ffc02e 42%, #ff8a3d 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title .hero__title-line {
  display: block;
}

.hero__desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.86;
  color: var(--text-dim);
  max-width: 46ch;
}

.hero__desc b {
  color: var(--text);
  font-weight: 700;
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions .btn {
  flex: 1 1 180px;
}

.hero__trust {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__trust svg {
  width: 15px;
  height: 15px;
  color: var(--gold-400);
  flex: none;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 13px;
  height: 13px;
  color: var(--gold-400);
}

/* 首屏视觉 */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 8px;
}

.phone {
  position: relative;
  z-index: 3;
  width: min(286px, 74vw);
  aspect-ratio: 9 / 18.6;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2b2b36, #0c0c12 55%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
}

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

.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    transparent 26%,
    transparent 62%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.phone__notch {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 20px;
  border-radius: 999px;
  background: #06060a;
  z-index: 4;
}

.phone__top {
  position: absolute;
  top: 46px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
}

.phone__play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 5;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, background 0.25s ease;
}

.phone__play:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.28);
}

.phone__play svg {
  width: 22px;
  height: 22px;
  color: #fff;
  margin-left: 3px;
}

.phone__bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 5;
}

.phone__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.phone__meta {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.phone__bar {
  margin-top: 11px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.phone__bar i {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-600));
}

.phone__time {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

/* 两侧悬浮海报 */
.poster-chip {
  position: absolute;
  z-index: 2;
  width: 108px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  animation: chip-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.poster-chip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.poster-chip--a {
  left: -16px;
  top: 9%;
  transform: rotate(-9deg);
  animation-delay: 0.25s;
}

.poster-chip--b {
  right: -16px;
  bottom: 7%;
  transform: rotate(8deg);
  animation-delay: 0.4s;
}

@keyframes chip-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* 悬浮数据卡 */
.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 14px;
  background: rgba(18, 18, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.35;
}

.float-card strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.float-card--plays {
  left: 0;
  bottom: 16%;
}

.float-card--rate {
  right: 0;
  top: 12%;
}

.float-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 192, 46, 0.14);
  color: var(--gold-400);
  flex: none;
}

.float-card__icon svg {
  width: 15px;
  height: 15px;
}

/* 单列布局（<900px）下浮层卡片与角标会压住剧照，隐藏 */
@media (max-width: 899px) {
  .float-card,
  .player__badge {
    display: none;
  }
}

/* ---------- 07 滚动海报墙 ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 22px;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #0a0a0f, #101017);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  /* 4 组海报，位移一组（25%）即可无缝循环 */
  animation: marquee 34s linear infinite;
}

.marquee__list {
  display: flex;
  flex: none;
  gap: 10px;
  padding-right: 10px;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-25%);
  }
}

.marquee__item {
  width: 92px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.marquee__item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.marquee__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- 08 数据指标 ---------- */
.stats {
  padding-block: clamp(38px, 6vw, 62px);
  background: #101017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 22px 18px;
  background: #101017;
  text-align: center;
}

.stat__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  font-size: clamp(26px, 6.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat__num b {
  font-weight: 800;
  background: linear-gradient(96deg, #ffe08a, #ffb020);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__num i {
  font-style: normal;
  font-size: 0.58em;
  font-weight: 700;
  color: var(--gold-400);
}

.stat__label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- 09 热播榜 ---------- */
.hot__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3.4vw, 22px);
}

.drama {
  position: relative;
  border-radius: var(--radius);
  transition: transform 0.28s ease;
}

.drama__link {
  display: block;
  color: inherit;
}

.drama__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #12121a;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-md);
}

.drama__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.drama__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 30%);
  opacity: 0.9;
  pointer-events: none;
}

.drama:hover {
  transform: translateY(-6px);
}

.drama:hover .drama__media img {
  transform: scale(1.06);
}

.drama__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
}

.drama__rank--1,
.drama__rank--2,
.drama__rank--3 {
  background: linear-gradient(140deg, #ffe08a, #ffb020);
  border-color: transparent;
  color: #1a1405;
  box-shadow: 0 6px 16px -8px rgba(255, 176, 32, 0.9);
}

.drama__hot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  color: #ffe9b0;
  font-variant-numeric: tabular-nums;
}

.drama__hot svg {
  width: 11px;
  height: 11px;
  color: #ff8a3d;
}

.drama__body {
  padding: 11px 3px 0;
}

.drama__title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drama__meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.drama__meta .tag {
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-size: 11px;
}

.hot__more {
  margin-top: clamp(26px, 4vw, 40px);
  display: flex;
  justify-content: center;
}

/* ---------- 10 题材分类 ---------- */
.genres__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.genre {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-line);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.genre::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 46, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.genre:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 192, 46, 0.4);
}

.genre:hover::after {
  opacity: 1;
}

.genre__icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(255, 224, 138, 0.24), rgba(255, 192, 46, 0.1));
  color: var(--gold-ink);
  border: 1px solid rgba(240, 162, 2, 0.2);
}

.genre__icon svg {
  width: 19px;
  height: 19px;
}

.genre__text {
  min-width: 0;
}

.genre__name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.genre__count {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 卡片较窄时不显示口味标签，避免折行 */
.genre__tag {
  display: none;
}

@media (min-width: 640px) {
  .genre__tag {
    display: inline;
  }
}

/* ---------- 11 产品特色 ---------- */
.features__grid {
  display: grid;
  gap: 12px;
}

.feature {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-line);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 192, 46, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(255, 224, 138, 0.2), rgba(255, 192, 46, 0.06));
  border: 1px solid rgba(255, 192, 46, 0.22);
  color: var(--gold-400);
}

.feature__icon svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin-top: 15px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.feature p {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.feature__index {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.16);
  font-variant-numeric: tabular-nums;
}

/* ---------- 12 播放体验 ---------- */
.player__layout {
  display: grid;
  gap: clamp(26px, 5vw, 40px);
}

.player__head .section__lead {
  max-width: 52ch;
}

.player__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.player__phone {
  width: min(268px, 68vw);
}

.player__badge {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink-900);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 18px 34px -20px #000;
}

.player__badge--tl {
  top: 8%;
  left: 2%;
}

.player__badge--br {
  bottom: 12%;
  right: 0;
}

.player__badge svg {
  width: 13px;
  height: 13px;
  color: var(--gold-400);
}

.player__list {
  display: grid;
  gap: 2px;
  margin-top: 0;
}

.player__item {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.player__item:last-child {
  border-bottom: 0;
}

.player__item-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 192, 46, 0.12);
  color: var(--gold-ink);
  border: 1px solid rgba(240, 162, 2, 0.18);
}

.section--dark .player__item-icon {
  color: var(--gold-400);
  background: rgba(255, 192, 46, 0.1);
  border-color: rgba(255, 192, 46, 0.2);
}

.player__item-icon svg {
  width: 17px;
  height: 17px;
}

.player__item h3 {
  font-size: 15px;
  font-weight: 700;
}

.player__item p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 13 三步上手 ---------- */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 20px 22px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-line);
  overflow: hidden;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  right: 14px;
  top: 6px;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(23, 20, 15, 0.05);
  font-variant-numeric: tabular-nums;
}

.section--dark .step::before {
  color: rgba(255, 255, 255, 0.07);
}

.step__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.step h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 800;
}

.step p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.steps-note {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(240, 162, 2, 0.08);
  border: 1px solid rgba(240, 162, 2, 0.2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--on-light-dim);
}

.section--dark .steps-note {
  color: var(--text-dim);
  background: rgba(255, 192, 46, 0.07);
}

.steps-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--gold-ink);
}

.section--dark .steps-note svg {
  color: var(--gold-400);
}

/* ---------- 14 免费 / 会员 ---------- */
.plans {
  display: grid;
  gap: 14px;
}

.plan {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-line);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan__name {
  font-size: 17px;
  font-weight: 800;
}

.plan__desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.plan__list {
  margin-top: 18px;
  display: grid;
  gap: 11px;
}

.plan__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.65;
}

.plan__list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
}

.plan__list .is-yes {
  color: var(--gold-400);
}

.plan__list .is-no {
  color: rgba(255, 255, 255, 0.34);
}

.plan--vip {
  background: linear-gradient(160deg, rgba(255, 192, 46, 0.16), rgba(255, 92, 108, 0.08) 60%, transparent),
    var(--card);
  border-color: rgba(255, 192, 46, 0.4);
  box-shadow: 0 30px 60px -40px rgba(255, 176, 32, 0.8);
}

.plan--vip .plan__name {
  background: linear-gradient(96deg, #ffe08a, #ffb020);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan__cta {
  margin-top: 20px;
}

/* ---------- 15 用户口碑 ---------- */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-line);
}

.rating__score {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.rating__stars {
  display: flex;
  gap: 2px;
}

.rating__stars svg {
  width: 13px;
  height: 13px;
  color: var(--gold-600);
}

.rating__meta {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

.reviews__grid {
  display: grid;
  gap: 12px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-line);
}

.review__quote {
  font-size: 14.5px;
  line-height: 1.85;
  color: inherit;
}

.review__quote::before {
  content: "“";
  display: block;
  font-size: 34px;
  line-height: 0.7;
  margin-bottom: 6px;
  color: var(--gold-500);
  font-family: Georgia, serif;
}

.review__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.review__avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #1a1405;
  background: linear-gradient(150deg, #ffe08a, #ffb020);
}

.review__who {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.review__device {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 16 常见问题 ---------- */
.faq__list {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-inline: auto;
}

.faq__item {
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-line);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq__item[open] {
  border-color: rgba(240, 162, 2, 0.45);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

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

.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq__icon::before {
  width: 10px;
  height: 1.5px;
}

.faq__icon::after {
  width: 1.5px;
  height: 10px;
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
  background: var(--gold-500);
  border-color: transparent;
  color: #1a1405;
}

.faq__item[open] .faq__icon::after {
  opacity: 0;
  transform: scale(0.4);
}

.faq__answer {
  padding: 0 18px 18px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.faq__answer p + p {
  margin-top: 8px;
}

.faq__answer strong {
  color: inherit;
  font-weight: 700;
}

/* ---------- 17 下载专区 ---------- */
.download {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 176, 32, 0.2), transparent 60%),
    radial-gradient(80% 70% at 95% 100%, rgba(255, 92, 108, 0.16), transparent 60%),
    #0a0a0f;
  color: var(--text);
}

.download__inner {
  display: grid;
  gap: clamp(30px, 6vw, 52px);
  align-items: center;
}

.download__title {
  font-size: clamp(26px, 6.6vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.download__title em {
  font-style: normal;
  color: var(--gold-400);
}

.download__desc {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 48ch;
}

.store-list {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 192, 46, 0.5);
}

.store-btn__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 192, 46, 0.14);
  color: var(--gold-400);
}

.store-btn__icon svg {
  width: 21px;
  height: 21px;
}

.store-btn__text {
  min-width: 0;
}

.store-btn__text small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.store-btn__text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
}

.store-btn__arrow {
  margin-left: auto;
  color: var(--text-dim);
}

.store-btn__arrow svg {
  width: 17px;
  height: 17px;
}

.download__panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.download__panel h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.spec-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
}

.spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-list span {
  color: var(--text-dim);
}

.spec-list b {
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.download__hint {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}

.download__hint strong {
  color: var(--gold-400);
  font-weight: 700;
}

/* ---------- 18 页脚 ---------- */
.site-footer {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  background: #07070b;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 13px;
}

.footer__grid {
  display: grid;
  gap: 30px;
}

.footer__brand {
  max-width: 340px;
}

.footer__brand .brand {
  margin-bottom: 14px;
}

.footer__desc {
  line-height: 1.85;
  color: #8e8a83;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 18px;
}

.footer__col h3 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0ece4;
  margin-bottom: 14px;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a {
  color: #8e8a83;
  transition: color 0.2s ease;
}

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

.footer__bottom {
  margin-top: clamp(28px, 5vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #736f69;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

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

/* ---------- 19 移动端悬浮下载条 / 返回顶部 ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 15, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}

.mobile-cta.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.mobile-cta__text {
  min-width: 0;
  line-height: 1.3;
}

.mobile-cta__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.mobile-cta__text span {
  font-size: 11px;
  color: var(--text-dim);
}

.mobile-cta .btn {
  flex: none;
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 70;
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.to-top svg {
  width: 17px;
  height: 17px;
}

/* 移动端为悬浮条留白 */
@media (max-width: 899px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
}

/* ---------- 19.1 下载兜底弹框（百度 App 内 iOS 用户） ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

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

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.74);
  backdrop-filter: blur(6px);
  animation: fade 0.25s ease both;
}

.modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px 22px;
  border-radius: 26px;
  background: linear-gradient(168deg, #1c1c27 0%, #0d0d14 74%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px -40px #000, 0 0 0 1px rgba(255, 192, 46, 0.1);
  animation: modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.modal__close svg {
  width: 15px;
  height: 15px;
}

.modal__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.modal__title {
  margin-top: 10px;
  padding-right: 28px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

.modal__desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.modal__url {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--gold-300);
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

#copy-action {
  margin-top: 16px;
}

#copy-action.is-copied {
  background: #71c047;
  color: #10240a;
}

.modal__steps {
  counter-reset: mstep;
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.modal__steps li {
  position: relative;
  padding-left: 26px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

.modal__steps li::before {
  counter-increment: mstep;
  content: counter(mstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 192, 46, 0.16);
  color: var(--gold-400);
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 手机端改为底部抽屉 */
@media (max-width: 639px) {
  .modal__panel {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    width: auto;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    animation: sheet-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* ---------- 20 法务页（隐私政策 / 用户协议） ---------- */
.legal {
  background: var(--paper);
  color: var(--on-light);
  padding-block: clamp(34px, 6vw, 60px) clamp(46px, 8vw, 84px);
}

.legal__head {
  max-width: 780px;
  margin-inline: auto;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--paper-line);
}

.legal__title {
  margin-top: 12px;
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal__meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: var(--on-light-dim);
}

.legal__body {
  max-width: 780px;
  margin-inline: auto;
}

.legal__body > p:first-of-type {
  margin-top: 22px;
}

.legal__body h2 {
  margin-top: 34px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.legal__body h3 {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-light);
}

.legal__body p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.95;
  color: #3a342c;
}

.legal__body ul,
.legal__body ol {
  margin-top: 10px;
  padding-left: 1.4em;
  list-style: disc;
}

.legal__body ol {
  list-style: decimal;
}

.legal__body li {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.9;
  color: #3a342c;
}

.legal__body a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__body strong {
  color: var(--on-light);
  font-weight: 700;
}

.legal__toc {
  margin-top: 22px;
  padding: 16px 18px;
  display: grid;
  gap: 9px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-sm);
}

.legal__toc p {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-light-dim);
}

.legal__toc a {
  font-size: 13.5px;
  color: var(--on-light);
  text-decoration: none;
}

.legal__toc a:hover {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__note {
  margin-top: 30px;
  padding: 15px 17px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--on-light-dim);
}

.legal__note strong {
  color: var(--on-light);
}

.footer__icp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 640px) {
  .legal__toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
  }

  .legal__toc p {
    grid-column: 1 / -1;
  }
}

/* ---------- 21 动效与无障碍 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold-500);
  color: #1a1405;
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* 仅在 JS 可用时隐藏，保证脚本失效也能看到内容 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ==========================================================================
   响应式
   ========================================================================== */

/* 小屏微调：品牌副标题在窄屏上会让顶栏过挤 */
@media (max-width: 519px) {
  .brand__sub {
    display: none;
  }
}

@media (max-width: 359px) {
  .hot__grid,
  .genres__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header__actions .btn {
    display: none;
  }
}

/* 平板：≥ 640px */
@media (min-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hot__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genres__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .store-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__actions .btn {
    flex: 0 1 auto;
  }
}

/* 桌面：≥ 900px */
@media (min-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
  }

  .header__actions {
    gap: 12px;
  }

  .header__actions .btn {
    min-height: 42px;
    padding: 0 20px;
    font-size: 14px;
  }

  .hero {
    padding-top: clamp(40px, 5vw, 64px);
    padding-bottom: clamp(60px, 7vw, 96px);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 40px;
  }

  .hero__visual {
    padding-block: 0;
  }

  .phone {
    width: min(300px, 30vw);
  }

  .poster-chip {
    width: 140px;
    opacity: 1;
    animation: none;
  }

  .poster-chip--a {
    left: -22px;
  }

  .poster-chip--b {
    right: -22px;
  }

  .float-card--plays {
    left: -26px;
  }

  .float-card--rate {
    right: -20px;
  }

  .hot__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genres__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .player__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "visual head"
      "visual list";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 64px);
    row-gap: 0;
    align-items: center;
  }

  .player__head {
    grid-area: head;
    align-self: end;
    padding-top: 10px;
  }

  .player__visual {
    grid-area: visual;
    align-self: center;
  }

  .player__body {
    grid-area: list;
    align-self: start;
  }

  .player__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 26px;
    margin-top: 22px;
  }

  .player__item {
    border-bottom: 0;
    padding: 13px 0;
  }

  .download__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 40px;
  }

  .mobile-cta {
    display: none;
  }

  .to-top {
    display: grid;
    bottom: 26px;
  }

  .reviews__grid {
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review {
    padding: 26px;
  }
}

/* 大屏：≥ 1200px */
@media (min-width: 1200px) {
  .hot__grid {
    gap: 24px;
  }

  .genres__grid {
    gap: 16px;
  }

  .features__grid {
    gap: 18px;
  }

  .feature {
    padding: 26px;
  }

  .plan {
    padding: 30px 28px;
  }
}

/* 降级动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .marquee__track {
    animation: none;
  }

  .poster-chip {
    opacity: 1;
    animation: none;
  }
}

/* 高对比度偏好 */
@media (prefers-contrast: more) {
  .section__lead,
  .feature p,
  .drama__meta,
  .footer__desc {
    color: inherit;
  }
}
