﻿/* ============================================================
   Duanju C 端样式 v2
   深黑 + 金色，卡片为主角，克制动效
   ============================================================ */

:root {
  /* 三层背景，越靠内容越亮一点点 */
  --bg: #060708;
  --bg-elev: #0e1012;
  --bg-card: #141719;
  --bg-hover: #1a1e21;

  /* 分割线用半透明白，比实色灰更有层次 */
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);

  --text: #f2f3f4;
  --text-dim: #a3a9af;
  --text-mute: #6a7077;

  --gold: #f5b93a;
  --gold-soft: rgba(245, 185, 58, .14);
  --gold-line: rgba(245, 185, 58, .35);
  --red: #f0503c;
  --green: #37bd85;

  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 58px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 顶部一层极淡的暖光，避免纯黑死板 */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  height: 55vh;
  background: radial-gradient(ellipse at center,
              rgba(245, 185, 58, .09) 0%,
              rgba(245, 185, 58, .02) 38%,
              transparent 68%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(6, 7, 8, .78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 27px; height: 27px;
  border-radius: 9px;
  background: linear-gradient(140deg, #ffd166 0%, var(--gold) 45%, #d98324 100%);
  display: grid; place-items: center;
  font-size: 14px;
  color: #241604;
  font-weight: 900;
  box-shadow: 0 3px 14px rgba(245, 185, 58, .28);
}
.topbar-spacer { flex: 1; }

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
.wallet-chip::before { content: "◈"; font-size: 11px; }

.btn-ghost {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .15s var(--ease);
}
.btn-ghost:active {
  background: rgba(255, 255, 255, .09);
  transform: scale(.97);
}

/* ============================================================
   布局容器
   ============================================================ */
.wrap {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px);
}
@media (min-width: 720px) {
  .wrap { max-width: 1080px; margin: 0 auto; }
}

/* 区块标题：左侧金色竖条 */
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 22px 16px 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.section-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(245, 185, 58, .25));
}

/* ============================================================
   Hero 轮播（桌面横版 / 移动竖版）
   ============================================================ */
.banner-wrap {
  position: relative;
  margin: 6px 16px 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.banner-track::-webkit-scrollbar { display: none; }

.banner-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 300px;
  max-height: 440px;
  background: #0b0d0e;
  overflow: hidden;
}
@media (max-width: 719px) {
  .banner-item {
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: none;
  }
}
.banner-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 桌面：左侧压暗，保证文案可读 */
.banner-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, .93) 0%,
    rgba(0, 0, 0, .72) 30%,
    rgba(0, 0, 0, .18) 58%,
    transparent 78%);
}
@media (max-width: 719px) {
  .banner-item::after {
    background: linear-gradient(to top,
      rgba(0, 0, 0, .96) 0%,
      rgba(0, 0, 0, .55) 38%,
      transparent 68%);
  }
}

.banner-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(20px, 5vw, 56px);
  max-width: 560px;
}
@media (max-width: 719px) {
  .banner-body {
    justify-content: flex-end;
    max-width: none;
    padding: 20px 18px 22px;
  }
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 14px;
}
.banner-badge::before { content: "✦"; font-size: 9px; }

.banner-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .8);
}
.banner-sub {
  margin: 0 0 20px;
  font-size: clamp(12.5px, 1.1vw, 14px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .74);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.banner-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .58);
}
.banner-meta::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .14s var(--ease);
}
.banner-btn:active { transform: scale(.97); }
.banner-btn.primary {
  background: linear-gradient(135deg, #ffd166, var(--gold));
  color: #241604;
  box-shadow: 0 6px 26px rgba(245, 185, 58, .35);
}
.banner-btn.ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  backdrop-filter: blur(10px);
}

/* 指示点：右下角 */
.banner-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 5px;
}
.banner-dots i {
  width: 6px; height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
  transition: width .22s var(--ease), background .22s var(--ease);
}
.banner-dots i.on {
  width: 20px;
  background: var(--gold);
}
@media (max-width: 719px) {
  .banner-dots { right: 16px; bottom: 16px; }
}

/* ============================================================
   横向卡片行
   ============================================================ */
