/* UltraClean 授权服务 · 登录页 + 管理台
 * 风格：Fluent-Blue（Microsoft Fluent 2 浅色亚克力）
 * 视觉语言照搬 templates/Fluent-Blue/Fluent-Blue.html：
 *   品牌渐变底 · 亚克力面板(顶部 1px 高光) · Depth 六级阶梯（真的用在交互上）
 *   · depth-row 数据行 · gauge 渐变进度条 · avatar 渐变头像圆 · eyebrow 胶囊 · 渐变文字
 *
 * 手写 CSS，不引 npm / CDN / 框架。
 * ⚠ 阴影一律蓝调 rgba(39, 104, 146,α) —— 全文件**一条 rgba(0,0,0 都不许有**（纯黑会压灰白底）。
 * ⚠ 2026-10-13：主色改用**公司 logo 的品牌蓝 #276892**（陕西鼎澈膜科技有限公司），
 *   并从 logo 里取出副色青绿 #40a0a0；登录页由「居中单卡」改为**左右分栏**。
 */

:root {
    /* ── 品牌蓝（取自公司 logo）── */
    --brand: #276892;
    --brand-hover: #1e5578;
    --brand-pressed: #163f5a;
    --brand-tint-10: #eef4f9;
    --brand-tint-20: #dce8f1;
    --brand-tint-30: #bbd0e0;
    --brand-tint-60: #5d8ead;
    --brand-tint-80: #1b4a69;

    /* ── 品牌副色·青绿（也取自公司 logo —— 逐像素统计里它是墨色的第二色）──
       ⚠ 克制：只用在三处渐变尾（登录左面板 / .gauge / .pill）。全站主色仍是钢蓝。 */
    --brand-2: #40a0a0;
    /* --brand-2 压在浅底上只有 2.8:1 —— 要当**文字/图标色**用时必须压深到这个值（3.7:1） */
    --brand-2-deep: #2f8a8a;

    /* ── 深色品牌侧栏（2026-10-13）—— 与登录页左面板同一套语言 ──
       ⚠ 只在这里定义，**绝不要去改 --glass / --hair / --glass-line / --n-* 的根值**：
         它们同时被 .topbar / .panel-card / .row-menu / th / .modal-* 用着，
         改根值会把内容区（甚至登录页）一起改掉。侧栏一律局部覆盖。 */
    --side-bg: linear-gradient(175deg, #276892 0%, #1b4a69 58%, #1a5f66 100%);
    --side-line: rgba(255, 255, 255, .14);      /* 侧栏里的分隔线（--hair 是深蓝，深底上等于没有）*/
    --side-fg: rgba(255, 255, 255, .88);        /* 常态导航文字。⚠ 要按**渐变最亮那一端**算：
                                                   #276892 处 .80 只有 4.60:1（擦线），.88 → 5.06:1；
                                                   #1b4a69 处 7.69:1；尾 #1a5f66 处 6.3:1 */
    --side-fg-dim: rgba(255, 255, 255, .78);    /* 底部版本号：它落在渐变**尾**上，别用更低的 */
    --side-hover: rgba(255, 255, 255, .10);
    --side-active: rgba(255, 255, 255, .16);    /* active 底；白字压其上 6.05:1 */

    /* ── Fluent 2 中性色阶 ── */
    --n-0: #ffffff;
    --n-10: #faf9f8;
    --n-20: #f3f2f1;
    --n-30: #edebe9;
    --n-40: #e1dfdd;
    --n-50: #d2d0ce;
    --n-60: #c8c6c4;
    --n-70: #a19f9d;
    --n-80: #605e5c;
    --n-90: #3b3a39;
    --n-100: #323130;
    --n-110: #201f1e;

    /* ── Depth 六级阶梯（每级两层：一层管距离、一层贴边）── */
    --shadow-2: 0 1px 2px rgba(39, 104, 146, .10), 0 0 2px rgba(39, 104, 146, .08);
    --shadow-4: 0 2px 4px rgba(39, 104, 146, .11), 0 0 2px rgba(39, 104, 146, .08);
    --shadow-8: 0 4px 8px rgba(39, 104, 146, .12), 0 0 2px rgba(39, 104, 146, .08);
    --shadow-16: 0 8px 16px rgba(39, 104, 146, .14), 0 0 2px rgba(39, 104, 146, .08);
    --shadow-28: 0 14px 28px rgba(39, 104, 146, .16), 0 0 8px rgba(39, 104, 146, .10);
    --shadow-64: 0 32px 64px rgba(39, 104, 146, .18), 0 0 8px rgba(39, 104, 146, .10);

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    --ease: cubic-bezier(.33, 0, .67, 1);
    --dur: .2s;

    --side-w: 236px;
    --side-w-sm: 68px;

    --glass: rgba(255, 255, 255, .62);
    --glass-strong: rgba(255, 255, 255, .78);
    --glass-line: rgba(255, 255, 255, .85);
    --hair: rgba(39, 104, 146, .10);        /* depth-row 那种分隔线 */

    --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont,
            "Inter", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: Consolas, "Cascadia Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--n-110);
    background: var(--n-0);
    -webkit-font-smoothing: antialiased;
}

/* ══ 管理台的基底：品牌渐变 + 两团静态光晕 ══════════════════════
 * 模板 .hero 的底是 linear-gradient(170deg,#eef4f9,#f7fbfc,#fff)；
 * 这里把同样的「水感」铺满整页（静态渐变，无 canvas）。 */
body.app {
    background:
        radial-gradient(900px 520px at 12% -6%, rgba(93, 142, 173, .16), transparent 62%),
        radial-gradient(760px 460px at 92% 4%, rgba(93, 142, 173, .13), transparent 58%),
        linear-gradient(170deg, #eef4f9 0%, #f7fbfc 42%, #ffffff 100%);
    background-attachment: fixed;
}

/* ── 通用 ─────────────────────────────────────────────────────── */
.muted { color: var(--n-80); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.spacer { flex: 1; }
.ta-r { text-align: right; }
.ta-c { text-align: center; }

h1 { font-size: 21px; margin: 0; letter-spacing: -.02em; color: var(--n-110); }
h2 { font-size: 15px; margin: 0; color: var(--n-110); letter-spacing: -.008em; }

pre { margin: 0; white-space: pre-wrap; word-break: break-all; }
.term {
    background: rgba(238, 244, 249, .7);
    border: 1px solid var(--n-30);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    margin-top: 12px;
}

.link-btn {
    background: none; border: none; box-shadow: none; padding: 0; margin: 2px 0 0;
    color: var(--brand); font-size: 12.5px; font-weight: 600; cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { background: none; color: var(--brand-pressed); box-shadow: none; }

/* ── 亚克力（浅色毛玻璃）────────────────────────────────────────
 * 配方照模板：亮底 + saturate(190%) 提纯 + 蓝调阴影 + 1px 白描边 + 顶部 1px 高光。
 * ⚠ saturate 不能省 —— 它把被模糊掉的色彩重新提纯，否则玻璃后面发灰发闷。
 * ⚠ 顶部高光（.glow 那条 ::before）是「玻璃有厚度」的关键，缺了会显得脏。 */
.acrylic,
.panel-card,
.stat,
.side-nav,
.modal-box {
    position: relative;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(190%) blur(30px);
    backdrop-filter: saturate(190%) blur(30px);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-16);
}
.acrylic::before,
.panel-card::before,
.stat::before,
.modal-box::before {
    content: "";
    position: absolute;
    left: 16px; right: 16px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
    pointer-events: none;
    z-index: 1;
}
/* 浏览器不支持 backdrop-filter 时给个能看的实底（别让文字浮在花纹上） */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .acrylic, .panel-card, .stat, .side-nav, .modal-box { background: rgba(255, 255, 255, .93); }
}

/* ── eyebrow：标题上方那枚半透明胶囊（模板里的）──────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    padding: 0 11px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-2);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-tint-80);
    white-space: nowrap;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: block; }

/* ── avatar：渐变头像圆 ───────────────────────────────────────── */
.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(140deg, #5d8ead, #1b4a69);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-4);
    text-transform: uppercase;
}

/* ── depth-row：带蓝色细分隔线的数据行（模板里的）────────────── */
.depth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    font-size: 13.5px;
}
.depth-row + .depth-row { border-top: 1px solid var(--hair); }
.depth-row .k { color: var(--n-80); display: flex; align-items: center; gap: 8px; }
.depth-row .v {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--brand-tint-80);
}

