/* ================================================================
   LOSFER 默认模板 v2 · 简约放映厅
   设计令牌驱动：暗色（默认，影院） / 浅色（日场）仅换变量
   RTL 优先（逻辑属性） · 移动优先 · 4px 间距基准
   ================================================================ */

@font-face {
  font-family: "ALKATIP Asliya";
  src: url("alkatip-asliya.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ---------------- 令牌：暗色（影院） ---------------- */
:root {
  --bg: #0e0f13;
  --bg-glass: rgba(14, 15, 19, .82);
  --surface: #15171d;
  --surface-2: #1c1f27;
  --surface-3: #232734;
  --line: #262a34;
  --line-soft: #1e222b;
  --ink: #f3f4f8;
  --ink-2: #c6cad6;
  --muted: #9aa1b4;
  --faint: #6b7284;
  --accent: #e4345c;
  --accent-strong: #f4516f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(228, 52, 92, .14);
  --accent-line: rgba(228, 52, 92, .38);
  --ok: #34c98e;
  --warn: #e8a13c;
  --danger: #f4516f;
  --danger-soft: rgba(244, 81, 111, .12);
  --warn-soft: rgba(232, 161, 60, .12);
  --shadow-1: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-2: 0 12px 40px rgba(0, 0, 0, .5);
  --scrim: linear-gradient(0deg, rgba(10, 10, 14, .92) 0%, rgba(10, 10, 14, .45) 46%, rgba(10, 10, 14, 0) 78%);

  --r-s: 8px;
  --r: 12px;
  --r-l: 16px;
  --r-pill: 999px;

  --t-fast: 150ms;
  --t: 260ms;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --nav-h: 58px;
  --tab-h: 58px;
  --wrap: 1200px;

  --font: "ALKATIP Asliya", "Noto Naskh Arabic", "UKIJ Tuz Tom", "Microsoft Uighur", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

/* ---------------- 令牌：浅色（日场） ---------------- */
html[data-theme="light"] {
  --bg: #f6f5f2;
  --bg-glass: rgba(246, 245, 242, .85);
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --surface-3: #e7e4de;
  --line: #e3e0d9;
  --line-soft: #ebe8e2;
  --ink: #1a1c22;
  --ink-2: #3a3e48;
  --muted: #61656f;
  --faint: #90939c;
  --accent: #cf2457;
  --accent-strong: #e0305f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(207, 36, 87, .09);
  --accent-line: rgba(207, 36, 87, .32);
  --ok: #189a68;
  --warn: #b26e14;
  --danger: #d3294d;
  --danger-soft: rgba(211, 41, 77, .08);
  --warn-soft: rgba(178, 110, 20, .1);
  --shadow-1: 0 2px 10px rgba(26, 28, 34, .07);
  --shadow-2: 0 14px 44px rgba(26, 28, 34, .14);
  --scrim: linear-gradient(0deg, rgba(20, 20, 24, .88) 0%, rgba(20, 20, 24, .4) 46%, rgba(20, 20, 24, 0) 78%);
}

/* ---------------- 基础 ---------------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(14px, .55vw + 12.6px, 16px);
  line-height: 1.75;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: fixed; inset-inline-start: 12px; top: -48px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 16px; border-radius: var(--r-s);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus-visible { top: 10px; }

.mono, .mono * { font-family: var(--font-num); }
.only-mobile { display: inline-flex; }
@media (min-width: 768px) { .only-mobile { display: none !important; } }

/* 水印 */
.wm { position: fixed; inset: 0; z-index: 60; pointer-events: none; background-repeat: repeat; }

/* ---------------- 布局容器 ---------------- */
.main { min-height: calc(100vh - var(--nav-h) - 120px); }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(14px, 2.4vw, 28px) clamp(14px, 2.6vw, 24px) 48px;
}

/* 区块标题：起始侧一枚玫红短划，克制而统一 */
.sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(16px, 1.1vw + 12.4px, 20px);
  font-weight: 700; line-height: 1.4;
  margin-block: 4px 14px;
}
.sec-title::before {
  content: ""; inline-size: 4px; block-size: 1.05em; border-radius: 2px;
  background: var(--accent); flex: none;
}
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 4px 14px; }
.sec-head .sec-title { margin: 0; }
.more-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--muted); border-radius: var(--r-pill);
  padding: 4px 10px; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.more-link:hover { color: var(--ink); background: var(--surface-2); }