.row-sec { margin-top: 2px; }
.row-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 20px 16px 11px;
}
.row-head::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(245, 185, 58, .25));
}
.row-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.row-head .more {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-mute);
}
.row-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px 6px;
  -webkit-overflow-scrolling: touch;
}
.row-scroll::-webkit-scrollbar { display: none; }

.rcard {
  /* 与网格同宽：移动 148px / 桌面 220px；项数不足时用「看全部」卡补满 */
  flex: 0 0 148px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset,
              0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .16s var(--ease);
}

@media (min-width: 880px) {
  .rcard { flex: 0 0 220px; }
}
.rcard:active { transform: scale(.965); }

/* 行尾「看全部」占位卡：补齐一行的剩余宽度 */
.rcard-more {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, .025);
  border: 1px dashed var(--line-strong);
  box-shadow: none;
  color: var(--text-mute);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .2px;
  text-align: center;
}
.rcard-more .arrow {
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}
.rcard-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0b0d0e;
  overflow: hidden;
}
.rcard-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.rcard-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .7) 0%, transparent 42%);
}
.rcard-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
}
.rcard-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 30px 10px 11px;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   继续观看（横版缩略图 + 播放 + 进度）
   ============================================================ */
.continue-row {
  display: flex;
  gap: 12px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.continue-row::-webkit-scrollbar { display: none; }
.continue-card {
  flex: 0 0 200px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset,
              0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .16s var(--ease);
}

@media (min-width: 880px) {
  .continue-card { flex: 0 0 280px; }
}
.continue-card:active { transform: scale(.97); }
.continue-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d0e;
  overflow: hidden;
}
.continue-cover img { width: 100%; height: 100%; object-fit: cover; }
.continue-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 55%);
}
/* 中央播放图标 */
.continue-cover::before {
  content: "▶";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  padding-left: 2px;
}
.continue-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, .18);
}
.continue-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffd166);
  border-radius: 0 2px 2px 0;
}
.continue-label {
  padding: 8px 10px 10px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.continue-label small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-mute);
  margin-top: 3px;
}

/* ============================================================
   分类：文字 tab（不是胶囊）
   ============================================================ */
.filters {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 13px 14px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mute);
  white-space: nowrap;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { color: var(--text-dim); }
.chip[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ============================================================
   剧卡网格
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 12px;
  padding: 8px 16px 40px;
}
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 880px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}

.card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .045) inset,
              0 8px 22px rgba(0, 0, 0, .4);
  transition: transform .17s var(--ease);
  animation: rise .34s var(--ease) both;
}
.card:active { transform: scale(.972); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0b0d0e;
  overflow: hidden;
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.card:active .card-cover img { transform: scale(1.04); }
/* 底部压暗，给标题当底 */
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .92) 0%,
    rgba(0, 0, 0, .45) 22%,
    transparent 46%);
}
.card-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--gold);
  backdrop-filter: blur(8px);
}
.card-ep {
  position: absolute;
  top: 8px; right: 9px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
/* 标题压在图上，不带白底条 */
.card-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 30px 9px 26px;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   骨架 / 空态
   ============================================================ */
.empty {
  padding: 70px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
}
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, #101315 24%, #191d20 50%, #101315 76%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
  aspect-ratio: 3 / 4;
}
@keyframes shimmer {
  from { background-position: 220% 0; }
  to   { background-position: -220% 0; }
}

/* ============================================================
   播放页
   ============================================================ */
.player-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  z-index: 5;
}
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.65) 100%);
}
.player-cover .play-big {
  position: relative;
  z-index: 2;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #ffd166, var(--gold));
  color: #241604;
  font-size: 27px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 38px rgba(245, 185, 58, .45),
              0 0 0 8px rgba(245, 185, 58, .1);
  transition: transform .16s var(--ease);
}
.player-cover .play-big:active { transform: scale(.93); }

.subtitle-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-mute);
}
.subtitle-bar[hidden] { display: none; }
.subtitle-bar select {
  flex: 1;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
}