/* ── gauge：蓝色渐变进度条 + 外发光 ───────────────────────────── */
.gauge {
    width: 74px;
    height: 6px;
    border-radius: 3px;
    background: rgba(39, 104, 146, .12);
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}
.gauge i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #276892, var(--brand-2));   /* 副色收尾 */
    box-shadow: 0 0 10px rgba(93, 142, 173, .55);
}

/* ══ 登录页：左右分栏（左深品牌面板 / 右表单）════════════════════════
   2026-10-13 改版：原来是「浅底 + 居中一张亚克力卡」，现在改左右分栏。
   左栏只放**品牌标识本身**（白色镂空 logo + 公司全称 + 慢漂柔光 + 四层波浪），
   右栏只有表单。⚠ 深底上必须用 logo-white.png —— 蓝版贴深蓝面板等于看不见。 */
.login-page { min-height: 100vh; background: #fff; }

.login-split {
    display: grid;
    grid-template-columns: minmax(380px, 42%) 1fr;
    min-height: 100vh;
}

/* ── 左：品牌面板 ─────────────────────────────────────────────── */
.brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px 176px;        /* 底部留给波浪 */
    /* 钢蓝 → 深蓝 → 偏青（末段是副色 #40a0a0 压暗后的落点） */
    background: linear-gradient(160deg, #276892 0%, #1b4a69 55%, #1a5f66 100%);
}
.brand-panel-in { position: relative; z-index: 2; text-align: center; }
/* ⚠ 用**白色镂空版**。蓝版 logo 贴深蓝底对比度不足 1.2:1，等于看不见。 */
.brand-logo-lg {
    display: block;
    width: 272px;
    max-width: 86%;
    margin: 0 auto 28px;
}
.brand-company {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .09em;
    color: #fff;
}
.brand-sub {
    margin: 11px 0 0;
    font-size: 12.5px;
    letter-spacing: .3em;
    text-indent: .3em;               /* 补掉末字后多出的那份字距，整行才视觉居中 */
    color: rgba(255, 255, 255, .74);
}

/* 面板里的四团柔光（原来铺在整页上，现在收进深色面板当「活的光」）。
   配色改成白 / 青 —— 深蓝底上只有这两种压得住。 */
.login-orbs { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.login-orbs i { position: absolute; display: block; border-radius: 50%; filter: blur(64px); }
.login-orbs i:nth-child(1) {          /* 左上：白 */
    width: 520px; height: 520px; left: -180px; top: -200px; opacity: .30;
    background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 70%);
    animation: orb-a 46s ease-in-out infinite;
}
.login-orbs i:nth-child(2) {          /* 右上：青绿（副色） */
    width: 460px; height: 460px; right: -150px; top: -40px; opacity: .46;
    background: radial-gradient(circle, rgba(64,160,160,.62), rgba(64,160,160,0) 70%);
    animation: orb-b 62s ease-in-out infinite;
}
.login-orbs i:nth-child(3) {          /* 中下：白，撑体积 */
    width: 640px; height: 640px; left: 8%; bottom: -300px; opacity: .26;
    background: radial-gradient(circle, rgba(255,255,255,.5), rgba(255,255,255,0) 72%);
    animation: orb-c 78s ease-in-out infinite;
}
.login-orbs i:nth-child(4) {          /* 右下：青绿，淡 */
    width: 420px; height: 420px; right: -60px; bottom: 2%; opacity: .34;
    background: radial-gradient(circle, rgba(64,160,160,.5), rgba(64,160,160,0) 70%);
    animation: orb-d 54s ease-in-out infinite;
}
@keyframes orb-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(72px,52px) scale(1.08); } }
@keyframes orb-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-64px,72px) scale(1.10); } }
@keyframes orb-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(52px,-62px) scale(1.06); } }
@keyframes orb-d { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-46px,-56px) scale(1.07); } }

