/* 小白云盘系统V1.0 UI —— 响应式，桌面/移动同一套 */
:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-2: #f0f3f9;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-soft: #dbeafe;
    --danger: #dc2626;
    --ok: #16a34a;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .12);
    --sidebar-w: 232px;
    --topbar-h: 60px;
    --footer-h: 46px;
    /* 浅色「底色块」：跟着主题走，避免深色模式出现浅底浅字看不清 */
    --tint-ok: #f0fdf4;   --tint-ok-line: #bbf7d0;   --tint-ok-ink: #15803d;
    --tint-warn: #fffbeb; --tint-warn-line: #fcd34d; --tint-warn-ink: #92400e;
    --tint-info: #eff6ff; --tint-info-line: #bfdbfe; --tint-info-ink: #1d4ed8;
    --tint-gray: #f1f5f9; --tint-gray-line: #e2e8f0; --tint-gray-ink: #64748b;
}
@media (prefers-color-scheme: dark) {
    /* 只在用户「没有手动选过主题」时跟随系统。
       手动切换后 html 上会有 .theme-light / .theme-dark，这两个类里的变量
       优先级更高，所以「切换亮度」永远生效（之前系统深色时切回浅色无效就是这个原因）。 */
    html:not(.theme-light):not(.theme-dark) {
        --bg: #0b1220;
        --panel: #131c2e;
        --panel-2: #1b2740;
        --text: #e2e8f0;
        --muted: #94a3b8;
        --line: #253148;
        --brand: #3b82f6;
        --brand-soft: #1e3a8a;
        --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    /* 整页纵向布局：内容区自适应撑满，页脚永远贴在最底部 */
    display: flex; flex-direction: column; min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }
.hint { color: var(--muted); font-size: 12.5px; }
.break { word-break: break-all; }
.only-mobile { display: none !important; }

/* ── 图标按钮 / 按钮 ─────────────────────────── */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border: 0; border-radius: 9px;
    background: transparent; color: var(--muted); cursor: pointer; transition: .15s;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.danger:hover { background: #fee2e2; color: var(--danger); }
.btn {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    padding: 9px 14px; border: 0; border-radius: 9px; cursor: pointer;
    background: var(--brand); color: #fff; font-weight: 600; font-size: 14px;
    transition: .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; padding: 12px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.input, .select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--panel); outline: none;
}
.input:focus, .select:focus { border-color: var(--brand); }
.select { width: auto; padding: 7px 10px; font-size: 13px; }

/* ── 页脚（每个页面底部都有：版权 + 版本号 + 后台配置的友情链接）── */
.site-footer {
    flex: 0 0 auto;
    text-align: center;
    padding: 12px 16px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    background: var(--panel);
    border-top: 1px solid var(--line);
}
/* 友情链接（后台添加，全站页脚显示） */
.friend-links {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center;
    margin-top: 8px; font-size: 12.5px;
}
.friend-links .fl-title { color: var(--muted); }
.friend-links a { color: var(--muted); text-decoration: none; }
.friend-links a:hover { color: var(--brand); text-decoration: underline; }

/* ── 黑白（页面亮度）主题：只换表面色，文字保持清晰可读 ── */
html.theme-dark {
    --bg: #0b1220;
    --panel: #141d2f;
    --panel-2: #1b2740;
    --text: #e8edf6;
    --muted: #9aa8bd;
    --line: #27324a;
    --brand: #4f8cf7;
    --brand-soft: #1d3461;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5);
    /* 深色下的底色块：深色底 + 亮色字，保证清晰可读 */
    --tint-ok: #12301f;   --tint-ok-line: #1f6b43;   --tint-ok-ink: #86efac;
    --tint-warn: #33280f; --tint-warn-line: #7c6212; --tint-warn-ink: #fcd34d;
    --tint-info: #16233d; --tint-info-line: #2b4a86; --tint-info-ink: #93c5fd;
    --tint-gray: #1e2a40; --tint-gray-line: #2f3d57; --tint-gray-ink: #a9b6c9;
}
/* 显式「浅色」：把变量钉回浅色，压过「跟随系统」的深色（手动切换必须永远有效） */
html.theme-light {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-2: #f0f3f9;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-soft: #dbeafe;
    --shadow: 0 10px 30px rgba(15, 23, 42, .12);
    --tint-ok: #f0fdf4;   --tint-ok-line: #bbf7d0;   --tint-ok-ink: #15803d;
    --tint-warn: #fffbeb; --tint-warn-line: #fcd34d; --tint-warn-ink: #92400e;
    --tint-info: #eff6ff; --tint-info-line: #bfdbfe; --tint-info-ink: #1d4ed8;
    --tint-gray: #f1f5f9; --tint-gray-line: #e2e8f0; --tint-gray-ink: #64748b;
}
html.theme-dark .tag.ok { background: #14532d; color: #86efac; }
html.theme-dark .tag.danger { background: #7f1d1d; color: #fca5a5; }
/* 深色下的提示条：只改中性的底色，成功/失败仍保留各自的绿/红（否则两者长得一样分不清） */
html.theme-dark .toast:not(.ok):not(.error) { background: #e8edf6; color: #0f172a; }
html.theme-dark .toast.ok { background: #166534; color: #f0fdf4; }
html.theme-dark .toast.error { background: #991b1b; color: #fef2f2; }
html.theme-light .tag.ok { background: var(--tint-ok); color: var(--tint-ok-ink); }
html.theme-light .tag.danger { background: #fee2e2; color: #991b1b; }
html.theme-dark .tag.danger { background: #451a1a; color: #fca5a5; }
html.theme-dark .site-footer { background: var(--panel); }
html.theme-dark .lp-pick { box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }

/* 公告/广告里的轻量富文本（链接与图片） */
.rt-img { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: 10px; }
.rt-a { color: var(--brand); text-decoration: underline; word-break: break-all; }
.rt-a:hover { opacity: .85; }

/* ── 通用块（个人主页 / 设置页的卡片、按钮行、列表） ── */
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px;
}
.save-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.ad-list { display: flex; flex-direction: column; gap: 10px; }

/* ── 首页右上角的账号按钮（登录后显示，悬停/点击展开信息卡） ── */
/* 广告编辑器里的尺寸预设按钮行 */
.quick-days { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.lp-acct { position: relative; }
.lp-acct-btn {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    background: var(--panel); color: var(--text); border: 1px solid var(--line);
    border-radius: 999px; padding: 5px 12px 5px 5px; font-size: 13.5px; font-weight: 600;
}
.lp-acct-btn:hover { border-color: var(--brand); }
.lp-acct-ava {
    width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
    background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
    font-size: 12.5px; font-weight: 700;
}
.lp-acct-ava img { width: 100%; height: 100%; object-fit: cover; }
.lp-acct-ava.lg { width: 38px; height: 38px; font-size: 16px; }
.lp-acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-caret { font-style: normal; font-size: 10px; color: var(--muted); }
.lp-acct-card {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
    width: 268px; padding: 14px 15px; border-radius: 14px;
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.lp-acct:hover .lp-acct-card,
.lp-acct:focus-within .lp-acct-card,
.lp-acct.on .lp-acct-card { opacity: 1; visibility: visible; transform: translateY(0); }
.lp-acct-head {
    display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 8px;
    border-bottom: 1px dashed var(--line);
}
.lp-acct-head b { display: block; font-size: 14px; color: var(--text); }
.lp-acct-head span { font-size: 12px; color: var(--muted); }
.lp-acct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13px; }
.lp-acct-row > span { color: var(--muted); }
.lp-acct-row > b { color: var(--text); font-weight: 600; }
.lp-acct-row > b.on { color: var(--tint-warn-ink); }
.lp-acct-ops { display: flex; gap: 8px; margin-top: 10px; }
.lp-acct-ops .btn { flex: 1; justify-content: center; }
@media (max-width: 720px) {
    .lp-acct-name { display: none; }
    .lp-acct-card { width: 250px; }
}

/* 会员中心 ─────────────────────────────── */
.vip-dot {
    margin-left: auto; font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px;
    background: var(--tint-warn); color: var(--tint-warn-ink); border: 1px solid var(--tint-warn-line);
}
.vip-dot.on { background: var(--tint-ok); color: var(--tint-ok-ink); border-color: var(--tint-ok-line); }
.vip-dot.admin { background: var(--tint-info); color: var(--tint-info-ink); border-color: var(--tint-info-line); }
/* 会员状态卡里的「管理员」小标签 */
.tag.admin-tag {
    margin-left: 8px; vertical-align: middle; font-size: 11.5px; font-weight: 600;
    background: var(--tint-info); color: var(--tint-info-ink); border: 1px solid var(--tint-info-line);
}
.vip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vip-head.on { border-color: var(--tint-warn-line); background: linear-gradient(135deg, var(--tint-warn), var(--panel)); }
.vip-head-left { display: flex; align-items: center; gap: 14px; }
.vip-badge {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff;
}
.vip-badge .ic { width: 26px; height: 26px; }
.vip-title { font-size: 18px; font-weight: 700; color: var(--text); }
.vip-head.on .vip-title { color: var(--tint-warn-ink); }
.vip-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.vip-head-right { display: flex; gap: 18px; flex-wrap: wrap; }
.vip-kv { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.vip-kv b { font-size: 15px; color: var(--text); }
.vip-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.vip-feat {
    display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); opacity: .72;
}
.vip-feat.on { opacity: 1; border-color: var(--tint-ok-line); background: var(--tint-ok); }
.vip-feat b { display: block; font-size: 13.5px; color: var(--text); }
.vip-feat.on b { color: var(--tint-ok-ink); }
.vip-feat span { font-size: 12px; color: var(--muted); line-height: 1.55; }
.vip-ic { color: var(--tint-ok-ink); margin-top: 1px; }
.vip-feat:not(.on) .vip-ic { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
/* 参考图那种 2×2 / 4 列套餐卡：白底、细边、价格大号、黑色按钮 */
.plan-grid-4 { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; margin-bottom: 16px; }
.plan-card {
    position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 14px;
    background: var(--panel); display: flex; flex-direction: column; gap: 6px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, .10); }
.plan-card.hot { border-color: var(--tint-warn-line); background: linear-gradient(170deg, var(--tint-warn), var(--panel) 60%); }
.plan-badge {
    position: absolute; top: -10px; right: 14px; background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 700;
}
.plan-name { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: .2px; }
.plan-sub { font-size: 12.5px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 1px; margin: 8px 0 2px; color: var(--text); }
.plan-price .cur { font-size: 17px; font-weight: 700; margin-right: 1px; }
.plan-price .int { font-size: 34px; font-weight: 800; line-height: 1; }
.plan-price .dec { font-size: 17px; font-weight: 700; }
.plan-price .unit { font-size: 12px; color: var(--muted); margin-left: 6px; }
.plan-tag {
    align-self: flex-start; background: var(--tint-warn); color: var(--tint-warn-ink);
    border: 1px solid var(--tint-warn-line); border-radius: 7px;
    font-size: 11.5px; padding: 2px 8px; margin-bottom: 2px;
}
.plan-cta {
    background: #111827; color: #fff; border: 0; border-radius: 11px; padding: 12px 14px;
    font-size: 14.5px; font-weight: 700; width: 100%; cursor: pointer; margin: 6px 0 4px;
}
.plan-cta:hover { background: #1f2937; }
.plan-cta:disabled { background: var(--tint-gray); color: var(--tint-gray-ink); cursor: not-allowed; border: 1px solid var(--tint-gray-line); }
html.theme-dark .plan-cta { background: #e8edf6; color: #0f172a; }
.plan-feats { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.plan-feats li { display: flex; gap: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.plan-feats li .tick { color: var(--tint-ok-ink); font-weight: 700; }
/* 会员中心页签：个人版（会员套餐）/ 团队版（存储扩容） */
.vip-tabs {
    display: inline-flex; gap: 4px; padding: 4px; background: var(--panel-2);
    border: 1px solid var(--line); border-radius: 12px; margin: 0 auto 14px;
}
.vip-page { display: flex; flex-direction: column; }
.vip-tabs { align-self: center; }
.vip-tab {
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
    padding: 8px 18px; border-radius: 9px; font-size: 14px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
}
.vip-tab em { font-style: normal; font-size: 11.5px; font-weight: 500; opacity: .9; }
.vip-tab.on { background: var(--panel); color: var(--text); box-shadow: 0 2px 8px rgba(15, 23, 42, .10); }
.vip-tab-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.vip-note-box {
    padding: 12px 16px; border: 1px solid var(--tint-info-line); background: var(--tint-info);
    color: var(--tint-info-ink); border-radius: 12px; line-height: 1.75;
}
/* 需求：这句话放在标题上方且字体更大 */
.vip-top-note { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.vip-top-note b, .vip-top-note strong { color: var(--tint-info-ink); font-weight: 800; }
.order-list { display: flex; flex-direction: column; gap: 8px; }
.pf-vip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 个人主页的「会员与存储」信息卡（在头像下面、用户名上面） */
.pf-vip-box {
    display: flex; flex-direction: column; gap: 9px; width: 100%;
    margin: 6px 0 16px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 13px; background: var(--panel-2);
}
.pf-vip-head {
    display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700;
    color: var(--text); padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.pf-vip-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-vip-k { font-size: 12.5px; color: var(--muted); min-width: 64px; }
.pf-vip-v { font-size: 13.5px; color: var(--text); }
.pf-vip-v.on { color: var(--tint-warn-ink); }
.pf-vip-v.admin { color: var(--tint-info-ink); }
.pf-vip-v.off { color: var(--muted); font-weight: 500; }
.pf-vip-ops { display: flex; gap: 8px; }
/* 顶栏账号区：头像 + 账号名（会员/容量）+ 注销账号 */
.acct { display: flex; align-items: center; gap: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.acct-ava {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); overflow: hidden;
    background: var(--brand-soft); color: var(--brand); font-weight: 700; cursor: pointer;
    display: grid; place-items: center; padding: 0; flex: 0 0 auto;
}
.acct-ava img { width: 100%; height: 100%; object-fit: cover; }
.acct-info {
    border: 0; background: transparent; cursor: pointer; text-align: left; padding: 2px 4px;
    display: flex; flex-direction: column; gap: 1px; max-width: 190px;
}
.acct-info b { font-size: 13px; color: var(--text); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-info span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-info:hover b { color: var(--brand); }
.acct-tag {
    font-style: normal; font-size: 10.5px; padding: 0 5px; border-radius: 5px; margin-right: 4px;
    background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.acct-tag.vip { background: var(--tint-warn); color: var(--tint-warn-ink); border-color: var(--tint-warn-line); }
.acct-tag.admin { background: var(--tint-info); color: var(--tint-info-ink); border-color: var(--tint-info-line); }
.acct-out { flex: 0 0 auto; }
@media (max-width: 720px) {
    .acct { border-left: 0; padding-left: 0; }
    .acct-info span { display: none; }
    .acct-info { max-width: 86px; }
}
.tag.vip { background: var(--tint-warn); color: var(--tint-warn-ink); border: 1px solid var(--tint-warn-line); }
/* 状态小胶囊（会员订单状态等） */
.ad-pill {
    display: inline-flex; align-items: center; font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
    background: var(--tint-ok); color: var(--tint-ok-ink); border: 1px solid var(--tint-ok-line); white-space: nowrap;
}
.ad-pill.warn { background: var(--tint-warn); color: var(--tint-warn-ink); border-color: var(--tint-warn-line); }
.ad-pill.gray { background: var(--tint-gray); color: var(--tint-gray-ink); border-color: var(--tint-gray-line); }
.row-like {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2);
}
/* 会员门控（视频播放等） */
.vip-lock { text-align: center; padding: 46px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vip-lock-ic { color: #f59e0b; }
.vip-lock b { font-size: 16px; color: var(--text); }
.vip-lock span { font-size: 13px; color: var(--muted); max-width: 420px; line-height: 1.7; }
/* 文本在线编辑 */
.text-editor { display: flex; flex-direction: column; }
.text-editor textarea {
    width: 100%; min-height: 52vh; resize: vertical; border: 1px solid var(--line); border-radius: 11px;
    padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
    line-height: 1.65; background: var(--panel); color: var(--text);
}

/* ── 登录 ─────────────────────────────────────── */
#auth { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 20px; }
/* 登录成功后必须整个隐藏：否则它会在页面顶部留一整屏空白 */
#auth[hidden] { display: none !important; }
.auth-card {
    width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line);
    border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow); text-align: center;
}
.auth-logo {
    width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 15px;
    background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
}
.auth-logo .ic { width: 28px; height: 28px; }
.auth-card h1 { font-size: 20px; margin: 0 0 4px; }
.auth-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.auth-tabs { display: flex; background: var(--panel-2); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.auth-tabs button {
    flex: 1; padding: 8px; border: 0; background: transparent; border-radius: 7px;
    cursor: pointer; color: var(--muted); font-weight: 600;
}
.auth-tabs button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
#auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-card .hint.err { color: var(--danger); }

/* ── 主框架 ───────────────────────────────────── */
#app { flex: 1 0 auto; display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
#app[hidden], #upload-dock[hidden] { display: none !important; }
#sidebar {
    background: var(--panel); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 14px 12px; gap: 6px;
    position: sticky; top: 0; height: calc(100vh - var(--footer-h));
}
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; font-weight: 700; }
.brand .ic { color: var(--brand); }
#nav { display: flex; flex-direction: column; gap: 3px; }
#nav button, .side-foot button {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 9px;
    background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 14.5px;
}
#nav button:hover, .side-foot button:hover { background: var(--panel-2); }
#nav button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.quota { padding: 12px 10px 4px; }
.quota-bar { height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--brand); }
.quota-text { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }

#main { min-width: 0; display: flex; flex-direction: column; }
#topbar {
    height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 18px;
    border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 20;
}
.search-wrap { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px;
    background: var(--panel-2); border-radius: 10px; padding: 0 12px; height: 38px; color: var(--muted); }
.search-wrap input { flex: 1; border: 0; background: transparent; outline: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-actions .icon-btn { background: var(--brand); color: #fff; font-weight: 700; border-radius: 50%; }

#content { padding: 16px 18px 120px; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* ── 面包屑 / 工具栏 ─────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs button {
    border: 0; background: transparent; color: var(--text); cursor: pointer;
    padding: 5px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px;
}
.crumbs button:hover { background: var(--panel-2); }
.crumbs .sep { color: var(--muted); }
.flat-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 12px; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 12px;
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-right { margin-left: auto; }
.sel-info { font-weight: 600; color: var(--brand); }

/* ── 文件列表 ────────────────────────────────── */
.file-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row {
    display: grid; grid-template-columns: 34px 40px 1fr 96px 130px 150px;
    align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line);
    cursor: default; transition: background .12s;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--panel-2); }
.row.sel { background: var(--brand-soft); }
.chk { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.ficon { font-size: 22px; text-align: center; overflow: hidden; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.ficon .thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
.fname { min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.fname .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.fname .meta { color: var(--muted); font-size: 12px; display: none; }
.fsize, .ftime { color: var(--muted); font-size: 13px; }
.fops { display: flex; gap: 2px; justify-content: flex-end; opacity: .35; transition: opacity .15s; }
.row:hover .fops, .row.sel .fops { opacity: 1; }

.file-list.as-grid, .file-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
    background: transparent; border: 0;
}
.file-grid { padding: 0; }
.cell {
    position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
}
.cell.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.cell .chk { position: absolute; top: 8px; left: 8px; z-index: 2;
    background: rgba(255, 255, 255, .85); border-radius: 6px; padding: 2px; }
.cell-body { height: 130px; display: flex; align-items: center; justify-content: center;
    background: var(--panel-2); cursor: pointer; overflow: hidden; }
.cell-body img { width: 100%; height: 100%; object-fit: cover; }
.grid-icon { font-size: 40px; }

/* 回收站：固定的列表布局 + 到期提示色（网格视图没有恢复按钮，所以强制列表） */
.trash-list .row { grid-template-columns: 34px 40px 1fr 90px 110px 88px; }
.trash-list .row .meta { display: block; }
.trash-list .row .meta b { color: var(--text); font-weight: 600; }
.trash-list .trash-left { color: #d97706; }
.cell-foot { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.cell-foot .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-more { position: absolute; right: 6px; bottom: 6px; background: var(--panel); }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 1px 6px;
    border-radius: 6px; background: var(--panel-2); color: var(--muted); }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.danger { background: #fee2e2; color: #991b1b; }
@media (prefers-color-scheme: dark) {
    .tag.ok { background: #14532d; color: #86efac; }
    .tag.danger { background: #7f1d1d; color: #fca5a5; }
}

.empty { text-align: center; padding: 70px 20px; color: var(--muted); display: flex;
    flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { width: 42px; height: 42px; opacity: .5; }

/* ── 分享列表 ────────────────────────────────── */
.share-list { display: flex; flex-direction: column; gap: 10px; }
.share-row {
    display: flex; gap: 12px; align-items: center; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.share-main { min-width: 0; flex: 1; }
.share-name { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.share-url { margin-top: 4px; word-break: break-all; }
.share-ops { display: flex; gap: 6px; align-items: center; }

/* ── 弹窗 / 菜单 / 提示 ──────────────────────── */
#modal-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.modal-back {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: flex;
    align-items: center; justify-content: center; padding: 16px; pointer-events: auto;
    animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
    width: 100%; max-width: 440px; max-height: 88vh; background: var(--panel); border-radius: 16px;
    box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
}
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 16px; overflow: auto; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.confirm-text { margin: 0; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* 设置页的分段大标题（比 label 更大更醒目） */
.set-h {
    margin: 22px 0 2px; padding-top: 16px; border-top: 1px dashed var(--line);
    font-size: 17px; font-weight: 650; color: var(--text); letter-spacing: .2px;
}
.set-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.kv { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.kv > div { display: flex; gap: 10px; padding: 9px 12px; background: var(--panel); }
.kv > div > span { color: var(--muted); width: 90px; flex: 0 0 auto; font-size: 13px; }
.kv > div > b { font-weight: 500; font-size: 13.5px; min-width: 0; }
.picker { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.tnode { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tnode:hover { background: var(--panel-2); }
.tnode.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.copy-list { display: flex; flex-direction: column; gap: 12px; }
.copy-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex;
    flex-direction: column; gap: 8px; position: relative; }
.copy-row .mini { width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; background: var(--panel-2); }
.copy-info { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.copy-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.log-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log-table td.ua { color: var(--muted); max-width: 260px; word-break: break-all; font-size: 12px; }

.preview-modal .modal-body { padding: 0; background: #0b1220; }
.preview-image { display: flex; align-items: center; justify-content: center; min-height: 200px; }
.preview-image img { max-width: 100%; max-height: 72vh; display: block; }
.preview-media { width: 100%; max-height: 72vh; display: block; background: #000; }
.preview-frame { width: 100%; height: 72vh; border: 0; background: #fff; }
.preview-audio { padding: 40px 20px; text-align: center; color: #e2e8f0; }
.audio-name { margin-bottom: 16px; font-weight: 600; }
.preview-audio audio { width: 100%; max-width: 460px; }
.preview-text {
    margin: 0; padding: 16px; max-height: 70vh; overflow: auto; color: #e2e8f0;
    font: 13px/1.7 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all;
}

.float-menu {
    position: fixed; z-index: 80; background: var(--panel); border: 1px solid var(--line);
    border-radius: 10px; box-shadow: var(--shadow); padding: 5px; min-width: 150px;
}
.float-menu button {
    display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0;
    background: transparent; border-radius: 7px; cursor: pointer; text-align: left; font-size: 14px;
}
.float-menu button:hover { background: var(--panel-2); }
.float-menu button.danger { color: var(--danger); }

#toast-layer { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90;
    display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
    background: #1e293b; color: #f8fafc; padding: 10px 16px; border-radius: 10px; font-size: 13.5px;
    opacity: 0; transform: translateY(10px); transition: .25s; max-width: 88vw; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { background: #166534; }
.toast.error { background: #991b1b; }

.drop-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(37, 99, 235, .18);
    border: 3px dashed var(--brand); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.drop-overlay > div { background: var(--panel); border-radius: 14px; padding: 24px 30px; text-align: center;
    display: flex; flex-direction: column; gap: 6px; align-items: center; box-shadow: var(--shadow); }
.drop-overlay .ic { width: 30px; height: 30px; color: var(--brand); }

/* ── 上传面板 ────────────────────────────────── */
#upload-dock {
    position: fixed; right: 18px; bottom: calc(var(--footer-h) + 12px); width: 380px; max-width: calc(100vw - 36px);
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); z-index: 50; overflow: hidden;
}
#upload-dock.collapsed .dock-list { display: none; }
.dock-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dock-head b { font-size: 14px; }
.dock-head .hint { margin-right: auto; }
.dock-list { max-height: 260px; overflow: auto; }
.job { display: grid; grid-template-columns: 1fr 60px; gap: 4px 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.job-name { grid-column: 1 / 2; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-bar { grid-column: 1 / 2; height: 5px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.job-bar i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.job-state { grid-column: 1 / 2; font-size: 12px; color: var(--muted); }
.job-ops { grid-column: 2 / 3; grid-row: 1 / 4; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.job-ops .icon-btn { width: 28px; height: 28px; font-size: 14px; }

/* ── 个人主页（资料 / 密码 / 注销 / 登录设备） ────── */
.profile-modal { max-width: 880px; }
.profile-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 0; min-height: 380px; }
.profile-nav {
    display: flex; flex-direction: column; gap: 2px; padding: 10px 8px;
    background: var(--panel-2); border-radius: 12px 0 0 12px;
}
.profile-nav button {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 0; cursor: pointer;
    background: transparent; color: var(--text); font-size: 14px; border-radius: 9px; text-align: left;
    font-family: inherit;
}
.profile-nav button:hover { background: rgba(148, 163, 184, .18); }
.profile-nav button.on { background: var(--panel); color: var(--brand); font-weight: 600; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06)); }
.profile-nav .ic { width: 17px; height: 17px; flex: 0 0 auto; }
.profile-body { padding: 4px 0 4px 20px; min-width: 0; }
.profile-body h4 { margin: 0 0 14px; font-size: 15.5px; }
.pf-avatar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.pf-avatar-box { flex: 0 0 auto; }
.pf-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pf-label { width: 92px; flex: 0 0 auto; color: var(--muted); font-size: 13.5px; text-align: right; }
.pf-row .input { flex: 1; min-width: 0; }
.pf-actions { margin-top: 18px; display: flex; gap: 8px; padding-left: 102px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-flex;
    align-items: center; justify-content: center; background: var(--brand); color: #fff;
    font-weight: 600; font-size: 15px; flex: 0 0 auto;
}
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.user-btn { overflow: hidden; padding: 0; }
.user-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.warn-box {
    background: rgba(239, 68, 68, .09); border: 1px solid rgba(239, 68, 68, .3); color: var(--text);
    border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; margin: 0 0 16px;
}
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0 10px; }
.switch-line { display: flex; align-items: center; gap: 8px; color: var(--text) !important; font-size: 13.5px !important; }
.switch-line input { width: auto; }
.dev-list { display: flex; flex-direction: column; gap: 8px; }
.dev-row {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line);
    border-radius: 10px; background: var(--panel);
}
.dev-row.off { opacity: .55; }
.dev-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dev-main b { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dev-ua { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn { flex: 0 0 auto; white-space: nowrap; }
.ann-modal h4 { margin: 0 0 10px; font-size: 15px; }
.ann-modal .ann-text { font-size: 14px; line-height: 1.75; word-break: break-word; }

/* ── 网站公告横幅 ─────────────────────────────── */
#announce-bar {
    display: flex; align-items: flex-start; gap: 10px; margin: 10px 18px 0; padding: 11px 14px;
    background: linear-gradient(90deg, rgba(37, 99, 235, .10), rgba(37, 99, 235, .04));
    border: 1px solid rgba(37, 99, 235, .28); border-radius: 12px;
}
#announce-bar .ann-icon { color: var(--brand); flex: 0 0 auto; margin-top: 1px; }
#announce-bar .ann-icon .ic { width: 18px; height: 18px; }
#announce-bar .ann-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.6; }
#announce-bar .ann-main b { font-size: 14px; }
#announce-bar .ann-body { color: var(--muted); word-break: break-word; }

/* ── 移动端 ──────────────────────────────────── */
@media (max-width: 860px) {
    #app { grid-template-columns: 1fr; }
    #sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 65; height: 100vh;
        transform: translateX(-104%); transition: transform .22s ease; box-shadow: var(--shadow);
    }
    #sidebar.open { transform: translateX(0); }
    .only-mobile { display: inline-flex !important; }
    .only-desktop { display: none; }
    #content { padding: 12px 12px 120px; }
    .row { grid-template-columns: 30px 34px 1fr 84px; padding: 10px; }
    .fsize, .ftime { display: none; }
    .fname .meta { display: block; }
    .fops { opacity: 1; }
    .row .fops .icon-btn:not([data-act="more"]) { display: none; }
    .file-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .cell-body { height: 110px; }
    .share-row { flex-direction: column; align-items: stretch; }
    .share-ops { justify-content: flex-end; }
    #upload-dock { right: 10px; left: 10px; width: auto; bottom: 10px; }
    .modal { max-height: 92vh; }
    .toolbar { padding: 8px; }
    #announce-bar { margin: 8px 12px 0; }
    /* 回收站的行在手机上同样收成 4 列，否则详情列会错位 */
    .trash-list .row { grid-template-columns: 30px 34px 1fr 84px; }
    /* 个人主页：左侧导航变横向标签 */
    .profile-wrap { grid-template-columns: 1fr; }
    .profile-nav { flex-direction: row; overflow-x: auto; border-radius: 12px 12px 0 0; }
    .profile-nav button { white-space: nowrap; padding: 8px 10px; font-size: 13px; }
    .profile-body { padding: 14px 4px 4px; }
    .pf-label { width: 68px; font-size: 12.5px; }
    .pf-actions { padding-left: 0; }
}

/* ══════════════ 访客首页（未登录先看到这一页） ══════════════ */
/* 首页比一屏高：容器不能再用居中（居中会导致超长内容上下被裁），改成顶部对齐 */
#auth.auth-wide { align-items: flex-start; justify-content: flex-start; padding: 0; }
.lp { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; }

.lp-nav {
    display: flex; align-items: center; gap: 18px; padding: 16px 0 14px;
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--bg);
}
.lp-brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; min-width: 0; }
.lp-brand .ic { width: 22px; height: 22px; stroke: var(--brand); }
.lp-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-links { display: flex; gap: 20px; margin-left: 14px; align-items: center; }
.lp-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.lp-links a:hover, .lp-links a.on { color: var(--brand); }
/* 二级菜单：悬停下拉 */
.lp-drop { position: relative; }
.lp-drop-menu {
    position: absolute; left: 0; top: 100%; min-width: 132px; padding: 6px; z-index: 20;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: var(--shadow); display: none; flex-direction: column; gap: 2px;
}
.lp-drop:hover .lp-drop-menu { display: flex; }
.lp-drop-menu a { padding: 7px 10px; border-radius: 7px; font-size: 13.5px; white-space: nowrap; }
.lp-drop-menu a:hover { background: var(--panel-2); }
.lp-actions { margin-left: auto; display: flex; gap: 9px; flex: 0 0 auto; }

.lp-hero { padding: 52px 0 40px; text-align: center; }
.lp-hero h1 { margin: 0 0 14px; font-size: 42px; line-height: 1.18; letter-spacing: -.6px; }
.lp-sub { margin: 0 auto 26px; max-width: 620px; color: var(--muted); font-size: 15.5px; line-height: 1.9; }
.lp-sub b { color: var(--brand); }
/* 提取分享框（首页核心交互） */
.lp-pick {
    display: flex; gap: 10px; max-width: 620px; margin: 0 auto 10px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 9px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
}
.lp-pick .input { flex: 1; min-width: 0; border: 0; background: transparent; height: 40px; }
.lp-pick .input:focus { outline: none; }
.lp-pick .btn { flex: 0 0 auto; height: 40px; }
.lp-hint { color: var(--muted); font-size: 12.5px; margin: 0 auto 24px; max-width: 620px; }
.lp-hint code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.lg { padding: 12px 26px; font-size: 15px; border-radius: 11px; }
.lp-points {
    display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap;
    margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px;
}
.lp-points li::before { content: '✓ '; color: var(--ok); }

.lp-h2 { font-size: 22px; text-align: center; margin: 0 0 24px; }
.lp-feats, .lp-how, .lp-ann { padding: 30px 0; border-top: 1px solid var(--line); }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; }
.lp-feat {
    display: flex; flex-direction: column; gap: 7px; padding: 18px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.lp-feat .fi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); }
.lp-feat .fi .ic { width: 19px; height: 19px; stroke: var(--brand); }
.lp-feat b { font-size: 14.5px; }
.lp-feat .fd { color: var(--muted); font-size: 13px; line-height: 1.7; }

.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-step {
    position: relative; padding: 20px 18px 20px 60px; background: var(--panel);
    border: 1px solid var(--line); border-radius: 14px;
}
.lp-step .no {
    position: absolute; left: 16px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
}
.lp-step b { display: block; margin-bottom: 5px; font-size: 15px; }
.lp-step .fd { color: var(--muted); font-size: 13px; line-height: 1.7; }

.lp-ann-item {
    background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
    padding: 15px 17px; margin-bottom: 11px;
}
.lp-ann-item header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lp-ann-item header b { font-size: 15px; }
.lp-ann-item header span { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.lp-ann-item .body { color: var(--text); font-size: 14px; line-height: 1.85; }
.lp-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 22px 0; }

.lp-foot {
    margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
    text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.9;
}
.lp-foot-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.lp-foot-links a { color: var(--muted); text-decoration: none; }
.lp-foot-links a:hover { color: var(--brand); }

@media (max-width: 700px) {
    .lp-hero { padding: 32px 0 26px; }
    .lp-hero h1 { font-size: 28px; }
    .lp-sub { font-size: 14px; }
    /* 以前这里直接 display:none，导致手机端完全看不到首页菜单 —— 改为汉堡折叠面板 */
    .lp-nav { flex-wrap: nowrap; gap: 10px; }
    .lp-brand { flex: 1 1 auto; }
    .lp-brand span { font-size: 15px; }
    .lp-actions { flex: 0 0 auto; gap: 6px; }
    .lp-links {
        display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
        flex-direction: column; align-items: stretch; gap: 2px; margin: 6px 0 0;
        padding: 8px; border-radius: 14px; background: var(--panel);
        border: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .lp-links.open { display: flex; }
    .lp-links > a, .lp-drop > a {
        padding: 10px 12px; border-radius: 10px; font-size: 14.5px;
    }
    .lp-links > a:hover, .lp-drop > a:hover { background: var(--brand-soft); }
    .lp-drop { position: static; }
    .lp-drop-menu {
        position: static; display: block; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; background: transparent; padding: 0 0 4px 14px; min-width: 0;
    }
    .lp-drop-menu a { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
    .lp-pick { flex-direction: column; }
    .lp-pick .btn { width: 100%; }
    .lp-ann-item header span { margin-left: 0; }
}

/* ══════════════ 网站公告（用户端多条列表） ══════════════ */
.ann-list { display: flex; flex-direction: column; gap: 14px; }
.ann-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.ann-card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ann-card-head h3 { margin: 0; font-size: 16.5px; color: var(--text); }
.ann-card-meta { margin-left: auto; display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; }
.ann-card-meta .who { display: inline-flex; align-items: center; gap: 5px; }
.ann-card-meta .who .ic { width: 13px; height: 13px; }
.ann-card-body { color: var(--text); font-size: 14.5px; line-height: 1.9; word-break: break-word; }

/* ══════════════ 分享页广告（分享者自己投放的文字/图片） ══════════════ */
.share-ads { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
/* 注意：这里**不能**写死颜色。
   深色模式下若底色仍是近白、正文却用 var(--muted)（浅灰），文字就会看不见。
   统一跟随主题变量：底色走品牌浅底 + 面板色，标题 --text，正文 --muted。 */
.share-ad {
    display: block; padding: 14px 16px; border-radius: 14px; text-decoration: none;
    background: linear-gradient(135deg, var(--brand-soft), var(--panel-2));
    border: 1px solid var(--line);
    color: var(--text); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.share-ad:hover { border-color: var(--brand); }
a.share-ad:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.share-ad .ad-title { font-weight: 650; font-size: 15px; margin-bottom: 6px; color: var(--text); }
.share-ad .ad-img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 4px 0; }
.share-ad .ad-text { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
/* 深色下品牌浅底偏亮，正文用稍微亮一点的灰保证对比度 */
html.theme-dark .share-ad .ad-text { color: var(--text); opacity: .86; }
/* 图片挂了就整块隐藏（避免破图图标），标题/正文仍然显示 */
.share-ad .ad-img.broken { display: none; }
/* 广告区的展示顺序与卡片内的位置提示（前台管理用） */
.ad-pos-tag {
    display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: 11.5px;
    background: var(--brand-soft); color: var(--brand);
}
.ad-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.ad-item { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; }
.ad-item-main { flex: 1 1 auto; min-width: 0; }
.ad-item-main b { display: block; font-size: 13.5px; }
.ad-item-main span { color: var(--muted); font-size: 12.5px; word-break: break-word; }
.ad-item-ops { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
/* 「设置 → 广告素材库」与「分享时选择素材」的小标题 + 勾选列表 */
.ad-sec {
    margin: 16px 0 10px; padding-top: 12px; border-top: 1px dashed var(--line);
    font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .3px;
}
.ad-sec:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.lib-list { display: flex; flex-direction: column; gap: 8px; }
.lib-pick {
    display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 11px; background: var(--panel);
}
.lib-pick:hover { border-color: var(--brand); }
.lib-pick input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
.lib-pick-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lib-pick-main b { font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lib-pick-main > span { color: var(--muted); font-size: 12.5px; word-break: break-word; }
.warn-box {
    padding: 11px 13px; border-radius: 11px; background: #fff7ed; border: 1px solid #fed7aa;
    color: #9a3412; font-size: 13px; line-height: 1.7;
}

@media (max-width: 700px) {
    .ann-card-head h3 { font-size: 15.5px; }
    .ann-card-meta { margin-left: 0; }
}

/* ── 在线支付弹窗 ── */
.pay-head { text-align: center; margin-bottom: 12px; }
.pay-amount { font-size: 28px; font-weight: 800; color: var(--text); }
.pay-name { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pay-channels { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.pay-ch { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px;
    padding: 9px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.pay-ch:hover { border-color: var(--brand); }
.pay-ch.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.pay-body { text-align: center; }
.pay-qr { display: block; margin: 6px auto 10px; background: #fff; border-radius: 12px; padding: 6px; }
.pay-raw { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.pay-raw .input { flex: 1 1 auto; font-size: 12px; }

/* ── 全局广告（用户中心上 / 下 / 左 / 右） ── */
.uc-ads { display: block; }
.uc-ads:empty, .uc-ads[hidden] { display: none; }
.uc-body { display: flex; gap: 14px; align-items: flex-start; }
.uc-body > #content { flex: 1 1 auto; min-width: 0; }
.uc-ads-rail { flex: 0 0 auto; width: 200px; position: sticky; top: 12px; }
.uc-ads-top, .uc-ads-bottom { margin-bottom: 12px; }
.uc-ads-bottom { margin: 12px 0 0; }
.uc-ad { text-align: center; }
.uc-ad .ad-img { width: 100%; height: auto; border-radius: 10px; display: block; }
.uc-ad .ad-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-top: 6px; }
.uc-ad .ad-text { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
@media (max-width: 1180px) {
    /* 窄屏（含手机）收起左右两栏，只留上下广告，避免挤压正文 */
    .uc-ads-rail { display: none !important; }
}
@media (max-width: 640px) {
    .uc-ads-rail { display: none !important; }
    .uc-ad .ad-title { font-size: 13px; }
}

/* ── 推荐计划（个人中心） ── */
.ref-rate-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ref-rate-row .select { flex: 0 0 auto; min-width: 190px; }
.ref-rate-box { margin-bottom: 12px; }
.ref-link-row { display: flex; gap: 8px; align-items: center; }
.ref-link-row .input { flex: 1 1 auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.ref-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.ref-stat {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.ref-stat > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.ref-stat > b { font-size: 20px; color: var(--text); }
.ref-stat > i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 3px; }
.ref-stat.on { background: var(--tint-warn); border-color: var(--tint-warn-line); }
.ref-stat.on > b { color: var(--tint-warn-ink); }
.pf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pf-table th, .pf-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.pf-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
@media (max-width: 640px) {
    .ref-link-row { flex-direction: column; align-items: stretch; }
}

/* 登录卡片底部链接（忘记密码等） */
.auth-links { display: flex; justify-content: flex-end; gap: 14px; margin-top: 4px; }
.auth-links a { font-size: 13px; color: var(--brand); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* 站点 Logo（后台「站点信息」上传后，首页/登录页/用户中心共用） */
.brand-logo { height: 26px; width: auto; max-width: 130px; object-fit: contain; vertical-align: middle; }
.brand-logo.lg { height: 42px; max-width: 200px; }
.auth-logo .brand-logo.lg { height: 44px; }
@media (max-width: 640px) {
    .brand-logo { height: 22px; max-width: 96px; }
    .brand-logo.lg { height: 34px; }
}

/* ── 个人主页：二级菜单切换时窗口不再乱动（固定容器尺寸 + 内容区自适应） ── */
.profile-wrap { display: grid; grid-template-columns: 196px 1fr; gap: 18px; align-items: start; }
.profile-nav { display: flex; flex-direction: column; gap: 6px; }
.profile-body {
    /* 关键：给内容区一个稳定的最小高度，切换「个人资料 / 登录密码 / 注销账号 / 登录设备」
       时容器不会忽高忽低地跳；内容超出时在内部滚动。 */
    min-height: 430px; max-height: min(66vh, 560px); overflow: auto; padding-right: 4px;
}
.profile-body > h4:first-child { margin-top: 0; }
/* 弹窗形式（个人主页弹窗）也要自适应：宽度跟屏幕，高度不超过 88vh */
.profile-modal .modal { width: min(940px, 94vw); max-height: 88vh; display: flex; flex-direction: column; }
.profile-modal .modal-body { flex: 1 1 auto; overflow: hidden; }
@media (max-width: 760px) {
    .profile-wrap { grid-template-columns: 1fr; gap: 12px; }
    .profile-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .profile-nav > button { white-space: nowrap; }
    .profile-body { min-height: 0; max-height: none; overflow: visible; }
    .profile-modal .modal { width: 96vw; max-height: 92vh; }
}


/* ── 移动端全局优化（#10）：触控热区 / 弹窗 / 横滑 / 输入不缩放 ── */
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 820px) {
    .modal, .modal-box, .modal-back > div { width: 96vw !important; max-width: 96vw !important; }
    .modal-body { max-height: calc(92vh - 130px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .toast-layer { left: 10px; right: 10px; }
    .toast { max-width: none; }
    .crumb-bar, .crumbs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .vip-tabs, .tabs, .profile-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tw, .file-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    img, video, iframe, canvas { max-width: 100%; }
    .pay-qr { height: auto; }
}
@media (max-width: 640px) {
    /* 触控热区：手机上按钮和输入框都要够大 */
    .btn { min-height: 40px; }
    .btn.sm { min-height: 36px; }
    .btn.tiny { min-height: 32px; }
    /* 16px 可以避免 iOS 聚焦时自动放大页面 */
    .input, .select, input, select, textarea { font-size: 16px; }
    .btn.lg { min-height: 46px; }
    .lp-hero h1 { font-size: 24px; }
    .lp-pick { flex-direction: column; align-items: stretch; }
    .lp-pick .btn { width: 100%; }
    .lp-cta { flex-direction: column; }
    .lp-cta .btn { width: 100%; }
    .share-card, .card { border-radius: 12px; }
    .modal-foot, .save-bar { flex-wrap: wrap; }
    .modal-foot .btn, .save-bar .btn { flex: 1 1 auto; justify-content: center; }
}


/* ══ 首页美化（V1.34）：渐变标题 / 徽章 / 卡片悬浮 / 步骤连线 / 抽取框光晕 ══ */
.lp { position: relative; }
/* 顶部一层柔和的品牌光晕，浅色深色都好看 */
.lp::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 460px; pointer-events: none; z-index: 0;
    background:
        radial-gradient(680px 260px at 18% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
        radial-gradient(560px 240px at 84% -6%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 72%);
}
.lp > * { position: relative; z-index: 1; }   /* 内容始终在柔光之上 */
.lp-nav { position: relative; backdrop-filter: saturate(140%) blur(8px); }
.lp-brand span { font-weight: 800; letter-spacing: .2px; }

/* 徽章胶囊 */
.lp-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; position: relative; }
.lp-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
    padding: 5px 12px; border-radius: 999px; color: var(--brand);
    /* 老浏览器兜底（不支持 color-mix 时用浅品牌底） */
    background: var(--brand-soft); border: 1px solid var(--brand-soft);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
}
.lp-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Hero 标题：渐变文字 + 更舒展 */
.lp-hero { position: relative; padding-top: 8px; }
.lp-hero h1 {
    font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 14px;
    background: linear-gradient(120deg, var(--text) 12%, var(--brand) 96%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lp-sub { font-size: 15.5px; line-height: 1.85; color: var(--muted); max-width: 660px; margin: 0 auto 22px; }
.lp-sub b { color: var(--text); }

/* 分享提取框：聚焦光晕 */
.lp-pick {
    max-width: 660px; margin: 0 auto 10px; border-radius: 16px; padding: 8px;
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.lp-pick:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), var(--shadow);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow);
}
.lp-pick .input { border: 0; background: transparent; box-shadow: none; }
.lp-pick .input:focus { box-shadow: none; }
.lp-hint { font-size: 12.5px; color: var(--muted); }
.lp-hint code { background: var(--brand-soft); color: var(--brand); padding: 1px 6px; border-radius: 6px; }

/* 卖点小胶囊 */
.lp-points { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 18px 0 6px; padding: 0; list-style: none; }
.lp-points li {
    font-size: 12.5px; color: var(--text); padding: 6px 12px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line);
}
.lp-points li::before { content: '✓ '; color: var(--brand); font-weight: 800; }

/* 板块标题 */
.lp-h2 { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -.3px; margin: 0 0 6px; }
.lp-h2sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.lp-feats, .lp-how, .lp-ann { padding-top: 34px; }

/* 功能卡：悬浮抬升 + 图标胶囊 */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lp-feat {
    display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; border-radius: 16px;
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.lp-feat:hover { transform: translateY(-3px); border-color: var(--brand); }
.lp-feat .fi {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.lp-feat .fi svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.lp-feat b { font-size: 15.5px; color: var(--text); }
.lp-feat .fd { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 步骤：序号圆 + 连线 */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; position: relative; }
.lp-step {
    position: relative; padding: 20px 18px; border-radius: 16px; background: var(--panel);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lp-step .no {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 10px;
    font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), #7c3aed);
}
.lp-step b { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.lp-step .fd { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 公告卡 */
.lp-ann .ann-card { border-radius: 16px; }
.lp-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 0; }

/* 落款 */
.lp-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.lp-foot-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.lp-foot-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.lp-foot-links a:hover { color: var(--brand); }

@media (max-width: 640px) {
    .lp::before { height: 320px; }
    .lp-badges { gap: 6px; }
    .lp-badge { font-size: 12px; padding: 4px 10px; }
    .lp-sub { font-size: 14px; }
    .lp-feats, .lp-how, .lp-ann { padding-top: 26px; }
    .lp-feat, .lp-step { padding: 15px; }
}


/* ══ 首页「关于本站」（V1.35）：技术栈 / 优势 / 版本更新 ══ */
.lp-about { padding-top: 34px; }
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ab-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    padding: 18px 18px 20px; box-shadow: var(--shadow);
}
.ab-card h3 {
    display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
    font-size: 15.5px; color: var(--text);
}
.ab-card h3 svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 1.9; }
.ab-list { list-style: none; margin: 0; padding: 0; }
.ab-list li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ab-list li:last-child { border-bottom: 0; }
.ab-list li b { flex: 0 0 66px; color: var(--text); font-weight: 650; }
.ab-list li span { color: var(--muted); line-height: 1.7; }
.ab-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.ab-adv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ab-adv li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.7; }
.ab-adv li::before {
    content: '✓'; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; margin-top: 2px;
    display: grid; place-items: center; font-size: 11px; font-weight: 800;
    color: #fff; background: var(--brand);
}
.ab-adv li b { color: var(--text); font-weight: 650; }
.ab-adv li span { color: var(--muted); }
.ab-log { margin-top: 0; }
.ab-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.ab-timeline::before {
    content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, var(--brand), transparent);
}
.ab-timeline li { position: relative; padding: 6px 0 6px 6px; font-size: 13px; }
.ab-timeline li::before {
    content: ''; position: absolute; left: -18px; top: 13px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--panel); border: 2px solid var(--brand);
}
.ab-timeline li b { color: var(--brand); font-weight: 700; margin-right: 8px; }
.ab-timeline li span { color: var(--muted); }

@media (max-width: 820px) {
    .ab-grid { grid-template-columns: 1fr; }
    .lp-about { padding-top: 26px; }
}


/* ── 用户中心菜单编辑行（名称 / 图标 / 链接 / 显示 / 排序） ── */
.uc-menu-list { display: flex; flex-direction: column; gap: 8px; }
.uc-menu-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2);
}
.uc-menu-row .uc-idx {
    flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft);
}
.uc-menu-row .uc-label { flex: 1 1 150px; min-width: 130px; }
.uc-menu-row .uc-icon { flex: 0 0 130px; }
.uc-menu-row .uc-url { flex: 1 1 220px; min-width: 180px; font-size: 12.5px; }
.uc-menu-row .k { flex: 0 0 auto; }
.uc-menu-row .switch-line { flex: 0 0 auto; margin: 0; }
@media (max-width: 820px) {
    .uc-menu-row .uc-icon, .uc-menu-row .uc-url { flex: 1 1 100%; }
}


/* 用户中心侧栏：自定义链接菜单项，外观与按钮项一致 */
.uc-link {
    display: flex; align-items: center; gap: 9px; width: 100%; box-sizing: border-box;
    padding: 9px 11px; border-radius: 10px; text-decoration: none;
    color: var(--text); font-size: 14px; border: 1px solid transparent;
}
.uc-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; opacity: .9; }
.uc-link:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--line); }


/* 后台日志清理行 */
.log-clear { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.log-clear .select { flex: 0 0 auto; min-width: 190px; }
.log-clear .hint { flex: 1 1 180px; }




/* 分享页「一键保存到我的网盘」 */
.save-line { margin-top: 8px; font-size: 13px; color: var(--muted); }
.save-line a { color: var(--brand); margin-left: 6px; }
.share-wrap .fops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
    .share-wrap .fops { justify-content: flex-start; }
    .share-wrap .ft { flex-wrap: wrap; gap: 8px; }
}


/* 日志清理：勾选项排版 */
.log-clear .switch-line { margin: 0; }
.log-clear .switch-line .hint { margin-left: 4px; font-weight: 400; }


/* ══ 手机端排版优化（V1.41）：首页菜单可折叠 + 用户中心/分享页显示完整 ══ */

/* 顶部菜单汉堡按钮：只在窄屏显示 */
.lp-menu-btn { display: none; }
@media (max-width: 860px) {
    .lp-menu-btn { display: inline-flex !important; }
}

/* 分享页顶部：与首页同一套菜单 */
.share-nav {
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.share-nav .lp-brand { flex-wrap: wrap; gap: 6px; }
.share-nav-tag {
    font-size: 12.5px; font-weight: 500; color: var(--brand);
    background: var(--brand-soft); border-radius: 20px; padding: 2px 9px;
}
.share-page { max-width: 100%; overflow-x: hidden; }

/* 用户中心：手机上不要横向溢出，内容铺满 */
@media (max-width: 860px) {
    html, body { overflow-x: hidden; }
    .uc-body { display: block; }
    .uc-body > #content { width: 100%; }
    #content { padding: 12px 12px 110px; }
    .card { padding: 14px; border-radius: 14px; }
    .card h3 { font-size: 15.5px; }
    .lead { font-size: 13.5px; }
    .save-bar { flex-wrap: wrap; gap: 8px; }
    .save-bar .btn { flex: 0 1 auto; }
    .row { gap: 6px; }
    .topbar { gap: 6px; padding: 10px 12px; }
    .topbar .btn { padding: 8px 10px; font-size: 13px; }
    .pf-head, .vip-head, .pro-head { flex-wrap: wrap; }
    .pf-row, .frow { flex-wrap: wrap; }
    .pf-row .input, .frow .input, .frow .select { width: 100%; min-width: 0; }
    .pf-table, .tw table { min-width: 520px; }
    .tw, .pf-table-wrap, .file-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 手机上多列网格一律单列，避免挤成一条缝 */
@media (max-width: 640px) {
    .vip-feats, .plan-grid, .plan-grid-4, .ref-stats, .pay-grid,
    .pf-cols, .pf-stats, .order-list, .storage-grid {
        grid-template-columns: 1fr !important;
    }
    .ref-rate-row, .ref-link-row, .uc-menu-row { flex-direction: column; align-items: stretch; }
    .ref-rate-row .select { min-width: 0; width: 100%; }
    .uc-menu-row .uc-icon, .uc-menu-row .uc-url, .uc-menu-row .uc-label { flex: 1 1 auto; width: 100%; }
    .vip-tabs, .tabs, .profile-nav { margin: 0 -12px; padding: 0 12px; }
    .modal-body { padding: 12px; }
    /* 分享页文件行：手机上把操作按钮拉满一行 */
    .share-wrap .row { grid-template-columns: 26px 30px 1fr !important; }
    .share-wrap .row .fops { grid-column: 1 / -1; justify-content: flex-start; margin-top: 6px; }
    .share-wrap .ft { flex-direction: column; align-items: stretch; }
    .share-wrap .ft .btn { width: 100%; }
}