[dir="rtl"] .more-link svg { transform: scaleX(-1); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 20px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 15px;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .i { width: 17px; height: 17px; flex: none; }
.btn-sm { min-height: 36px; padding: 5px 14px; font-size: 14px; }
.btn-cta { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.btn-cta:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 42px; height: 42px; border-radius: var(--r-pill); flex: none;
  color: var(--muted);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn.sq { width: 40px; height: 40px; border-radius: var(--r-s); border: 1px solid var(--line); }
.icon-btn.sq svg { width: 18px; height: 18px; }
.icon-btn[disabled] { opacity: .4; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--wrap); margin-inline: auto;
  height: var(--nav-h); padding-inline: clamp(14px, 2.6vw, 24px);
  display: flex; align-items: center; gap: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; min-width: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #7a1030));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); box-shadow: var(--shadow-1);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }

.nav-links { display: none; gap: 2px; }
@media (min-width: 640px) { .nav-links { display: flex; } }
.nav-a {
  padding: 7px 14px; border-radius: var(--r-pill);
  color: var(--muted); font-weight: 700; font-size: 15px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-a:hover { color: var(--ink); }
.nav-a.on { color: var(--ink); background: var(--surface-2); }

.nav-search {
  display: none; align-items: center; gap: 8px;
  flex: 1; min-width: 0; max-width: 420px;
  height: 40px; padding-inline: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--muted);
  transition: border-color var(--t-fast) var(--ease);
}
.nav-search:focus-within { border-color: var(--accent-line); color: var(--ink-2); }
@media (min-width: 640px) { .nav-search { display: flex; } }
.nav-search-ico { width: 17px; height: 17px; flex: none; }
.nav-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); }
.nav-search input::placeholder { color: var(--faint); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
@media (max-width: 639px) { .nav-actions { gap: 4px; } }

.src-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; max-width: 168px; padding-inline: 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink-2); font-size: 13.5px; font-weight: 700;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.src-btn:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.src-btn svg { width: 17px; height: 17px; flex: none; }
.src-btn-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 手机端：品牌让位给资源站胶囊按钮（带站名，显示在 navbar 行首=右边） */
.nav-src { display: none; }
@media (max-width: 767px) {
  .brand { display: none; }
  .nav-src {
    display: inline-flex; height: 38px; max-width: 58vw; padding-inline: 12px;
    background: var(--surface); border: 1px solid var(--line);
  }
  .nav-actions .src-btn { display: none; }
}