/* 四层波浪收边：贴面板底（那四条 path 原样复用，只是底色由浅转深，于是改成半透明白） */
.waves {
    display: block;
    width: 100%;
    height: 132px;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── 右：表单 ─────────────────────────────────────────────────── */
.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px 8vh;          /* 8vh：视觉重心略高于正中 */
    /* 极浅：右上角渗一点品牌蓝，免得整块死白 */
    background: radial-gradient(120% 90% at 100% 0%, #f2f8fb 0%, #ffffff 58%);
}
.login-card {
    width: 100%;
    max-width: 372px;
    margin: 0;
    text-align: center;
}

/* 蓝色 logo（右栏是白底，所以用回带 alpha 的蓝版）。
   ⚠ 源图是无 alpha 的白底图 —— 已用「白底反解墨色」抠成透明 PNG 存回 static/img/logo.png
     （合成回白底时与原图逐像素一致）。不要再改回 mix-blend-mode：
     带 backdrop-filter 的容器会自成层叠上下文，multiply 在那里等于没生效。 */
.login-logo { display: block; width: 196px; max-width: 76%; margin: 0 auto 22px; }

.login-welcome {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--n-110);
}
.login-hint { margin: 8px 0 26px; font-size: 13px; color: var(--n-80); }

/* 带左侧图标的输入框（表单里恢复左对齐） */
.login-card label { text-align: left; }
.login-card .ipt { position: relative; display: block; margin-top: 7px; }
.login-card .ipt .fi {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--n-70);
    pointer-events: none;
    transition: color var(--dur) var(--ease);
}
.login-card .ipt input { margin-top: 0; padding-left: 38px; height: 46px; }
.login-card .ipt input::placeholder { color: var(--n-60); }
.login-card .ipt:focus-within .fi { color: var(--brand); }   /* 聚焦时图标跟着变色 */

/* 登录按钮撑满；.spot = 模板那个「光跟着指针走」 */
.login-card button[type=submit] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;                        /* 文字与箭头之间 */
    width: 100%; height: 46px; margin-top: 24px; font-size: 15px;
}
.login-card button[type=submit] svg { width: 17px; height: 17px; }
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255, 255, 255, .42), transparent 62%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.spot:hover::before { opacity: 1; }
.spot-label { position: relative; }

/* 登录页的提示留在表单里（不弹 toast —— 那时用户就站在页面中央）。
   ⚠ 必须用**独立类名 .login-msg**，不能复用 .msg：
     全局 toast 的 .msg.error 是 (0,2,0)、.msg.error:not(:empty) 是 (0,3,0)，
     而 `.login-page .msg` 只有 (0,2,0) 又排在前面 —— 抢不过。抢不过的后果实测是
     「粉色胶囊 + 被 translateX(-50%) 推出表单左边缘」。这是类名撞车，不是布局问题。 */
