/* 推广站样式 v3（2026-10-22）：前半段原样取自 download-landing/app.css（v2），只改了色板 token；推广站新增区块的样式在文件末尾「===== v3 推广站 =====」之后。
 * 色板：主 #ffc53d、强调 #ff8a3d、底 #0b0b0d、卡 #141417、文字 #fff / rgba(255,255,255,.65)。
 * 全页点击安装的逻辑在 app.js；这里只管版式。
 */
:root {
  --primary: #ffc53d;
  --accent: #ff8a3d;
  --btn-fg: #1a1200;
  --bg: #0b0b0d;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.07);
  --card: #141417;
  --radius: 20px;
  --col: 480px;
  --hd-h: 84px;
  --dock-h: 150px;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans", "MiSans", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { -webkit-user-drag: none; user-select: none; }
[hidden] { display: none !important; }
.tiny { font-size: 12px; color: var(--muted); }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }

/* ---------- 页面列 ---------- */
.page { width: 100%; max-width: var(--col); margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; background: var(--bg); cursor: pointer; }
.flow { padding-top: var(--hd-h); padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }

/* ---------- 固定顶栏 ---------- */
.hd {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 99;
  width: 100%; max-width: var(--col); min-height: var(--hd-h);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px;
  background: linear-gradient(180deg, #16120a 0%, #0a0804 100%); border-bottom: 1px solid rgba(255,255,255,.08);
}
.hd-logo { display: flex; align-items: center; flex: 1; min-width: 0; margin-right: 8px; }
.logo-img { width: 43px; height: 43px; border-radius: 10px; flex-shrink: 0; background: #111; }
.logo-img.sm { width: 38px; height: 38px; }
.hd-text { margin-left: 8px; display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; }
.hd-t1 { font-size: 12px; line-height: 1.3; color: #fff; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hd-t2 { font-size: 12px; line-height: 1.4; color: var(--primary); font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-btn { border: 0; border-radius: 36px; height: 36px; min-width: 82px; padding: 0 12px; background: var(--primary); color: var(--btn-fg); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.hd-btn:active { filter: brightness(.92); }

/* ---------- 图流 ---------- */
.pic { width: 100%; display: block; position: relative; overflow: hidden; }
.pic img.real { width: 100%; height: auto; display: block; object-fit: cover; }
.pic.hero { aspect-ratio: 750 / 455; }
.pic.banner { aspect-ratio: 750 / 105; }
.pic.body { min-height: 260px; }
.pic.has-img { aspect-ratio: auto; min-height: 0; }
.pic.has-img .ph-in, .pic.has-img .ph-list { display: none; }
/* 没配图时的占位：渐变 + 图标 + 文案 */
.ph.hero { background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--primary) 55%, #000) 0%, #0b0a06 55%, #000 100%); }
.ph.banner { background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 35%, #000), color-mix(in srgb, var(--accent) 35%, #000)); }
.ph.body { background: linear-gradient(180deg, #0f0d08 0%, #000 100%); padding: 22px 16px 26px; }
.ph-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; }
.ph-in img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.ph-in b { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.ph-in span { font-size: 13px; color: var(--muted); max-width: 320px; line-height: 1.5; }
.ph-in em { font-style: normal; margin-top: 4px; padding: 8px 22px; border-radius: 999px; background: var(--grad); color: var(--btn-fg); font-weight: 700; font-size: 14px; }
.ph.banner .ph-in span { font-size: 14px; font-weight: 700; color: #fff; }
.ph-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-list li { padding: 14px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-align: center; }
.ph-list li::before { content: "✓ "; color: var(--primary); }

/* ---------- 轮播 ---------- */
.carousel { position: relative; width: 100%; overflow: hidden; background: #000; min-height: 120px; }
.slides { display: flex; width: 100%; transition: transform .45s ease-in-out; }
.slides.dragging { transition: none; }
.slide { flex: 0 0 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #0a0a0a; }
.slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.slide.ph { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: radial-gradient(100% 100% at 50% 100%, color-mix(in srgb, var(--accent) 40%, #000), #000); }
.slide.ph b { font-size: 22px; font-weight: 800; }
.slide.ph small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.cdots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.cdots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .3s; cursor: pointer; }
.cdots i.on { background: #fff; width: 16px; border-radius: 4px; }

/* ---------- 邀请横幅 / 备用 APP 卡（在图流顶部） ---------- */
.invite { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; background: rgba(255,255,255,.06); border-bottom: 1px solid var(--line); text-align: left; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--grad); color: var(--btn-fg); }
.invite-text { min-width: 0; }
.invite-title { font-weight: 600; font-size: 14px; }
.home-card { margin: 10px 12px 0; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, rgba(20,16,8,.9)), rgba(255,255,255,.05) 70%); border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent); text-align: left; animation: rise .4s ease both; }
.home-card p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 8px 0 0; }
.hc-points { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 12px; padding: 0; }
.hc-points li { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.35); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.hc-points li::before { content: "✓ "; }
.hc-actions .btn.ghost.solo { background: var(--grad); color: var(--btn-fg); border-color: transparent; }

/* ---------- 右侧悬浮入口 ---------- */
.links { position: fixed; right: 8px; bottom: calc(var(--dock-h) + 12px + env(safe-area-inset-bottom)); z-index: 98; display: flex; flex-direction: column; gap: 8px; }
.links:not(.has) { display: none; }
.lnk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: var(--btn-fg); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.lnk:active { transform: scale(.95); }
.lnk-ic { display: inline-flex; width: 20px; height: 20px; }
.lnk-ic svg { width: 20px; height: 20px; }
.lnk-t { font-size: 10px; font-weight: 700; line-height: 1; }
@media (min-width: 481px) { .links { right: calc(50% - var(--col) / 2 + 8px); } }

/* ---------- 固定底栏（2026-10-22 用户反馈内容太多：默认只留 logo + 一句话 + 主按钮 + 状态；备用下载 / 直接打开 / 网页版 / 安装说明 / 更新内容 / 版本行收进「更多」，页面里的下载卡仍全部展示） ---------- */
.dock .ft-t2, .dock .dock-links, .dock .meta { display: none; }
.dock.more .ft-t2 { display: block; }
.dock.more .dock-links { display: flex; }
.dock.more .meta { display: block; }
.dock-more { flex: none; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 5px 9px; line-height: 1; }
.dock-more:active { opacity: .7; }
.dock .status:empty { display: none; }
/* ---------- 固定底栏 ---------- */
.dock {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 100;
  width: 100%; max-width: var(--col); padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0a0804 0%, #16120a 100%); box-shadow: 0 -4px 15px rgba(0,0,0,.5); border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 5px;
}
.ft-row { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.ft-row .logo-img.sm { width: 32px; height: 32px; }
.ft-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ft-t1 { font-size: 11px; color: #fff; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-t2 { font-size: 10px; color: var(--primary); font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segment { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); flex: none; }
.seg { padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; }
.seg.on { background: #fff; color: #111; font-weight: 600; }
.dock-btns { display: flex; gap: 10px; }
.dl { flex: 1 1 0; min-width: 0; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; color: #fff; white-space: nowrap; overflow: hidden; }
.dl:active { transform: scale(.97); }
.dl:disabled { opacity: .55; cursor: default; }
.dl.fast { background: var(--grad); color: var(--btn-fg); box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 60%, transparent); }
.dl.backup { background: rgba(255,255,255,.1); }
/* 2026-10-27 「安装备用 APP」：和「立即下载」等大、金边 + 微光 + 右上角小标，让它看起来是第二件该做的事 */
.dl.spare { position: relative; overflow: visible; background: color-mix(in srgb, var(--primary) 14%, rgba(255,255,255,.04)); border: 1.5px solid color-mix(in srgb, var(--primary) 70%, transparent); color: #fff; animation: spareGlow 2.4s ease-in-out infinite; }
.dl.spare .dl-ic { color: var(--primary); }
.dl.spare .dl-t b { font-size: 15px; font-weight: 700; }
.dl.spare .dl-t small { color: var(--primary); opacity: .9; }
.dl.spare.done { animation: none; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.dl.spare.done .dl-ic { color: #7ee2a8; }
.dl-tag { position: absolute; top: -8px; right: 8px; font-style: normal; font-size: 9px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px; background: #ff4d6d; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.dl-tag:empty, .dl.spare.done .dl-tag { display: none; }
@keyframes spareGlow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent); } 50% { box-shadow: 0 0 12px 1px color-mix(in srgb, var(--primary) 45%, transparent); } }
.link.alt b { font-weight: 600; } .link.alt small { opacity: .7; margin-left: 4px; }
.dl-ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.dl-ic:empty { display: none; }
.dl-ic svg { width: 18px; height: 18px; }
.dl-t { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; }
.dl-t b { font-size: 15px; font-weight: 700; }
.dl.fast:not(:disabled) .dl-t b { display: inline-block; animation: heartBeat 2s infinite ease-in-out; }
.dl.backup .dl-t b { font-size: 14px; font-weight: 600; }
.dl-t small { font-size: 11px; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.dl-t small:empty { display: none; }
@keyframes heartBeat { 0% { transform: scale(1); } 14% { transform: scale(1.08); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } 70% { transform: scale(1); } }
.status { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
.status:empty { display: none; }
.status.ok { color: #7ee2a8; }
.status.warn { color: #ffcf6e; }
.dock-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 12px; color: var(--muted); }
.dock-links > * { padding: 2px 0; line-height: 18px; }
.dock-links > * + *::before { content: "·"; margin: 0 8px; color: var(--faint); }
.link { background: none; border: 0; color: var(--muted); font-size: 12px; }
.dock-links a:active, .link:active { color: #fff; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.meta:empty { display: none; }
.meta span { font-size: 10px; line-height: 1.3; color: var(--faint); }
.meta span + span::before { content: "·"; margin: 0 6px; }

/* ---------- 桌面：扫码卡（图流顶部，全页点击只高亮它） ---------- */
.pcbox { display: flex; align-items: center; gap: 18px; margin: 12px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); text-align: left; transition: box-shadow .3s; }
.pcbox.flash { box-shadow: 0 0 0 3px var(--primary); }
.qr { flex: none; width: 156px; height: 156px; padding: 8px; border-radius: 14px; background: #fff; }
/* 只选二维码那张图（.qr 里还有一张居中 logo，之前 .qr img 把 logo 也拉成 140px 盖住码面，2026-10-22 §13.3） */
.qr .qr-img { display: block; width: 140px; height: 140px; image-rendering: pixelated; }
.pc-desc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-title { font-size: 17px; font-weight: 700; }
.pc-desc p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pc-meta span { font-size: 11px; color: var(--faint); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); }
html:not(.touch) .dock { display: none; }
/* 2026-10-23 用户定：手机端去掉首屏下方的「下载卡」——顶栏按钮 + 固定底栏已经两处下载入口，中间再一张同样的卡太多；
   桌面端没有底栏，这张卡（二维码 / 电脑下载 / 复制链接 / 安装说明）是唯一入口，保留 */
#dlCard { display: none; }
html:not(.touch) #dlCard { display: flex; }
html:not(.touch) .flow { padding-bottom: 20px; }
html:not(.touch) .links { bottom: 24px; }
html:not(.touch) .page { cursor: default; }

/* ---------- 页脚 ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 18px 16px 24px; font-size: 11px; color: var(--faint); text-align: center; }
.foot span:empty { display: none; }

/* ---------- 通用按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .12s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { width: 100%; background: var(--grad); color: var(--btn-fg); padding: 13px 22px; font-size: 15px; }
.btn.ghost { background: rgba(255,255,255,.09); border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,.15); }

@media (max-width: 360px) {
  :root { --hd-h: 78px; }
  .hd { padding: 8px 10px; }
  .logo-img { width: 38px; height: 38px; }
  .hd-t1 { font-size: 11px; }
  .hd-t2 { font-size: 10px; }
  .hd-btn { min-width: 72px; height: 32px; font-size: 12px; }
  .dl { height: 36px; }
  .dl-t b { font-size: 13px; }
}

/* ======== 以下沿用旧版（legacy-v1/app.css）：弹层 / 安装说明 / 更新内容 / 门禁 / 引导层 / 备用 APP 三步图示 ======== */
/* ---------- 弹层 ---------- */
.overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 4, 10, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet-wrap { align-items: flex-end; padding: 0; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); background: rgba(22, 20, 34, .96); border: 1px solid var(--line); border-bottom: 0; animation: up .32s cubic-bezier(.2,.8,.2,1) both; }
.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { font-size: 18px; font-weight: 700; }
.x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.x:hover { background: rgba(255,255,255,.18); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.07); margin-bottom: 14px; }
.tab { flex: 1; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.tab.on { background: #fff; color: #111; font-weight: 700; }
.guide ol { list-style: none; counter-reset: step; color: var(--muted); font-size: 14px; }
.guide li { counter-increment: step; position: relative; padding: 10px 0 10px 40px; line-height: 1.55; border-bottom: 1px solid rgba(255,255,255,.07); }
.guide li:last-child { border: 0; }
.guide li::before { content: counter(step); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); }
.guide b { color: var(--text); }
.changelog { list-style: none; font-size: 13px; color: var(--muted); }
.changelog li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.changelog li:last-child { border: 0; }
.changelog b { color: var(--text); margin-right: 6px; font-size: 14px; }
.changelog .tiny { margin-left: 2px; }
.changelog div { margin-top: 3px; }
.gate-box, .mask-box { width: 100%; max-width: 340px; padding: 28px 22px 22px; text-align: center; background: rgba(22, 20, 34, .94); }
.gate-icon { font-size: 34px; }
.gate-box h2, .mask-box h2 { font-size: 20px; margin-top: 8px; }
.gate-box p, .mask-box p { color: var(--muted); font-size: 13px; margin: 8px 0 16px; line-height: 1.6; }
.gate-box input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.08); color: var(--text); font-size: 18px; text-align: center; letter-spacing: 4px; outline: none; margin-bottom: 12px; }
.gate-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.err { margin-top: 10px; min-height: 18px; font-size: 13px; color: #ffcf6e; }
.mask { align-items: flex-start; padding-top: 90px; }
.mask-arrow { position: absolute; top: 10px; right: 20px; font-size: 44px; line-height: 1; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -6px); } }
.load-err { position: fixed; z-index: 900; left: 20px; right: 20px; top: 40%; padding: 18px; text-align: center; background: rgba(22, 20, 34, .94); }
.load-err p { margin-bottom: 10px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- 桌面入口（2026-10-10）：安装卡里的提示卡 + 三步图示弹层 + 回访横幅 ---- */
.home-back .avatar { background: var(--grad); }
.hc-head { display: flex; align-items: center; gap: 8px; }
.hc-head b { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.hc-head .x { width: 26px; height: 26px; font-size: 16px; flex: none; }
.hc-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); flex: none; }
.hc-ic svg { width: 15px; height: 15px; }
.home-card p { margin: 6px 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hc-actions { display: flex; gap: 8px; }
.hc-actions .btn { flex: 1; padding: 10px 12px; font-size: 14px; }
.hc-actions .btn.primary { box-shadow: none; }
.hc-actions .btn.primary[hidden] { display: none; }
@media (max-height: 640px) { .home-card p { display: none; } .home-card { padding: 10px 12px; } }

.hs-intro { font-size: 14px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.hs-intro b { color: var(--text); }
.hs-box { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.hs-box-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.hs-box-head b { font-size: 15px; }
.hs-steps { list-style: none; counter-reset: s; margin-top: 12px; color: var(--muted); font-size: 13px; }
.hs-steps li { counter-increment: s; position: relative; padding: 6px 0 6px 30px; line-height: 1.5; }
.hs-steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); }
.hs-steps b { color: var(--text); font-weight: 600; }
#homeSignNote { margin-top: 6px; }
#homeSignNote:empty { display: none; }

.hs-manual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hs-step { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hs-pic { position: relative; height: 92px; border-radius: 12px; background: #f2f2f7; color: #111; overflow: hidden; }
.hs-cap { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.hs-cap b { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--grad); }
/* 图 1：Safari 底栏，中间分享按钮高亮 */
.hs-pic-share::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #fff; border-top: 1px solid #ddd; }
.hs-pic-share i.share { position: absolute; left: 50%; bottom: 7px; width: 20px; height: 20px; margin-left: -10px; border: 2px solid #0a84ff; border-top: 0; border-radius: 0 0 4px 4px; }
.hs-pic-share i.share::before { content: ""; position: absolute; left: 50%; top: -11px; width: 2px; height: 16px; margin-left: -1px; background: #0a84ff; }
.hs-pic-share i.share::after { content: ""; position: absolute; left: 50%; top: -12px; width: 8px; height: 8px; margin-left: -5px; border-left: 2px solid #0a84ff; border-top: 2px solid #0a84ff; transform: rotate(45deg); }
.hs-pic-share::after { content: ""; position: absolute; left: 50%; bottom: 36px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .6; } }
/* Android 图 1：浏览器顶栏，右上角「⋮」高亮 */
.hs-pic-dots { background: #fff; }
.hs-pic-dots i.bar { position: absolute; left: 0; right: 0; top: 0; height: 28px; display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; background: #f2f2f7; border-bottom: 1px solid #e5e5ea; font-style: normal; }
.hs-pic-dots i.bar em { font-style: normal; font-size: 16px; font-weight: 700; color: #111; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; outline: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, #fff); }
.hs-pic-dots::after { content: ""; position: absolute; right: 2px; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 1.6s ease-in-out infinite; }
/* 图 2：分享菜单列表，「添加到主屏幕」行高亮 */
.hs-pic-menu { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; background: #fff; }
.hs-pic-menu i.row { display: flex; align-items: center; justify-content: space-between; height: 20px; border-radius: 6px; background: #e9e9ee; font-style: normal; }
.hs-pic-menu i.row.on { background: #fff; border: 1.5px solid var(--accent); padding: 0 6px; height: 26px; }
.hs-pic-menu i.row.on em { font-style: normal; font-size: 10px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-pic-menu i.row.on b { font-size: 13px; color: #111; flex: none; }
/* 图 3：添加页：顶栏「取消 / 添加」，图标 + 名字 */
.hs-pic-add { background: #fff; }
.hs-pic-add i.bar { position: absolute; left: 0; right: 0; top: 0; height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border-bottom: 1px solid #e5e5ea; font-style: normal; font-size: 10px; color: #0a84ff; }
.hs-pic-add i.bar em { font-style: normal; }
.hs-pic-add i.bar em.go { font-weight: 700; padding: 2px 7px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 18%, #fff); color: #111; outline: 1.5px solid var(--accent); }
.hs-pic-add i.app { position: absolute; left: 8px; right: 8px; top: 36px; display: flex; align-items: center; gap: 8px; font-style: normal; }
.hs-pic-add i.app img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.hs-pic-add i.app em { font-style: normal; font-size: 11px; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-done { width: 100%; margin-top: 4px; padding: 12px; font-size: 14px; }
@media (max-width: 360px) { .hs-manual { grid-template-columns: 1fr; } .hs-pic { height: 72px; } .hs-step { flex-direction: row; align-items: center; } .hs-pic { flex: 0 0 120px; } }

/* ===== v3 推广站（2026-10-22）：以下为新增区块样式 ===== */
:root {
  --banana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M18 26C12 60 40 84 76 80c6-1 8-6 5-9C50 73 32 56 29 25c-1-5-10-5-11 1z' fill='%23fff' fill-opacity='.38'/%3E%3Cpath d='M15 19l7-3 4 9-7 3z' fill='%235a3c00' fill-opacity='.55'/%3E%3C/svg%3E");
  --ph-grad: linear-gradient(135deg, #ffc53d 0%, #ff8a3d 100%);
}
.hd { background: linear-gradient(180deg, #16120a 0%, var(--bg) 100%); }
.hd-t1 { display: flex; align-items: center; gap: 6px; font-size: 15px; -webkit-line-clamp: 1; }
.hd-btn { background: var(--grad); }
.adult-pill { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 16px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--btn-fg); font-size: 9px; font-weight: 800; font-style: normal; letter-spacing: .2px; }

/* 占位图：香蕉黄→橙斜向渐变 + 半透明香蕉轮廓（内联 SVG，无外部请求）；图片加载成功后 .has 盖住占位 */
.ph-img { position: relative; overflow: hidden; background: var(--ph-grad); }
.ph-img::before { content: ""; position: absolute; inset: 0; background: var(--banana) center / 46% no-repeat; opacity: .9; pointer-events: none; }
.ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ph-img.has img { opacity: 1; }
.ph-img.has::before { display: none; }
/* 2026-10-27 封面不裁（app.js fitPic）：比例与框不一致的图 contain 居中，底下铺同图模糊放大填边；横版进竖卡、竖版进轮播都不切 */
.ph-img .bgf { position: absolute; inset: -18px; background: center / cover no-repeat; filter: blur(14px) saturate(1.25) brightness(.7); transform: translateZ(0); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ph-img.has .bgf { opacity: 1; }
.ph-img.fit img { object-fit: contain; }

/* 加载态：三根小香蕉跳动（纯 CSS） */
.loading { display: flex; justify-content: center; align-items: flex-end; gap: 10px; padding: 26px 16px; }
.loading i { width: 26px; height: 26px; background: var(--banana) center / contain no-repeat; filter: drop-shadow(0 0 0 var(--primary)); animation: hop 1s ease-in-out infinite; }
.loading i::after { content: ""; display: block; width: 100%; height: 100%; background: var(--ph-grad); -webkit-mask: var(--banana) center / contain no-repeat; mask: var(--banana) center / contain no-repeat; }
.loading i:nth-child(2) { animation-delay: .15s; }
.loading i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-10px) rotate(8deg); } }

/* 2 公告条（滚动文字） */
.notice { display: flex; align-items: center; gap: 8px; padding: 7px 16px; background: color-mix(in srgb, var(--primary) 14%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); font-size: 12px; color: var(--primary); font-weight: 600; }
.notice-ic { flex: none; }
.notice-wrap { flex: 1; min-width: 0; overflow: hidden; }
.notice-txt { display: inline-block; white-space: nowrap; padding-left: 100%; animation: marquee 16s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* 3 Hero 轮播：横图 750×422 + 左下文字层 */
.carousel.hero-c .slide { aspect-ratio: 750 / 422; background: var(--ph-grad); }
.sl { position: relative; display: block; color: #fff; }
.sl .sl-img { position: absolute; inset: 0; }
.sl .sl-img img { width: 100%; height: 100%; }
.sl-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 26px; background: linear-gradient(180deg, transparent 0%, rgba(11,11,13,.82) 70%, rgba(11,11,13,.92) 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.sl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sl-chips span { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(255,197,61,.22); color: var(--primary); font-weight: 700; border: 1px solid rgba(255,197,61,.4); }
.sl-title { font-size: 20px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,.6); max-width: 92%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sl-line { font-size: 12px; color: var(--muted); }
.sl-cta { margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px; background: var(--grad); color: var(--btn-fg); box-shadow: 0 4px 14px rgba(255,197,61,.35); }
.carousel.hero-c .cdots { bottom: 10px; left: auto; right: 14px; transform: none; }
.carousel.hero-c .cdots i.on { background: var(--primary); }

/* 4 下载卡（镜像底栏） */
.dl-card { margin: 14px 16px 0; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.dlc-head { display: flex; align-items: center; gap: 10px; }
.dlc-head .logo-img { width: 52px; height: 52px; border-radius: 14px; }
.dlc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dlc-text b { font-size: 16px; font-weight: 800; }
.dlc-meta { justify-content: flex-start; }
.dl-card .pcbox { margin: 0; }
.dl-card .dock-links { justify-content: flex-start; }
.qr { position: relative; }
/* 二维码中心 logo：logo-qr.png 自带白底圆角留白，显示 32px（纠错 M 下约占码面 5%，能扫；要放大到 36px 以上得把 qrcode(0,'M') 改 'H'） */
.qr .qr-logo { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 7px; background: none; padding: 0; image-rendering: auto; }

/* 通用区块头 */
.sec { margin: 22px 16px 0; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sec-hd b { font-size: 17px; font-weight: 800; }
.sec-act { border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent); background: rgba(255,197,61,.1); color: var(--primary); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.sec-act:disabled { opacity: .6; }
.ad-tag { font-style: normal; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.12); color: var(--faint); font-weight: 600; flex: none; }

/* 7② 推广九宫格 */
.tiles { margin: 18px 16px 0; }
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.tile-ic { width: 54px; height: 54px; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.tile-ic::before { background-size: 60%; }
.tile span.t { font-size: 12px; color: var(--text); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 420px) { .tiles-grid { grid-template-columns: repeat(5, 1fr); } }

/* 5 标签行 */
.tags { display: flex; gap: 8px; overflow-x: auto; padding: 18px 16px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tags::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--btn-fg); }

/* 6 内容块：横滑卡片 */
.blocks { display: flex; flex-direction: column; gap: 22px; padding-top: 14px; }
.blk-hd { display: flex; align-items: center; gap: 8px; padding: 0 16px; margin-bottom: 10px; }
.blk-emoji { font-size: 22px; line-height: 1; flex: none; }
.blk-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.blk-tt b { font-size: 17px; font-weight: 800; line-height: 1.25; }
.blk-tt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-more { flex: none; border: 0; background: none; color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 0 4px 8px; }
.blk-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.blk-row::-webkit-scrollbar { display: none; }
.card { flex: none; width: 112px; scroll-snap-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 5px; outline: none; }
.card:active .cv { transform: scale(.97); }
.cv { aspect-ratio: 3 / 4; border-radius: 12px; transition: transform .12s; }
/* 横版封面过半的板块（site.json block.layout=landscape / 页面 rowLayout）：16:9 横卡，一屏两张带半张露头 */
.blk-row.land .card { width: 176px; }
.blk-row.land .cv { aspect-ratio: 16 / 9; }
.badge { position: absolute; left: 0; top: 8px; z-index: 2; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .5px; padding: 4px 7px 4px 6px; border-radius: 0 8px 8px 0; background: var(--primary); color: var(--btn-fg); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.badge.hot { background: linear-gradient(135deg, #ff8a3d, #ff4d4d); color: #fff; }
.badge.new { background: linear-gradient(135deg, #2ad3a1, #19b8e6); color: #04221c; }
/* 卡片上有试看片段：左下角小播放标，告诉用户这部点开能直接看第一集 */
.playable { position: absolute; left: 6px; bottom: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; padding: 4px 7px 4px 5px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.playable svg { display: block; }
.eps { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; font-style: normal; font-size: 10px; color: #fff; text-align: right; padding: 14px 6px 5px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.ct { font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctags { display: flex; gap: 4px; overflow: hidden; }
.ctags span { font-size: 10px; color: var(--muted); padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.08); white-space: nowrap; }
.cheat { font-size: 11px; color: var(--accent); font-weight: 600; }
.blk.filtered-out, .card.filtered-out, .ad-banner.filtered-out { display: none; }

/* 7① 块间横幅 750×105（多条轮换） */
.ad-banner { position: relative; margin: 0 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 750 / 105; min-height: 44px; }
.ad-banner .ad-item { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .5s; pointer-events: none; }
.ad-banner .ad-item.on { opacity: 1; pointer-events: auto; }
.ad-banner .ad-item .ad-t { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 800; color: var(--btn-fg); text-shadow: 0 1px 0 rgba(255,255,255,.4); max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-banner .ad-item.has .ad-t { display: none; }
.ad-banner .ad-item::before { background-size: auto 72%; background-position: 88% 50%; }
.ad-banner .ad-tag, .ad-pop .ad-tag { position: absolute; right: 6px; top: 6px; z-index: 3; background: rgba(0,0,0,.5); color: rgba(255,255,255,.8); }

/* 7③ 弹窗广告 */
.ad-pop { z-index: 1100; }
.ad-pop-box { position: relative; width: 100%; max-width: 320px; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); animation: rise .35s ease both; }
.ad-pop-img { display: block; aspect-ratio: 3 / 4; }
.ad-pop-img::before { background-size: 40%; }
.ad-pop-title { padding: 12px 14px; font-size: 14px; font-weight: 700; text-align: center; }
.ad-pop-title:empty { display: none; }
.ad-pop-x { position: absolute; left: 8px; top: 8px; z-index: 4; background: rgba(0,0,0,.55); }

/* 8 回家的路 */
.dom-perm { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); display: flex; flex-direction: column; gap: 6px; }
.dom-perm small { font-size: 11px; color: var(--primary); font-weight: 700; letter-spacing: .5px; }
.dom-perm .dom-url { font-size: 22px; font-weight: 800; word-break: break-all; line-height: 1.2; }
.dom-perm .dom-note { font-size: 12px; color: var(--muted); }
.dom-acts { display: flex; gap: 8px; margin-top: 6px; }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn.sm.go { background: var(--primary); color: var(--btn-fg); border-color: transparent; }
.dom-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dom { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.dom-chk .dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); vertical-align: middle; margin-right: 6px; }
.dom-chk.checking .dot { background: var(--primary); animation: blink .8s ease-in-out infinite; }
.dom-chk.ok .dot { background: #4ad17a; box-shadow: 0 0 6px rgba(74,209,122,.7); }
.dom-chk.bad .dot { background: #ff5a5a; }
.dom-perm .dom-note em { font-style: normal; color: var(--faint); }
@keyframes blink { 50% { opacity: .3; } }
.dom-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dom-t b { font-size: 13px; }
.dom-t small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dom-t em { font-style: normal; font-size: 10px; color: var(--faint); }
.dom .btn.sm { padding: 6px 10px; font-size: 12px; }
.dom-tip { margin-top: 10px; line-height: 1.5; }

/* 9 联系我们 */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.contact { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.contact-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--primary); }
.contact-ic svg { width: 22px; height: 22px; }
.contact:active .contact-ic { background: rgba(255,197,61,.15); }
.contact span.t { font-size: 12px; color: var(--text); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 10 关于 / 底栏 */
.about { padding: 16px 14px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; }
.about-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.about-head img { width: 40px; height: 40px; border-radius: 11px; }
.about-head b { font-size: 16px; font-weight: 800; }
.about-text { font-size: 13px; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.adult-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.about-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 12px; }
.about-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.about-copy { margin-top: 10px; font-size: 11px; color: var(--faint); }

/* 0 年龄门 */
.age-gate { z-index: 1200; background: rgba(11,11,13,.9); }
.age-box { width: 100%; max-width: 340px; padding: 28px 22px 22px; text-align: center; border-radius: 22px; background: var(--card); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: rise .35s ease both; }
.age-badge { display: flex; justify-content: center; margin-bottom: 10px; filter: drop-shadow(0 8px 20px rgba(255,197,61,.35)); }
.age-box h2 { font-size: 20px; font-weight: 800; }
.age-box p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 18px; }
.age-box .btn { width: 100%; }
.age-leave { margin-top: 10px; }

/* 桌面端 */
html:not(.touch) .dl-card .dock-btns { display: none; }
html:not(.touch) .dl-card .dock-links { display: none; }
html:not(.touch) .dl-card #cardStatus { display: none; }

/* ===== 11 详情视图（index.html?d=剧ID，2026-10-22 §13.2）：html.detail-on 时首页区块全部藏起来，只留顶栏 / 详情 / 底栏 ===== */
html.detail-on #flow > :not(#detail) { display: none !important; }
.detail { display: flex; flex-direction: column; gap: 14px; padding: 10px 16px 8px; }
.d-top { display: flex; align-items: center; gap: 10px; }
.d-back { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--text); font-size: 14px; font-weight: 700; padding: 7px 14px 7px 10px; border-radius: 999px; }
.d-top b { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-hero { display: flex; gap: 14px; align-items: flex-start; }
.d-cover { flex: none; width: 124px; aspect-ratio: 3 / 4; border-radius: 14px; cursor: pointer; outline: none; }
.d-cover .d-lock { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; background: rgba(0,0,0,.38); color: #fff; font-size: 11px; font-weight: 700; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.d-lock i { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--btn-fg); font-style: normal; font-size: 16px; display: grid; place-items: center; padding-left: 3px; box-shadow: 0 6px 18px rgba(255,197,61,.45); }
.d-cover:active { transform: scale(.98); }
/* 详情页横版封面：整宽 16:9 框，标题 / 标签落到下面 */
.d-hero.land { flex-direction: column; }
.d-hero.land .d-cover { width: 100%; aspect-ratio: 16 / 9; }
.d-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.d-title { font-size: 20px; font-weight: 800; line-height: 1.25; word-break: break-all; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-chips span { font-size: 11px; font-weight: 600; color: var(--primary); padding: 2px 8px; border-radius: 999px; background: rgba(255,197,61,.12); border: 1px solid rgba(255,197,61,.3); }
.d-chips span.badge-chip { background: var(--primary); color: var(--btn-fg); border-color: transparent; }
.d-status { font-size: 12px; color: var(--muted); line-height: 1.5; }
.d-status em { font-style: normal; color: var(--accent); font-weight: 700; }
.d-dl { width: 100%; border: 0; border-radius: 14px; padding: 13px 16px; background: var(--grad); color: var(--btn-fg); display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 8px 24px rgba(255,197,61,.3); }
.d-dl b { font-size: 16px; font-weight: 800; }
.d-dl small { font-size: 12px; opacity: .8; }
.d-dl:active { transform: scale(.99); }
.d-pc { display: none; margin: 0; }
.d-desc-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.d-desc { font-size: 13px; color: var(--muted); line-height: 1.65; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.d-desc.open { -webkit-line-clamp: unset; display: block; }
.d-desc-more { border: 0; background: none; color: var(--primary); font-size: 12px; font-weight: 700; padding: 2px 0; }
.d-sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d-sec-hd b { font-size: 16px; font-weight: 800; }
.d-sec-hd small { font-size: 12px; color: var(--muted); }
.d-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.d-ep { position: relative; height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font-size: 15px; font-weight: 700; display: grid; place-items: center; padding-bottom: 8px; }
.d-ep.free { border-color: rgba(255,197,61,.6); }
.d-ep.free::after { content: "APP 免费"; position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; font-weight: 700; line-height: 1; padding: 2px 0 3px; text-align: center; border-radius: 0 0 9px 9px; background: var(--primary); color: var(--btn-fg); }
.d-ep.lock { color: var(--muted); }
.d-ep.lock::before { content: ""; position: absolute; right: 5px; top: 5px; width: 10px; height: 10px; opacity: .75; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc53d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.d-ep.soon { color: var(--faint); border-style: dashed; }
.d-ep.soon::after { content: "待更"; position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; line-height: 1; padding: 2px 0 3px; text-align: center; color: var(--faint); }
.d-ep:active { transform: scale(.96); }
.d-rel .blk-row { margin: 0 -16px; }
/* 桌面：整宽按钮换成扫码卡 */
/* 试看播放器（§13.2 试看片段）：手机竖版 3:4 封顶 62vh，桌面 16:9 封顶 480；视频 contain 不裁；海报层 / 播完遮罩盖在上面 */
.d-player { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh; background: #000; border-radius: 14px; overflow: hidden; }
.d-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.d-play-poster { position: absolute; inset: 0; z-index: 2; cursor: pointer; outline: none; border-radius: 0; }
.d-play-poster.has::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.d-play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; border: 0; border-radius: 999px; padding: 12px 24px; background: var(--grad); color: var(--btn-fg); font-size: 15px; font-weight: 800; box-shadow: 0 8px 24px rgba(255,197,61,.4); white-space: nowrap; }
.d-play-btn[disabled] { opacity: .75; }
.d-play-btn:active { transform: translate(-50%, -50%) scale(.97); }
.d-play-note { position: absolute; left: 10px; top: 10px; z-index: 3; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; pointer-events: none; }
.d-play-note:empty { display: none; }
.d-play-end { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,.74); color: #fff; cursor: pointer; text-align: center; outline: none; }
.d-play-end i { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: var(--btn-fg); font-style: normal; font-size: 20px; display: grid; place-items: center; padding-left: 4px; box-shadow: 0 8px 24px rgba(255,197,61,.45); }
.d-play-end b { font-size: 17px; font-weight: 800; }
.d-play-end span { font-size: 13px; opacity: .85; }
html:not(.touch) .d-player { aspect-ratio: 16 / 9; max-height: 480px; }
html:not(.touch) .d-dl { display: none; }
html:not(.touch) .d-pc { display: flex; }
html:not(.touch) .d-pc.flash { box-shadow: 0 0 0 3px var(--primary); }

/* ---------- 2026-10-23 推广站新增广告位：跑马灯 / 内嵌卡 / 开站插屏 / 加载遮罩 / 试看播放器 ---------- */
.marquee { position: relative; margin: 10px 0 0; padding: 8px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mq-track { display: flex; gap: 18px; width: max-content; animation: mqScroll 40s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-size: 12px; white-space: nowrap; }
.mq-item .mq-ic { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; background: var(--card); flex: none; }
.mq-item .mq-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mq-tag { position: absolute; right: 8px; top: 4px; }
@keyframes mqScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; overflow-x: auto; width: auto; } }
.card.ad-card { position: relative; }
.card.ad-card .ad-tag { position: absolute; right: 4px; top: 4px; background: rgba(0,0,0,.55); color: #fff; }
.ad-open { display: flex; align-items: center; justify-content: center; background: #000; z-index: 120; }
.ad-open-img { position: absolute; inset: 0; display: block; }
.ad-open-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-open-skip { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.45); color: #fff; font-size: 12px; }
.ad-open-tag { position: absolute; left: 14px; top: calc(18px + env(safe-area-inset-top)); }
.ad-load { position: fixed; inset: 0; z-index: 115; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ad-load-img { width: min(92vw, 440px); aspect-ratio: 600 / 400; border-radius: 14px; overflow: hidden; background: var(--card); display: block; }
.ad-load-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-load small { color: var(--muted); font-size: 12px; }
.ad-load .ad-tag { position: absolute; left: 14px; top: calc(14px + env(safe-area-inset-top)); }
.d-ad { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.72); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.d-ad-img { width: 86%; aspect-ratio: 750 / 420; max-height: 70%; border-radius: 10px; overflow: hidden; background: var(--card); display: block; }
.d-ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-ad-close { height: 34px; padding: 0 16px; border-radius: 17px; border: 0; background: var(--primary); color: var(--btn-fg); font-weight: 700; font-size: 13px; }
.d-ad-mid { justify-content: flex-end; background: transparent; pointer-events: none; padding-bottom: 46px; }
.d-ad-mid .d-ad-img { width: 70%; aspect-ratio: 750 / 105; max-height: none; pointer-events: auto; }
.d-ad-x { position: absolute; right: 10px; bottom: 50px; width: 22px; height: 22px; border-radius: 11px; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 22px; padding: 0; pointer-events: auto; }
.d-ad-tag { position: absolute; left: 8px; top: 8px; }

/* ---------- 2026-10-23 频道导航 / 卡片副标 ---------- */
.chan-nav { position: sticky; top: var(--hd-h); z-index: 90; display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); }
.chan-nav::-webkit-scrollbar { display: none; }
.chan-nav a { flex: none; padding: 6px 12px; border-radius: 16px; font-size: 13px; color: var(--muted); background: var(--glass); text-decoration: none; white-space: nowrap; }
.chan-nav a.on { color: var(--btn-fg); background: var(--primary); font-weight: 700; }
.card .cline { display: block; font-size: 11px; color: var(--faint); line-height: 1.3; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* 2026-10-24 轻量版提醒 */
.lite-actions { display: flex; gap: 10px; margin-top: 16px; }
.lite-btn { flex: 1; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass, rgba(255,255,255,.06)); color: var(--fg, #fff); font-size: 15px; font-weight: 700; }
.lite-btn--go { background: var(--primary, #ffcf3a); color: var(--btn-fg, #1a1400); border-color: transparent; }
#statusAlt { margin-left: 6px; color: var(--primary, #ffcf3a); text-decoration: underline; }