/* 主题按钮：暗色显月亮，浅色显太阳 */
.theme-btn .ico-sun { display: none; }
html[data-theme="light"] .theme-btn .ico-sun { display: block; }
html[data-theme="light"] .theme-btn .ico-moon { display: none; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding-inline: 6px 12px; border-radius: var(--r-pill);
  transition: background-color var(--t-fast) var(--ease);
}
.user-chip:hover { background: var(--surface-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.avatar.xl { width: 56px; height: 56px; font-size: 22px; }
.user-name { font-size: 14px; font-weight: 700; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .user-name { display: none; } .user-chip { padding-inline: 4px; } }

/* ---------------- 底部 TabBar（移动端，真透明液态玻璃胶囊） ---------------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: min(92vw, 380px); height: 64px;
  display: flex; align-items: center; justify-content: space-around; gap: 4px;
  padding: 0 10px; border-radius: 999px;
  background: rgba(30, 32, 40, .34);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}
html[data-theme="light"] .tabbar {
  background: rgba(255, 255, 255, .45);
  border-color: rgba(0, 0, 0, .07);
  box-shadow: 0 12px 34px rgba(20, 22, 30, .16);
}
@media (min-width: 768px) { .tabbar { display: none; } }
.tab {
  flex: 1; max-width: 110px; height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 11px; font-weight: 700;
  border-radius: 999px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.tab:active { transform: scale(.94); }
.tab svg { width: 21px; height: 21px; }
.tab.on { color: var(--accent); background: rgba(255, 255, 255, .12); }
html[data-theme="light"] .tab.on { background: rgba(0, 0, 0, .06); }

/* ---------------- 液态玻璃弹窗（GooseHyperGlass，手机端公告/广告） ---------------- */
.lg-dialog-wrap {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 8, 12, .45);
  -webkit-backdrop-filter: blur(8px) saturate(160%); backdrop-filter: blur(8px) saturate(160%);
  animation: fadeIn var(--t-fast) var(--ease);
}
.lg-dialog-wrap liquid-glass {
  width: min(86vw, 380px); height: min(58dvh, 300px);
  border-radius: 28px; overflow: hidden; display: block;
}

/* ---------------- 手机端 iOS 玻璃质感 ---------------- */
@media (max-width: 767px) {
  .nav {
    background: color-mix(in srgb, var(--bg) 68%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  }
  .overlay {
    background: rgba(8, 8, 12, .4);
    -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  }
  .sheet {
    position: relative;
    border-radius: 26px 26px 0 0;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
    padding-top: 26px;
  }
  .sheet::before {
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px; border-radius: 2px; background: var(--line);
  }
  .toast {
    background: color-mix(in srgb, var(--surface-3) 86%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  }
  .source-item, .chip, .src-chip, .ep, .ep-pick, .cat-cell { border-radius: 14px; }
  .btn { border-radius: 22px; }
}

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px 16px 24px;
  text-align: center; color: var(--faint); font-size: 13px;
}
@media (max-width: 767px) { .footer { padding-bottom: 14px; } }
.footer-brand { font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.footer-links { display: flex; justify-content: center; gap: 10px; margin-bottom: 6px; }
.footer-links a:hover { color: var(--ink); }

/* ---------------- 弹层 / 抽屉 ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(8, 8, 12, .6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn var(--t-fast) var(--ease);
}
@media (min-width: 640px) { .overlay { align-items: center; } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 520px; max-height: min(78dvh, 640px);
  overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-2);
  animation: slideUp var(--t) var(--ease);
}
@media (min-width: 640px) { .sheet { border-radius: var(--r-l); animation: pop var(--t) var(--ease); } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.sheet-head h3 { font-size: 17px; font-weight: 700; }

.source-list { display: grid; gap: 6px; margin-bottom: 10px; }
.source-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 8px 14px;
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  font-weight: 700; text-align: start; font-size: 15px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.source-item:hover { border-color: var(--accent-line); }
.source-item.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.source-item .def {
  font-size: 11px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 1px 8px; margin-inline-start: 8px;
}
.source-item .check { color: var(--accent); font-weight: 700; }
/* VIP 站点（当前用户非会员）：灰色不可选，点击弹开通提示 */
.source-item.vip-locked {
  opacity: .55; cursor: not-allowed;
  background: transparent; border-style: dashed;
}
.source-item.vip-locked:hover { border-color: var(--line-soft); }
.source-item .vip-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  color: #8a6a00; background: linear-gradient(135deg, #ffe9a8, #f3c53d);
  border-radius: var(--r-pill); padding: 1px 7px; margin-inline-start: 8px;
}
.source-item .vip-hint {
  font-size: 11.5px; font-weight: 600; color: var(--faint); text-align: end;
}

.hint { color: var(--faint); font-size: 12.5px; line-height: 1.7; }
.hint.center { text-align: center; }
.lbl { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin: 14px 0 6px; }
.form-msg { min-height: 20px; font-size: 13px; color: var(--danger); margin: 6px 0 2px; }
.form-msg.ok { color: var(--ok); }

/* ---------------- 公告条（导航上方） ---------------- */
.notice-bar { background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); }
.notice-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  height: 38px; padding-inline: clamp(14px, 2.6vw, 24px);
  color: var(--accent); font-size: 13.5px; font-weight: 700;
  text-align: start; overflow: hidden;
}
.ni-badge { flex: none; font-size: 12px; }
.ni-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ni-text.in { animation: noticeIn 320ms var(--ease); }
@keyframes noticeIn { from { transform: translateY(10px); opacity: 0; } }
.notice-meta { color: var(--faint); font-size: 12px; margin-top: 12px; text-align: end; }
.notice-hint { color: var(--faint); font-size: 12px; margin-top: 10px; text-align: center; }
.icon-btn.notice-wait { opacity: .45; cursor: not-allowed; }

