/* =========================================================
   授权中心 · 毛玻璃主题
   ========================================================= */

:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: rgba(15, 23, 42, .08);
    --line-strong: rgba(15, 23, 42, .14);

    --brand: #4f46e5;
    --brand-2: #7c3aed;
    --cyan: #0891b2;

    --ok: #059669;
    --warn: #d97706;
    --bad: #dc2626;

    --glass: rgba(255, 255, 255, .66);
    --glass-2: rgba(255, 255, 255, .84);
    --glass-line: rgba(255, 255, 255, .72);

    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 10px;

    --shadow: 0 24px 50px -32px rgba(15, 23, 42, .55), 0 2px 6px rgba(15, 23, 42, .04);
    --shadow-sm: 0 10px 24px -18px rgba(15, 23, 42, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font: 14.5px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #eceffa;
    background-image:
        radial-gradient(900px 620px at 6% -8%, rgba(165, 180, 252, .85) 0, transparent 58%),
        radial-gradient(820px 560px at 98% -2%, rgba(125, 211, 252, .75) 0, transparent 55%),
        radial-gradient(900px 700px at 52% 112%, rgba(196, 181, 253, .8) 0, transparent 58%),
        radial-gradient(600px 420px at 82% 78%, rgba(251, 207, 232, .45) 0, transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.ico { flex: none; vertical-align: -3px; }

/* ---------------- 顶栏 ---------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .58);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 12px 30px -26px rgba(15, 23, 42, .7);
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 26px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #06b6d4);
    box-shadow: 0 8px 18px -8px rgba(99, 102, 241, .9);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 550;
    white-space: nowrap;
    transition: .16s;
}
.nav a:hover { background: rgba(255, 255, 255, .8); color: var(--ink); text-decoration: none; }
.nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 10px 20px -12px rgba(79, 70, 229, .9);
}
.nav a .ico { opacity: .9; }

.user-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    user-select: none;
}
.user-chip .avatar { width: 28px; height: 28px; font-size: 12px; }
.user-chip .name { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 650;
    font-size: 13px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    overflow: hidden;
    flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    padding: 6px;
    border-radius: var(--r-md);
    background: var(--glass-2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow);
    display: none;
}
.menu.open { display: block; }
.menu a, .menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--ink-2);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}
.menu a:hover, .menu button:hover { background: rgba(79, 70, 229, .08); color: var(--brand); text-decoration: none; }
.menu .sep { height: 1px; margin: 5px 4px; background: var(--line); }

/* ---------------- 布局 ---------------- */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 26px 70px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.page-head h1 { font-size: 27px; }
.page-head .sub { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.crumb { font-size: 12.5px; color: var(--faint); margin-top: 7px; }
.crumb a { color: var(--brand); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------- 玻璃卡片 ---------------- */

.card {
    background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 22px 12px;
}
.card-title { font-size: 15.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card-body { padding: 6px 22px 22px; }
.card-body.tight { padding-top: 0; }
.card-body.flush { padding: 0; }

.stat {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--r-lg);
    background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 28px 55px -34px rgba(15, 23, 42, .6); }

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(168, 85, 247, .12));
    flex: none;
}
.stat-icon.cyan { color: var(--cyan); background: linear-gradient(135deg, rgba(8, 145, 178, .16), rgba(56, 189, 248, .12)); }
.stat-icon.green { color: var(--ok); background: linear-gradient(135deg, rgba(5, 150, 105, .15), rgba(52, 211, 153, .12)); }
.stat-icon.amber { color: var(--warn); background: linear-gradient(135deg, rgba(217, 119, 6, .16), rgba(251, 191, 36, .12)); }
.stat-icon.rose { color: var(--bad); background: linear-gradient(135deg, rgba(220, 38, 38, .14), rgba(251, 113, 133, .12)); }

.stat-value { font-size: 27px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { font-size: 13px; color: var(--ink-2); font-weight: 550; margin-top: 2px; }
.stat-sub { font-size: 11.5px; color: var(--faint); }

/* ---------------- 按钮 ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: 11px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .6);
    cursor: pointer;
    white-space: nowrap;
    transition: .16s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 12px 24px -14px rgba(79, 70, 229, .95);
}
.btn-primary:hover { box-shadow: 0 16px 28px -14px rgba(79, 70, 229, 1); }

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

.btn-danger { color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 12px 22px -14px rgba(220, 38, 38, .9); }
.btn-warn { color: #fff; background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 12px 22px -14px rgba(217, 119, 6, .9); }
.btn-soft-danger { color: var(--bad); background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .18); box-shadow: none; }
.btn-soft-danger:hover { background: rgba(220, 38, 38, .13); }
.btn-soft-ok { color: var(--ok); background: rgba(5, 150, 105, .08); border-color: rgba(5, 150, 105, .18); box-shadow: none; }

.btn-sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-icon { width: 31px; height: 31px; padding: 0; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------------- 表格 ---------------- */

.table-wrap { width: 100%; overflow-x: auto; }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
    text-align: left;
    padding: 11px 14px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--faint);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    background: rgba(255, 255, 255, .35);
}
table.data td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--ink-2);
}
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .5); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.strong, table.data td .strong { color: var(--ink); font-weight: 600; }
table.data .row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
table.data .check { width: 34px; }
table.data input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand); }

