/* ============================================================
   大咖秀TV 下载落地页
   配色与 App 的 AppColors 保持一致：深色底 + 品牌黄绿色
   ============================================================ */

:root {
  --bg: #070708;
  --surface: #101012;
  --panel: #161618;
  --card: #18181b;
  --accent: #c8f02e;
  --accent-dark: #a5d61a;
  --accent-light: #dcf76b;
  --on-accent: #151a02;
  --accent-gradient: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  --accent-soft: rgba(200, 240, 46, 0.12);
  --ink: #f1f2f4;
  --ink-soft: #c9cacf;
  --muted: #9a9ca3;
  --hint: #73757c;
  --line: rgba(255, 255, 255, 0.1);
  --fill: rgba(255, 255, 255, 0.06);
  --live: #ff2e55;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --gutter: 16px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- 基础 ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 非中文用户等文案换好再显示，见 index.html 头部脚本 */
html.i18n-pending body {
  visibility: hidden;
}

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

/* 段落尽量不在最后一行只剩一个字 */
p {
  text-wrap: pretty;
}

a,
button,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

/* 品牌名等不能从中间折行的词 */
.nowrap {
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.container {
  width: min(100% - var(--gutter) * 2, 1160px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s;
}

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

/* ---------- 品牌标 ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(200, 240, 46, 0.28);
}

.brand__mark--lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 30px;
}

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--accent-gradient);
  color: var(--on-accent);
  box-shadow: 0 6px 20px rgba(200, 240, 46, 0.22);
}

.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(200, 240, 46, 0.32);
}

.btn--sm {
  padding: 0 14px;
  font-size: 14px;
}

/* 应用商店按钮：电脑上三个都显示；手机上只显示本机能用的，并把首选的那个做成主按钮 */
.store-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #121215;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
  border-color: rgba(200, 240, 46, 0.6);
  background: #18191c;
}

.store-btn:active {
  transform: scale(0.98);
}

.store-btn__icon {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}

.store-btn__text small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.store-btn__text b {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

[data-platform="ios"] .store-btn[data-store="googlePlay"],
[data-platform="ios"] .store-btn[data-store="apk"],
[data-platform="android"] .store-btn[data-store="appStore"] {
  display: none;
}

[data-platform="ios"] .store-btn[data-store="appStore"],
[data-platform="android"] .store-btn[data-store="googlePlay"] {
  border-color: transparent;
  background: var(--accent-gradient);
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(200, 240, 46, 0.25);
}

[data-platform="ios"] .store-btn[data-store="appStore"] small,
[data-platform="android"] .store-btn[data-store="googlePlay"] small {
  color: rgba(21, 26, 2, 0.72);
}

/* ---------- 二维码（只在电脑上显示） ---------- */

.qr-card {
  display: none;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

[data-platform="desktop"] .qr-card {
  display: flex;
}

.qr-card.is-unavailable {
  display: none;
}

.qr-card__code {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 104px;
  height: 104px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.qr-card__code svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 二维码中间的品牌标；二维码用最高纠错等级，挡住中间一小块也能扫 */
.qr-card__code .brand__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 13px;
  box-shadow: 0 0 0 3px #fff;
}

.qr-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

.qr-card__text b {
  font-size: 15px;
}

.qr-card__text span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 顶栏 ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

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

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

/* 原生 select 透明地盖在自定义外观上：外观能定制，选择交互和读屏仍是原生的 */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fill);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink);
}

.lang-switch:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-switch select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
}

@media (max-width: 419px) {
  .header .btn .icon {
    display: none;
  }
}