/* markdown 公告正文 */
.md-body { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; overflow-wrap: anywhere; }
.md-body h3, .md-body h4, .md-body h5, .md-body h6 { color: var(--ink); margin: 16px 0 6px; line-height: 1.5; }
.md-body h3 { font-size: 17px; }
.md-body h4 { font-size: 15.5px; }
.md-body h5, .md-body h6 { font-size: 14.5px; }
.md-body p { margin: 8px 0; }
.md-body ul, .md-body ol { margin: 8px 0; padding-inline-start: 22px; list-style: disc; }
.md-body ol { list-style: decimal; }
.md-body li { margin: 3px 0; }
.md-body a { color: var(--accent); text-decoration: underline; }
.md-body code {
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 5px;
  padding: 1px 6px; font-family: var(--font-num); font-size: 12.5px;
}
.md-body pre {
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 10px 12px; overflow-x: auto; direction: ltr; text-align: left;
}
.md-body pre code { background: none; border: 0; padding: 0; }
.md-body blockquote {
  border-inline-start: 3px solid var(--accent-line); background: var(--surface-2);
  border-radius: 0 var(--r-s) var(--r-s) 0; padding: 8px 12px; margin: 8px 0; color: var(--muted);
}
.md-body hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------------- 提示 / 通知 ---------------- */
.notice {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  color: var(--muted); font-size: 14px; margin-block: 12px;
}
.notice.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }

.toast-wrap {
  position: fixed; inset-inline: 0; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 150; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
@media (min-width: 768px) { .toast-wrap { bottom: 28px; } }
.toast {
  display: flex; align-items: center; gap: 8px;
  max-width: min(92vw, 520px);
  background: var(--surface-3); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 9px 18px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-2);
  animation: toastIn var(--t) var(--ease);
}
.toast.err { border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.toast .t-act {
  color: var(--accent); font-weight: 700; pointer-events: auto;
  padding: 2px 8px; border-radius: var(--r-pill); flex: none;
}
.toast .t-act:hover { background: var(--accent-soft); }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } }

/* ---------------- 首页 Hero：Banner + 分类面板 ---------------- */
.hero { display: grid; gap: 14px; margin-bottom: clamp(20px, 3vw, 32px); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; } }
.hero .banner { margin-bottom: 0; }
/* 分类面板：桌面端在 banner 一侧（RTL 下居左），一行三个；移动端在 banner 下方 */
.hero-cats {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 12px;
}
.hero-cats-head {
  display: flex; align-items: center; gap: 8px; flex: none;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.4;
}
.hero-cats-head::before {
  content: ""; inline-size: 4px; block-size: 1em; border-radius: 2px;
  background: var(--accent); flex: none;
}
.cat-grid {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
  align-content: start;
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-cell {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 4px 6px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.cat-cell:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* ---------------- 首页 Banner ---------------- */
.banner {
  position: relative; overflow: hidden;
  border-radius: var(--r-l);
  aspect-ratio: 16 / 8.2;
  max-height: 430px;
  background: var(--surface-2);
}
@media (max-width: 479px) { .banner { aspect-ratio: 16 / 11; } }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--ease), visibility 600ms;
}
.banner-slide.on { opacity: 1; visibility: visible; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-shade { position: absolute; inset: 0; background: var(--scrim); }
.banner-meta {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: clamp(14px, 3vw, 28px);
  padding-bottom: clamp(26px, 3.4vw, 34px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.banner-text h2 {
  color: #fff;
  font-size: clamp(19px, 2.6vw, 32px); font-weight: 700; line-height: 1.45;
  margin-top: 8px;
}
.banner-meta .btn { flex: none; }
.badge-cta {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 2px 10px;
}
.banner-dots {
  position: absolute; bottom: 12px; inset-inline-start: 0; inset-inline-end: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
  pointer-events: none;
}
.dot {
  width: 18px; height: 4px; border-radius: 2px; pointer-events: auto;
  background: rgba(255, 255, 255, .35);
  transition: background-color var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}
.dot.on { background: #fff; width: 26px; }

/* ---------------- 横向卡片流（热播 / 分类分栏） ---------------- */
.rail-sec, .cat-sec { margin-bottom: clamp(24px, 3.4vw, 40px); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 128px;
  gap: 12px; overflow-x: auto; padding: 2px;
  scrollbar-width: none; align-items: start;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .rail { grid-auto-columns: 150px; gap: 14px; } }

.rail-card { position: relative; display: block; min-width: 0; }
/* 必须 block：span 默认 inline 会让 aspect-ratio 失效，海报高度随图片原始比例乱跳，
   卡片被撑出 .rail 的可视高度（纵向滚动、标题被裁） */
.rail-card .rc-pic {
  display: block;
  position: relative; aspect-ratio: 2 / 2.9; border-radius: var(--r-l);
  overflow: hidden; background: var(--surface-2); margin-bottom: 7px;
}
.rail-card .rc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t) var(--ease); }
.rail-card:hover .rc-pic img { transform: scale(1.05); }
/* 行高 2：ALKATIP 字形上下延伸大，行高过小会被 line-clamp 切字 */
.rail-card p {
  margin-top: 2px; font-size: 13.5px; line-height: 1.6;
  /* 单行省略号：不依赖 line-clamp，任何浏览器都不会切字/换行撑高卡片 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 2;
  min-width: 26px; height: 26px; padding-inline: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(12, 12, 16, .72); color: #fff;
  font-family: var(--font-num); font-weight: 700; font-size: 13px;
  border-start-start-radius: var(--r-l);
  border-end-end-radius: var(--r-s);
}
.rank.hot { background: var(--accent); }
.plays { display: block; font-size: 11.5px; color: var(--faint); font-family: var(--font-num); }
.no-pic {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 20px;
}

/* 分类分栏：每类一行 */
.sec-row-head { display: flex; align-items: center; justify-content: space-between; margin-block: 4px 12px; }
.sec-row-head .sec-title { margin: 0; }
.src-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.src-chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 6px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.src-chip small { color: var(--faint); font-family: var(--font-num); font-size: 11.5px; }
.src-chip:hover { border-color: var(--accent-line); color: var(--ink); background: var(--accent-soft); }

/* ---------------- 分类 chips 行 ---------------- */
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px;
  margin-block: 4px 20px; scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center;
  min-height: 40px; padding: 6px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--accent-line); color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------------- 海报网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 10px;
}
@media (min-width: 480px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 26px 12px; } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(7, 1fr); } }