.key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    background: rgba(15, 23, 42, .05);
    padding: 3px 7px;
    border-radius: 7px;
    color: var(--ink);
    white-space: nowrap;
}

/* ---------------- 徽章 ---------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .01em;
    white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ok { color: #047857; background: rgba(16, 185, 129, .14); }
.badge.warn { color: #b45309; background: rgba(245, 158, 11, .16); }
.badge.bad { color: #b91c1c; background: rgba(239, 68, 68, .14); }
.badge.muted { color: #475569; background: rgba(100, 116, 139, .14); }
.badge.info { color: #1d4ed8; background: rgba(59, 130, 246, .14); }
.badge.plain::before { display: none; }

/* ---------------- 表单 ---------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field > label .req { color: var(--bad); }

.input, .select, .textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .78);
    border-radius: 11px;
    padding: 9px 12px;
    font: inherit;
    font-size: 13.5px;
    color: var(--ink);
    outline: none;
    transition: .16s;
    min-height: 40px;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: rgba(79, 70, 229, .55);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
    background: #fff;
}
.textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.textarea.mono, .input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.help { font-size: 12px; color: var(--faint); line-height: 1.55; }
.help code, .prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    background: rgba(15, 23, 42, .06);
    padding: 1.5px 5px;
    border-radius: 5px;
    color: #4338ca;
}
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

.switch { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .55); }
.switch input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); }
.switch .t { font-size: 13px; font-weight: 600; }
.switch .d { font-size: 12px; color: var(--faint); }

/* ---------------- 登录 / 落地页 ---------------- */

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px; }
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 34px 32px 28px;
    border-radius: 26px;
    background: var(--glass-2);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--glass-line);
    box-shadow: 0 40px 90px -50px rgba(15, 23, 42, .8);
}
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-card h1 { font-size: 23px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }

.hero { max-width: 1120px; margin: 0 auto; padding: 74px 26px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.15; letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(120deg, #4f46e5, #7c3aed 45%, #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 16px; color: var(--ink-2); margin: 18px 0 26px; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-line); font-size: 12.5px; color: var(--ink-2); font-weight: 550; }

.hero-demo {
    border-radius: 24px;
    background: rgba(15, 23, 42, .92);
    color: #dbeafe;
    padding: 20px 22px;
    box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .9);
    border: 1px solid rgba(255, 255, 255, .12);
    font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow: hidden;
}
.hero-demo .dots { display: flex; gap: 6px; margin-bottom: 14px; }
.hero-demo .dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.hero-demo .dots i:first-child { background: #f87171; }
.hero-demo .dots i:nth-child(2) { background: #fbbf24; }
.hero-demo .dots i:last-child { background: #34d399; }
.hero-demo .k { color: #7dd3fc; }
.hero-demo .s { color: #86efac; }
.hero-demo .c { color: #94a3b8; }
.hero-demo .line { white-space: pre-wrap; }

/* ---------------- 代码块 ---------------- */

pre.code {
    margin: 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .94);
    color: #dbeafe;
    font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .1);
}
pre.code .k { color: #7dd3fc; }
pre.code .s { color: #86efac; }
pre.code .c { color: #94a3b8; }

/* ---------------- 空状态 / 分页 ---------------- */

.empty { padding: 46px 20px; text-align: center; color: var(--faint); }
.empty .icon {
    width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
    display: grid; place-items: center;
    background: rgba(79, 70, 229, .08); color: var(--brand);
}
.empty .t { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.empty .d { font-size: 12.5px; margin-top: 4px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.pager .info { font-size: 12.5px; color: var(--faint); }
.pager .pages { display: flex; gap: 5px; }
.pager .pages a, .pager .pages span {
    min-width: 32px; height: 32px; padding: 0 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; font-size: 12.5px; color: var(--ink-2);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .6);
}
.pager .pages a:hover { background: #fff; text-decoration: none; }
.pager .pages .cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 650; }

/* ---------------- 提示 ---------------- */

.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 15px; border-radius: 13px;
    background: var(--glass-2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow);
    font-size: 13.5px;
    animation: toast-in .28s ease both;
}
.toast.ok { border-left: 3px solid var(--ok); }
.toast.error { border-left: 3px solid var(--bad); }
.toast .ico { margin-top: 2px; }
.toast.ok .ico { color: var(--ok); }
.toast.error .ico { color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------- 图表 ---------------- */

.chart { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 8px 0 4px; }
.donut { width: 168px; height: 168px; flex: none; }
.donut circle { fill: none; stroke-width: 22; }
.donut .track { stroke: rgba(15, 23, 42, .06); }
.legend { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--ink-2); }
.legend .item { display: flex; align-items: center; gap: 8px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }
.legend b { color: var(--ink); }

.bars { display: flex; align-items: flex-end; gap: 18px; height: 168px; padding: 10px 4px 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .col {
    width: 100%; max-width: 54px; border-radius: 9px 9px 4px 4px;
    background: linear-gradient(180deg, #818cf8, #6366f1);
    box-shadow: 0 10px 20px -14px rgba(79, 70, 229, .9);
    min-height: 4px;
    transition: .2s;
}
.bars .bar:hover .col { filter: brightness(1.08); }
.bars .num { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.bars .lbl { font-size: 11.5px; color: var(--faint); }

/* ---------------- 日志 ---------------- */

.log-list { display: flex; flex-direction: column; }
.log-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.log-item:last-child { border-bottom: 0; }
.log-item .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--brand); }
.log-item .dot.ok { background: var(--ok); }
.log-item .dot.bad { background: var(--bad); }
.log-item .dot.warn { background: var(--warn); }
.log-item .txt { font-size: 13px; color: var(--ink-2); }
.log-item .meta { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

/* ---------------- 弹窗 ---------------- */

dialog.modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 560px;
    width: calc(100% - 32px);
    color: var(--ink);
}
dialog.modal::backdrop { background: rgba(15, 23, 42, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-card {
    background: rgba(255, 255, 255, .93);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 20px;
    box-shadow: 0 40px 90px -40px rgba(15, 23, 42, .85);
    padding: 24px;
}
.modal-card h3 { font-size: 17px; margin-bottom: 6px; }
.modal-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------------- 其它 ---------------- */

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 0 22px 14px; }
.filters .input, .filters .select { width: auto; min-width: 150px; }
.filters .search { flex: 1 1 260px; max-width: 420px; }
.filters .search .input { width: 100%; min-width: 0; }

.search { position: relative; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 34px; }

.prose { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.prose h3 { font-size: 15px; margin: 22px 0 8px; color: var(--ink); }
.prose ul { margin: 8px 0; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose .note { padding: 12px 14px; border-radius: 12px; background: rgba(79, 70, 229, .07); border: 1px solid rgba(79, 70, 229, .14); font-size: 12.5px; }

.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.kv .k { color: var(--faint); }

.dot-sep::before { content: "·"; margin: 0 6px; color: var(--faint); }

.copy-btn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--faint); }
.copy-btn:hover { color: var(--brand); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .topbar-inner { padding: 10px 16px; gap: 10px; }
    .brand .brand-text { display: none; }
    .container { padding: 22px 16px 60px; }
    .stats, .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2, .grid-3, .split-2, .form-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: 46px 18px 30px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .hero h1 { font-size: 32px; }
    .page-head h1 { font-size: 22px; }
    .user-chip .name { display: none; }
    .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