@media (max-width: 359px) {
  .header .brand__name {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 44px;
  isolation: isolate;
}

/* 背景：品牌色光晕 + 渐隐的点阵 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(42% 46% at 72% 40%, rgba(200, 240, 46, 0.16), transparent 70%),
    radial-gradient(36% 40% at 12% 12%, rgba(90, 110, 255, 0.1), transparent 70%);
}

.hero::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero__inner {
  display: grid;
  gap: 44px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(200, 240, 46, 0.25);
  border-radius: 999px;
  background: rgba(200, 240, 46, 0.08);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(34px, 8.6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

[data-lang="en"] .hero__title,
[data-lang="ms"] .hero__title {
  font-size: clamp(32px, 7.6vw, 56px);
}

.hero__title em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  max-width: 34em;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.7;
}

.hero .store-list {
  justify-content: center;
  width: 100%;
  margin-top: 28px;
}

.hero .qr-card {
  margin-top: 20px;
}

.hero__note {
  margin-top: 14px;
  color: var(--hint);
  font-size: 13px;
}

/* 手机上按钮撑满一行（单个时最宽 340px），两个时并排 */
@media (max-width: 959px) {
  .store-btn {
    flex: 1 1 150px;
    justify-content: center;
    max-width: 340px;
  }
}

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

@media (min-width: 960px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 48px;
  }

  .hero__copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero .store-list {
    justify-content: flex-start;
  }
}

/* ---------- 首屏手机样机 ----------
   屏幕内容按 390×844 设计尺寸排版（数值取自 App 推荐页），再整体缩放到样机大小 */

.phone {
  --scale: 0.64;
  --bezel: 9px;
  position: relative;
  flex: none;
  padding: var(--bezel);
  border-radius: calc(54px * var(--scale) + var(--bezel));
  background: linear-gradient(150deg, #34353c, #141518 45%, #222328);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -24px rgba(0, 0, 0, 0.85),
    0 0 90px rgba(200, 240, 46, 0.1);
}

@media (min-width: 600px) {
  .phone { --scale: 0.7; }
}

@media (min-width: 960px) {
  .phone { --scale: 0.76; }
}

@media (min-width: 1200px) {
  .phone { --scale: 0.8; }
}

/* 1280×800 这类矮屏笔记本：样机整台放进首屏 */
@media (min-width: 960px) and (max-height: 860px) {
  .phone { --scale: 0.72; }
}

.phone__viewport {
  position: relative;
  width: calc(390px * var(--scale));
  height: calc(844px * var(--scale));
  overflow: hidden;
  border-radius: calc(54px * var(--scale));
  background: #000;
  isolation: isolate;
  /* Safari 圆角裁不住视频的老问题 */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.phone__screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  transform: scale(var(--scale));
  transform-origin: 0 0;
}

.phone__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d0f14;
}

.phone__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 6, 7, 0.72) 0%,
    rgba(6, 6, 7, 0.1) 26%,
    rgba(6, 6, 7, 0) 45%,
    rgba(6, 6, 7, 0.62) 74%,
    rgba(6, 6, 7, 0.94) 100%
  );
}

.phone__statusbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 4px 34px 0 52px;
  font-size: 17px;
  font-weight: 600;
}

.phone__island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 124px;
  height: 36px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

.phone__status-icons {
  width: 76px;
  height: 14px;
}

.phone__brand {
  position: absolute;
  top: 66px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.55);
}

.phone__brand .brand__mark {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  font-size: 10px;
  box-shadow: none;
}

.phone__hint {
  position: absolute;
  top: 110px;
  left: 50%;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #eeeff1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
}

.phone__rail {
  position: absolute;
  right: 8px;
  bottom: 228px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone__rail li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 56px;
  font-size: 10.5px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.87);
}

.phone__rail svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.55));
}

.phone__rail .is-liked {
  color: #ff4d6d;
}

.phone__rail .is-liked svg {
  fill: currentColor;
  stroke: currentColor;
}

.phone__info {
  position: absolute;
  right: 76px;
  bottom: 114px;
  left: 16px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.87);
}

.phone__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.phone__title small {
  margin-left: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.phone__hook {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #e2e3e6;
  font-size: 12.5px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.phone__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  text-shadow: none;
}

.phone__tags span {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e4f5b4;
  font-size: 10.5px;
  font-weight: 500;
}

.phone__tags .is-hot {
  border-color: transparent;
  background: linear-gradient(90deg, #ffb4c2, #ff6d88);
  color: #2b0509;
  font-weight: 700;
}

.phone__progress {
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.phone__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  transform: scaleX(0.57);
  transform-origin: left;
}

.phone__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #b0b2b7;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.phone__tabs {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 98px;
  margin: 0;
  padding: 0 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 7, 8, 0.85);
  list-style: none;
}

.phone__tabs li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(236, 236, 238, 0.52);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.phone__tabs li.is-active {
  color: #fff;
}