.drama-head {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}
.drama-head h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.02em;
}
.drama-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 11px;
}
.drama-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 9px;
  padding: 0 16px calc(var(--tabbar-h) + var(--safe-b) + 40px);
}
.ep {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 750;
  color: var(--text-dim);
  transition: all .15s var(--ease);
}
.ep:active { transform: scale(.94); }
.ep.is-free {
  border-color: rgba(55, 189, 133, .42);
  color: var(--green);
  background: rgba(55, 189, 133, .08);
}
.ep.is-current {
  background: linear-gradient(135deg, #ffd166, var(--gold));
  border-color: transparent;
  color: #241604;
  box-shadow: 0 3px 16px rgba(245, 185, 58, .32);
}
.ep.is-locked { color: var(--text-mute); }
.ep-lock {
  position: absolute;
  right: 4px; bottom: 3px;
  font-size: 9px;
  opacity: .8;
}
.ep-label {
  position: absolute;
  top: 3px; left: 5px;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .3px;
  opacity: .8;
}

/* ============================================================
   付费墙
   ============================================================ */
.paywall {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.paywall[hidden] { display: none; }
.paywall-sheet {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(to bottom, var(--bg-elev), #0a0c0d);
  border-radius: 24px 24px 0 0;
  padding: 26px 20px calc(26px + var(--safe-b));
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .7);
  animation: sheetUp .28s var(--ease);
}
@keyframes sheetUp {
  from { transform: translateY(36px); opacity: .5; }
  to   { transform: translateY(0); opacity: 1; }
}
.paywall-sheet h2 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.paywall-sheet p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 20px;
}
.price-big {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--gold);
}
.price-note { font-size: 12px; color: var(--text-mute); }

.btn-primary {
  display: block;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffd166, var(--gold));
  color: #241604;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-align: center;
  box-shadow: 0 6px 24px rgba(245, 185, 58, .3);
  transition: transform .14s var(--ease);
}
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .5; box-shadow: none; }
.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition: transform .14s var(--ease);
}
.btn-secondary:active { transform: scale(.98); }
.paywall-error {
  margin: 11px 0 0;
  font-size: 12.5px;
  color: var(--red);
  text-align: center;
  min-height: 1em;
}

/* ============================================================
   登录弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
  animation: rise .26s var(--ease);
}
.modal-card h2 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.modal-card .sub {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.field {
  display: block;
  margin-bottom: 13px;
}
.field span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-mute);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #060708;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s var(--ease);
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 58, .13);
}
.field input.code {
  text-align: center;
  font-size: 25px;
  letter-spacing: 11px;
  font-weight: 800;
  padding-left: 22px;
}
.modal-error {
  margin: 7px 0 11px;
  font-size: 12.5px;
  color: var(--red);
  min-height: 1em;
}
.modal-link {
  display: block;
  margin-top: 15px;
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: 12.5px;
  text-align: center;
  width: 100%;
}
.modal-hint {
  margin: 13px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-mute);
  text-align: center;
}

/* ============================================================
   我的
   ============================================================ */
.balance-card {
  position: relative;
  margin: 18px 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 90% 0%, rgba(245, 185, 58, .16) 0%, transparent 55%),
    linear-gradient(150deg, #191d20 0%, #0d0f11 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.balance-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.balance-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--gold);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.balance-num::after {
  content: "◈";
  font-size: 18px;
  font-weight: 700;
  opacity: .65;
}
.balance-sub {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.packs { display: grid; gap: 11px; padding: 0 16px; }
.pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
  transition: border-color .16s var(--ease);
}
.pack:active { border-color: var(--gold-line); }
.pack-left strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--gold);
}
.pack-left small {
  display: block;
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 3px;
}
.pack-right { text-align: right; }
.pack-right b { font-size: 16px; font-weight: 750; }
.pack-right small {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
}

.logs { padding: 0 16px calc(var(--tabbar-h) + var(--safe-b) + 40px); }
.log {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.log small { color: var(--text-mute); font-size: 11.5px; }
.log .delta.plus { color: var(--green); font-weight: 700; }
.log .delta.minus { color: var(--red); font-weight: 700; }

/* ============================================================
   底部 Tab Bar（仅移动端）
   ============================================================ */
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(6, 7, 8, .9);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-around;
}
@media (max-width: 719px) {
  .tabbar { display: flex; }
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--text-mute);
  transition: color .15s var(--ease);
}
.tabbar-item .ico {
  font-size: 17px;
  line-height: 1;
}
.tabbar-item.active { color: var(--gold); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px);
  transform: translateX(-50%);
  z-index: 100;
  max-width: 88vw;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(24, 28, 31, .97);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .6);
  animation: rise .2s var(--ease);
}
.toast[hidden] { display: none; }
.toast.ok { color: var(--green); }
.toast.err { color: var(--red); }

