/* 网盘搜索站前台样式（设计稿 docs/preview/网盘搜索站-通用资源版.html） */
:root {
  --brand: #1677ff; --brand-soft: #e8f1ff; --brand-ink: #0b4fc4;
  --bg: #f5f6f8; --card: #fff; --line: #e6e8ec; --line-2: #f0f1f3;
  --ink: #1d2129; --ink-2: #4e5969; --mute: #86909c; --faint: #b0b6bf;
  --ok: #00a870; --ok-soft: #e6f7f0; --warn: #d48806; --warn-soft: #fff7e6; --bad: #e5484d; --bad-soft: #fdecec;
  --hot: #f5541c;
  --r: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Solar 图标（static/icons.svg） */
.si { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; fill: currentColor; }

/* 分类颜色：图标和分类字共用 */
.c-video { --c: #1677ff; } .c-duanju { --c: #eb2f96; } .c-anime { --c: #fa541c; } .c-software { --c: #13a8a8; } .c-game { --c: #389e0d; }
.c-study { --c: #d48806; } .c-ebook { --c: #a0522d; } .c-music { --c: #e5484d; } .c-other { --c: #697586; }

/* ---------- 顶栏 ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.logo .mk { width: 30px; height: 30px; color: var(--brand); display: grid; place-items: center; }
.logo .mk .si { width: 30px; height: 30px; }
.top .sb { flex: 1; max-width: 520px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-self: stretch; }
.top nav a { display: flex; align-items: center; color: var(--ink-2); font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }

/* 搜索框 */
.sbox { display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 0 4px 0 12px; transition: border-color .15s; }
.sbox:focus-within { border-color: var(--brand); background: #fff; }
.sbox svg { color: var(--mute); }
.sbox input { flex: 1; border: 0; outline: 0; background: transparent; padding: 9px 10px; min-width: 0; }
.sbox .go { background: var(--brand); color: #fff; padding: 6px 16px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.sbox.big { padding: 0 6px 0 18px; border-radius: 14px; background: #fff; border: 2px solid var(--brand); box-shadow: 0 4px 16px rgba(22,119,255,.08); }
.sbox.big input { padding: 15px 12px; font-size: 16px; }
.sbox.big .go { padding: 10px 26px; border-radius: 10px; font-size: 15px; }

/* ---------- 首页顶部整宽区：搜索 + 分类入口 ---------- */
.band { background: #fff; border-bottom: 1px solid var(--line); }
.band .in { max-width: 1200px; margin: 0 auto; padding: 26px 20px 8px; }
.hero { max-width: 760px; margin: 0 auto; padding: 6px 0 22px; }
.stype { display: flex; justify-content: center; gap: 2px; margin-bottom: 10px; overflow-x: auto; }
.stype button { padding: 4px 12px; border-radius: 7px; color: var(--ink-2); font-size: 14px; white-space: nowrap; flex: none; }
.stype button:hover { color: var(--ink); }
.stype button.on { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.hot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; margin-top: 12px; font-size: 13px; }
.hot span { display: inline-flex; align-items: center; gap: 4px; color: var(--hot); font-weight: 600; }
.hot span .si { width: 16px; height: 16px; }
.hot a { color: var(--ink-2); }
.hot a:hover { color: var(--brand); }
.hot a i { font-style: normal; color: var(--mute); margin-right: 3px; }
.cats { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; border-top: 1px dashed var(--line); padding: 16px 0 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; color: var(--ink-2); font-size: 13px; }
.cat .si { width: 34px; height: 34px; color: var(--c); transition: transform .15s; }
.cat:hover { color: var(--ink); }
.cat:hover .si { transform: translateY(-2px); }

/* ---------- 主栏 + 右侧栏 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }

.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; gap: 12px; flex-wrap: wrap; }
.sec-h h2 { font-size: 18px; }
.sec-h .sub { color: var(--mute); font-size: 12.5px; }
.sec-h .sub b { color: var(--ink-2); }
.more { color: var(--mute); font-size: 13px; display: inline-flex; align-items: center; }
.more:hover { color: var(--brand); }
.more .si { width: 14px; height: 14px; }
.sub-h { font-size: 15px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.sub-h .si { width: 18px; height: 18px; color: var(--c, var(--mute)); }
.rhead .sub-h { font-size: 20px; margin: 0; }
.rhead .sub-h .si { width: 24px; height: 24px; }

/* 首页「最新收录」：每个分类一块 */
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.blk { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 8px; }
.blk:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 单数块时最后一块占满一行 */
.blk .bh { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.blk .bh .si { width: 22px; height: 22px; color: var(--c); }
.blk .bh b { font-size: 15px; }
.blk .bh a { margin-left: auto; color: var(--mute); font-size: 12.5px; display: inline-flex; align-items: center; }
.blk .bh a:hover { color: var(--brand); }
.blk .bh a .si { width: 13px; height: 13px; color: currentColor; }
.blk ul { list-style: none; }
.blk li a { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 14px; }
.blk li a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #c9cdd4; flex: none; transform: translateY(-3px); }
.blk li a:hover::before { background: var(--c); }
.blk li a .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk li a:hover .t { color: var(--brand); }
.blk li a .d { color: var(--faint); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }

/* 海报墙 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.grid.one { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mv { display: block; text-align: left; min-width: 0; }
.poster { aspect-ratio: 2/3; border-radius: 10px; position: relative; overflow: hidden; background: #eef3fb; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 没有海报或海报加载失败时：影视图标 + 片名 */
.poster .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; color: #5b6b82; font-weight: 600; font-size: 13px; line-height: 1.35; }
.poster .ph .si { width: 34px; height: 34px; color: #9fb3cf; }
.poster .sc { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.mv:hover .poster { box-shadow: 0 0 0 2px var(--brand); }
.mv .t { font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv .m { color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 搜索结果、分类页 */
.rhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rhead h2 { font-size: 20px; }
.rhead > span { color: var(--mute); }
.rlist { display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; align-items: center; }
.row:hover { border-color: var(--brand); }
.row .poster { width: 76px; border-radius: 8px; }
.row .poster .ph { font-size: 11px; gap: 4px; }
.row .poster .ph .si { width: 22px; height: 22px; }
.row h3 { font-size: 16px; }
.row .m { color: var(--mute); font-size: 13px; }
.row .en { color: var(--ink-2); font-size: 13px; }
.row .cnt { text-align: right; white-space: nowrap; }
.row .cnt b { font-size: 20px; color: var(--brand); }
.row .cnt div { color: var(--mute); font-size: 12px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pager a, .pager span { padding: 6px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span { color: var(--mute); }

/* 分类筛选：下划线式文字标签 */
.chips { display: flex; gap: 18px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; margin-bottom: 14px; }
.chips button { padding: 10px 0 9px; color: var(--ink-2); font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.chips button small { color: var(--mute); margin-left: 3px; font-size: 12px; }
.chips button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }

/* 资源行：左边分类图标，像文件列表 */
.rlist2 { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.ri { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.ri:first-child { border-top: 0; }
.ri:hover { background: #fafbfc; }
.ri .fi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.ri .fi .si { width: 24px; height: 24px; }
.ri .tt { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri a.tt:hover { color: var(--brand); }
.ri .mt { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 0; color: var(--mute); font-size: 12.5px; align-items: center; }
.ri .mt > * + *::before { content: ''; display: inline-block; width: 1px; height: 10px; background: var(--line); margin: 0 9px; vertical-align: -1px; }
.ri .mt .ok { color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
.ri .mt .ok .si { width: 14px; height: 14px; }
.ri .mt .rec { color: var(--brand); font-weight: 600; }

.empty { text-align: center; padding: 40px 20px; color: var(--mute); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.empty .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin: 0 auto 12px; color: var(--mute); }
.empty .ico svg { width: 24px; height: 24px; }
.empty h3 { color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* 库里没有：当场补搜 */
.live { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 20px; text-align: center; }
.live h3 { font-size: 17px; margin: 12px 0 4px; }
.live p { color: var(--mute); }
.steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.stp { padding: 5px 12px; border-radius: 99px; background: var(--bg); color: var(--mute); font-size: 13px; }
.stp.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.stp.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- 详情 ---------- */
.crumb { display: flex; gap: 6px; align-items: center; color: var(--mute); margin-bottom: 14px; font-size: 13px; min-width: 0; }
.crumb > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb a:hover { color: var(--brand); }
.dt { display: grid; grid-template-columns: 200px 1fr; gap: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.dt .poster { width: 200px; }
.dt h1 { font-size: 26px; line-height: 1.3; }
.dt h1 small { font-size: 16px; color: var(--mute); font-weight: 400; margin-left: 6px; }
.dt .en { color: var(--ink-2); margin-top: 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0; color: var(--ink-2); font-size: 13.5px; }
.kv > span:nth-child(odd) { color: var(--mute); }
.kv .ok { color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
.kv .ok .si { width: 15px; height: 15px; }
.score { display: inline-flex; align-items: baseline; gap: 4px; background: var(--warn-soft); color: var(--warn); padding: 2px 10px; border-radius: 8px; font-weight: 700; margin-top: 10px; }
.score small { font-weight: 400; font-size: 12px; }
.note-line { display: flex; align-items: center; gap: 5px; color: var(--mute); font-size: 12.5px; margin-top: 12px; }
.note-line .si { width: 14px; height: 14px; }
/* 非影视资源详情：没有海报，用分类大图标 */
.rdt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
.rdt .big { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.rdt .big .si { width: 42px; height: 42px; }
.rdt h1 { font-size: 19px; line-height: 1.5; font-weight: 600; word-break: break-all; }
.rdt .get { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }

.res-h { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; gap: 10px; flex-wrap: wrap; }
.res-h h2 { font-size: 18px; }
.res-h h2 small { color: var(--mute); font-weight: 400; font-size: 14px; }
.res-h .note { color: var(--mute); font-size: 12.5px; }
.rlist2 + .sec-h { margin-top: 26px; }

/* 获取资源弹窗里的标签 */
.st { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 6px; font-size: 12px; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.wait { background: var(--warn-soft); color: var(--warn); }

/* ---------- 按钮（全站统一） ----------
   尺寸两档：常规 36px（详情页、弹窗、侧栏）、小号 .sm 30px（列表每一行）
   样式四种：.pri 蓝底主按钮（一个区域最多一个）、.out 蓝边按钮（列表里的主操作）、.sec 灰边次按钮、.ico 方形图标按钮
   图标：Solar 线性图标 16px；同一组按钮要么都带图标，要么都不带 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn .si, .btn svg.i { width: 16px; height: 16px; }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.pri:disabled { opacity: .6; cursor: default; }
.btn.out { background: #fff; border-color: #b8d4ff; color: var(--brand); }
.btn.out:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.sec { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn.sec:hover { border-color: var(--brand); color: var(--brand); }
.btn.ico { width: 36px; padding: 0; background: #fff; border-color: var(--line); color: var(--mute); }
.btn.ico:hover { border-color: var(--bad); color: var(--bad); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn.sm.ico { width: 30px; padding: 0; }
.btn.sm .si { width: 15px; height: 15px; }
.btn.block { width: 100%; }
.acts { display: flex; gap: 6px; align-items: center; }

/* ---------- 右侧栏：热榜 + 提交需求 ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.panel h3 { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.panel h3 .si { width: 18px; height: 18px; color: var(--hot); }
.rk-tabs { display: flex; gap: 2px; margin: 10px 0 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.rk-tabs button { padding: 4px 8px 7px; color: var(--ink-2); font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex: none; }
.rk-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.rk { list-style: none; display: none; }
.rk.on { display: block; }
.rk li a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.rk li a:hover .tt { color: var(--brand); }
.rk .no { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 13px; color: var(--faint); }
.rk li:nth-child(-n+3) .no { background: #fff1eb; color: var(--hot); font-weight: 700; }
.rk .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.req .si { width: 40px; height: 40px; color: var(--brand); }
.req b { display: block; font-size: 14.5px; }
.req p { color: var(--mute); font-size: 13px; }

/* ---------- 页脚 ---------- */
.ft2 { background: #fff; border-top: 1px solid var(--line); margin-top: 20px; color: var(--ink-2); }
.ft2 .in { max-width: 1200px; margin: 0 auto; padding: 28px 20px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 140px 140px; gap: 30px; align-items: start; }
.ft2 b { font-size: 15px; color: var(--ink); }
.ft2 p { color: var(--mute); font-size: 13px; margin-top: 6px; max-width: 420px; }
.ft2 h4 { font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.ft2 .fc a, .ft2 .fc button { display: block; color: var(--mute); font-size: 13px; padding: 2px 0; text-align: left; }
.ft2 .fc a:hover, .ft2 .fc button:hover { color: var(--brand); }
.ft2 .cp { max-width: 1200px; margin: 0 auto; padding: 12px 20px 20px; color: var(--mute); font-size: 12px; border-top: 1px solid var(--line-2); }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(15,20,30,.45); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.mask.on { display: flex; }
.dlg { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.dlg .hd { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; gap: 10px; }
.dlg .hd h3 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg .bd { padding: 14px 22px; color: var(--ink-2); }
.dlg .bd p + p { margin-top: 8px; }
.fm { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.fm label { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.fm label em { color: var(--bad); font-style: normal; }
.fm input, .fm textarea, .fm select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; outline: 0; background: #fff; }
.fm input:focus, .fm textarea:focus, .fm select:focus { border-color: var(--brand); }
.dlg .ft { padding: 0 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.opts label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer; }
.opts label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* 获取资源弹窗 */
.get-load { text-align: center; padding: 18px 0 8px; }
.get-load h4 { font-size: 16px; color: var(--ink); margin: 12px 0 2px; }
.get-load p { color: var(--mute); font-size: 13px; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); margin: 0 auto; animation: sp 0.9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.get-ok { display: grid; grid-template-columns: 1fr 148px; gap: 18px; align-items: start; }
.lk { background: var(--bg); border-radius: 10px; padding: 10px 12px; word-break: break-all; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px; color: var(--ink); }
.lk-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 14px; font-size: 12.5px; color: var(--mute); align-items: center; }
.get-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.qr { text-align: center; }
.qr .box { margin: 0 auto; width: 148px; height: 148px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.qr .box svg { width: 100%; height: 100%; display: block; }
.qr p { font-size: 12px; color: var(--mute); margin-top: 6px; }
.qr-toggle { display: none; }
.get-err { text-align: center; padding: 14px 0 4px; }
.get-err h4 { color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* 轻提示：从顶部落下 */
.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, calc(-100% - 24px)); background: #1d2129; color: #fff; padding: 9px 18px; border-radius: 10px; font-size: 13.5px; z-index: 80; max-width: 90vw;
  /* 收起时彻底隐藏：只靠位移会在提示框较矮时露出一截底边 */
  visibility: hidden; opacity: 0; transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .2s, visibility 0s .35s; }
.toast.on { transform: translate(-50%, 0); visibility: visible; opacity: 1; transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .2s, visibility 0s; }
.toast.bad { background: var(--bad); }

/* 文字页（免责声明） */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; max-width: 760px; }
.article h1 { font-size: 22px; margin-bottom: 14px; }
.article p { color: var(--ink-2); margin-bottom: 10px; }
.article .credit { color: var(--mute); font-size: 12.5px; margin-top: 18px; }
.article .credit a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .cats { grid-template-columns: repeat(5, 1fr); row-gap: 10px; }
}
@media (max-width: 720px) {
  .top .in { height: auto; padding: 10px 14px 0; flex-wrap: wrap; gap: 8px 14px; }
  .top .sb { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 8px; }
  .top nav { order: 4; gap: 16px; width: 100%; margin-left: 0; overflow-x: auto; }
  .top nav a { padding-bottom: 8px; }
  .wrap { padding: 16px 14px 50px; }
  .band .in { padding: 16px 14px 4px; }
  .band .stype { display: none; }   /* 和顶部导航重复 */
  .hero { padding: 0 0 14px; }
  .hot { justify-content: flex-start; }
  .sbox.big input { padding: 12px 8px; font-size: 15px; }
  .sbox.big .go { padding: 8px 16px; }
  .cat .si { width: 30px; height: 30px; }
  .blocks { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .grid.one { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row { grid-template-columns: 64px 1fr; }
  .row .poster { width: 64px; }
  .row .cnt { grid-column: 2; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .row .cnt b { font-size: 15px; }
  .chips { gap: 14px; overflow-x: auto; flex-wrap: nowrap; }
  .chips button { white-space: nowrap; }
  .ri { grid-template-columns: 36px minmax(0, 1fr); }
  .ri .fi { width: 36px; height: 36px; }
  .ri .acts { grid-column: 2; }
  .dt { grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; }
  .dt .poster { width: 110px; }
  .dt h1 { font-size: 19px; }
  .rdt { grid-template-columns: 1fr; padding: 16px; }
  .ft2 .in { grid-template-columns: 1fr 1fr; }
  .ft2 .fl { grid-column: 1 / -1; }
  /* 手机上二维码默认收起，点“显示二维码”再出来（给别人扫或截图保存） */
  .get-ok { grid-template-columns: 1fr; }
  .qr { display: none; }
  .qr.on { display: block; }
  .qr-toggle { display: inline-flex; }
  .article { padding: 18px; }
}

/* 后台「设置」里的 LOGO、宣传语、群二维码 */
.logo .mk img { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; }
.slogan { text-align: center; color: var(--mute); font-size: 14px; margin-bottom: 10px; }
.panel.group img { display: block; width: 160px; max-width: 100%; margin: 10px auto 6px; border-radius: 8px; }
.panel.group p { text-align: center; color: var(--mute); font-size: 12.5px; }
.get-ok.qr-only .lk, .get-ok.qr-only .get-btns { display: none; }
.get-ok.qr-only .qr-tip { width: 100%; color: var(--ink); font-size: 14px; font-weight: 600; }