.vcard { display: block; min-width: 0; }
/* 同 rc-pic：必须 block，aspect-ratio 才生效，行高稳定不被图片原始比例撑爆 */
.vpic {
  display: block;
  position: relative; aspect-ratio: 2 / 2.9; border-radius: var(--r-l);
  overflow: hidden; background: var(--surface-2); margin-bottom: 8px;
}
.vpic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t) var(--ease); }
.vcard:hover .vpic img { transform: scale(1.06); }
.vcard p {
  margin-top: 2px; font-size: 13.5px; line-height: 1.6;
  /* 自然换行，不用 line-clamp：标题永远完整显示，行框足够容纳维文字形 */
}
.vtag {
  position: absolute; bottom: 6px; inset-inline-start: 6px;
  max-width: calc(100% - 12px);
  background: rgba(10, 10, 14, .78); color: #fff;
  font-size: 11px; font-weight: 700; font-family: var(--font-num);
  border-radius: 8px; padding: 1.5px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.more-wrap { display: flex; justify-content: center; margin-top: 24px; }

/* ---------------- 空状态 ---------------- */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 44px 16px; text-align: center; color: var(--faint);
}
.empty svg { width: 40px; height: 40px; opacity: .5; }
.empty p { font-size: 14px; }

/* ---------------- 页头 / 面包屑 / 分页 ---------------- */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(20px, 1.6vw + 14.4px, 28px); line-height: 1.4; }
.page-head .sub { color: var(--muted); font-size: 13.5px; }
.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint); margin-bottom: 14px;
}
.crumbs a:hover { color: var(--accent); }
.pager {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.pager .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.pg {
  min-width: 40px; height: 40px; padding-inline: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-s);
  font-family: var(--font-num); font-size: 14px; color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.pg:hover { border-color: var(--accent-line); color: var(--ink); }
.pg.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------------- 详情页：播放器 ---------------- */
.detail-wrap { max-width: 1280px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; font-weight: 700;
  padding: 6px 12px 6px 4px; margin-bottom: 12px; border-radius: var(--r-s);
  transition: color var(--t-fast) var(--ease);
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 17px; height: 17px; }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }

.detail-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.detail-grid > * { min-width: 0; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 330px; } }

.player-box {
  position: relative;
  background: #000; border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow-1);
}
.video-wrap { position: relative; aspect-ratio: 16 / 9; }
#player { position: absolute; inset: 0; width: 100%; height: 100%; direction: ltr; }

