/* ════════════════════════════════════════════════════════════════
   PanSoSo · 盘搜搜 — Apple 磨砂透明风格 (Frosted Glass / macOS Sonoma)
   设计语言：流体彩色背景 × 半透明玻璃材质 × 大圆角 × Spring 动效
   ════════════════════════════════════════════════════════════════ */

/* ─────────── 设计令牌 ─────────── */
:root {
  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Segoe UI", sans-serif;

  /* 圆角体系 */
  --r-xl: 28px;   /* 大卡片 / 模态 */
  --r-lg: 20px;   /* 标准卡片 */
  --r-md: 14px;   /* 按钮 / 输入框 */
  --r-sm: 10px;   /* 小元素 */

  /* 动效 */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.22s;
  --t-mid: 0.38s;
  --t-slow: 0.6s;

  /* 布局 */
  --nav-h: 64px;
  --content-w: 1180px;
  --tabbar-h: 64px;
}

/* 浅色主题（默认） */
:root[data-theme="light"] {
  --bg-base: #eef0f6;
  --text-1: #1d1d1f;
  --text-2: #55565b;
  --text-3: #86868b;
  --accent: #0071e3;
  --accent-2: #0a84ff;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --success: #34a853;
  --success-soft: rgba(52, 168, 83, 0.14);
  --warn: #e08600;
  --warn-soft: rgba(255, 159, 10, 0.16);
  --danger: #e5484d;
  --danger-soft: rgba(229, 72, 77, 0.13);

  /* 玻璃材质 */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.68);
  --glass-bg-soft: rgba(255, 255, 255, 0.34);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-outer: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(31, 38, 90, 0.08), 0 2px 8px rgba(31, 38, 90, 0.04);
  --glass-shadow-hover: 0 16px 48px rgba(31, 38, 90, 0.14), 0 4px 12px rgba(31, 38, 90, 0.06);
  --glass-blur: saturate(180%) blur(30px);

  --chip-bg: rgba(120, 120, 128, 0.1);
  --chip-bg-hover: rgba(120, 120, 128, 0.16);
  --input-bg: rgba(255, 255, 255, 0.6);
  --input-border: rgba(0, 0, 0, 0.06);
  --skeleton-a: rgba(255, 255, 255, 0.55);
  --skeleton-b: rgba(255, 255, 255, 0.9);
  --code-bg: rgba(120, 120, 128, 0.12);
}

/* 深色主题（深空玻璃） */
:root[data-theme="dark"] {
  --bg-base: #0b0c10;
  --text-1: #f5f5f7;
  --text-2: #a9aab0;
  --text-3: #7b7c82;
  --accent: #0a84ff;
  --accent-2: #64d2ff;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --success: #30d158;
  --success-soft: rgba(48, 209, 88, 0.16);
  --warn: #ffd60a;
  --warn-soft: rgba(255, 214, 10, 0.14);
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.16);

  --glass-bg: rgba(30, 32, 40, 0.52);
  --glass-bg-strong: rgba(28, 30, 38, 0.66);
  --glass-bg-soft: rgba(38, 40, 50, 0.36);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-outer: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);

  --chip-bg: rgba(255, 255, 255, 0.08);
  --chip-bg-hover: rgba(255, 255, 255, 0.14);
  --input-bg: rgba(255, 255, 255, 0.07);
  --input-border: rgba(255, 255, 255, 0.1);
  --skeleton-a: rgba(255, 255, 255, 0.06);
  --skeleton-b: rgba(255, 255, 255, 0.14);
  --code-bg: rgba(255, 255, 255, 0.1);
}

/* ─────────── Reset 与基础 ─────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--t-slow) var(--ease-out), color var(--t-mid) var(--ease-out);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }

::selection { background: rgba(10, 132, 255, 0.25); }

/* 自定义滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 128, 0.28);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(120, 120, 128, 0.5); background-clip: content-box; border: 3px solid transparent; }

/* ═══════════ 流体背景场景 ═══════════ */
.bg-scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg-base); }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
:root[data-theme="dark"] .blob { opacity: 0.3; filter: blur(110px); }

.blob-a {
  width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  background: radial-gradient(circle at 30% 30%, #7cc0ff, #4f8dff 55%, transparent 72%);
  top: -12%; left: -8%;
  animation: drift-a 26s var(--ease-out) infinite alternate;
}
.blob-b {
  width: 40vw; height: 40vw; min-width: 380px; min-height: 380px;
  background: radial-gradient(circle at 60% 40%, #e5a8ff, #b06cf5 55%, transparent 72%);
  top: 8%; right: -10%;
  animation: drift-b 32s var(--ease-out) infinite alternate;
}
.blob-c {
  width: 44vw; height: 44vw; min-width: 400px; min-height: 400px;
  background: radial-gradient(circle at 50% 50%, #ffd3a8, #ff9bb0 55%, transparent 72%);
  bottom: -18%; left: 22%;
  animation: drift-c 29s var(--ease-out) infinite alternate;
}
.blob-d {
  width: 30vw; height: 30vw; min-width: 300px; min-height: 300px;
  background: radial-gradient(circle at 50% 50%, #a8f0d8, #5fd4b4 55%, transparent 72%);
  bottom: -8%; right: 6%;
  animation: drift-d 36s var(--ease-out) infinite alternate;
}

@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1.08); } to { transform: translate(-8vw, 10vh) scale(0.95); } }
@keyframes drift-c { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, -8vh) scale(1.12); } }
@keyframes drift-d { from { transform: translate(0, 0) scale(0.94); } to { transform: translate(6vw, -6vh) scale(1.1); } }

/* 顶部柔光罩 & 噪点质感 */
.bg-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 30%, transparent 70%, rgba(255,255,255,0.1));
}
:root[data-theme="dark"] .bg-veil {
  background: linear-gradient(180deg, rgba(11,12,16,0.4), transparent 40%, transparent 60%, rgba(11,12,16,0.5));
}
.bg-grain {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════ 玻璃材质 ═══════════ */
.glass, .glass-strong, .glass-soft {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-border-outer);
}
.glass-strong { background: var(--glass-bg-strong); }
.glass-soft { background: var(--glass-bg-soft); border-radius: var(--r-md); }

/* ═══════════ 顶部导航 ═══════════ */
.site-nav-wrap {
  position: sticky; top: 0; z-index: 100;
  padding: 12px 20px 0;
}

.site-nav {
  max-width: var(--content-w);
  margin: 0 auto;
  height: var(--nav-h);
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 12px 0 16px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 14px rgba(10, 132, 255, 0.35); }
.brand-name {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 7px;
}
.brand-name em {
  font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-3);
  background: var(--chip-bg); padding: 2px 8px; border-radius: 99px;
}

.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-links a {
  padding: 8px 16px; border-radius: 99px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: all var(--t-fast) var(--ease-out);
  position: relative;
}
.nav-links a:hover { color: var(--text-1); background: var(--chip-bg); }
.nav-links a.active {
  color: var(--text-1);
  background: var(--chip-bg-hover);
  font-weight: 600;
}
.nav-links a.active::before {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--text-2);
  background: transparent;
  transition: all var(--t-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--chip-bg); color: var(--text-1); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* 主题图标切换 */
#btnTheme .ico-moon { display: none; }
:root[data-theme="dark"] #btnTheme .ico-sun { display: none; }
:root[data-theme="dark"] #btnTheme .ico-moon { display: block; }

.nav-avatar { display: block; }
.nav-avatar-guest {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #0a84ff, #bf5af2);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.35);
  transition: transform var(--t-fast) var(--ease-spring);
}
.nav-avatar:hover .nav-avatar-guest { transform: scale(1.06); }

/* ═══════════ 主内容区 ═══════════ */
#app {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 28px 20px 60px;
  min-height: calc(100vh - var(--nav-h) - 60px);
}

.view { display: none; animation: view-in 0.5s var(--ease-spring); }
.view.active { display: block; }

@keyframes view-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ 首页 Hero ═══════════ */
.hero { text-align: center; padding: 64px 0 34px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 7px 16px; border-radius: 99px;
  margin-bottom: 26px;
  animation: view-in 0.6s var(--ease-spring) both;
}

.hero-title {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.14;
  margin-bottom: 18px;
  animation: view-in 0.6s 0.05s var(--ease-spring) both;
}
.grad-text {
  background: linear-gradient(92deg, #0a84ff 10%, #bf5af2 55%, #ff6482 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  color: var(--text-2); font-size: 17px; line-height: 1.7;
  margin-bottom: 38px;
  animation: view-in 0.6s 0.1s var(--ease-spring) both;
}
.hide-m { display: inline; }

/* Spotlight 搜索框 */
.spotlight {
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  border-radius: 22px;
  padding: 8px 8px 8px 20px;
  position: relative;
  transition: box-shadow var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-spring);
  animation: view-in 0.6s 0.15s var(--ease-spring) both;
}
.spotlight:focus-within {
  box-shadow: var(--glass-shadow-hover), 0 0 0 4px var(--accent-soft);
  transform: translateY(-2px);
}
.spot-ico { width: 21px; height: 21px; color: var(--text-3); flex-shrink: 0; }
.spotlight input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 17px; height: 44px; min-width: 0;
}
.spotlight input::placeholder { color: var(--text-3); }
.spot-hint {
  position: absolute; right: 108px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-3); pointer-events: none;
  opacity: 0; transition: opacity var(--t-fast);
}
.spotlight:focus-within .spot-hint { opacity: 1; }

.btn-clear-input {
  width: 32px; height: 32px; border-radius: 10px;
  display: none; place-items: center; color: var(--text-3);
}
.btn-clear-input.show { display: grid; }
.btn-clear-input:hover { background: var(--chip-bg); color: var(--text-1); }
.btn-clear-input svg { width: 15px; height: 15px; }

/* 按钮 */
.btn-primary {
  height: 44px; padding: 0 24px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #2f96ff, var(--accent));
  color: #fff; font-size: 15.5px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: all var(--t-fast) var(--ease-out);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 8px 24px rgba(0, 113, 227, 0.45), inset 0 1px 0 rgba(255,255,255,0.25); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.96); }
.btn-primary svg { width: 17px; height: 17px; }
.btn-primary.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-primary:disabled { opacity: 0.55; pointer-events: none; }

.btn-ghost {
  height: 36px; padding: 0 15px;
  border-radius: 12px;
  background: var(--chip-bg); color: var(--text-1);
  font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--glass-border);
  transition: all var(--t-fast) var(--ease-out);
}
.btn-ghost:hover { background: var(--chip-bg-hover); }
.btn-ghost:active { transform: scale(0.95); }
.btn-ghost svg { width: 15px; height: 15px; }
.btn-ghost.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }

.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }

/* 热门搜索词 */
.hot-keywords {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
  margin-top: 22px;
  animation: view-in 0.6s 0.2s var(--ease-spring) both;
}
.hot-keywords .hk-label {
  font-size: 13.5px; color: var(--text-3); align-self: center; margin-right: 2px;
  display: inline-flex; align-items: center; gap: 4px;
}
.hot-keywords .hk-label svg { width: 14px; height: 14px; }
.hot-chip {
  padding: 7px 15px; border-radius: 99px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--glass-bg-soft);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: all var(--t-fast) var(--ease-out);
}
.hot-chip:hover { color: var(--accent); background: var(--glass-bg); transform: translateY(-1px); }
.hot-chip .fire { color: #ff6482; font-weight: 600; margin-right: 3px; }
.hot-chip .fire-pin {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff9f0a, #ff375f);
  border-radius: 5px; padding: 0 4px; height: 15px; line-height: 15px;
  margin-right: 4px;
}

/* 网盘品牌墙 */
.disk-brand-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 99px;
  margin: 36px auto 0; width: fit-content; max-width: 100%;
  animation: view-in 0.6s 0.25s var(--ease-spring) both;
}
.disk-brand-strip .db-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  padding: 4px 10px;
}
.disk-brand-strip .db-dot { width: 8px; height: 8px; border-radius: 50%; }
.disk-brand-strip .db-more { color: var(--text-3); font-weight: 500; }

/* ═══════════ 首页影视板块流（统一卡片式横滚行） ═══════════ */
.home-sections {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 30px;
  min-width: 0;
}
.home-section {
  border-radius: 26px;
  padding: 4px 0 2px;
  min-width: 0;
  animation: view-in 0.55s var(--ease-spring) both;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-out);
}
.home-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.12);
}
.home-section[hidden] { display: none; }