.login-msg {
    margin: 10px 0 0;
    min-height: 20px;              /* 空着也占位：报错时不跳版 */
    font-size: 13px;
    text-align: center;
}
.login-msg.ok { color: #0e700e; }
.login-msg.error { color: #b10e1c; }

/* ══ 应用外壳 ════════════════════════════════════════════════════ */
.app { min-height: 100vh; }

/* ── 左侧导航（毛玻璃）────────────────────────────────────────── */
.side-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--side-w);
    display: flex;
    flex-direction: column;
    border: none;                      /* 简写四边全清，压掉亚克力组的 1px 白边 */
    border-radius: 0;
    /* ── 深色品牌渐变 ──
       ⚠ 这一块在亚克力组（127 行）与 @supports 回退块（151 行）**之后**，同特指度靠
         源码顺序取胜，所以深色自然压过 var(--glass) 和回退块的 rgba(255,255,255,.93)。
         **绝不要把这条挪到 151 行之前** —— 那样在禁用 backdrop-filter 的浏览器里会被
         回退块盖回白色，变成「白侧栏 + 白字 + 白 logo」全瞎。 */
    background: var(--side-bg);
    /* ⚠ 必须显式关掉：亚克力组给了 saturate(190%) blur(30px)，而 .side-nav 自己从没覆盖过。
        留着它，身后的浅色页面会透上来被模糊成灰雾，深色就不深了。 */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: var(--shadow-16);
    z-index: 30;
    transition: width var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.side-nav::before { display: none; }        /* 侧栏贴边，不要那条顶部高光 */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 15px;
    border-bottom: 1px solid var(--side-line);   /* 原来用 --hair（深蓝 10%），深底上完全看不见 */
    min-height: 62px;
}
.brand-mono {                 /* 侧栏收窄到 68px 时的替代标识（logo 横长，塞不进）*/
    display: none;
    width: 32px; height: 32px;
    flex: 0 0 auto;
    border-radius: 9px;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    /* 原来是蓝→青渐变，与深蓝侧栏同色相 → 会见不着。改成半透明白 + 白描边 */
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .30);
    box-shadow: none;
}
.brand-logo {                  /* 侧栏顶部：公司 logo（蓝版，白底上清晰）*/
    display: block;
    width: 150px;
    max-width: 100%;
}

.side-items { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
/* ⚠ 滚动条挂在 .side-items 上，**不是** .side-nav —— 写到侧栏那个元素上会打空 */
.side-items { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent; }
.side-items::-webkit-scrollbar { width: 8px; }
.side-items::-webkit-scrollbar-track { background: transparent; }
.side-items::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); border-radius: 4px; }
.side-items::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .44); }

.side-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
    box-shadow: none;
    color: var(--side-fg);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side-item:hover { background: var(--side-hover); color: #fff; box-shadow: none; }
.side-item .ico { width: 18px; height: 18px; flex: 0 0 auto; opacity: .9; }
.side-item .label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item .pill { flex: 0 0 auto; }
/* ⚠ 必须排在 .side-item:hover 之后（现在是），否则 hover 会盖掉 active */
.side-item.active {
    background: var(--side-active);
    color: #fff;
    font-weight: 600;
}
.side-item.active::before {
    content: "";
    position: absolute;
    left: 0; top: 7px; bottom: 7px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #fff, var(--brand-2));   /* 深底上要亮起来才看得出 */
    box-shadow: 0 0 10px rgba(64, 160, 160, .55);
}
.side-item.active .ico { opacity: 1; }

/* ⚠ 全局 button:focus-visible 是**黑色** outline + 白色光圈（见下面按钮那节），
   落在深色侧栏上 = 黑描边隐形、只剩一圈突兀的白环。侧栏里换成白描边。 */
.side-item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(22, 63, 90, .85);
}

.side-foot {
    padding: 10px 18px 14px;
    border-top: 1px solid var(--side-line);      /* 原来 --hair，深底上看不见 */
    white-space: nowrap;
    overflow: hidden;
}
/* ⚠ 版本号是 <span class="muted small">，全局 .muted 是 #605e5c —— 深底上直接隐形 */
.side-foot .muted { color: var(--side-fg-dim); }

.side-scrim {
    position: fixed;
    inset: 0;
    background: rgba(39, 104, 146, .28);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 25;
    display: none;
}