/* ============================================================
   支付页（pay.html 内联样式补充）
   ============================================================ */
.pay-wrap { max-width: 420px; margin: 0 auto; padding: 26px 20px calc(28px + var(--safe-b)); }
.pay-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
}
.pay-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
}
.pay-row + .pay-row { border-top: 1px solid var(--line); }
.pay-row .k { color: var(--text-mute); }
.pay-row .v { font-weight: 700; }
.pay-total .v { color: var(--gold); font-size: 21px; font-weight: 900; }
.pay-note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-mute);
}
.pay-status {
  margin: 18px 0 0;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: #060708;
  font-size: 13px;
  text-align: center;
}
.pay-status.ok { color: var(--green); border: 1px solid rgba(55, 189, 133, .35); }
.pay-status.err { color: var(--red); border: 1px solid rgba(240, 80, 60, .35); }
.dev-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 15px;
}

/* ============================================================
   底部 Footer
   ============================================================ */
.footer {
  margin-top: 40px;
  padding: 32px 16px calc(var(--tabbar-h) + var(--safe-b) + 32px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.footer-tagline {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .15s var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-mute);
}

/* 滚动到底时的加载指示 */
.list-end {
  grid-column: 1 / -1;
  padding: 26px 0 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-mute);
}

/* ============================================================
   页头导航
   ============================================================ */
.nav-links {
  display: none;
  gap: 2px;
  margin-left: 6px;
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.nav-links a:hover {
  background: rgba(255, 255, 255, .055);
  color: var(--text);
}
.nav-links a.active { color: var(--text); }

/* 桌面：假搜索框，点击进搜索页 */
.search-btn {
  display: none;
  align-items: center;
  gap: 9px;
  min-width: 190px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 13px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
@media (min-width: 860px) {
  .search-btn { display: inline-flex; }
}
.search-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .07);
}
.search-btn .ico { font-size: 14px; color: var(--text-dim); }

/* 移动：图标 */
.search-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-dim);
}
@media (min-width: 860px) {
  .search-icon { display: none; }
}

/* ============================================================
   搜索页
   ============================================================ */
.search-head {
  padding: 18px 16px 6px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-strong);
  transition: border-color .15s var(--ease);
}
.search-box:focus-within { border-color: var(--gold); }
.search-box .search-ico { font-size: 17px; color: var(--text-mute); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
}
.search-box input::placeholder { color: var(--text-mute); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear {
  border: 0;
  background: rgba(255, 255, 255, .09);
  color: var(--text-dim);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.search-tips {
  padding: 10px 6px 0;
  font-size: 12px;
  color: var(--text-mute);
}

/* ============================================================
   页脚（三列）
   ============================================================ */
.footer {
  margin-top: 44px;
  padding: 36px 16px calc(var(--tabbar-h) + var(--safe-b) + 36px);
  border-top: 1px solid var(--line);
  text-align: left;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  max-width: 720px;
}
.footer-brand-col { flex: 1 1 200px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.footer-tagline {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 240px;
}
.footer-col h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .14s var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.footer-copy {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-mute);
}
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-mute);
}

/* 页头品牌图标（用 App 图标，不用字符） */
.brand-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 2px 10px rgba(245, 185, 58, .22);
}

/* ============================================================
   语言切换器
   ============================================================ */
.footer-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.footer-lang-ico {
  font-size: 13px;
  opacity: .7;
}
.lang-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}
.lang-opt {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-mute);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.lang-opt:hover { color: var(--text-dim); }
.lang-opt.on {
  background: var(--gold);
  color: #241604;
}

/* ============================================================
   页脚：移动端两列网格，桌面四列横排
   ============================================================ */