/* 板块标题栏：渐变图标块 + 中文标题 + 英文小注 */
.hs-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px 12px;
  min-width: 0;
}
.hs-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hs-ico {
  width: 38px; height: 38px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #bf5af2 100%);
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.32);
}
.hs-ico svg { width: 19px; height: 19px; }
.hs-title-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hs-title-text h2 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.hs-en {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-3); text-transform: uppercase;
}
.hs-badge {
  font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 3px 8px; border-radius: 99px;
  color: #fff;
  background: linear-gradient(135deg, #ff9f0a, #ff6482);
  box-shadow: 0 3px 10px rgba(255, 100, 130, 0.35);
}
.hs-more {
  font-size: 13px; font-weight: 600; color: var(--accent);
  flex-shrink: 0; padding: 5px 10px; border-radius: 99px;
  transition: background var(--t-fast) var(--ease-out);
}
.hs-more:hover { background: var(--chip-bg); }

/* 本周热门：海报左上角排名徽章 */
.mp-rank {
  position: absolute; left: 0; top: 0;
  min-width: 26px; height: 26px; padding: 0 7px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; font-style: italic;
  color: #fff;
  background: linear-gradient(135deg, rgba(20,20,28,.72), rgba(20,20,28,.45));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 16px 0 12px 0;
}
.mp-rank-1 { background: linear-gradient(135deg, #ff9f0a, #ff6482); }
.mp-rank-2 { background: linear-gradient(135deg, #0a84ff, #64d2ff); }
.mp-rank-3 { background: linear-gradient(135deg, #bf5af2, #e879f9); }

/* 即将上新：上映日期胶囊（左上角，避免与左下角分级角标冲突） */
.mp-coming {
  position: absolute; left: 8px; top: 8px;
  font-size: 10.5px; font-weight: 700;
  color: #fff; padding: 3px 9px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* 影视横滚行 */
.wall-scroll {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 4px 20px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.wall-scroll::-webkit-scrollbar { display: none; }

.mini-poster {
  flex: 0 0 132px; min-width: 0; scroll-snap-align: start;
  cursor: pointer;
  transition: transform var(--t-mid) var(--ease-spring);
}
.mini-poster:hover { transform: translateY(-4px); }
.mini-poster .mp-img-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  width: 100%; aspect-ratio: 3/4; background: var(--chip-bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
/* 绝对定位脱离常规流：非 3:4 原图的固有尺寸无法再撑大卡片 */
.mini-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 评分角标：全站统一「海报右上角」（首页横滚 + 影视墙卡片同一规则） */
.mp-score {
  position: absolute; right: 8px; top: 8px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #ffd60a; font-size: 11.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  display: flex; align-items: center; gap: 3px;
}
.mp-score::before { content: "★"; font-size: 10px; }
.mp-score[hidden] { display: none !important; }
.mp-title {
  font-size: 13.5px; font-weight: 600; margin-top: 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-year { font-size: 12px; color: var(--text-3); }

/* ─── 海报角标统一规则（全站：首页横滚 + 影视墙 + PC/手机一致）：
     右上=评分（.mp-score/.pc-score-badge）· 左下=影片分级（.pe-rating）· 右下=播放平台 Logo（.pe-providers） ─── */
.poster-enrich[hidden] { display: none !important; }
/* 覆盖层退化为纯定位容器（各角标独立定位到海报四角） */
.poster-enrich {
  position: absolute; inset: 0;
  pointer-events: none;
  animation: fade-in 0.35s var(--ease-out);
}
.pe-rating {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 10px; font-weight: 800; color: #fbbf24; letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.65);
  border-radius: 5px; padding: 1px 5px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.pe-providers {
  position: absolute; right: 7px; bottom: 7px;
  display: flex; align-items: center; gap: 4px;
}
/* 必须提权到 (0,3,1)：同时压过后文同特异性的 .poster-card .pc-img img（(0,2,1)）
   与首页 .mini-poster img（(0,1,1)）。只写 .poster-enrich .pe-providers img（(0,2,1)）
   会被 .poster-card .pc-img img 的 position:absolute;inset:0 击败，logo 塌成 2px 细条 */
.poster-card .poster-enrich .pe-providers img,
.mini-poster .poster-enrich .pe-providers img {
  position: static; inset: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; padding: 1px;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.poster-card:hover .poster-enrich .pe-providers img { transform: none; }

/* 角标大小（后台 poster_badge_size） */
.poster-enrich[data-size="sm"] .pe-rating { font-size: 9px; padding: 0 4px; }
.poster-enrich[data-size="sm"] .pe-providers img { width: 15px; height: 15px; }
.poster-enrich[data-size="lg"] .pe-rating { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; }
.poster-enrich[data-size="lg"] .pe-providers img { width: 22px; height: 22px; }

/* ═══════════ 视图标题通用 ═══════════ */
.view-head, .wall-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin: 26px 0 24px;
}
.view-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.view-sub { color: var(--text-3); font-size: 14px; margin-top: 5px; }

/* ═══════════ 搜索工具栏 ═══════════ */
.search-toolbar {
  position: sticky; top: 12px; z-index: 50;
  border-radius: 20px;
  padding: 12px;
  margin-top: 8px;
}
.search-bar-compact {
  display: flex; align-items: center; gap: 10px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  padding: 0 6px 0 14px;
}
.search-bar-compact input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; height: 42px; min-width: 0;
}
.search-bar-compact input::placeholder { color: var(--text-3); }

.filter-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 11px; flex-wrap: wrap;
}
.pills { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  padding: 6.5px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--chip-bg); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t-fast) var(--ease-out);
}
.pill:hover { background: var(--chip-bg-hover); color: var(--text-1); }
.pill.active {
  background: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}
.pill .cnt { font-size: 11px; opacity: 0.75; font-weight: 600; }
.pill .pdot { width: 7px; height: 7px; border-radius: 50%; }

.filter-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* 分段控制器（iOS Segmented Control） */
.seg {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--chip-bg); border-radius: 12px;
}
.seg-btn {
  padding: 6px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: all var(--t-fast) var(--ease-out);
}
.seg-btn:hover { color: var(--text-1); }
.seg-btn.active {
  background: var(--glass-bg-strong);
  color: var(--text-1); font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.seg.seg-wall { margin-bottom: 22px; }

/* 开关 Chip */
.switch-chip { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.switch-chip input { display: none; }
.switch-track {
  width: 38px; height: 23px; border-radius: 99px;
  background: var(--chip-bg-hover);
  position: relative;
  transition: background var(--t-fast) var(--ease-out);
  flex-shrink: 0;
}
.switch-track::after {
  content: ""; position: absolute; left: 2.5px; top: 2.5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  transition: transform var(--t-fast) var(--ease-spring);
}
.switch-chip input:checked + .switch-track { background: var(--success); }
.switch-chip input:checked + .switch-track::after { transform: translateX(15px); }
.switch-label { font-size: 13px; font-weight: 500; color: var(--text-2); }

/* 搜索摘要 */
.search-summary {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 18px 4px 14px; font-size: 13.5px; color: var(--text-3);
}
.search-summary b { color: var(--text-1); font-weight: 700; font-size: 15px; }
.search-summary .dot-sep { opacity: 0.5; }
/* 有效性实时计数（② 先渲染后检测：结果先上屏，计数随检测进度更新） */
.search-summary .ss-num { font-size: 14px; }
.search-summary .ss-ok { color: var(--success, #34c759); }
.search-summary .ss-bad { color: var(--danger); }

/* 「加载更多」：结果过多时先出首屏（默认 60 条），其余按需展开 */
.result-more { display: flex; justify-content: center; margin: 18px 0 4px; }
.load-more-btn {
  height: 40px; padding: 0 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}

/* ═══════════ 搜索结果卡片 ═══════════ */
.result-list { display: flex; flex-direction: column; gap: 14px; }

.result-card {
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-out);
  /* 入场动画只在「新卡片」上播放（.rc-enter）：检测结果逐批上屏时不重放、不闪烁 */
}
/* 新出现的卡片：轻微上滑淡入，动画结束由 JS 移除该类（避免动画优先级覆盖 FLIP transform） */
.result-card.rc-enter { animation: card-in 0.45s var(--ease-spring) both; }
.result-card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-hover); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ─── 已收藏 / 已追更资源高亮（下次搜索时提示，避免重复添加） ─── */
.result-card.hl-fav {
  border-color: rgba(255, 159, 10, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 159, 10, 0.20), 0 10px 30px rgba(255, 159, 10, 0.16);
}
.result-card.hl-follow {
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.20), 0 10px 30px rgba(10, 132, 255, 0.16);
}
.result-card.hl-fav.hl-follow {
  border-color: rgba(191, 90, 242, 0.6);
  box-shadow: 0 0 0 1px rgba(191, 90, 242, 0.22), 0 10px 30px rgba(191, 90, 242, 0.18);
}

/* 归属标签：已收藏 / 已追更 */
.rc-owned { display: flex; gap: 7px; flex-wrap: wrap; margin: 2px 0 5px; }
.ro {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
}
.ro svg { width: 12px; height: 12px; flex-shrink: 0; }
.ro-fav { color: #d97706; background: rgba(255, 159, 10, 0.13); }
.ro-fol { color: #0a84ff; background: rgba(10, 132, 255, 0.12); }
:root[data-theme="dark"] .ro-fav { color: #fbbf24; }
:root[data-theme="dark"] .ro-fol { color: #64d2ff; }

/* 操作按钮激活态 */
.btn-ghost.sm.active-fav { color: #d97706; background: rgba(255, 159, 10, 0.12); }
.btn-ghost.sm.active-follow { color: var(--accent); background: var(--accent-soft); }
:root[data-theme="dark"] .btn-ghost.sm.active-fav { color: #fbbf24; }

.rc-top {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-bottom: 9px;
}

/* 网盘徽章 */
.disk-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  padding: 4.5px 12px; border-radius: 99px;
  flex-shrink: 0;
}
.disk-badge .db-ico { width: 13px; height: 13px; border-radius: 4px; }

/* 多彩品牌渐变徽章 */
.disk-badge.db-v2 {
  color: #fff;
  padding: 5px 13px 5px 11px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  box-shadow: 0 3px 10px var(--db-glow, rgba(0,0,0,.25)), inset 0 1px 0 rgba(255,255,255,.28);
  position: relative;
  overflow: hidden;
}
.disk-badge.db-v2::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
}
.disk-badge.db-v2 .db-ico-v2 {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,.9);
  position: relative; z-index: 1;
}

/* 已净化角标（广告内容已在展示端与转存端双重过滤） */
.clean-tag {
  font-size: 11.5px; font-weight: 700; color: var(--success);
  background: var(--success-soft);
  padding: 3px 9px; border-radius: 99px;
}

.rc-meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rc-meta .src { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rc-title {
  font-size: 16.5px; font-weight: 650; line-height: 1.45; letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ─── 资源标签（标题下方多色标签：年代 / 清晰度版本 / 字幕 / 更新集数） ─── */
.rc-tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: 7px 0 9px;
}
.rt {
  font-size: 11px; font-weight: 700; line-height: 1.55;
  padding: 1px 8px; border-radius: 7px;
  letter-spacing: 0.02em; white-space: nowrap;
}
.rt-year   { color: #0a84ff; background: rgba(10, 132, 255, 0.11); border: 1px solid rgba(10, 132, 255, 0.32); }
.rt-4k     { color: #b45309; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.42); }
.rt-hd     { color: #7c3aed; background: rgba(124, 58, 237, 0.11); border: 1px solid rgba(124, 58, 237, 0.35); }
.rt-ver    { color: #0891b2; background: rgba(6, 182, 212, 0.11); border: 1px solid rgba(6, 182, 212, 0.36); }
.rt-sub-cn { color: #059669; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.42); }
.rt-sub-en { color: #d97706; background: rgba(245, 158, 11, 0.11); border: 1px solid rgba(245, 158, 11, 0.35); }
.rt-ep     { color: #ea580c; background: rgba(249, 115, 22, 0.12); border: 1px solid rgba(249, 115, 22, 0.4); }
.rt-ep-done{ color: #7c3aed; background: rgba(139, 92, 246, 0.13); border: 1px solid rgba(139, 92, 246, 0.42); }
/* 深色主题：半透明底在深色下对比不足，颜色提亮 */
:root[data-theme="dark"] .rt-year   { color: #5aa9ff; }
:root[data-theme="dark"] .rt-4k     { color: #fbbf24; }
:root[data-theme="dark"] .rt-hd     { color: #a78bfa; }
:root[data-theme="dark"] .rt-ver    { color: #22d3ee; }
:root[data-theme="dark"] .rt-sub-cn { color: #34d399; }
:root[data-theme="dark"] .rt-sub-en { color: #fbbf24; }
:root[data-theme="dark"] .rt-ep     { color: #fb923c; }
:root[data-theme="dark"] .rt-ep-done{ color: #a78bfa; }

.rc-content {
  font-size: 14px; color: var(--text-2); line-height: 1.68;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 操作行 */
.rc-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 13px; padding-top: 13px;
  border-top: 1px solid var(--glass-border);
}

/* 检测状态徽章 */
.check-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 99px;
  transition: all var(--t-fast) var(--ease-out);
}
.check-state .cs-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cs-ok { color: var(--success); background: var(--success-soft); }
.cs-bad { color: var(--danger); background: var(--danger-soft); }
.cs-locked { color: var(--warn); background: var(--warn-soft); }
.cs-unsupported, .cs-uncertain { color: var(--text-3); background: var(--chip-bg); }
.cs-checking { color: var(--accent); background: var(--accent-soft); }
.cs-checking .cs-dot { animation: pulse-dot 0.9s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

/* ═══════════ 转存净化弹窗 ═══════════ */
.transfer-steps { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.t-step {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px; border-radius: var(--r-md);
  background: var(--chip-bg);
  font-size: 13.5px; font-weight: 500; color: var(--text-3);
  transition: all var(--t-fast) var(--ease-out);
}
.t-step .ts-ico {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--chip-bg-hover); flex-shrink: 0; position: relative;
  transition: all var(--t-fast) var(--ease-out);
}
.t-step .ts-ico::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--text-3); opacity: 0.4;
}
.t-step.active { color: var(--text-1); background: var(--accent-soft); }
.t-step.active .ts-ico {
  background: transparent; border: 2px solid var(--accent); border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.t-step.active .ts-ico::after { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.t-step.done { color: var(--text-2); }
.t-step.done .ts-ico { background: var(--success); }
.t-step.done .ts-ico::after {
  inset: auto; left: 6px; top: 3.4px;
  width: 5px; height: 9px;
  background: none; opacity: 1;
  border: solid #fff; border-width: 0 2px 2px 0;
  border-radius: 1px;
  transform: rotate(42deg);
}
.t-step.failed { color: var(--danger); background: var(--danger-soft); }
.t-step.failed .ts-ico { background: var(--danger); }
.t-step.failed .ts-ico::after {
  inset: 0; display: grid; place-items: center;
  background: none; opacity: 1; color: #fff;
  content: "×"; font-size: 15px; font-weight: 700; line-height: 1;
}

.tf-success-note {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; color: var(--success); font-weight: 600;
  background: var(--success-soft);
  padding: 11px 14px; border-radius: var(--r-md); line-height: 1.65;
  margin-bottom: 16px;
}
.tf-fail {
  font-size: 13.5px; color: var(--danger); font-weight: 600;
  background: var(--danger-soft);
  padding: 14px 16px; border-radius: var(--r-md); line-height: 1.7;
}
.tf-body { display: flex; gap: 22px; align-items: flex-start; }
.qr-side { text-align: center; flex-shrink: 0; }
.qr-box {
  width: 168px; height: 168px; padding: 12px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.qr-box svg, .qr-box img { display: block; width: 100%; height: 100%; }
.qr-box img { image-rendering: pixelated; }
.qr-caption { font-size: 12px; color: var(--text-3); margin-top: 8px; font-weight: 500; }
.tf-main { flex: 1; min-width: 0; }
.tf-link-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.tf-link-url {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--text-1);
  background: var(--chip-bg); border: 1px dashed var(--chip-bg-hover);
  padding: 11px 13px; border-radius: var(--r-md);
  word-break: break-all; line-height: 1.6; margin-bottom: 14px;
}
.tf-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tf-btns .btn-primary { flex: 1; min-width: 140px; }
/* 复制链接：站内高亮渐变（蓝→紫） */
.tf-btns .tf-copy-btn {
  background: linear-gradient(135deg, #0a84ff 0%, #bf5af2 100%);
  box-shadow: 0 6px 18px rgba(191, 90, 242, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.tf-btns .tf-copy-btn:hover { box-shadow: 0 8px 24px rgba(191, 90, 242, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
/* 打开网盘 APP：跟随该网盘品牌色的高亮渐变（--tf-open-grad 由 JS 注入） */
.tf-open-btn {
  height: 44px; padding: 0 18px; font-size: 14px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  color: #fff; font-weight: 600; border: none;
  background: var(--tf-open-grad, linear-gradient(135deg, #0a84ff, #bf5af2));
  box-shadow: 0 6px 18px var(--tf-open-glow, rgba(10, 132, 255, 0.32)), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all var(--t-fast) var(--ease-out);
}
.tf-open-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.tf-open-btn:active { transform: scale(0.96); }
.tf-open-btn svg { width: 16px; height: 16px; }
.tf-hint { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ═══════════ 弹窗公告（游客每日一次；注册用户不显示） ═══════════ */
.modal-box.modal-announce { max-width: 430px; }
.announce-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.announce-ico {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #0a84ff, #bf5af2);
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.35);
}
.announce-ico svg { width: 20px; height: 20px; }
.announce-titles h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.announce-titles p { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.announce-body {
  font-size: 13.5px; line-height: 1.75; color: var(--text-2);
  background: var(--chip-bg); border-radius: var(--r-md);
  padding: 14px 15px; max-height: 46vh; overflow-y: auto; word-break: break-word;
}
.announce-body img { max-width: 100%; border-radius: 10px; }
.announce-body a { color: var(--accent); }
.announce-body p { margin: 0 0 8px; }
.announce-body p:last-child { margin-bottom: 0; }
.announce-body b, .announce-body strong { color: var(--text-1); }
.announce-ok {
  width: 100%; margin-top: 16px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, #0a84ff 0%, #bf5af2 100%);
  box-shadow: 0 6px 18px rgba(191, 90, 242, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ═══════════ 影视墙 ═══════════ */
.wall-search {
  display: flex; align-items: center; gap: 9px;
  padding: 0 16px; border-radius: 16px; min-width: 260px;
}
.wall-search svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.wall-search input {
  border: none; outline: none; background: transparent;
  height: 44px; font-size: 14.5px; flex: 1; min-width: 0;
}
.wall-search input::placeholder { color: var(--text-3); }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 20px 16px;
  min-width: 0;
}
.poster-card {
  cursor: pointer;
  /* 关键：网格项默认 min-width:auto，会被海报原图的固有宽度撑破栅格
     （个别大图导致「有的海报超大 + 打乱布局 + 底部分页错位」），必须归零 */
  min-width: 0;
  animation: card-in 0.5s var(--ease-spring) both;
  transition: transform var(--t-mid) var(--ease-spring);
}
.poster-card:hover { transform: translateY(-5px); }
.poster-card .pc-img {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 3/4; background: var(--chip-bg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  min-width: 0;
}
/* 海报图绝对定位脱离常规流：图片固有尺寸完全不参与栅格计算 */
.poster-card .pc-img img { position: absolute; inset: 0; }
.poster-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.poster-card:hover img { transform: scale(1.05); }
/* 类型标签：左上角（右上角留给评分角标，统一全站角标规则） */
.pc-type {
  position: absolute; left: 8px; top: 8px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 3px 9px; border-radius: 99px;
}
/* 评分角标（影视墙卡片右上角，与首页 .mp-score 全站统一） */
.pc-score-badge {
  position: absolute; right: 8px; top: 8px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #ffd60a; font-size: 11.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  display: flex; align-items: center; gap: 3px;
}
.pc-score-badge::before { content: "★"; font-size: 10px; }
.pc-score-badge[hidden] { display: none !important; }
.pc-info { padding: 0 2px; }
.pc-title {
  font-size: 14.5px; font-weight: 650; margin-top: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-sub {
  font-size: 12px; color: var(--text-3);
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.pc-score { color: #ffb020; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.pc-score::before { content: "★"; font-size: 11px; }
.pc-sub > span { overflow: hidden; text-overflow: ellipsis; }

/* ─── 分页器 ─── */
.wall-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; margin: 28px 0 10px; flex-wrap: wrap;
}
.wall-pager[hidden] { display: none !important; }
.wp-item {
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 11px; font-size: 14px; font-weight: 700;
  color: var(--text-2); background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease-out);
}
.wp-item:hover:not(.disabled):not(.active) { color: var(--accent); transform: translateY(-1px); border-color: var(--accent); }
.wp-item.active { color: #fff; background: linear-gradient(135deg, #0a84ff, #5e5ce6); border-color: transparent; box-shadow: 0 6px 16px rgba(10,132,255,.35); }
.wp-item.disabled { opacity: .4; cursor: not-allowed; }
.wp-gap { color: var(--text-3); padding: 0 2px; }

/* ═══════════ 顶部大图轮番图 ═══════════ */
.wall-hero[hidden] { display: none !important; }
.wall-hero {
  position: relative;
  border-radius: 26px; overflow: hidden;
  margin: 8px 0 26px;
  min-height: 440px;
  box-shadow: 0 24px 60px rgba(31, 38, 135, 0.28);
}
.wh-track, .wh-slide { position: absolute; inset: 0; }
.wh-slide { opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease-out); }
.wh-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.wh-bg { position: absolute; inset: 0; }
.wh-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.wh-slide.active .wh-bg img { animation: kenburns 12s linear forwards; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16); } }
.wh-bg.bg-poster img { object-fit: cover; object-position: center 20%; filter: blur(2px) brightness(0.85); transform: scale(1.08); }

/* 底部+左侧渐变过渡（到页面背景） */
.wh-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 24, 0.92) 0%, rgba(10, 12, 24, 0.55) 38%, rgba(10, 12, 24, 0.08) 62%),
    linear-gradient(to right, rgba(8, 10, 20, 0.78) 0%, rgba(8, 10, 20, 0.35) 40%, rgba(8, 10, 20, 0) 65%);
}

/* 信息层 */
.wh-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 48px 46px; max-width: 880px; z-index: 2;
}
.wh-titles h2 {
  font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -0.01em;
  line-height: 1.15; margin: 0; text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.wh-en { display: block; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.62); margin-top: 7px; letter-spacing: 0.02em; }

.wh-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.wh-chip {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 4px 12px; border-radius: 99px;
}
.wh-year { background: rgba(94, 92, 230, .32); border-color: rgba(124,122,255,.5); }
.wh-rating { color: #fbbf24; background: rgba(251,191,36,.16); border-color: rgba(251,191,36,.5); }
.wh-score {
  font-size: 13px; font-weight: 800; color: #fbbf24;
  display: inline-flex; align-items: center; gap: 3px;
  text-shadow: 0 2px 10px rgba(251,191,36,.4);
}
.wh-people { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 10px; line-height: 1.7; }
.wh-people b { color: #fff; font-weight: 700; }
.wh-people-dot { color: rgba(255,255,255,.35); margin: 0 4px; }

.wh-overview {
  font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.78);
  margin: 0 0 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 760px;
}
.wh-detail-btn {
  height: 44px; padding: 0 26px; font-size: 15px; border-radius: 13px;
  box-shadow: 0 10px 26px rgba(10,132,255,.42);
}

/* 箭头 */
.wh-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease-out);
}
.wh-arrow:hover { background: rgba(255,255,255,.3); }
.wh-prev { left: 18px; } .wh-next { right: 18px; }

/* 指示点 */
.wh-dots { position: absolute; right: 44px; bottom: 46px; z-index: 3; display: flex; gap: 8px; }
.wh-dot {
  width: 9px; height: 9px; border-radius: 99px; padding: 0;
  background: rgba(255,255,255,.32); transition: all var(--t-fast) var(--ease-out);
}
.wh-dot.active { width: 26px; background: #fff; }

/* ═══════════ 追更 ═══════════ */
.follow-list { display: flex; flex-direction: column; gap: 14px; }

/* 访客追更空态：引导登录卡片 */
.follow-empty-auth {
  border-radius: var(--r-lg);
  padding: 38px 26px;
  text-align: center;
  max-width: 460px; margin: 8px auto;
  animation: card-in 0.45s var(--ease-spring) both;
}
.follow-empty-auth .fea-ico { font-size: 38px; margin-bottom: 10px; }
.follow-empty-auth h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.follow-empty-auth p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; margin-bottom: 20px; }
.follow-empty-auth .fea-btns {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.follow-empty-auth .fea-btns .btn-primary { height: 46px; padding: 0 30px; border-radius: 14px; font-size: 15px; }
.follow-empty-auth .fea-btns .btn-ghost { height: 46px; padding: 0 22px; border-radius: 14px; font-size: 14px; }

.follow-card {
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-out);
  animation: card-in 0.45s var(--ease-spring) both;
}
.follow-card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-hover); }
.follow-card.paused { opacity: 0.62; }

.fc-main { flex: 1; min-width: 220px; }
.fc-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fc-title { font-size: 17px; font-weight: 700; cursor: pointer; }
.fc-title:hover { color: var(--accent); }
.fc-update-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--danger);
  background: var(--danger-soft);
  padding: 3px 10px; border-radius: 99px;
}
.fc-update-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: pulse-dot 1.6s infinite; }
.fc-status {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
}
.fc-status.on { color: var(--success); background: var(--success-soft); }
.fc-status.off { color: var(--text-3); background: var(--chip-bg); }
.fc-info { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-top: 7px; }
.fc-info b { color: var(--text-2); font-weight: 600; }
/* 检测到的最新可转存资源（有更新时显示） */
.fc-latest {
  margin-top: 8px; font-size: 12px; color: var(--text-3);
  background: var(--chip-bg); border-radius: 8px; padding: 6px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fc-latest b { color: var(--text-2); font-weight: 600; }
.fc-disks { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.fc-disks .disk-badge { font-size: 11px; padding: 2.5px 9px; }
.fc-actions { display: flex; gap: 7px; flex-wrap: wrap; }
/* 「转存最新」：暖色高亮渐变（提示「有更新可转存」） */
.btn-latest {
  height: 36px; padding: 0 16px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: #fff; font-size: 14px; font-weight: 700; border: none;
  background: linear-gradient(135deg, #ff9f0a 0%, #ff6482 100%);
  box-shadow: 0 6px 18px rgba(255, 100, 130, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--t-fast) var(--ease-out);
  animation: latest-glow 2.2s ease-in-out infinite;
}
.btn-latest:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-latest:active { transform: scale(0.96); }
.btn-latest.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
@keyframes latest-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(255, 100, 130, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 6px 24px rgba(255, 159, 10, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

/* ═══════════ 用户中心 ═══════════ */
.auth-wrap { max-width: 430px; margin: 60px auto 0; }
.auth-card { padding: 30px 28px; border-radius: var(--r-xl); }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.auth-head p { font-size: 13.5px; color: var(--text-3); margin-top: 5px; }
.auth-tabs { display: flex; gap: 2px; background: var(--chip-bg); padding: 3px; border-radius: 12px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; padding: 9px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--text-3); transition: all var(--t-fast) var(--ease-out);
}
.auth-tabs button.active { background: var(--glass-bg-strong); color: var(--text-1); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-field input {
  width: 100%; height: 46px;
  border-radius: var(--r-md);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  padding: 0 15px; font-size: 15px; outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.form-field input::placeholder { color: var(--text-3); }

.auth-oauth {
  display: flex; gap: 10px; margin-top: 20px;
  position: relative; padding-top: 22px;
}
.auth-oauth::before {
  content: "或使用以下方式注册 / 登录";
  position: absolute; top: 0; left: 0; right: 0;
  text-align: center; font-size: 12px; color: var(--text-3);
}
.oauth-btn {
  flex: 1; height: 44px; border-radius: var(--r-md);
  border: 1px solid var(--glass-border); background: var(--chip-bg);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all var(--t-fast) var(--ease-out);
}
.oauth-btn:hover { background: var(--chip-bg-hover); transform: translateY(-1px); }
.oauth-btn svg { width: 17px; height: 17px; }

.benefit-card {
  margin-top: 16px; padding: 18px 20px; border-radius: var(--r-lg);
  display: flex; gap: 12px; align-items: flex-start;
}
.benefit-card svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.benefit-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.benefit-card p { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.benefit-card b { color: var(--accent); }

/* 已登录 */
.profile-card {
  border-radius: var(--r-xl);
  padding: 26px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #0a84ff, #bf5af2);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.4);
  flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 160px; }
.profile-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.profile-mail { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.quota-box { text-align: center; padding: 0 10px; }
.quota-num {
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), #bf5af2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.quota-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.profile-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.user-tabs {
  display: flex; gap: 2px; background: var(--chip-bg);
  padding: 3px; border-radius: 14px; margin-bottom: 18px;
  overflow-x: auto; scrollbar-width: none;
}
.user-tabs::-webkit-scrollbar { display: none; }
.user-tabs button {
  flex: 1; min-width: fit-content; padding: 9.5px 18px; border-radius: 11px;
  font-size: 14px; font-weight: 600; color: var(--text-3); white-space: nowrap;
  transition: all var(--t-fast) var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.user-tabs button.active { background: var(--glass-bg-strong); color: var(--text-1); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.user-tabs button .tab-badge {
  font-size: 11px; font-weight: 700; color: var(--danger);
  background: var(--danger-soft); padding: 1px 7px; border-radius: 99px;
}

.list-card { border-radius: var(--r-lg); padding: 6px 8px; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  transition: background var(--t-fast);
}
.list-row:hover { background: var(--chip-bg); }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.quota-log-row .delta { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.delta.plus { color: var(--success); }
.delta.minus { color: var(--danger); }

/* 空状态 */
.empty-state {
  text-align: center; padding: 56px 20px;
}
.empty-ico {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--chip-bg);
  display: grid; place-items: center;
  color: var(--text-3);
}
.empty-ico svg { width: 34px; height: 34px; }
.empty-ico-spin svg { animation: spin 1s linear infinite; }
.empty-state h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.empty-state p { font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }

/* ═══════════ 模态框 ═══════════ */
.modal-root {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(10, 12, 20, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 20px;
  animation: fade-in 0.3s var(--ease-out);
}
.modal-root[hidden] { display: none !important; }
:root[data-theme="dark"] .modal-root { background: rgba(0, 0, 0, 0.5); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  width: 100%; max-width: min(520px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-radius: var(--r-xl);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--glass-border-outer);
  padding: 28px;
  animation: modal-in 0.45s var(--ease-spring);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-box.wide { max-width: min(780px, calc(100vw - 40px)); }

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.modal-head h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.modal-head p { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--chip-bg); color: var(--text-2);
  display: grid; place-items: center; flex-shrink: 0;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--chip-bg-hover); color: var(--text-1); transform: rotate(90deg); }
.modal-close svg { width: 15px; height: 15px; }

/* ═══════════ 搜索加载等待弹窗 ═══════════ */
.loader-root {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(10, 12, 20, 0.32);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: fade-in 0.3s var(--ease-out);
}
.loader-root[hidden] { display: none !important; }
:root[data-theme="dark"] .loader-root { background: rgba(0, 0, 0, 0.48); }

.loader-card {
  width: 100%; max-width: 372px;
  border-radius: var(--r-xl);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 var(--glass-border-outer);
  padding: 34px 30px 28px;
  text-align: center;
  animation: modal-in 0.45s var(--ease-spring);
}

/* 渐变旋转环（中心放大镜为兄弟节点，避免被父级 mask 裁掉） */
.loader-ring-wrap { position: relative; width: 60px; height: 60px; margin: 0 auto 20px; }
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 90deg, var(--accent), #bf5af2 72%, rgba(191, 90, 242, 0) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  animation: spin 0.9s linear infinite;
}
.loader-ring-ico {
  position: absolute; inset: 0; margin: auto;
  width: 24px; height: 24px; color: var(--accent);
}

.loader-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.loader-quote {
  margin-top: 13px;
  font-size: 13.5px; line-height: 1.75; color: var(--text-2);
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.32s var(--ease-out);
}
.loader-quote.switching { opacity: 0; }
.loader-quote-from {
  font-size: 11.5px; font-weight: 500; color: var(--text-3);
  margin-top: 3px; min-height: 17px;
}

/* iOS 风格滑动进度条 */
.loader-bar {
  position: relative; height: 4px; border-radius: 99px;
  background: var(--chip-bg); overflow: hidden;
  margin-top: 21px;
}
.loader-bar span {
  position: absolute; top: 0; left: 0; height: 100%; width: 38%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0), var(--accent), #bf5af2);
  animation: loader-bar-slide 1.25s var(--ease-spring) infinite;
}
@keyframes loader-bar-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(370%); }
}

/* 影视详情模态 */
.movie-detail { display: flex; gap: 24px; }
.md-poster {
  flex: 0 0 210px; border-radius: 18px; overflow: hidden;
  aspect-ratio: 3/4; background: var(--chip-bg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
.md-poster img { width: 100%; height: 100%; object-fit: cover; }
.md-info { flex: 1; min-width: 0; }
.md-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.md-sub { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.md-score-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; flex-wrap: wrap; }
.md-score {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 800; color: #ffb020;
}
.md-score::before { content: "★"; font-size: 15px; }
.md-genres { display: flex; gap: 6px; flex-wrap: wrap; }
.md-genres span {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--chip-bg); padding: 4px 11px; border-radius: 99px;
}
.md-overview { font-size: 14px; color: var(--text-2); line-height: 1.8; margin: 12px 0 18px; }
.md-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* 影视详情弹窗（.modal-movie）：按「获取链接」弹窗风格 ——
   弹窗自身不整体滚动，主体区(.movie-detail)内部滚动，
   操作按钮(.md-actions)固定在卡片底部，篇幅再大也一屏可见、无需下滑 */
.modal-box.modal-movie { display: flex; flex-direction: column; }
.modal-box.modal-movie .movie-detail {
  flex: 1; min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
}
.modal-box.modal-movie .md-actions {
  flex-shrink: 0;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}
/* 影视分级徽章（如 PG-13 / TV-14；描边样式区别于类型标签） */
.md-genres .md-rating {
  font-size: 11.5px; font-weight: 800; color: #d97706;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 3px 10px; border-radius: 8px;
  letter-spacing: 0.02em;
}
:root[data-theme="dark"] .md-genres .md-rating { color: #fbbf24; }

/* 分享模态 */
.share-link-box {
  display: flex; gap: 8px; margin: 16px 0;
}
.share-link-box input {
  flex: 1; height: 46px; border-radius: var(--r-md);
  border: 1px solid var(--input-border); background: var(--input-bg);
  padding: 0 14px; font-size: 13.5px; outline: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.share-rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.share-rewards .sr-item {
  text-align: center; padding: 14px 8px;
  background: var(--chip-bg); border-radius: var(--r-md);
}
.sr-item .sr-num { font-size: 22px; font-weight: 800; color: var(--accent); }
.sr-item .sr-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 设置模态 */
.setting-group { margin-bottom: 22px; }
.setting-group h4 {
  font-size: 13px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 11px; padding-left: 2px;
}
.setting-note {
  font-size: 12px; color: var(--text-3); line-height: 1.6;
  margin: -4px 0 10px 2px;
}
.disk-cookie-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.disk-cookie-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-md);
  background: var(--chip-bg); cursor: pointer; user-select: none;
  transition: background var(--t-fast) var(--ease-out);
}
.disk-cookie-item:hover { background: var(--chip-bg-hover); }
.disk-cookie-item .switch-label {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.disk-cookie-item .pdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.disk-cookie-item .switch-track { width: 38px; height: 23px; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--chip-bg); margin-bottom: 8px;
}
.setting-row .sr-main { flex: 1; }
.setting-row .sr-title { font-size: 14.5px; font-weight: 600; }
.setting-row .sr-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }
.setting-input {
  display: flex; gap: 8px; width: 100%;
}
.setting-input input {
  flex: 1; height: 42px; border-radius: 12px;
  border: 1px solid var(--input-border); background: var(--input-bg);
  padding: 0 13px; font-size: 13px; outline: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.setting-input input:focus { border-color: var(--accent); }
.api-status { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.api-status.ok { color: var(--success); }
.api-status.err { color: var(--danger); }
.api-status.pending { color: var(--warn); }

/* ═══════════ Toast ═══════════ */
.toast-root {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 10px;
  align-items: center; pointer-events: none; width: min(94vw, 480px);
}
.toast {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  padding: 11px 22px;
  font-size: 14px; font-weight: 600;
  animation: toast-in 0.45s var(--ease-spring);
  max-width: 100%;
}
.toast.out { animation: toast-out 0.3s var(--ease-out) forwards; }
.toast .t-ico { width: 19px; height: 19px; flex-shrink: 0; }
.toast.success .t-ico { color: var(--success); }
.toast.error .t-ico { color: var(--danger); }
.toast.info .t-ico { color: var(--accent); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ═══════════ 骨架屏 ═══════════ */
.skeleton-card {
  border-radius: var(--r-lg); padding: 18px 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}
.sk {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--skeleton-a) 25%, var(--skeleton-b) 50%, var(--skeleton-a) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-title { height: 17px; width: 68%; margin-bottom: 10px; }
.sk-line { height: 13px; width: 92%; margin-bottom: 7px; }
.sk-line.short { width: 45%; }
.sk-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.sk-badge { height: 25px; width: 76px; border-radius: 99px; }
.sk-actions { display: flex; gap: 8px; margin-top: 14px; }
.sk-btn { height: 31px; border-radius: 10px; }

.poster-skeleton { aspect-ratio: 3/4; border-radius: 18px; }

/* ═══════════ 移动端 TabBar ═══════════ */
.tabbar {
  display: none;
  position: fixed; bottom: 12px; left: 14px; right: 14px;
  height: var(--tabbar-h); z-index: 100;
  border-radius: 24px;
  padding: 6px;
  transition: transform 0.32s var(--ease-spring), opacity 0.28s var(--ease-out);
  will-change: transform;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--text-3);
  border-radius: 18px;
  transition: all var(--t-fast) var(--ease-out);
}
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.active { color: var(--accent); background: var(--accent-soft); }

/* ═══════════ 页脚 ═══════════ */
.site-foot {
  max-width: var(--content-w);
  margin: 0 auto; padding: 34px 20px 46px;
  text-align: center;
}
.foot-brand { font-size: 15px; font-weight: 700; margin-bottom: 9px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px; font-size: 12.5px; }
.foot-links a { color: var(--text-2); font-weight: 600; }
.foot-links a:hover { color: var(--blue, #0a84ff); text-decoration: none; }
.foot-disc { font-size: 12px; color: var(--text-3); line-height: 1.8; max-width: 640px; margin: 0 auto 8px; }
.foot-disc a { color: var(--text-2); text-decoration: underline; }
.foot-icp { font-size: 11.5px; color: var(--text-3); opacity: 0.85; margin-bottom: 6px; }
.foot-icp[hidden], .foot-disc[hidden], .hero-sub[hidden] { display: none !important; }

/* ═══════════ 搜索结果 SSR 卡片（服务端渲染首屏真实结果；前端 hydrate 后用交互版替换） ═══════════ */
.ssr-card .disk-badge {
  display: inline-block; background: var(--chip-bg); border-radius: 99px;
  font-size: 11.5px; font-weight: 700; padding: 2px 10px; color: var(--text-2);
}
.ssr-card .rc-title { margin: 10px 0 4px; }
.ssr-card .rc-actions { margin-top: 12px; }
.ssr-card a.btn-primary { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; }

/* ═══════════ 响应式：平板（768–1023） ═══════════ */
@media (max-width: 1023px) {
  .home-sections { gap: 14px; margin-top: 22px; }
  .mini-poster { flex: 0 0 118px; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
  /* 平板：弹窗居中浮动，限宽限高（上下左右均不贴屏幕边界） */
  .modal-box {
    max-width: min(480px, calc(100vw - 48px));
    max-height: 84vh;                            /* 旧浏览器回退 */
    max-height: min(84vh, calc(100dvh - 72px));
  }
  .wall-hero { min-height: 380px; border-radius: 22px; }
  .wh-titles h2 { font-size: 32px; }
  .wh-info { padding: 0 32px 40px; }
  .wh-dots { right: 32px; bottom: 40px; }
  .movie-detail { flex-direction: column; }
  .md-poster { flex: none; width: 180px; margin: 0 auto; }
  .disk-cookie-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-body { gap: 16px; }
  .qr-box { width: 148px; height: 148px; }
}

/* ═══════════ 响应式：手机（<768） ═══════════ */
@media (max-width: 767px) {
  :root { --tabbar-present: 1; }

  /* ─── 移动端性能优化 ───
     backdrop-filter 是手机上最贵的合成操作（每层都要实时采样背景），
     全站有几十个毛玻璃元素；同时 4 个 blob 漂移 + 轮播图 Ken Burns 是常驻动画。
     这里统一降档：模糊半径减半、停掉常驻动画（保留静态渐变外观），显著降低掉帧。 */
  :root { --glass-blur: saturate(140%) blur(12px); }
  .modal-box, .loader-card { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .toast { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .blob { animation: none !important; }                     /* 静态流体背景，不再常驻漂移 */
  .wh-slide.active .wh-bg img { animation: none; transform: scale(1.04); }   /* 关掉 Ken Burns 推近 */
  .site-nav-wrap { padding: 10px 12px 0; }
  .site-nav { height: 56px; border-radius: 18px; gap: 8px; padding: 0 8px 0 12px; }
  .brand-name { font-size: 16px; }
  .brand-name em { display: none; }
  .nav-links { display: none; }   /* 导航收进底部 TabBar */
  .nav-actions { margin-left: auto; }

  #app { padding: 16px 14px calc(var(--tabbar-h) + 40px); }
  .hero { padding: 34px 0 24px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 14.5px; }
  .hide-m { display: none; }
  .spotlight { padding: 6px 6px 6px 15px; border-radius: 19px; }
  .spotlight input { font-size: 15.5px; height: 40px; }
  .btn-primary { height: 40px; padding: 0 18px; }
  .spot-hint { display: none; }

  .disk-brand-strip { border-radius: 20px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }

  .home-section { border-radius: 20px; }
  .hs-head { padding: 14px 16px 10px; }
  .hs-ico { width: 33px; height: 33px; border-radius: 11px; }
  .hs-title-text h2 { font-size: 15.5px; }
  .hs-en { display: none; }
  .wall-scroll { padding: 2px 14px 14px; gap: 11px; }

  .view-title { font-size: 24px; }
  .view-head, .wall-head { margin: 14px 0 18px; }
  .wall-search { width: 100%; }
  .seg-wall { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg-wall .seg-btn { padding: 6px 11px; font-size: 12.5px; white-space: nowrap; }

  .search-toolbar { position: static; padding: 10px; }
  .filter-row { gap: 9px; }
  .filter-actions { width: 100%; justify-content: space-between; gap: 8px; }
  /* 手机端同样显示「只看有效」文字提示（此前只留开关圆点，用户不知道开关含义） */
  .switch-label { display: inline; font-size: 12px; }
  /* 收紧分段控件，为文字提示腾出单行空间 */
  #sortSeg .seg-btn { padding: 6px 11px; font-size: 12.5px; }

  .result-card { padding: 15px 16px; border-radius: 18px; }
  .rc-title { font-size: 15.5px; }
  .rc-actions { gap: 7px; }

  .mini-poster { flex: 0 0 104px; }
  /* minmax(0,1fr)：栅格轨道可被压缩（配 .poster-card min-width:0 彻底防撑破） */
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .pc-title { font-size: 13px; }
  .pc-sub { font-size: 11px; gap: 4px; }
  /* 分页器：单行自适应（窗口化页数由 JS 按屏幕宽度计算），任何分辨率都不换行、不溢出 */
  .wall-pager { width: 100%; max-width: 100%; gap: 4px; margin-top: 22px; flex-wrap: nowrap; overflow: hidden; }
  .wp-item { min-width: 30px; height: 33px; padding: 0 6px; font-size: 12.5px; border-radius: 9px; flex-shrink: 0; }
  .wp-gap { padding: 0 1px; flex-shrink: 0; }

  /* 轮番图：手机 */
  .wall-hero { min-height: 430px; border-radius: 20px; margin-bottom: 20px; }
  .wh-titles h2 { font-size: 25px; }
  .wh-en { font-size: 13px; margin-top: 5px; }
  .wh-info { padding: 0 20px 56px; }
  .wh-meta { gap: 6px; margin: 13px 0 9px; }
  .wh-chip { font-size: 11px; padding: 3px 9px; }
  .wh-people, .wh-people-dot { font-size: 11.5px; }
  .wh-overview { font-size: 12px; -webkit-line-clamp: 2; margin-bottom: 14px; }
  .wh-detail-btn { height: 40px; padding: 0 20px; font-size: 13.5px; border-radius: 11px; }
  .wh-arrow { display: none; }                 /* 手机用滑动/指示点 */
  .wh-dots { right: 0; left: 20px; bottom: 20px; justify-content: flex-start; }

  .tabbar { display: flex; }
  /* 键盘弹起（打字中）：底部 TabBar 向下滑出屏幕，不与键盘叠加 */
  .tabbar.is-typing {
    transform: translateY(calc(100% + 26px));
    opacity: 0; pointer-events: none;
  }

  /* 下滑页面时顶部导航栏向上收起；上滑由 JS 移除 class 恢复 */
  .site-nav-wrap {
    transition: transform 0.34s var(--ease-spring), opacity 0.3s var(--ease-out);
  }
  .site-nav-wrap.nav-hidden {
    transform: translateY(-112%);
    opacity: 0; pointer-events: none;
  }
  .site-foot { padding-bottom: calc(var(--tabbar-h) + 52px); }

  .auth-wrap { margin-top: 26px; }
  .profile-card { padding: 20px; }
  .quota-num { font-size: 32px; }
  .share-rewards { grid-template-columns: 1fr; }
  .toast-root { top: 70px; }

  /* 模态框：居中浮动卡片 —— 不铺满、不与屏幕边界相连，尺寸随分辨率自适应 */
  .modal-root { padding: 16px 14px; }
  .modal-box {
    width: 100%;
    max-width: min(430px, 100%);
    max-height: 78vh;                              /* 旧浏览器回退 */
    max-height: min(78vh, calc(100dvh - 32px));    /* 动态视口：上下各留 16px 不贴边 */
    border-radius: 22px;
    padding: 20px 18px;
    animation: modal-in 0.45s var(--ease-spring);
  }
  .modal-head h3 { font-size: 18px; }
  .md-poster { width: 150px; }
  .md-title { font-size: 20px; }
  .md-actions .btn-primary { flex: 1; }

  /* 影视详情弹窗：与「获取链接」同风格的紧凑卡片；主体内部滚动，按钮固定底部一屏可见 */
  .modal-box.modal-movie {
    max-width: min(400px, 100%);
    padding: 18px 16px 14px;
    max-height: min(88vh, calc(100dvh - 28px));
  }
  .modal-box.modal-movie .modal-head { margin-bottom: 12px; }
  .modal-box.modal-movie .md-poster { width: 132px; }
  .modal-box.modal-movie .md-title { font-size: 18px; }
  .modal-box.modal-movie .md-overview { margin: 10px 0 4px; font-size: 13px; line-height: 1.7; }
  .modal-box.modal-movie .md-actions { margin-top: 12px; padding-top: 12px; }

  /* 「获取链接」弹窗：更窄的小卡片（与弹窗尺寸成比例） */
  .modal-box.modal-transfer {
    max-width: 348px;
    padding: 16px 14px 14px;
    /* 结果区要一屏放下：放宽高度上限（仍与屏幕上下留白） */
    max-height: min(92vh, calc(100dvh - 24px));
  }
  .modal-box.modal-transfer .modal-head { margin-bottom: 11px; }
  .modal-box.modal-transfer .modal-head h3 { font-size: 17px; }
  .modal-box.modal-transfer .modal-head p { font-size: 11.5px; }
  /* 步骤/结果区整体收紧，让「链接 + 二维码 + 按钮」无需下拉即可完整显示 */
  .modal-box.modal-transfer .transfer-steps { gap: 7px; margin-bottom: 12px; }
  .modal-box.modal-transfer .t-step { padding: 8px 11px; font-size: 12px; border-radius: 10px; }
  .modal-box.modal-transfer .t-step .ts-ico { width: 17px; height: 17px; }
  .modal-box.modal-transfer .t-step .ts-ico::after { inset: 5px; }
  .modal-box.modal-transfer .t-step.done .ts-ico::after { left: 5px; top: 2.6px; }
  .modal-box.modal-transfer .tf-success-note { font-size: 11.5px; padding: 9px 11px; line-height: 1.55; margin-bottom: 12px; }

  /* 转存弹窗：竖排布局，扫码区居中；按钮整宽、与弹窗大小成比例（高亮彩色） */
  .modal-box.modal-transfer .tf-body { flex-direction: column; align-items: center; gap: 12px; }
  .modal-box.modal-transfer .tf-main { width: 100%; }
  .modal-box.modal-transfer .qr-box { width: 126px; height: 126px; padding: 8px; border-radius: 14px; }
  .modal-box.modal-transfer .qr-caption { font-size: 11px; margin-top: 6px; }
  .modal-box.modal-transfer .tf-link-label { font-size: 11.5px; margin-bottom: 5px; }
  .modal-box.modal-transfer .tf-link-url { font-size: 11.5px; padding: 9px 11px; line-height: 1.5; margin-bottom: 10px; }
  .modal-box.modal-transfer .tf-btns { flex-direction: column; gap: 8px; }
  /* flex:1 在竖向容器里作用于「高度」，会让复制按钮与打开按钮尺寸不一致 → 归零 */
  .modal-box.modal-transfer .tf-btns .btn-primary { flex: none; }
  .modal-box.modal-transfer .tf-btns .btn-primary,
  .modal-box.modal-transfer .tf-open-btn {
    width: 100%; height: 46px; font-size: 15px; border-radius: 14px; min-width: 0;
  }
  .modal-box.modal-transfer .tf-hint { font-size: 11px; margin-top: 8px; }
  /* 公告弹窗：同样居中、不铺满 */
  .modal-box.modal-announce { max-width: 340px; padding: 18px 16px 16px; }
  .modal-box.modal-announce .announce-body { max-height: 42vh; }
  .disk-cookie-grid { grid-template-columns: 1fr; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════ 求片（资源需求） ═══════════ */
.req-wrap {
  max-width: 720px; margin: 0 auto; padding: 20px 0 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.req-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-lg, 20px);
}
.req-head-ico {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, #0a84ff, #bf5af2);
}
.req-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.req-sub { color: var(--text-3); font-size: 13px; line-height: 1.6; margin: 5px 0 0; }
.req-tabs { align-self: flex-start; }
.req-tabs .seg-btn { padding: 7px 18px; }
.req-pane { display: block; }
.req-pane[hidden] { display: none; }

.req-card {
  padding: 22px 22px 24px; border-radius: var(--r-lg, 20px);
  display: flex; flex-direction: column; gap: 16px;
}
.req-card-head { display: flex; align-items: center; gap: 12px; }
.req-card-ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--accent-soft); color: var(--accent);
}
.req-card-title { font-size: 16px; font-weight: 700; }
.req-card-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.req-field { display: flex; flex-direction: column; gap: 8px; }
.req-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.req-req { color: #ff3b30; font-weight: 700; }
.req-opt { font-size: 11px; font-weight: 500; color: var(--text-3); background: var(--chip-bg); padding: 1px 7px; border-radius: 99px; }

.req-card input, .req-card textarea {
  width: 100%; box-sizing: border-box;
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--r-md); padding: 11px 14px;
  font-size: 14px; color: var(--text-1); outline: none; font-family: inherit;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.req-card input:focus, .req-card textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.req-card textarea { resize: vertical; min-height: 74px; }

.req-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.req-chip {
  padding: 7px 15px; border-radius: 99px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--chip-bg); white-space: nowrap;
  transition: all var(--t-fast) var(--ease-out);
}
.req-chip:hover { background: var(--chip-bg-hover); color: var(--text-1); }
.req-chip.active {
  background: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}
.req-chip.hide { display: none; }
.req-chip.req-more { color: var(--accent); font-weight: 600; background: var(--accent-soft); }

.req-pay { align-self: flex-start; }
.req-pay .seg-btn { min-width: 64px; text-align: center; }

.req-submit {
  width: 100%; height: 46px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; margin-top: 4px;
}
.req-submit:disabled { opacity: 0.6; cursor: default; }

/* 问题反馈（复用求片表单样式）：字数统计 + 底部提示 */
.fb-count {
  align-self: flex-end; margin-top: -2px;
  font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.fb-tip {
  margin: 0; text-align: center; font-size: 11.5px;
  color: var(--text-3); line-height: 1.6;
}

.req-hist-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 0 2px;
}
.req-hist-head > span { font-size: 14px; color: var(--text-2); }
.req-hist-head b { color: var(--text-1); font-weight: 700; }
.req-sort .seg-btn { padding: 5px 12px; font-size: 12.5px; }

.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-item { padding: 15px 17px; border-radius: var(--r-lg, 20px); display: flex; flex-direction: column; gap: 10px; }
.req-item-top { display: flex; gap: 12px; align-items: flex-start; }
.req-idx {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.req-item-main { flex: 1; min-width: 0; }
.req-item-name { font-size: 15px; font-weight: 650; line-height: 1.45; word-break: break-word; }
.req-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 7px; font-size: 12px; }
.req-st { font-weight: 600; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; }
.req-st.ok { color: #10b981; background: rgba(16, 185, 129, 0.14); }
.req-st.wait { color: #f59e0b; background: rgba(245, 158, 11, 0.16); }
.req-like {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 600;
  color: var(--text-2); background: var(--chip-bg);
  transition: all var(--t-fast) var(--ease-out);
}
.req-like:hover { background: var(--chip-bg-hover); }
.req-like.liked { color: #ff375f; background: rgba(255, 55, 95, 0.12); cursor: default; }
.req-time { color: var(--text-3); }
.req-item-plats { display: flex; flex-wrap: wrap; gap: 6px; }
.req-plat {
  font-size: 11.5px; font-weight: 500; color: var(--accent);
  background: var(--accent-soft); padding: 2px 9px; border-radius: 99px;
}
.req-resolve {
  font-size: 12.5px; color: var(--text-2); line-height: 1.65;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(16, 185, 129, 0.1); border-left: 3px solid #10b981;
}
.req-playurl {
  font-size: 12.5px; color: var(--accent);
  word-break: break-all; text-decoration: none;
}
.req-playurl:hover { text-decoration: underline; }
.req-empty { text-align: center; color: var(--text-3); font-size: 13.5px; padding: 40px 20px; }

@media (max-width: 767px) {
  .req-wrap { padding: 14px 0 30px; gap: 13px; }
  .req-head { padding: 15px 16px; }
  .req-head-ico { width: 46px; height: 46px; font-size: 23px; border-radius: 13px; }
  .req-title { font-size: 19px; }
  .req-card { padding: 17px 16px 19px; gap: 14px; }
  .req-tabs { align-self: stretch; }
  .req-tabs .seg-btn { flex: 1; text-align: center; }
  .req-pay { align-self: stretch; }
  .req-pay .seg-btn { flex: 1; }
  .req-hist-head { flex-direction: column; align-items: stretch; }
  .req-sort { justify-content: center; }
  .req-item { padding: 13px 14px; }
}

/* 影视数据源不可用提示（首页）：各板块隐藏时给出一次性说明，避免误以为板块「消失」 */
.home-src-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r-md);
  font-size: 12.5px; color: var(--text-2); line-height: 1.6;
}

/* ═══════════ 游戏中心（梨子手游渠道） ═══════════ */
.games-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.game-search { flex: 0 1 260px; }
.game-filters { display: flex; flex-direction: column; gap: 11px; padding: 14px 16px; border-radius: var(--r-lg); margin-bottom: 20px; }
.gf-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.gf-label { flex: 0 0 40px; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding-top: 4px; }
.gf-row .pills { flex: 1; }
/* 分类 / 版本 / 平台 选项较多：一行放不下自动换行（优化①） */
.pills-wrap { flex-wrap: wrap; row-gap: 7px; overflow: visible; }
/* 手机端筛选：每行最多显示 3 行选项，其余点「更多」展开（优化⑤；桌面/平板由 JS 判定后隐藏该按钮） */
.gf-more {
  flex: 0 0 auto; align-self: flex-start; height: 28px; padding: 0 13px; margin-left: 6px;
  border-radius: 99px; border: 1px solid var(--chip-bg-hover); background: transparent;
  color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out);
}
.gf-more:hover { background: var(--accent-soft); }
.gf-more[hidden] { display: none !important; }

/* 游戏库网格：PC 一行 8 个 / 平板 一行 5 个 / 手机 一行 3 个（优化①） */
.game-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.game-card {
  display: flex; flex-direction: column; gap: 9px; padding: 11px;
  border-radius: var(--r-md); background: var(--glass-bg);
  border: 1px solid var(--glass-border-outer);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  text-decoration: none; color: inherit;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); }
.gc-icon { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--chip-bg); }
.gc-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gc-name { font-size: 13px; font-weight: 700; color: var(--text-1); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-welfare { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.gc-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; color: var(--accent); background: var(--accent-soft); }
.gc-badge-off { color: #b45309; background: rgba(245, 158, 11, 0.16); }
.gc-tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 99px; color: var(--text-2); background: var(--chip-bg); }
.gc-sk { pointer-events: none; }
.gc-sk-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; }

/* 游戏详情 */
.gd-wrap { display: flex; flex-direction: column; gap: 16px; }
/* 顶部游戏信息区 与 内容区板块 之间的间距（优化③：此前两者直连） */
.gd-body { display: flex; flex-direction: column; gap: 18px; }
.gd-back { align-self: flex-start; }
.gd-head { display: flex; gap: 18px; padding: 20px; border-radius: var(--r-xl); }
.gd-icon { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 20px; overflow: hidden; background: var(--chip-bg); }
.gd-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.gd-name { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.gd-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-welfare { font-size: 13.5px; color: #b45309; font-weight: 600; }
.gd-meta { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.gd-actions { margin-top: 4px; display: flex; gap: 10px; }
.gd-cta { text-decoration: none; height: 42px; padding: 0 26px; }
/* 内容区域板块（优化②）：五宣图 + 游戏详情 / 游戏福利 / 返利说明 / VIP 说明 同处一块 */
.gd-content { padding: 20px; border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 18px; }
.gd-content .gd-sec { padding: 0; }
.gd-content .gd-sec + .gd-sec { border-top: 1px solid var(--glass-border-outer); padding-top: 17px; }
.gd-content .gd-sec h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.gd-content .gd-sec h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #0a84ff, #bf5af2); }
.gd-content .gd-text { font-size: 13.5px; color: var(--text-2); line-height: 1.85; word-break: break-word; }
/* 五宣图：按图片自身尺寸完整显示（contain 不裁剪），置于「游戏详情」上方、随内容板块 */
.gd-photos.wall-scroll { padding: 0 0 4px; margin: 0; align-items: flex-start; }
.gd-photos .mini-poster { flex: 0 0 140px; }
.gd-photos .mini-poster .mp-img-wrap { aspect-ratio: auto; }
.gd-photos .mini-poster img { position: static; width: 100%; height: auto; max-height: 280px; object-fit: contain; }

/* 礼包中心 */
.gift-sec { display: flex; flex-direction: column; gap: 12px; }
.gift-sec[hidden] { display: none !important; }
.gift-title { font-size: 16px; font-weight: 700; }
.gift-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 13px; }
.gift-card { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px; border-radius: var(--r-lg); }
.gift-name { font-size: 14.5px; font-weight: 700; }
.gift-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.gift-meta { font-size: 11.5px; color: var(--text-3); }
.gift-actions { display: flex; gap: 9px; margin-top: auto; }
.btn-gift-use { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 6px 18px rgba(239, 68, 68, 0.32); }
.btn-gift-use:hover { box-shadow: 0 8px 24px rgba(239, 68, 68, 0.42); }

/* ═══════════ 排行榜（单列横向卡片：前 10 条 + 底部「查看更多」） ═══════════ */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-row {
  display: grid; grid-template-columns: 52px 84px minmax(140px, 210px) 1fr auto;
  align-items: center; gap: 15px; padding: 14px 16px;
  border-radius: var(--r-lg); background: var(--glass-bg);
  border: 1px solid var(--glass-border-outer); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.rank-row:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-hover); }
.rk-no { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rk-num {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 11px; font-size: 15px; font-weight: 800;
  color: var(--text-3); background: var(--chip-bg);
}
.rk-medal { font-size: 15px; line-height: 1; }
.rk-1 .rk-num { color: #fff; background: linear-gradient(135deg, #ffb340, #ff5a1f); box-shadow: 0 6px 16px rgba(255, 90, 31, 0.35); }
.rk-2 .rk-num { color: #fff; background: linear-gradient(135deg, #ccd4dd, #8b95a1); box-shadow: 0 6px 16px rgba(139, 149, 161, 0.3); }
.rk-3 .rk-num { color: #fff; background: linear-gradient(135deg, #e9a860, #c07a3c); box-shadow: 0 6px 16px rgba(192, 122, 60, 0.3); }
.rk-icon { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: var(--chip-bg); }
.rk-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-head { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rk-name {
  font-size: 15.5px; font-weight: 800; color: var(--text-1); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rk-welfare { font-size: 11.5px; font-weight: 600; color: #b45309; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-main { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.rk-desc {
  font-size: 12.5px; color: var(--text-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-chip {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 8px;
  color: var(--text-2); background: var(--chip-bg); border: 1px solid var(--chip-bg-hover);
}
.rk-dl {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 18px; border-radius: 10px; text-decoration: none;
  background: linear-gradient(135deg, #ffab2e, #ff7a00); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 138, 0, 0.3);
  transition: filter var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.rk-dl:hover { filter: brightness(1.06); transform: translateY(-1px); }
.rk-dl.is-disabled { background: var(--chip-bg); color: var(--text-3); box-shadow: none; }
.rank-more { display: flex; justify-content: center; padding: 20px 0 4px; }
.rank-more[hidden] { display: none !important; }
.rank-more-btn {
  background: none; border: none; cursor: pointer; color: var(--accent);
  font-size: 14.5px; font-weight: 700; padding: 10px 24px; border-radius: 99px;
  transition: background var(--t-fast) var(--ease-out);
}
.rank-more-btn:hover { background: var(--accent-soft); }
.rank-more-btn:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 1023px) {
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
  .rank-row { grid-template-columns: 44px 72px minmax(120px, 170px) 1fr auto; gap: 12px; padding: 12px 14px; }
  .rk-icon { width: 72px; height: 72px; border-radius: 16px; }
}
@media (max-width: 767px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .game-card { padding: 8px; gap: 7px; border-radius: var(--r-sm); }
  .gc-icon { border-radius: 11px; }
  .gc-body { gap: 4px; }
  .gc-name { font-size: 11.5px; }
  .gc-welfare { font-size: 10px; }
  .gc-badge, .gc-tag { font-size: 9px; padding: 1px 6px; }
  .game-search { flex: 1 1 100%; }
  .game-filters { padding: 12px 13px; }
  .gf-label { flex-basis: 34px; font-size: 12px; padding-top: 4px; }
  .gd-head { flex-direction: column; gap: 13px; padding: 16px; }
  .gd-icon { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 16px; }
  .gd-name { font-size: 18px; }
  .gd-content { padding: 16px; gap: 15px; }
  .gd-photos .mini-poster { flex: 0 0 116px; }
  .gift-list { grid-template-columns: 1fr; }
  /* 排行榜：移动端两行网格（编号/图标独占左列，名称与描述右侧分两行） */
  .rank-row {
    grid-template-columns: 30px 60px 1fr auto;
    grid-template-areas:
      "no icon head dl"
      "no icon main main";
    align-items: center; gap: 7px 10px; padding: 11px 12px; border-radius: var(--r-md);
  }
  .rk-no { grid-area: no; }
  .rk-icon { grid-area: icon; width: 60px; height: 60px; border-radius: 14px; }
  .rk-head { grid-area: head; }
  .rk-main { grid-area: main; }
  .rk-dl { grid-area: dl; height: 30px; padding: 0 14px; font-size: 12px; border-radius: 9px; }
  .rk-num { width: 30px; height: 30px; font-size: 13.5px; border-radius: 10px; }
  .rk-medal { font-size: 13px; }
  .rk-name { font-size: 14px; }
  .rk-desc { font-size: 12px; }
  .rk-chip { font-size: 10.5px; padding: 2px 8px; }
  /* TabBar 第 6 项（游戏）：略缩字号/图标，避免 6 项拥挤 */
  .tabbar a { font-size: 10px; gap: 2px; }
  .tabbar a svg { width: 20px; height: 20px; }
}

/* ══════════ PWA：iOS「添加到主屏幕」standalone 安全区适配 ══════════
   全屏模式下顶部刘海与底部 Home 指示条会压住内容；
   由前端 JS 检测 display-mode: standalone 后给 html 加 .pwa-standalone。 */
html.pwa-standalone .site-nav-wrap { padding-top: env(safe-area-inset-top, 0px); }
html.pwa-standalone #tabbar { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
html.pwa-standalone body { min-height: 100dvh; }

/* ═══════════════════ iOS「添加到主屏幕」引导（v1.7.0） ═══════════════════
   只在 iOS + 浏览器（未添加到桌面 / 非 standalone）环境展示，30 天内最多提示一次。
   样式全部走主题变量，浅色/深色主题自动适配。 */
.ios-guide-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 62;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-hover);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.26s ease, transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  pointer-events: none;
}
.ios-guide-banner.in { opacity: 1; transform: none; pointer-events: auto; }
.ios-guide-banner .ig-ico {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-2), #bf5af2);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.ios-guide-banner .ig-tx { flex: 1; min-width: 0; }
.ios-guide-banner .ig-t {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.35;
}
.ios-guide-banner .ig-d {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.45;
}
.ios-guide-banner .ig-go {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-2), #bf5af2);
}
.ios-guide-banner .ig-x {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 768px) { .ios-guide-banner { display: none; } }

/* 引导弹窗内容 */
.ios-guide-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.35;
}
.ios-guide-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}
.ios-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ios-steps li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.ios-steps li b { color: var(--text-1); font-weight: 800; }
.ios-steps .n {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-2), #bf5af2);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.ios-note {
  margin-top: 13px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  line-height: 1.7;
}
.ios-guide-actions { margin-top: 16px; }
.ios-guide-actions .btn-primary { width: 100%; }

/* ══════════ APP 下载入口（v1.8.0）══════════
   两处高曝光位：① 顶栏右上「下载 APP」按钮（窄屏只留图标）；② 首页首屏顶部的下载条。
   均指向 /app 落地页（安卓直下安装包 + iOS 添加到主屏幕引导）。 */
.nav-dl {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px; border-radius: 11px;
  font-size: 13px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--accent-2), #bf5af2);
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-dl:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(10, 132, 255, 0.34); }
.nav-dl:active { transform: scale(0.97); }
.nav-dl svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .nav-dl { padding: 0 10px; }
  .nav-dl span { display: none; }
}

.app-dl-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.14), rgba(191, 90, 242, 0.14));
  border: 1px solid rgba(10, 132, 255, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.app-dl-bar:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 132, 255, 0.16); }
.app-dl-bar .adb-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-2), #bf5af2); color: #fff;
}
.app-dl-bar .adb-ico svg { width: 18px; height: 18px; }
.app-dl-bar .adb-tx { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.app-dl-bar .adb-tx b { color: var(--text-1); font-weight: 800; }
.app-dl-bar .adb-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
  font-size: 12.5px; font-weight: 800; color: var(--accent); white-space: nowrap;
}
.app-dl-bar .adb-btn svg { width: 15px; height: 15px; }

/* ══════════ 消除「背景乱闪」（v1.7.0） ══════════
   页面有近 30 个 backdrop-filter 毛玻璃元素，若动态模糊 blob 与它们在同一合成层内，
   滚动时极易互相触发整屏重绘而出现闪烁。把背景场景提升为独立合成层并隔离绘制。 */
.bg-scene {
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
}
/* ══════════ 消除「背景乱闪 / 跳动」（v1.8.1 加强）══════════
   根因（与后台面板同源）：4 个 blur 90~110px 的 blob 常驻 drift 无限动画 +
   will-change 常驻合成层，而页面上有近 30 个 backdrop-filter 毛玻璃面板 ——
   每帧都要重新光栅化模糊层、并被毛玻璃重新采样，滚动时背景与卡片一起闪动抖动。
   这里把背景漂移彻底停掉（渐变配色保留，只是不再移动），并去掉无用的层提升。 */
.blob {
  animation: none !important;
  will-change: auto !important;
  backface-visibility: hidden;
}

/* 系统开启「减弱动态效果」时彻底停掉漂移 blob 动画（既省电，也消除模糊层反复重绘导致的闪动） */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .bg-grain { animation: none !important; }
}

/* ══════════ 微信防红 · 浏览器打开引导层 ══════════
   微信内置浏览器（X5 / WKWebView）打开本站时展示：
   顶部箭头指向右上角「···」，卡片说明「在浏览器打开」，并提供一键复制网址。
   由 app.js 的 maybeShowWeChatGuide() 动态创建（同一会话只出现一次）。 */
.wxg-mask {
  position: fixed; inset: 0; z-index: 320;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 18px calc(26px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 16, 0.6);
  -webkit-backdrop-filter: blur(9px) saturate(140%);
  backdrop-filter: blur(9px) saturate(140%);
  animation: fade-in 0.26s var(--ease-out);
}
html.wxg-lock, html.wxg-lock body { overflow: hidden; }

/* 右上角指示：三点 + 向下浮动箭头 */
.wxg-tip {
  position: absolute; top: 8px; right: 12px;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.wxg-tip svg { width: 17px; height: 17px; animation: wxg-bob 1.5s var(--ease-out) infinite; }
@keyframes wxg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.wxg-card {
  width: min(362px, 100%);
  padding: 24px 22px 16px;
  border-radius: 26px;
  text-align: center;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.36), inset 0 1px 0 var(--glass-border-outer);
  animation: wxg-rise 0.44s var(--ease-spring);
}
@keyframes wxg-rise {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.wxg-ico {
  width: 54px; height: 54px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 17px; color: #fff;
  background: linear-gradient(135deg, #07c160 0%, #10b981 100%);
  box-shadow: 0 10px 26px rgba(7, 193, 96, 0.35);
}
.wxg-ico svg { width: 28px; height: 28px; }

.wxg-card h3 {
  margin: 0 0 8px; font-size: 17.5px; font-weight: 800;
  color: var(--text-1); letter-spacing: -0.2px;
}
.wxg-card p {
  margin: 0 0 16px; font-size: 12.5px; line-height: 1.7; color: var(--text-3);
}

.wxg-steps { display: grid; gap: 8px; margin-bottom: 18px; text-align: left; }
.wxg-step {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px;
  font-size: 12.5px; color: var(--text-2);
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
}
.wxg-step b {
  flex: 0 0 auto; width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 11px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.wxg-copy {
  width: 100%; height: 46px; border: 0; cursor: pointer;
  border-radius: 14px; color: #fff;
  font-size: 14.5px; font-weight: 800; letter-spacing: 0.2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.36);
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast);
}
.wxg-copy:active { transform: scale(0.97); }
.wxg-copy.done { background: linear-gradient(135deg, #34a853, #10b981); box-shadow: 0 12px 28px rgba(52, 168, 83, 0.34); }

.wxg-later {
  width: 100%; padding: 11px 8px 4px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-3);
  font-size: 12.5px; font-weight: 600;
}
.wxg-later:active { color: var(--text-2); }

/* 手机端：模糊层是最贵合成操作，降档到 6px / 12px */
@media (max-width: 767px) {
  .wxg-mask { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .wxg-card { -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .wxg-mask, .wxg-card, .wxg-tip svg { animation: none !important; }
}