/* ── 主区 ── */
.main {
    position: relative;
    z-index: 1;
    margin-left: var(--side-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin var(--dur) var(--ease);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    min-height: 66px;
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: saturate(190%) blur(20px);
    backdrop-filter: saturate(190%) blur(20px);
    border-bottom: 1px solid var(--glass-line);
    box-shadow: var(--shadow-2);
}
.page-heading { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.page-heading p { margin: 0; }
/* 头像 + 用户名，从「光秃秃飘着」改成一枚胶囊 */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 3px;
    border-radius: 999px;
    background: rgba(238, 244, 249, .75);
    border: 1px solid rgba(39, 104, 146, .10);
    box-shadow: var(--shadow-2);
}

.hamburger {
    display: none;
    padding: 6px;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--n-90);
    border-radius: var(--radius);
    cursor: pointer;
}
.hamburger:hover { background: rgba(238, 244, 249, .9); color: var(--brand); box-shadow: none; }
.hamburger svg { width: 20px; height: 20px; display: block; }

.content { max-width: 1224px; width: 100%; margin: 0 auto; padding: 24px 26px 68px; }

/* 点统计卡 = 切到对应页签（data-goto 由 console.js 接） */
.stats .stat { cursor: pointer; }
.stats .stat:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── 概览条（4 张亚克力小卡）──────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat {
    padding: 17px 18px 16px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 13px;
    transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat:hover { box-shadow: var(--shadow-28); transform: translateY(-1px); }

/* 有活儿等着办时「跳出来」：左侧青绿竖条 + glyph 转青绿 + 数字转副色。
   没有待办就是常态中性卡 —— 四张卡不必永远长得一模一样。
   ⚠ 数字/图标用的是 --brand-2-deep：#40a0a0 压在浅底上只有 2.8:1，当文字不够看。 */
.stat.alert::after {
    content: "";
    position: absolute;
    left: 0; top: 15px; bottom: 15px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--brand-2), var(--brand-2-deep));
}
.stat.alert .glyph {
    background: linear-gradient(140deg, rgba(64, 160, 160, .20), rgba(64, 160, 160, .08));
    border-color: rgba(47, 138, 138, .45);
    color: var(--brand-2-deep);
}
.stat.alert .v { color: var(--brand-2-deep); }
.stat .glyph {
    width: 40px; height: 40px;
    flex: 0 0 auto;
    border-radius: var(--radius-lg);
    display: grid; place-items: center;
    background: linear-gradient(140deg, rgba(220, 232, 241, .95), rgba(238, 244, 249, .9));
    border: 1px solid rgba(187, 208, 224, .8);
    color: var(--brand);
    box-shadow: var(--shadow-2);
}
.stat .glyph svg { width: 20px; height: 20px; }
.stat .body { min-width: 0; }
.stat .k { font-size: 12.5px; color: var(--n-80); }
.stat .v {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--brand-tint-80);
}

/* ── 卡片 ── */
.panel-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow var(--dur) var(--ease);
}
.panel-card:hover { box-shadow: var(--shadow-28); }

.panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hair);
}
.panel-head h2 { flex: 0 0 auto; }

/* ⚠ 原来 admin.css 里 .actions **没有任何基础规则**（只有 820px 断点里那几条），
   工具栏一直靠元素默认流 + `.btn + .btn{margin-left:4px}` 撑着 —— 这就是它挤的根因。 */
.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}
.actions select { width: auto; min-width: 108px; }

/* 搜索框左侧放大镜。⚠ 只加图标，**不改触发时机** —— 现在仍然是回车才搜。
   （写成 .search 而不是所有 text 输入框：#newUser/#newPass 不是搜索框。） */
.actions input.search {
    padding-left: 32px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a19f9d' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16.2 16.2 20.5 20.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 15px 15px;
}
.panel-body { padding: 16px 18px; }

.panel-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 18px;
    border-top: 1px solid var(--hair);
    background: rgba(238, 244, 249, .38);
}
.panel-foot .muted { margin-right: auto; }

/* ── 选择列与批量操作条（2026-10-13：勾选批量删除）──────────────────
   ⚠ .ckcol 是**专用类名**，不要去改通用的 .ta-c —— 那是全站对齐工具类，
     挂上宽度会波及别处。 */
/* 审计的「详情」是自由文本。不给它换行的话，它会把整张表撑出横向滚动，
   「操作」列的 ⋯ 按钮就被推到可视区之外（实测溢出 86px，点都点不到）。 */
.table-wrap td.detail { white-space: normal; max-width: 360px; word-break: break-word; }

.ckcol { width: 34px; text-align: center; }
.ckcol input[type=checkbox] { margin: 0; vertical-align: middle; cursor: pointer; }

/* 批量条：只在勾选了行时出现。flex-basis:100% 让它**独占一行**，
   于是分页条自动落到下一行、位置与不勾选时完全一致（零布局回归）。 */
.bulkbar {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bulkbar .muted { margin-right: auto; }   /* 条数靠左、按钮靠右 */
.bulkbar .btn { margin-left: 0; }

.tips { margin: 10px 2px 0; color: var(--n-80); font-size: 12.5px; line-height: 1.6; }
.tips b { color: var(--n-90); }

/* ── 表单 ── */
label { display: block; margin: 14px 0 0; font-size: 13px; color: var(--n-80); }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
label.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; user-select: none; }

input[type=text], input[type=password], input[type=number], input[type=date], select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    font: inherit;
    color: var(--n-110);
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--n-50);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