.phone__tabs svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone__homebar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #fff;
  transform: translateX(-50%);
}

/* 样机旁边漂浮的小卡片：提示还有小说和听书（只在宽屏显示） */
.float-card {
  display: none;
}

@media (min-width: 960px) {
  .float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 216px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(22, 22, 24, 0.8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    animation: float 6s ease-in-out infinite;
  }

  /* 位置避开样机上的文字和按钮：小说卡压在左侧画面中部，听书卡压在右上角画面上 */
  .float-card--novel {
    top: 44%;
    left: -4%;
  }

  .float-card--audio {
    top: 21%;
    right: -4%;
    animation-delay: -3s;
  }
}

@keyframes float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.float-card__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.35;
}

.float-card__body small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.float-card__body b {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.float-card__body > span {
  color: var(--muted);
  font-size: 12px;
}

.float-card__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  margin-top: 2px;
}

.float-card__wave i {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

.float-card__wave i:nth-child(3n) { height: 85%; }
.float-card__wave i:nth-child(3n + 1) { height: 55%; }
.float-card__wave i:nth-child(4n) { height: 100%; opacity: 0.6; }
.float-card__wave i:nth-child(5n) { height: 30%; }

/* ---------- 通用分区 ---------- */

.section {
  padding: 44px 0;
}

.section__head {
  margin-bottom: 24px;
}

.section__title {
  font-size: clamp(26px, 5.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

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

.section__subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
}

@media (min-width: 960px) {
  .section {
    padding: 64px 0;
  }

  .section__head {
    margin-bottom: 36px;
  }
}

/* ---------- 热门短剧：手机上横向滑动，宽屏 4 列 ---------- */

.drama-list {
  display: grid;
  grid-auto-columns: minmax(150px, 42%);
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  list-style: none;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.drama-list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 600px) {
  .drama-list {
    grid-auto-columns: minmax(170px, 28%);
  }
}

@media (min-width: 960px) {
  .drama-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 28px 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

.drama-card {
  min-width: 0;
  scroll-snap-align: start;
}

.drama-card a {
  display: block;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.drama-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}

.drama-card__cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drama-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 22%, transparent 45%, rgba(0, 0, 0, 0.75));
}

.drama-card a:hover .drama-card__cover {
  border-color: rgba(200, 240, 46, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.drama-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
}

.drama-card__title {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  text-wrap: balance;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.drama-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.drama-card__tags {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.drama-card__rating {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-weight: 700;
}

.drama-card__rating .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

/* ---------- 五种内容展示区 ----------
   左边（手机上是顶部一排）是标签，右边手机里是 App 对应页面的界面；
   手机屏幕内容和首屏样机一样按 390×844 设计尺寸排版，数值取自 App 各页面 */

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

.showcase__tabs {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.showcase__tabs::-webkit-scrollbar {
  display: none;
}

.showcase__tab {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 16px 5px 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.showcase__tab:hover {
  color: var(--ink-soft);
}

.showcase__tab[aria-selected="true"] {
  border-color: rgba(200, 240, 46, 0.45);
  background: rgba(200, 240, 46, 0.1);
  color: var(--ink);
}

.showcase__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  transition: background-color 0.2s, color 0.2s;
}

.showcase__icon .icon {
  width: 18px;
  height: 18px;
}

.showcase__tab[aria-selected="true"] .showcase__icon {
  background: var(--accent-gradient);
  color: var(--on-accent);
}

.showcase__name {
  font-weight: 800;
  white-space: nowrap;
}


/* 自动轮播的进度条：手机上在标签底边横着走，宽屏在左边竖着走 */
.showcase__progress {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  pointer-events: none;
}

.showcase__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.showcase.is-auto .showcase__tab[aria-selected="true"] .showcase__progress::after {
  animation: showcase-progress-x 5s linear forwards;
}

.showcase.is-offscreen .showcase__progress::after {
  animation-play-state: paused;
}

@media (hover: hover) {
  .showcase.is-hovered .showcase__progress::after {
    animation-play-state: paused;
  }
}

@keyframes showcase-progress-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes showcase-progress-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}


.showcase__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.showcase__stage::before {
  content: "";
  position: absolute;
  inset: -6% 0;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(200, 240, 46, 0.16), transparent);
  pointer-events: none;
}

.phone--showcase { --scale: 0.6; }

@media (min-width: 600px) {
  .phone--showcase { --scale: 0.64; }
}

@media (min-width: 960px) {
  .showcase {
    display: grid;
    grid-template-columns: minmax(0, 340px) auto;
    justify-content: center;
    align-items: center;
    gap: 120px;
  }

  .showcase__tabs {
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .showcase__tab {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    width: 100%;
    padding: 16px 24px 16px 20px;
    border-color: transparent;
    border-radius: 20px;
    background: transparent;
    font-size: 16px;
  }

  .showcase__tab:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  .showcase__tab[aria-selected="true"] {
    border-color: var(--line);
    background: linear-gradient(100deg, rgba(200, 240, 46, 0.09), rgba(255, 255, 255, 0.02) 65%);
  }

  .showcase__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .showcase__icon .icon {
    width: 22px;
    height: 22px;
  }

  .showcase__name {
    font-size: 20px;
  }


  .showcase__progress {
    top: 18px;
    right: auto;
    bottom: 18px;
    left: 0;
    width: 3px;
    height: auto;
  }

  .showcase__tab[aria-selected="true"] .showcase__progress {
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
  }

  .showcase__progress::after {
    transform: scaleY(0);
    transform-origin: top;
  }

  .showcase.is-auto .showcase__tab[aria-selected="true"] .showcase__progress::after {
    animation-name: showcase-progress-y;
  }


  .showcase__stage {
    padding: 0 24px;
  }

  /* 宽屏两边有空间，光晕可以比样机宽 */
  .showcase__stage::before {
    inset: -6% -10%;
  }

  .phone--showcase { --scale: 0.7; }
}

@media (min-width: 1200px) {
  .phone--showcase { --scale: 0.74; }
}

@media (min-width: 960px) and (max-height: 860px) {
  .phone--showcase { --scale: 0.66; }
}

/* 没在自动轮播时（点过、或减少动态效果），当前项的进度条直接画满当指示 */
.showcase:not(.is-auto) .showcase__tab[aria-selected="true"] .showcase__progress::after {
  transform: none;
}

/* ---- 手机里的五个页面：叠在一起，当前那个淡入 ---- */

.sc-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0b0d;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}

.sc-screen.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-out);
}

.sc-screen > div {
  position: absolute;
  inset: 0;
  padding-top: 54px;
}

.sc-screen svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 短剧：推荐页上拉起的选集弹层 */
.sc-drama > div {
  padding-top: 0;
}

.sc-drama__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
}