.player-state {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.spin {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.play-error {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(10, 10, 14, .82); color: #ffb9c6;
  text-align: center; padding: 16px; font-size: 14px;
}
.play-error .btn { min-height: 38px; padding: 5px 18px; font-size: 14px; }

/* 播放器功能条 */
.p-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  direction: ltr;
}
.p-group { display: flex; align-items: center; gap: 4px; min-width: 0; }
.p-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 4px 10px; border-radius: var(--r-s);
  color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.p-btn:hover { background: var(--surface-3); color: var(--ink); }
.p-btn:disabled { opacity: .38; }
.p-btn svg { width: 17px; height: 17px; flex: none; }
.p-btn.on { color: var(--accent); }

/* 影院模式仅桌面有意义；小屏隐藏入口，网页全屏已覆盖 */
@media (max-width: 1023px) { #theaterBtn { display: none; } }
/* 手机端工具条压缩：全部控件保持可见可达 */
@media (max-width: 640px) {
  .p-toolbar { padding: 6px; gap: 4px; flex-wrap: wrap; }
  .p-group { gap: 2px; }
  .p-btn { height: 34px; padding: 4px 7px; }
  .p-switch { height: 34px; padding-inline: 6px; }
  .sw-label { display: none; }
  #webfsBtn span { display: none; }
}
@media (max-width: 430px) {
  #prevEpBtn span, #nextEpBtn span { display: none; }
  .p-btn { padding: 4px 6px; }
}

.p-switch {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding-inline: 10px; border-radius: var(--r-s);
  color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; user-select: none;
}
.p-switch:hover { background: var(--surface-3); }
.p-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-track {
  width: 34px; height: 20px; border-radius: 10px; flex: none;
  background: var(--surface-3); border: 1px solid var(--line);
  position: relative;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.sw-track::after {
  content: ""; position: absolute; top: 2px; inset-inline-start: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--muted);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.p-switch input:checked + .sw-track { background: var(--accent); border-color: var(--accent); }
.p-switch input:checked + .sw-track::after { transform: translateX(14px); background: #fff; }
.p-switch input:focus-visible + .sw-track { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

.p-menu-wrap { position: relative; }
.p-menu {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; z-index: 20;
  min-width: 130px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-2);
  animation: pop var(--t-fast) var(--ease);
}
.p-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 36px; padding: 4px 10px; border-radius: var(--r-s);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-align: start;
  transition: background-color var(--t-fast) var(--ease);
}
.p-item:hover { background: var(--surface-3); }
.p-item.on { color: var(--accent); }

/* 影院模式：播放器通栏 */
@media (min-width: 1024px) {
  body.theater .detail-grid { grid-template-columns: 1fr; }
  body.theater .player-col { margin-inline: calc(50% - 50vw); }
  body.theater .player-box { border-radius: 0; }
  body.theater .info-col { max-width: 760px; margin-inline: auto; width: 100%; }
  body.theater .p-toolbar { padding-inline: max(14px, calc(50vw - 590px)); }
}

/* 网页全屏 */
.player-box.webfs {
  position: fixed; inset: 0; z-index: 160; border-radius: 0;
  display: flex; flex-direction: column;
}
.player-box.webfs .video-wrap { flex: 1; aspect-ratio: auto; }
body.p-locked { overflow: hidden; }

/* ---------------- 详情页：信息栏 ---------------- */
.info-col h1 { font-size: clamp(19px, 1.5vw + 13.8px, 26px); line-height: 1.45; margin-bottom: 10px; }
.vip-flag {
  display: inline-block; vertical-align: 3px; margin-inline-start: 8px;
  background: linear-gradient(135deg, #e8a13c, #cf7d1c); color: #fff;
  font-size: 11px; font-weight: 700; font-family: var(--font-num);
  border-radius: 5px; padding: 1.5px 7px; letter-spacing: .5px;
}
.meta-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.mchip {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--r-pill); padding: 2px 11px;
}
.mchip.hot { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.credit { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-bottom: 4px; display: flex; gap: 8px; }
.credit b { color: var(--ink-2); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px; }
.desc {
  position: relative; color: var(--muted); font-size: 14px; line-height: 1.85;
  max-height: 5.55em; overflow: hidden;
}
.desc.open { max-height: none; }
.desc-toggle { color: var(--accent); font-size: 13.5px; font-weight: 700; padding: 6px 2px; }

/* ---------------- 详情页：选集 ---------------- */
.eps-sec { margin-top: clamp(22px, 3vw, 34px); }
.ep-group { margin-bottom: 16px; }
.ep-from {
  display: flex; align-items: center; gap: 8px;
  color: var(--faint); font-size: 12.5px; font-weight: 700; margin-bottom: 8px;
}
.ep-from::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.eps { display: flex; flex-wrap: wrap; gap: 7px; }
.ep {
  min-width: 52px; min-height: 40px; padding: 5px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
  font-size: 13.5px; font-weight: 700; font-family: var(--font-num); color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.ep:hover { border-color: var(--accent-line); color: var(--ink); }
.ep.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------------- 详情页：相关推荐 ---------------- */
.related-sec { margin-top: clamp(22px, 3vw, 34px); }
.related-sec .grid { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 480px) { .related-sec .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .related-sec .grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1280px) { .related-sec .grid { grid-template-columns: repeat(8, 1fr); } }

/* ---------------- 复制链接弹窗 ---------------- */
.copy-sheet { max-width: 560px; }
.sel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--muted); font-size: 13.5px; margin-bottom: 10px;
}
.sel-all { color: var(--accent); font-weight: 700; font-size: 13.5px; padding: 4px 8px; border-radius: var(--r-s); }
.sel-all:hover { background: var(--accent-soft); }
.eps-pick {
  display: flex; flex-wrap: wrap; gap: 7px;
  max-height: 200px; overflow: auto; padding: 2px; margin-bottom: 14px;
}
.ep-pick {
  min-width: 48px; min-height: 38px; padding: 4px 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s);
  font-size: 13px; font-weight: 700; font-family: var(--font-num); color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.ep-pick.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.link-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
@media (max-width: 479px) { .link-modes { grid-template-columns: 1fr; } }
.mode {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 14px; text-align: start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  transition: all var(--t-fast) var(--ease);
}
.mode b { font-size: 14px; }
.mode span { font-size: 11.5px; color: var(--faint); line-height: 1.6; }
.mode.on { border-color: var(--accent); background: var(--accent-soft); }
.mode.on b { color: var(--accent); }
.sheet-foot { display: flex; justify-content: flex-end; }
.real-box { margin-top: 12px; display: grid; gap: 8px; }
.real-box textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 12px; font-size: 12.5px; line-height: 1.7;
  font-family: var(--font-num); color: var(--ink-2); outline: none;
}
.real-box textarea:focus { border-color: var(--accent-line); }

/* ---------------- 搜索页 ---------------- */
.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-form .input { flex: 1; }
.hot-words { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hw-label { color: var(--faint); font-size: 13px; font-weight: 700; }
.hw {
  min-height: 34px; display: inline-flex; align-items: center;
  padding: 4px 13px; background: var(--surface-2); border-radius: var(--r-pill);
  font-size: 13px; color: var(--ink-2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.hw:hover { background: var(--accent-soft); color: var(--accent); }
.search-state { color: var(--muted); font-size: 14px; padding: 18px 0; text-align: center; }

/* ---------------- 表单 ---------------- */
.input {
  width: 100%; min-height: 46px; padding: 9px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s);
  color: var(--ink); outline: none; font-size: 15px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent-line); background: var(--surface); }
textarea.input { resize: vertical; line-height: 1.7; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .input { flex: 1; direction: ltr; text-align: left; font-family: var(--font-num); font-size: 13px; color: var(--ink-2); }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  min-height: calc(100dvh - var(--nav-h) - 120px);
  display: grid; align-items: center; gap: 40px;
  padding: clamp(20px, 4vw, 48px) clamp(14px, 2.6vw, 24px);
}
@media (min-width: 900px) { .auth-wrap { grid-template-columns: 1.1fr 1fr; } }
.auth-brand { display: none; }
@media (min-width: 900px) { .auth-brand { display: block; } }
.auth-brand-inner h2 { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.4; margin-bottom: 10px; }
.auth-logo { width: 34px; height: 34px; color: var(--accent); vertical-align: -4px; margin-inline-end: 10px; }
.auth-brand-inner > p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.auth-points { display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.auth-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--accent); }
.auth-card {
  max-width: 420px; width: 100%; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-1);
}
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.oauth-row { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin-block: 18px 12px; }
.oauth-row .line { flex: 1; height: 1px; background: var(--line); }
/* 邮箱前缀输入：固定 @qq.com 后缀 */
.input-suffix { position: relative; display: block; }
.input-suffix .input { padding-inline-end: 84px; }
.input-suffix .suffix {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-weight: 600; font-size: 13.5px;
  pointer-events: none; user-select: none;
  border-inline-start: 1px solid var(--line); padding-inline-start: 10px;
  transition: opacity var(--t-fast) var(--ease);
}
.input-suffix.has-at .suffix { opacity: 0; }
.input-suffix.has-at .input { padding-inline-end: 12px; }
.form-hint { margin-top: -4px; color: var(--faint); font-size: 12px; line-height: 1.6; }

.oauth-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.oauth-btn {
  flex: 0 0 auto; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s);
  color: var(--muted); font-weight: 700; font-size: 13px;
  transition: all var(--t-fast) var(--ease);
}
.oauth-btn .oauth-ico {
  width: 30px; height: 30px; border-radius: 8px; object-fit: contain;
  background: #fff; padding: 3px; box-shadow: 0 1px 3px rgb(0 0 0 / .18);
}
.oauth-btn.no-ico { width: auto; padding: 0 14px; }
.oauth-btn.no-ico::before { content: attr(title); }
.oauth-btn:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.oauth-btn:active { transform: translateY(0); }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 700; }