label.inline input, label.inline select, label.check input,
.actions input[type=text], .actions input[type=number] {
    display: inline-block; width: auto; margin-top: 0;
}
/* ⚠ 必须写在上面这条**之后**：两条都是 `.actions input[type=text]`（0,2,1），
   同特指度靠源码顺序 —— 写在前面就会被上面的 `width:auto` 吃掉，
   输入框退回 auto 宽度（实测 191px），占位符「搜 公司/姓名/电话/HWID 前缀」直接被截断。
   250px 留给文字 206px，够放整个占位符。
   （820px 断点里那条 width:100% 在更后面，窄屏仍按断点铺满，不受这条影响。） */
.actions input[type=text], .actions input[type=password] { width: 250px; }
label.check input { width: auto; }

/* 输入框聚焦：品牌色描边 + 光圈（不是模板那圈黑白 outline —— 那套是无障碍用的，
   落在表单上又粗又黑很扎眼）。键盘聚焦仍保留黑白双色，见下面 button:focus-visible。 */
input:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(39, 104, 146, .20);
}
/* 按钮/链接的**键盘**聚焦才用黑白双色 —— 鼠标点不触发，只有在高对比/深底/浅底上都可见 */
button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--n-110);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--n-0);
}
input:hover, select:hover { border-color: var(--n-60); }

/* ── 按钮（模板的高度体系：sm 32 / md 36 + 图标位）────────────── */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-4);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease), transform .05s var(--ease);
}
button svg, .btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

button:hover, .btn:hover { background: var(--brand-hover); box-shadow: var(--shadow-8); }
button:active, .btn:active { background: var(--brand-pressed); box-shadow: var(--shadow-2); transform: translateY(1px); }
button:disabled, .btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }

button.ghost { background: transparent; color: var(--brand); border-color: transparent; box-shadow: none; }
button.ghost:hover { background: rgba(238, 244, 249, .95); color: var(--brand-pressed); }

.btn-sm, .btn-sm.btn { height: 32px; padding: 0 12px; font-size: 13px; margin: 0; }
.btn + .btn { margin-left: 4px; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-4); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); box-shadow: var(--shadow-8); }
.btn-primary:active { background: var(--brand-pressed); box-shadow: var(--shadow-2); }

.btn-outline {
    background: var(--n-0); color: var(--n-110);
    border: 1px solid var(--n-50); box-shadow: var(--shadow-2);
}
.btn-outline:hover { background: var(--n-10); border-color: var(--n-60); box-shadow: var(--shadow-4); }
.btn-outline:active { background: var(--n-20); box-shadow: var(--shadow-2); }

/* ⚠ 原来是「白底红字」，跟旁边的 .btn-outline（取消）几乎看不出主次 ——
   破坏性动作的确认按钮必须一眼就是它。改成实底（白字压 #b10e1c = 7.17:1）。
   全站只有两处用它：确认框的「确定」、维护窗口的「全部关闭」—— 都确实是破坏性动作。 */