.sc-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 14px 50px;
  border-radius: 20px 20px 0 0;
  background: var(--panel);
  transform: translateY(100%);
  transition: transform 0.55s var(--ease-out) 0.1s;
}

.sc-drama.is-active .sc-sheet {
  transform: none;
}

.sc-sheet__handle {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.sc-sheet__title {
  font-size: 16px;
  font-weight: 800;
}

.sc-sheet__title small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.sc-episodes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.sc-episodes i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.sc-episodes .is-current {
  background: var(--accent-gradient);
  color: var(--on-accent);
}

/* 漫剧：剧场页 */
.sc-theater > div,
.sc-live > div {
  background: var(--bg);
}

.sc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 8px 14px 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fill);
  color: #8a8c93;
  font-size: 12.5px;
}

.sc-search svg {
  width: 16px;
  height: 16px;
}

.sc-typetabs {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 48px;
  padding: 0 14px 10px;
  overflow: hidden;
  color: #8a8c93;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.sc-typetabs .is-on {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.sc-chips {
  display: flex;
  gap: 7px;
  padding: 0 14px 11px;
  overflow: hidden;
  white-space: nowrap;
}

.sc-chips span {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.sc-chips .is-on {
  background: var(--accent);
  color: var(--on-accent);
}

.sc-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px;
}

.sc-work {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}

.sc-work__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #222327;
}

.sc-work__cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-work__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.72));
}

.sc-work__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9.5px;
  font-weight: 800;
}

.sc-work__big {
  position: absolute;
  right: 10px;
  bottom: 24px;
  left: 10px;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.87);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.sc-work__heat {
  position: absolute;
  bottom: 8px;
  left: 9px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
}