@media (max-width: 719px) {
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
    max-width: none;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    flex: none;
  }
  /* Contato 独占一行 */
  .footer-brand-col + .footer-col + .footer-col + .footer-col {
    grid-column: 1 / -1;
  }
  .footer-col h3 { margin-bottom: 10px; }
  .footer-col a, .footer-col span {
    margin-bottom: 8px;
    font-size: 13.5px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 26px;
    padding-top: 18px;
    max-width: none;
  }
  .footer-lang-wrap { align-self: stretch; }
  .lang-opt { padding: 6px 14px; font-size: 12px; }
}

/* 桌面：品牌块固定宽，三列并排 */
@media (min-width: 720px) {
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
  }
  .footer-brand-col { flex: 0 0 220px; }
  .footer-col { flex: 0 0 auto; min-width: 120px; }
}

/* ============================================================
   个人中心
   ============================================================ */
.guest-hero {
  max-width: 380px;
  margin: 0 auto;
  padding: 56px 24px 34px;
  text-align: center;
}
.guest-icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  margin: 0 auto 18px;
  box-shadow: 0 14px 44px rgba(245, 185, 58, .25);
}
.guest-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.guest-hero p {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.guest-hero .btn-primary { max-width: 260px; margin: 0 auto; }
.guest-note {
  margin: 14px 0 0 !important;
  font-size: 11.5px !important;
  color: var(--text-mute) !important;
}

/* 账户卡 */
.acct-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.acct-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  flex: 0 0 auto;
}
.acct-info { flex: 1; min-width: 0; }
.acct-email {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-since {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 2px;
}

/* 统计行 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 16px 4px;
}
.stat {
  padding: 14px 10px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-align: center;
}
.stat .v {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.stat .k {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: .2px;
}

/* 片库网格 */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 11px;
  padding: 0 16px 8px;
}
@media (min-width: 720px) {
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* 分段控制 */
.seg {
  display: inline-flex;
  gap: 3px;
  margin: 0 16px 12px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}
.seg button {
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-mute);
  font-size: 12.5px;
  font-weight: 700;
}
.seg button.on {
  background: var(--gold);
  color: #241604;
}

/* ============================================================
   帮助中心 / 工单
   ============================================================ */
.page-title {
  margin: 20px 16px 4px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.help-sec { margin-bottom: 30px; }

/* FAQ 折叠 */
.faq {
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  padding: 15px 16px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-weight: 700;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* 工单表单 */
.ticket-form {
  margin: 0 16px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.ticket-form .field { margin-bottom: 14px; }

/* 工单列表 */
.ticket {
  margin: 0 16px 10px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ticket-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.ticket-head > div:first-child { flex: 1; min-width: 0; }
.ticket-subject {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-head small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-mute);
}
.ticket-status {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.ticket-status.open { background: rgba(245,185,58,.14); color: var(--gold); }
.ticket-status.replied { background: rgba(80,200,140,.14); color: #4dd08c; }
.ticket-status.closed { background: rgba(255,255,255,.06); color: var(--text-mute); }

.ticket-thread {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--line);
}
.msg { margin-top: 12px; }
.msg-body {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user .msg-body { background: rgba(255,255,255,.055); }
.msg.staff .msg-body {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
}
.msg small {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--text-mute);
}
.msg-reply { margin-top: 14px; }
.msg-reply textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}
.msg-reply textarea:focus { outline: none; border-color: var(--gold); }

/* ============================================================
   设置行
   ============================================================ */
.settings {
  margin: 0 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  text-align: left;
  font-family: inherit;
}
.setting-row:last-child { border-bottom: 0; }
.setting-row:hover { background: rgba(255, 255, 255, .025); }
.setting-label { flex: 1; min-width: 0; display: block; }
.setting-label b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.setting-label small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-mute);
}
.setting-arrow {
  flex: 0 0 auto;
  font-size: 19px;
  color: var(--text-mute);
}
.setting-row.danger { color: #f0503c; }
.setting-row.danger .setting-label small { color: rgba(240, 80, 60, .65); }

/* 开关 */
.switch {
  flex: 0 0 auto;
  appearance: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  position: relative;
  cursor: pointer;
  transition: background .18s var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s var(--ease);
}
.switch:checked { background: var(--gold); }
.switch:checked::after { transform: translateX(18px); }