.btn-danger { background: #b10e1c; color: #fff; border: 1px solid #b10e1c; box-shadow: var(--shadow-4); }
.btn-danger:hover { background: #8d0b16; border-color: #8d0b16; color: #fff; box-shadow: var(--shadow-8); }
.btn-danger:active { background: #730913; border-color: #730913; color: #fff; box-shadow: var(--shadow-2); }

.dots { padding: 0 10px; letter-spacing: 1px; }

/* ── 行内「⋯」菜单 ─────────────────────────────────────────────── */
.row-menu {
    position: absolute;
    z-index: 70;
    min-width: 178px;
    padding: 5px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(190%) blur(20px);
    backdrop-filter: saturate(190%) blur(20px);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-28);
    animation: fade .12s var(--ease);
}
.row-menu button {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 8px 10px;
    justify-content: flex-start;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    box-shadow: none;
    color: var(--n-110);
    font-weight: 400;
    font-size: 13.5px;
}
.row-menu button:hover { background: rgba(238, 244, 249, .95); color: var(--brand-pressed); box-shadow: none; transform: none; }
.row-menu button.danger { color: #b10e1c; }
.row-menu button.danger:hover { background: #fdf3f4; color: #b10e1c; }
.row-menu button:disabled { color: var(--n-60); background: transparent; }
.row-menu-sep { height: 1px; margin: 5px 6px; background: var(--n-30); }

/* ── 表格 ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-wrap table { min-width: 100%; }
.table-wrap th, .table-wrap td { white-space: nowrap; }
.table-wrap td.mono { font-size: 12px; }

th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--brand-tint-80);
    /* 浅蓝渐变表头（模板的 tint 语言） */
    background: linear-gradient(180deg, #f2f7fa, var(--brand-tint-10));
    border-bottom: 1px solid rgba(187, 208, 224, .7);
    font-size: 12.5px;
    letter-spacing: .02em;
}
th.ta-r { text-align: right; }

td { padding: 13px 14px; border-bottom: 1px solid var(--n-20); text-align: left; vertical-align: top; }
/* 斑马纹原来是暖灰 rgba(250,249,248)，与全站蓝调不搭 —— 换冷色 */
tbody tr:nth-child(even) td { background: rgba(238, 244, 249, .5); }
tbody tr:hover td { background: rgba(220, 232, 241, .55); }
tbody tr:last-child td { border-bottom: none; }

.hwid-cell { max-width: 230px; }
.hwid-more { margin-top: 4px; white-space: normal; }
.hwid-more > div { line-height: 1.4; }

tr.row-deleted td { color: var(--n-70); background: rgba(243, 242, 241, .9) !important; text-decoration: line-through; }
tr.row-deleted td .btn, tr.row-deleted td .sp { text-decoration: none; }

/* ── 空状态：模板那套多径向渐变圆盘当插画底 ─────────────────── */
.empty-cell { padding: 0 !important; }
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 46px 16px;
    color: var(--n-80);
    font-size: 13px;
}
.empty .disc {
    width: 88px; height: 88px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 26% 24%, #4fb3ff 0%, transparent 52%),
        radial-gradient(circle at 74% 30%, #5d8ead 0%, transparent 48%),
        radial-gradient(circle at 56% 82%, #1b4a69 0%, transparent 56%),
        linear-gradient(150deg, #dce8f1, #bbd0e0);
    box-shadow: var(--shadow-16);
}
.empty .disc svg { width: 34px; height: 34px; }
/* 空状态里那行「下一步该做什么」的小字（由 emptyState() 的第 4 个参数给）*/
.empty .hint { color: var(--n-70); font-size: 12.5px; }
.empty { animation: fade var(--dur) var(--ease); }

/* ── 骨架屏 ───────────────────────────────────────────────────── */
.sk {
    display: inline-block;
    height: 11px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(187, 208, 224, .25) 25%, rgba(187, 208, 224, .5) 37%, rgba(187, 208, 224, .25) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
td .sk { width: 68px; }

/* ── 状态 pill ────────────────────────────────────────────────── */
.sp {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(39, 104, 146, .12);
}
.sp.plain { background: var(--n-20); color: var(--n-80); }
.sp.ok { background: #e6f4e6; color: #0e700e; }
.sp.warn { background: #fff4ce; color: #8a6116; }
.sp.err { background: #fde7e9; color: #b10e1c; }
.sp.info { background: var(--brand-tint-20); color: var(--brand-tint-80); }

.pill {
    display: inline-block;
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 10px;
    /* ⚠ 反相：.pill 只出现在深色侧栏（#pending-count）。原来的蓝→青渐变压在 #1b4a69 上
       只有 1.56:1（青端 3.03:1）—— 胶囊左半几乎沉进底色。白底深字 = 9.42:1。 */
    background: #fff;
    color: var(--brand-pressed);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}
.side-item .pill:empty { display: none; }

/* ── 维护窗口卡片 ─────────────────────────────────────────────── */
.mw-card {
    margin-top: 12px;
    padding: 15px 17px;
    border: 1px solid var(--n-30);
    border-left: 4px solid var(--n-50);
    border-radius: var(--radius-lg);
    background: rgba(250, 249, 248, .8);
}
.mw-card.on {
    border-left-color: #c19c00;
    background: linear-gradient(90deg, rgba(255, 251, 242, .95), rgba(248, 251, 252, .75));
    box-shadow: var(--shadow-4), inset 3px 0 0 -1px rgba(193, 156, 0, .45);
}

/* ── 弹窗（三段式）────────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(39, 104, 146, .28);
    -webkit-backdrop-filter: saturate(150%) blur(2px);
    backdrop-filter: saturate(150%) blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 50;
    animation: fade var(--dur) var(--ease);
}

.modal-box {
    width: 440px;
    max-width: 100%;
    margin: 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-64);
    overflow: hidden;
    /* 入场：遮罩层已经 fade，这里让盒子再「落」一下 */
    animation: pop .22s var(--ease);
}
.modal-box.wide { width: 792px; }
/* 顶部品牌渐变细线（和登录卡、深色侧栏同一手） */
.modal-box::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, #276892 0%, var(--brand-2) 60%, #1b4a69 100%);
    pointer-events: none;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hair);
}
.modal-head h2 { flex: 1; font-size: 16px; }
.modal-x {
    margin: 0;
    height: 32px;
    width: 32px;
    padding: 0;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--n-80);
    font-size: 19px;
    line-height: 1;
    border-radius: var(--radius);
    cursor: pointer;
}
.modal-x:hover { background: var(--n-20); color: var(--n-110); box-shadow: none; }

.modal-body { padding: 4px 20px 20px; overflow: auto; }
.modal-body > .muted:first-child { margin-top: 12px; }

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--hair);
    background: rgba(238, 244, 249, .55);      /* 冷调，跟卡片脚一致 */
}

/* ── 提示：浮动 toast ─────────────────────────────────────────── */
.msg {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    max-width: min(720px, 92vw);
    margin: 0;
    padding: 11px 17px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-64);
    font-size: 13.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    z-index: 80;
    white-space: pre-wrap;
}
.msg.ok { background: #f1faf1; color: #0e700e; border: 1px solid #9fd89f; }
.msg.error { background: #fdf3f4; color: #b10e1c; border: 1px solid #e8b9be; }
/* ⚠ 只加图标，**类名与 `:not(:empty)` 那套显隐机制一个字不改**（改了 toast 立刻断）。
   写在上面两条之后 —— 同特指度靠源码顺序，longhand 才能盖掉 shorthand 里的 background-image:none。 */
.msg.ok, .msg.error {
    padding-left: 42px;
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 17px 17px;
}
.msg.ok {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e700e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.6 9.6 17.5 19.5 7'/%3E%3C/svg%3E");
}
.msg.error {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b10e1c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7.2'/%3E%3Ccircle cx='12' cy='17.6' r='1.2' fill='%23b10e1c' stroke='none'/%3E%3C/svg%3E");
}
.msg.ok:not(:empty), .msg.error:not(:empty) { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.tab-panel { animation: fade var(--dur) var(--ease); }

/* ── 响应式 ───────────────────────────────────────────────────── */
@media (max-width: 1056px) {
    .content { max-width: 100%; }
    .stats { grid-template-columns: repeat(2, 1fr); }


    .side-nav { width: var(--side-w-sm); }
    .main { margin-left: var(--side-w-sm); }
    .side-item { justify-content: center; padding: 10px 0; }
    .side-item .label { display: none; }
    .side-item .pill { position: absolute; margin: 0 0 16px 22px; }
    .brand { justify-content: center; padding: 16px 0 15px; }
    .brand-logo { display: none; }        /* 150px 的横版 logo 塞不进 68px */
    .brand-mono { display: grid; }
    .side-foot { display: none; }
}

@media (max-width: 820px) {
    .content { padding: 12px 12px 44px; }
    .topbar { padding: 8px 12px; }
    .hamburger { display: inline-flex; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat { padding: 12px; gap: 10px; }
    .stat .v { font-size: 20px; }

    /* 侧栏变抽屉 */
    .side-nav {
        width: var(--side-w);
        transform: translateX(-100%);
        box-shadow: var(--shadow-28);
    }
    .main { margin-left: 0; }
    .side-item { justify-content: flex-start; padding: 9px 12px; }
    .side-item .label { display: block; }
    .side-item .pill { position: static; margin: 0; }
    .brand { justify-content: flex-start; padding: 16px 18px 15px; }
    .brand-logo { display: block; }       /* 抽屉恢复整宽 → 换回 logo */
    .brand-mono { display: none; }
    .side-foot { display: block; }

    .app.nav-open .side-nav { transform: none; }
    .app.nav-open .side-scrim { display: block; }

    .page-heading p { display: none; }
    .panel-head { align-items: flex-start; }
    .panel-head h2 { flex: 1 0 100%; }
    .actions { margin-left: 0; width: 100%; }
    .actions input[type=text], .actions input[type=password] { width: 100%; }

    table { min-width: 780px; }
    .modal-box, .modal-box.wide { width: 100%; }
}

@media (max-width: 672px) {
    .wrap { padding: 0 16px; }
    .stats { grid-template-columns: 1fr; }
}

/* 窄屏：左品牌面板**整块收起**，表单铺满。
   不切成上下两半 —— 那会多出一大块没用的深色占屏。 */
@media (max-width: 900px) {
    .login-split { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .form-panel { padding: 44px 22px; min-height: 100vh; }
}

/* ── 降级：关掉动画。⚠ 登录页背景在这之后**单独放开**（降速不停），见下面那段 ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ⚠ 登录页背景**降速不停**：静止正是被抱怨「不能流动」的原因。
   这几条特指度高于上面的 *，又都带 !important，所以能把动画重新打开、只把周期拉长。 */
@media (prefers-reduced-motion: reduce) {
    .login-orbs i:nth-child(1) { animation: orb-a 220s ease-in-out infinite !important; }
    .login-orbs i:nth-child(2) { animation: orb-b 260s ease-in-out infinite !important; }
    .login-orbs i:nth-child(3) { animation: orb-c 300s ease-in-out infinite !important; }
    .login-orbs i:nth-child(4) { animation: orb-d 240s ease-in-out infinite !important; }
}

/* ── ICP 备案号 ─────────────────────────────────────────────────
   登录页固定底部居中；控制台放在左侧栏 .side-foot 版本号上方。
   规定要求链接到 beian.miit.gov.cn。 */
.icp-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 5;
    text-align: center;
    font-size: 12px;
    letter-spacing: .02em;
    color: #8a94a6;
}

.icp-footer a,
.icp-link {
    color: inherit;
    text-decoration: none;
}

.icp-footer a:hover,
.icp-link:hover {
    text-decoration: underline;
}

.icp-link {
    display: block;
    font-size: 11px;
    opacity: .7;
    margin-bottom: 4px;
}