.sc-work__heat svg {
  width: 11px;
  height: 11px;
}

.sc-work__title {
  display: -webkit-box;
  height: 34px;
  margin: 8px 9px 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sc-work__tags {
  display: flex;
  gap: 5px;
  margin: 7px 9px 10px;
  overflow: hidden;
  white-space: nowrap;
}

.sc-work__tags span {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
  font-size: 9.5px;
}

/* 小说阅读页 / 听书播放页共用的顶栏 */
.sc-appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px;
}

.sc-appbar__back {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.sc-appbar__back svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.sc-appbar__title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.sc-appbar__title b {
  font-size: 14px;
  font-weight: 800;
}

.sc-appbar__title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

/* 小说 */
.sc-reader__body {
  padding: 22px 20px 0;
}

.sc-reader__chapter {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 800;
}

.sc-reader__body p + p {
  margin-bottom: 14px;
  color: #e2e3e6;
  font-size: 15.5px;
  line-height: 1.9;
  text-indent: 2em;
}

.sc-readerbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 44px;
  border-top: 1px solid var(--line);
  background: #0d0d0f;
}

.sc-readerbar__gap {
  flex: 1;
}

.sc-obtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #d2d3d7;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sc-obtn svg {
  width: 16px;
  height: 16px;
}

.sc-obtn.is-disabled {
  opacity: 0.38;
}

/* 听书 */
.sc-player__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 28px 0;
  text-align: center;
}

.sc-player__cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 220px;
  height: 220px;
  border-radius: 24px;
  background: linear-gradient(135deg, #26173a, #6b4a9b);
  box-shadow: 0 20px 44px rgba(107, 74, 155, 0.45);
}

.sc-player__cover svg {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.7);
}

.sc-player__cover b {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.54);
}

.sc-player__title {
  margin-top: 48px;
  font-size: 20px;
  font-weight: 800;
}

.sc-player__chapter {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.sc-player__slider {
  position: relative;
  width: 100%;
  height: 4px;
  margin-top: 34px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.sc-player__slider i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 39%;
  border-radius: 2px;
  background: var(--accent);
}

.sc-player__slider i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
}

/* 切到这一屏时进度往前走一点，表示正在播放 */
.sc-player.is-active .sc-player__slider i {
  animation: sc-listening 5s linear forwards;
}

@keyframes sc-listening {
  from { width: 39%; }
  to { width: 42%; }
}

.sc-player__time {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sc-player__controls {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 14px;
}

.sc-player__controls > svg {
  width: 32px;
  height: 32px;
}

.sc-player__play {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--on-accent);
  box-shadow: 0 10px 24px rgba(200, 240, 46, 0.3);
}

.sc-player__play svg {
  width: 34px;
  height: 34px;
}

.sc-player__chapters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 46px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sc-player__chapters svg {
  width: 16px;
  height: 16px;
}

/* 直播广场 */
.sc-livetabs {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 44px;
  padding: 0 16px;
  overflow: hidden;
  color: #8a8c93;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.sc-livetabs .is-on {
  position: relative;
  color: #fff;
  font-weight: 800;
}

.sc-livetabs .is-on::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--accent);
}

.sc-banner {
  position: relative;
  aspect-ratio: 16 / 7;
  margin: 6px 14px 0;
  overflow: hidden;
  border-radius: 14px;
}

.sc-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1) 72%);
}

.sc-banner__text {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-width: 62%;
  transform: translateY(-50%);
}

.sc-banner__text small {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 800;
}

.sc-banner__text b {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.sc-banner__text span {
  color: #d0d1d5;
  font-size: 10.5px;
  line-height: 1.4;
}

.sc-banner__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 1;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.sc-banner__dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
}

.sc-banner__dots .is-on {
  width: 14px;
  background: #fff;
}

.sc-live__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 10px;
  font-size: 18px;
  font-weight: 800;
}

.sc-live__head::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent-gradient);
}

.sc-livegrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px;
}

.sc-livecard {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111114;
}

.sc-livecard__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card);
}