/* ---------------- 个人中心 ---------------- */
.account-wrap { max-width: 880px; }
.profile-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 20px 22px; margin-bottom: 16px;
}
.profile-glow {
  position: absolute; inset-inline-start: -60px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.profile-main { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-info { flex: 1; min-width: 200px; }
.profile-name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; flex-wrap: wrap; }
.profile-sub { color: var(--muted); font-size: 13px; }
.badge { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 8px; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.badge.vip { background: linear-gradient(135deg, #e8a13c, #cf7d1c); color: #fff; }

.tabs-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 6px 18px 20px;
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  min-height: 44px; padding: 8px 14px; flex: none;
  color: var(--muted); font-weight: 700; font-size: 14.5px;
  border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.on { color: var(--accent); border-bottom-color: var(--accent); }
.api-docs { margin-top: 14px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r); }
.api-docs .lbl { margin-top: 0; }
.api-docs li { font-size: 12px; color: var(--muted); line-height: 2; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.plan {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 12px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.plan:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.plan:active { transform: scale(.98); }
/* VIP 弹窗（QQ 联系开通） */
.vip-plan-info { text-align: center; }
.vip-plan-title { font-weight: 700; font-size: 15px; color: var(--accent); }
.vip-tip { color: var(--muted); font-size: 13px; line-height: 1.8; margin-block: 10px 14px; text-align: center; }
.vip-qr { display: flex; justify-content: center; }
.vip-qr img { width: min(300px, 100%); border-radius: var(--r); border: 1px solid var(--line); }
.vip-qq { text-align: center; font-size: 15px; font-weight: 700; margin-top: 12px; }
.vip-qq-num { font-family: var(--font-num); color: var(--accent); letter-spacing: .5px; }
.vip-ico { width: 26px; height: 26px; color: #e8a13c; }
.plan-title { font-weight: 700; }
.plan-sub { color: var(--muted); font-size: 13px; }
.fb-list { display: grid; gap: 8px; margin-top: 14px; }
.fb-item { padding: 10px 14px; background: var(--surface-2); border-radius: var(--r); font-size: 14px; }
.fb-state { color: var(--faint); font-size: 12.5px; margin-top: 4px; }
.fb-state.ok { color: var(--ok); }

/* ---------------- 滚动条（桌面） ---------------- */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 5px; border: 2px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: var(--faint); }
  ::-webkit-scrollbar-track { background: transparent; }
}

/* ---------------- 减弱动效 ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------------- 自助充值弹窗 ---------------- */
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.pay-method {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-pill);
  padding: 6px 16px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.pay-method.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pay-qr { display: grid; place-items: center; gap: 6px; min-height: 240px; margin-block: 8px; }
.pay-qr-img { background: #fff; border-radius: var(--r-s); padding: 10px; box-shadow: 0 2px 12px rgb(0 0 0 / .12); }
.pay-qr-img img, .pay-qr-img canvas { display: block; }
.pay-amount { font-weight: 700; font-size: 13px; color: var(--muted); }
.pay-open { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.pay-tip { color: var(--faint); font-size: 12.5px; text-align: center; line-height: 1.7; }
.pay-success { color: #2fa46a; font-weight: 700; font-size: 16px; text-align: center; }
