/* ============================================================
   卡密代理系统 · 全局样式
   风格：二次元炫酷 · 深色霓虹（紫 / 粉 / 青）
   ============================================================ */

:root {
    /* 深色底 */
    --bg: #0b0d14;
    --surface: #12141d;
    --surface-2: #181b27;
    --ink: #e8eaf2;
    --muted: #9aa3b8;
    --faint: #6b7385;
    --line: #232838;
    --line-strong: #323a50;

    /* 霓虹主色 */
    --accent: #8b5cf6;          /* 紫 */
    --accent-2: #ec4899;        /* 粉 */
    --accent-3: #22d3ee;        /* 青 */
    --accent-strong: #a855f7;
    --accent-soft: rgba(139, 92, 246, .14);
    --accent-line: rgba(139, 92, 246, .4);

    --danger: #fb7185;
    --danger-strong: #f43f5e;
    --danger-soft: rgba(244, 63, 94, .14);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, .12);

    --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 55%, #22d3ee 130%);

    /* 侧边栏 */
    --sidebar: #0c0e16;
    --sidebar-2: #161a28;
    --sidebar-text: #8a93ab;
    --sidebar-active: #ffffff;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Roboto Mono",
                 Consolas, "Courier New", monospace;

    /* 圆角 */
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .42);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    background-color: #0b0d14;
    background-image:
        radial-gradient(900px 460px at 8% -6%, rgba(139, 92, 246, .16), transparent 60%),
        radial-gradient(820px 420px at 96% 0%, rgba(236, 72, 153, .12), transparent 58%),
        radial-gradient(700px 460px at 50% 110%, rgba(34, 211, 238, .10), transparent 60%),
        linear-gradient(to right, rgba(139, 92, 246, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, .05) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px, 28px 28px;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-3); text-decoration: none; }
a:hover { color: #67e8f9; }

::selection { background: var(--accent); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3040; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3a4358; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    color: #d8dce8;
    background: #181b27;
    border: 1px solid #323a50;
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { background: #20242f; border-color: #4a5470; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    box-shadow: 0 4px 18px rgba(139, 92, 246, .4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #a855f7 0%, #f472b6 100%);
    box-shadow: 0 6px 26px rgba(236, 72, 153, .5);
}

.btn-danger {
    background: rgba(244, 63, 94, .06);
    border-color: rgba(251, 113, 133, .35);
    color: #fb7185;
}
.btn-danger:hover { background: rgba(244, 63, 94, .16); border-color: rgba(251, 113, 133, .6); }

.btn-solid-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    border: 1px solid transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(244, 63, 94, .35);
}
.btn-solid-danger:hover { box-shadow: 0 6px 22px rgba(244, 63, 94, .5); filter: brightness(1.05); }

.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }

.btn .ico { width: 16px; height: 16px; }
.btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.btn-sm svg { width: 14px; height: 14px; flex: 0 0 14px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: #d8dce8; }
.field .hint { font-size: 12px; color: var(--faint); }

.input, .textarea, .select {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
    background: #0f111a;
    border: 1px solid #2a3040;
    border-radius: var(--r-sm);
    padding: 9px 12px;
    width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}
.input::placeholder, .textarea::placeholder { color: #5b6373; }
.textarea { resize: vertical; line-height: 1.7; }
.select option { background: #12141d; color: #e8eaf2; }

/* ---------- 顶部 / 侧边栏布局 ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 232px;
    flex: 0 0 232px;
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    background:
        radial-gradient(420px 300px at -10% -6%, rgba(139, 92, 246, .24), transparent 62%),
        radial-gradient(360px 300px at 120% 120%, rgba(236, 72, 153, .16), transparent 60%),
        linear-gradient(180deg, #0e1018 0%, #0a0c12 100%);
    border-right: 1px solid rgba(139, 92, 246, .16);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand .mark {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, .5);
}
.brand .mark svg { width: 17px; height: 17px; }
.brand .name { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.brand .sub { font-size: 11px; color: var(--sidebar-text); letter-spacing: 1px; font-family: var(--font-mono); }

.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 11px; letter-spacing: 1px; color: #565e70; padding: 10px 10px 6px; font-weight: 500; }
.nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    color: var(--sidebar-text);
    border-radius: var(--r-sm);
    font-size: 13.5px;
    position: relative;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav a svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.nav a:hover { background: var(--sidebar-2); color: #e7e9ec; }
.nav a.active {
    background: rgba(139, 92, 246, .16);
    color: var(--sidebar-active);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35);
}
.nav a.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--grad);
    box-shadow: 0 0 10px rgba(236, 72, 153, .7);
}

.sidebar-foot { padding: 14px 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); }
.sidebar-user .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex: 0 0 30px;
    box-shadow: 0 0 12px rgba(139, 92, 246, .4);
}
.sidebar-user .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sidebar-user .who .n { color: #e7e9ec; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .who .r { font-size: 11px; color: var(--sidebar-text); }
.sidebar-user .logout { color: var(--sidebar-text); padding: 4px; border-radius: 4px; display: flex; }
.sidebar-user .logout:hover { color: #fff; background: var(--sidebar-2); }
.sidebar-user .logout svg { width: 16px; height: 16px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 60px;
    background: rgba(12, 14, 22, .72);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid #1d2230;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.topbar .crumb .sep { color: var(--faint); }
.topbar .crumb .cur { font-weight: 600; color: var(--ink); }
.topbar .crumb .root { color: var(--muted); }
.topbar .right { display: flex; align-items: center; gap: 14px; }

/* 移动端菜单按钮（默认隐藏） */
.menu-btn { display: none; }

.content { padding: 26px 28px 40px; max-width: 1240px; width: 100%; margin: 0 auto; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.page-head .t h1 { font-size: 21px; font-weight: 650; margin: 0; letter-spacing: -.2px; }
.page-head .t p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.page-head .actions { display: flex; gap: 10px; }

/* ---------- 统计卡片 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat {
    background: rgba(18, 20, 29, .72);
    border: 1px solid #232838;
    border-radius: var(--r-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(139, 92, 246, .25);
    border-color: rgba(139, 92, 246, .4);
}
.stat .label { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.stat .value { font-family: var(--font-mono); font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.stat .value .unit { font-size: 13px; font-weight: 500; color: var(--faint); margin-left: 4px; font-family: var(--font-sans); }
.stat .foot { font-size: 12px; color: var(--faint); margin-top: 8px; }
.stat.accent { position: relative; border-top: 3px solid transparent; }
.stat.accent::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0; height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--grad);
}
.stat.accent .value {
    background: linear-gradient(120deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 卡片容器 ---------- */
.panel {
    background: rgba(18, 20, 29, .72);
    border: 1px solid #232838;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #232838;
}
.panel-head .ttl { font-size: 15px; font-weight: 600; }
.panel-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.panel-body { padding: 20px; }
.panel-body.no-pad { padding: 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #7d8598;
    letter-spacing: .3px;
    padding: 11px 20px;
    border-bottom: 1px solid #232838;
    white-space: nowrap;
}
table.tbl td {
    padding: 12px 20px;
    border-bottom: 1px solid #1d2130;
    vertical-align: middle;
    color: #d8dce8;
}
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover td { background: rgba(139, 92, 246, .06); }
table.tbl td.mono { font-family: var(--font-mono); font-size: 13px; }
table.tbl td.muted { color: var(--muted); }
table.tbl td.num { font-family: var(--font-mono); }
table.tbl input[type="checkbox"] { accent-color: #8b5cf6; width: 15px; height: 15px; cursor: pointer; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* 状态点（发光） */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.status.s-unused .dot { background: #22d3ee; box-shadow: 0 0 8px rgba(34, 211, 238, .8); }
.status.s-unused { color: #67e8f9; }
.status.s-used .dot { background: #6b7385; }
.status.s-used { color: var(--muted); }
.status.s-on .dot { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, .8); }
.status.s-on { color: #6ee7b7; }
.status.s-off .dot { background: #6b7385; }
.status.s-off { color: var(--muted); }

/* 卡密文本 */
.key-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: #67e8f9; }
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #323a50;
    border-radius: 5px;
    background: #0f111a;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s ease;
    flex: 0 0 26px;
}
.copy-btn:hover { color: #67e8f9; border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); }
.copy-btn svg { width: 14px; height: 14px; }

/* ---------- 空状态 ---------- */
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty > svg { width: 40px; height: 40px; margin: 0 auto 12px; color: #3a4358; display: block; }
.empty .ico { width: 40px; height: 40px; margin: 0 auto 12px; color: #3a4358; }
.empty .ico svg { width: 40px; height: 40px; }
.empty .t { font-size: 14px; font-weight: 500; color: #d8dce8; }
.empty .s { font-size: 12.5px; margin-top: 4px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid #232838; justify-content: space-between; }
.pager .info { font-size: 12.5px; color: var(--muted); }
.pager .btns { display: flex; gap: 6px; }

/* ---------- 筛选工具条 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid #232838; }
.toolbar .search { position: relative; }
.toolbar .search .input { padding-left: 34px; width: 240px; }
.toolbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #5b6373; }
.toolbar .spacer { flex: 1; }

/* ---------- 上传区 ---------- */
.upload-grid { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.upload-meta { display: flex; flex-direction: column; gap: 14px; }
.upload-counter { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.upload-counter b { color: #67e8f9; }

/* ---------- 代理端提取 ---------- */
.extract-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.extract-panel,
.extract-result {
    background: rgba(18, 20, 29, .72);
    border: 1px solid #232838;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.extract-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px;
}
.extract-panel .big-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(139, 92, 246, .5);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.extract-panel .big-btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(236, 72, 153, .55); }
.extract-panel .big-btn:active { transform: translateY(0); }
.extract-panel .big-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.extract-panel .big-btn svg { width: 28px; height: 28px; }
.extract-panel .ttl { font-size: 16px; font-weight: 600; margin-top: 18px; }
.extract-panel .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.extract-result { padding: 28px; display: flex; flex-direction: column; justify-content: center; min-height: 280px; }
.extract-result .label { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.extract-result .key {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
    color: #67e8f9;
    margin: 14px 0 6px;
    word-break: break-all;
    line-height: 1.4;
    text-shadow: 0 0 18px rgba(34, 211, 238, .35);
}
.extract-result .key.placeholder { color: #4a5265; font-weight: 400; text-shadow: none; }
.extract-result .time { font-size: 12px; color: var(--faint); font-family: var(--font-mono); }

/* ---------- 弹窗 ---------- */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 10, .68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}
.modal {
    background: #14161f;
    border-radius: var(--r-lg);
    border: 1px solid #2a3040;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139, 92, 246, .14);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
}
.modal-head { padding: 20px 22px 0; font-size: 16px; font-weight: 600; }
.modal-body { padding: 18px 22px 22px; }
.modal-body .field + .field { margin-top: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
    background: rgba(20, 22, 31, .92);
    color: #fff;
    padding: 11px 18px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(139, 92, 246, .3);
    display: flex;
    align-items: center;
    gap: 9px;
    animation: toast-in .22s ease;
}
.toast.error { border-color: rgba(244, 63, 94, .5); background: rgba(40, 16, 22, .95); }
.toast.success { border-color: rgba(34, 211, 238, .5); background: rgba(14, 26, 30, .95); }
.toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px rgba(34, 211, 238, .8); opacity: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .upload-grid, .extract-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: translateX(0); }
    .menu-btn { display: inline-flex; }
    .content { padding: 18px 16px 32px; }
    .topbar { padding: 0 16px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .toolbar .search .input { width: 100%; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .page-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- 工具类 ---------- */
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.text-mono { font-family: var(--font-mono); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.spacer { flex: 1; }

/* ---------- 流光动画 ---------- */
@keyframes btn-shine {
    0% { transform: translateX(-130%) skewX(-18deg); }
    55%, 100% { transform: translateX(240%) skewX(-18deg); }
}
@keyframes topbar-flow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.btn-primary,
.btn-solid-danger,
.extract-panel .big-btn,
.brand .mark,
.login-brand .mark,
.role-switch button.active {
    position: relative;
    overflow: hidden;
}
.btn-primary::after,
.btn-solid-danger::after,
.extract-panel .big-btn::after,
.brand .mark::after,
.login-brand .mark::after,
.role-switch button.active::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: translateX(-130%) skewX(-18deg);
    animation: btn-shine 3.4s ease-in-out infinite;
    pointer-events: none;
}

/* 顶栏底部流动霓虹线 */
.topbar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #ec4899, #22d3ee, transparent);
    background-size: 200% 100%;
    animation: topbar-flow 5s linear infinite;
    pointer-events: none;
}

/* ---------- 分类卡片（代理端提取） ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-card {
    background: rgba(15, 17, 26, .6);
    border: 1px solid #232838;
    border-radius: var(--r-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cat-card:hover { border-color: rgba(139, 92, 246, .45); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transform: translateY(-2px); }
.cat-card .cat-name { font-size: 15px; font-weight: 600; color: #fff; }
.cat-card .cat-price { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: #67e8f9; }
.cat-card .cat-stock { font-size: 12.5px; color: var(--muted); }
.cat-card .cat-stock b { color: #d8dce8; }
.cat-card .cat-extract { margin-top: 6px; width: 100%; }

/* 软件分组（代理端提取） */
.sw-group { margin-bottom: 22px; }
.sw-group:last-child { margin-bottom: 0; }
.sw-group-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: #fff;
    margin-bottom: 12px;
}
.sw-group-head svg { width: 16px; height: 16px; color: #a78bfa; }