.sc-livecard__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-live-badge,
.sc-viewers {
  position: absolute;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.sc-live-badge {
  top: 8px;
  padding: 0 8px;
  background: rgba(255, 77, 109, 0.9);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.sc-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.sc-viewers {
  bottom: 8px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

.sc-viewers svg {
  width: 11px;
  height: 11px;
}

.sc-livecard__streamer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 4px 0;
  overflow: hidden;
  color: #e2e3e6;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.sc-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6a5c0, #b24a7c);
}

.sc-avatar--2 { background: linear-gradient(135deg, #8fb8ff, #3a5bb0); }
.sc-avatar--3 { background: linear-gradient(135deg, #ffd38a, #c27a1f); }
.sc-avatar--4 { background: linear-gradient(135deg, #b9f0a0, #3f8f5a); }

.sc-livecard__title {
  margin: 8px 4px 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sc-livecard__tag {
  display: inline-block;
  margin: 8px 4px 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: 10.5px;
  font-weight: 700;
}

/* ---------- 亮点：只有图标和标题，手机两列、宽屏四列 ---------- */

.section--highlights {
  padding-top: 8px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.why__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.why__icon .icon {
  width: 22px;
  height: 22px;
}

.why__title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

@media (min-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .why {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
  }

  .why__title {
    font-size: 18px;
  }
}

/* ---------- 底部下载区 ---------- */

.section--cta {
  padding-top: 24px;
}

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 40px 20px;
  border: 1px solid rgba(200, 240, 46, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(200, 240, 46, 0.16), transparent 60%),
    var(--surface);
  text-align: center;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.cta__title {
  margin-top: 6px;
  font-size: clamp(26px, 5.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
}

.cta__subtitle {
  color: var(--ink-soft);
  font-size: clamp(15px, 2vw, 17px);
}

.cta .store-list {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.cta .qr-card {
  flex-direction: column;
  padding: 18px 22px;
  text-align: center;
}

.cta .qr-card__code {
  width: 148px;
  height: 148px;
  padding: 10px;
}

.cta .qr-card__code .brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 17px;
}

@media (min-width: 960px) {
  .cta {
    flex-direction: row;
    justify-content: space-between;
    padding: 56px 64px;
    text-align: left;
  }

  .cta__copy {
    align-items: flex-start;
  }

  .cta .store-list {
    justify-content: flex-start;
  }
}

/* ---------- 页脚 ---------- */

.footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

/* 手机上给底部悬浮下载条留位置 */
[data-platform="ios"] .footer,
[data-platform="android"] .footer {
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  color: var(--hint);
  font-size: 13px;
}

.footer .brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: none;
}

.footer .brand__name {
  font-size: 15px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

/* 文字小，上下撑出 44px 的点击区域，但不影响排版 */
.footer__links a {
  margin: -12px 0;
  padding: 12px 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* 协议页没有底部悬浮下载条，不用留位置 */
.footer.footer--plain {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

/* ---------- 用户协议 / 隐私政策 ---------- */

.legal {
  min-height: calc(100vh - var(--header-h) - 120px);
  padding: 32px 0 80px;
}

.legal__inner {
  width: min(100% - var(--gutter) * 2, 760px);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

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

.legal__title {
  margin-top: 12px;
  font-size: clamp(28px, 5.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
}

.legal__placeholder {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: var(--muted);
}

/* ---------- 手机底部悬浮下载条：首屏按钮滑出屏幕后出现，到了底部下载区再收起 ---------- */

.sticky-bar {
  display: none;
}

[data-platform="ios"] .sticky-bar,
[data-platform="android"] .sticky-bar {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(22, 22, 24, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  visibility: hidden;
  transform: translateY(calc(100% + 40px));
  transition: transform 0.28s var(--ease-out), visibility 0s linear 0.28s;
}

[data-platform="ios"] .sticky-bar.is-visible,
[data-platform="android"] .sticky-bar.is-visible {
  visibility: visible;
  transform: none;
  transition: transform 0.28s var(--ease-out);
}

.sticky-bar .brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 19px;
  box-shadow: none;
}

.sticky-bar__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.sticky-bar__text b {
  font-size: 15px;
}

.sticky-bar__text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

[data-platform="ios"] .toast,
[data-platform="android"] .toast {
  bottom: calc(100px + env(safe-area-inset-bottom));
}

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

/* ---------- 系统要求减少动态效果时 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
