/* ============================================================
   运维平台 · 界面样式（现代 SaaS 风）
   浅色侧栏 + 大圆角卡片 + 克制的留白与层级
   ============================================================ */

:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --line: #ecedf3;
    --line-2: #f3f4f8;
    --text: #101828;
    --text-2: #475467;
    --text-3: #98a2b3;
    --pri: #4f46e5;
    --pri-2: #635bff;
    --pri-soft: #eef1ff;
    --ok: #12b76a;
    --ok-soft: #e9f9f0;
    --warn: #f79009;
    --warn-soft: #fef4e6;
    --bad: #f04438;
    --bad-soft: #feeceb;
    --r-lg: 16px;
    --r: 12px;
    --r-sm: 9px;
    --sh-1: 0 1px 2px rgba(16, 24, 40, .04);
    --sh-2: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 24px -18px rgba(16, 24, 40, .22);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.005em;
}

a { color: var(--pri); text-decoration: none; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, Monaco, monospace; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

/* ============ 登录 ============ */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--panel); }

.login-brand {
    position: relative;
    overflow: hidden;
    background: #0b1020;
    color: #fff;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.login-brand .glow {
    position: absolute;
    width: 520px; height: 520px;
    right: -180px; top: -160px;
    background: radial-gradient(circle at 30% 30%, rgba(99, 91, 255, .42), rgba(99, 91, 255, 0) 62%);
    border-radius: 50%;
}
.login-brand .grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 30% 40%, #000 30%, transparent 78%);
}
.lb-top { display: flex; align-items: center; gap: 11px; position: relative; }
.lb-mark {
    width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, #635bff, #4f46e5);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 20px -8px rgba(99, 91, 255, .8);
}
.lb-name { font-size: 14.5px; font-weight: 600; letter-spacing: .2px; }
.lb-name small { display: block; font-size: 11px; color: #7b879c; font-weight: 400; letter-spacing: .4px; }
.lb-body { position: relative; max-width: 380px; }
.lb-body h1 { font-size: 30px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; }
.lb-body h1 span { color: #a5b4fc; }
.lb-body p { color: #9aa6bd; font-size: 13.5px; margin: 0 0 34px; }
.lb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lb-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: #c4cddd; }
.lb-list .tick {
    flex: 0 0 18px; height: 18px; border-radius: 6px;
    background: rgba(99, 91, 255, .22);
    color: #a5b4fc;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.lb-foot { position: relative; color: #5b6679; font-size: 12px; }

.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form { width: 336px; }
.login-form h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.login-form .sub { color: var(--text-3); font-size: 13px; margin: 0 0 28px; }

/* ============ 表单控件 ============ */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.input, select.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e3e6ee;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    background: #fff;
    color: var(--text);
    outline: none;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #b6bfcc; }
.input:focus { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.input:disabled { background: #f8f9fc; color: var(--text-3); }
select.input { appearance: none; background-image: none; cursor: pointer; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid transparent;
    background: var(--pri);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, border-color .15s;
    white-space: nowrap;
}
.btn:hover { background: #443cd4; }
.btn.ghost { background: #fff; color: var(--text-2); border-color: #e3e6ee; }
.btn.ghost:hover { background: #fafbff; border-color: #d3d8e4; color: var(--text); }
.btn.danger { background: var(--bad); }
.btn.danger:hover { background: #d92d20; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn.block { width: 100%; height: 42px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.link { background: none; color: var(--pri); height: auto; padding: 0; border: 0; font-weight: 500; }

.err { color: var(--bad); font-size: 12.5px; min-height: 18px; margin-top: 10px; }
.ok-msg { color: var(--ok); font-size: 12.5px; min-height: 18px; margin-top: 10px; }

/* ============ 骨架 ============ */
.shell { display: flex; min-height: 100vh; }

.side {
    width: 232px;
    flex: 0 0 232px;
    background: var(--panel);
    border-right: 1px solid var(--line);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 30;
}
.side-head { height: 64px; display: flex; align-items: center; gap: 11px; padding: 0 18px; }
.side-head .mark {
    width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, #635bff, #4f46e5);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 6px 16px -8px rgba(99, 91, 255, .9);
}
.side-head .tt { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.side-head .tt small { display: block; color: var(--text-3); font-size: 10.5px; font-weight: 400; letter-spacing: .5px; }

.side-scroll { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav-group {
    color: var(--text-3); font-size: 10.5px; font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase;
    padding: 14px 10px 7px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    height: 36px; padding: 0 10px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: 13px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.nav-item:hover { background: #f6f7fb; color: var(--text); }
.nav-item.on { background: var(--pri-soft); color: var(--pri); font-weight: 500; }
.nav-item .ico { flex: 0 0 16px; display: flex; color: currentColor; opacity: .85; }
.nav-item .lb { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .cnt {
    font-size: 11px; color: var(--text-3);
    background: #f2f4f8; border-radius: 6px; padding: 1px 6px;
    min-width: 21px; text-align: center;
}
.nav-item.on .cnt { background: #fff; color: var(--pri); }
.nav-item .led { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.led.ok { background: var(--ok); }
.led.warn { background: var(--warn); }
.led.bad { background: var(--bad); }
.led.mute { background: #d6dce6; }

.side-school {
    margin: 4px 0 8px;
    padding: 11px 12px;
    border-radius: var(--r);
    background: linear-gradient(180deg, #fafbff, #f5f7ff);
    border: 1px solid #eaeaff;
}
.side-school .s1 { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.side-school .s2 { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.side-foot { border-top: 1px solid var(--line); padding: 12px 14px; }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-avatar {
    width: 32px; height: 32px; border-radius: 10px;
    background: var(--pri-soft); color: var(--pri);
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 600; flex: 0 0 32px;
}
.side-user .nm { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.side-user .rl { font-size: 11px; color: var(--text-3); }
.side-logout { margin-left: auto; color: var(--text-3); cursor: pointer; display: flex; padding: 5px; border-radius: 7px; }
.side-logout:hover { background: #f4f5fa; color: var(--bad); }

.main { flex: 1; margin-left: 232px; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 64px;
    background: rgba(246, 247, 251, .82);
    backdrop-filter: saturate(180%) blur(8px);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
}
.topbar .tt { font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.topbar .sb { font-size: 12px; color: var(--text-3); }
.topbar .sp { flex: 1; }
.topbar .act { display: flex; align-items: center; gap: 8px; }

.page { padding: 22px 28px 56px; max-width: 1600px; width: 100%; }

.live {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--text-2);
    background: #fff; border: 1px solid var(--line);
    padding: 5px 11px; border-radius: 999px;
}
.live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(18, 183, 106, .16); }

/* ============ KPI ============ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--sh-1);
    position: relative;
    overflow: hidden;
}
.kpi-card .lb { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.kpi-card .kico {
    width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pri-soft); color: var(--pri);
}
.kpi-card .vl { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; margin-top: 10px; }
.kpi-card .ft { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.kpi-card.ok .kico { background: var(--ok-soft); color: var(--ok); }
.kpi-card.ok .vl { color: var(--ok); }
.kpi-card.warn .kico { background: var(--warn-soft); color: var(--warn); }
.kpi-card.warn .vl { color: var(--warn); }
.kpi-card.bad .kico { background: var(--bad-soft); color: var(--bad); }
.kpi-card.bad .vl { color: var(--bad); }

/* ============ 面板 ============ */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    overflow: hidden;
    margin-bottom: 18px;
}
.panel-hd { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; }
.panel-hd h3 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.panel-hd .hint { color: var(--text-3); font-size: 12px; }
.panel-hd .sp { flex: 1; }
.panel-bd { padding: 4px 20px 20px; }
.panel-bd.flush { padding: 0; }
.panel-sep { height: 1px; background: var(--line-2); margin: 0 20px; }

.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* ============ 图表 ============ */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.bar-row .nm { flex: 0 0 96px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .tr { flex: 1; height: 7px; background: #f1f3f9; border-radius: 999px; overflow: hidden; }
.bar-row .fi { height: 100%; border-radius: 999px; background: var(--pri); transition: width .4s ease; }
.bar-row .fi.ok { background: var(--ok); }
.bar-row .fi.warn { background: var(--warn); }
.bar-row .fi.bad { background: var(--bad); }
.bar-row .vv { flex: 0 0 26px; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 500; }

.spark { display: flex; align-items: flex-end; gap: 10px; height: 148px; }
.spark .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.spark .pair { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 100%; justify-content: center; }
.spark .seg { width: 9px; border-radius: 4px 4px 2px 2px; background: var(--bad); min-height: 3px; transition: height .4s ease; }
.spark .seg.ins { background: #dfe5fb; }
.spark .day { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-top: 14px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
    text-align: left;
    padding: 10px 20px;
    color: var(--text-3);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    background: #fcfcfe;
}
table.tb td { padding: 13px 20px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb tbody tr { transition: background .12s; }
table.tb tbody tr:hover { background: #fafbff; }
table.tb td.num, table.tb th.num { text-align: right; font-variant-numeric: tabular-nums; }
.link { color: var(--pri); cursor: pointer; font-weight: 500; }
.link:hover { text-decoration: underline; }

.toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 20px 14px; flex-wrap: wrap; }
.toolbar .sp { flex: 1; }
.search { position: relative; }
.search input {
    width: 248px; height: 34px; padding: 0 12px 0 32px;
    border: 1px solid #e3e6ee; border-radius: var(--r-sm);
    font-size: 12.5px; outline: none; background: #fff; color: var(--text);
    font-family: inherit;
}
.search input:focus { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(79, 70, 229, .1); }
.search .mg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; }

.tabs { display: inline-flex; gap: 2px; background: #f3f4f9; border-radius: 10px; padding: 3px; }
.tabs a { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: #fff; color: var(--pri); font-weight: 500; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.tabs a em { font-style: normal; color: var(--text-3); margin-left: 5px; font-size: 11.5px; }

/* ============ 徽章 ============ */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 23px; padding: 0 9px; border-radius: 999px;
    font-size: 12px; font-weight: 500;
    background: #f2f4f8; color: var(--text-2);
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: #067647; }
.pill.warn { background: var(--warn-soft); color: #b54708; }
.pill.bad { background: var(--bad-soft); color: #b42318; }
.pill.mute { background: #f2f4f8; color: var(--text-3); }
.pill.mute::before { display: none; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; background: #f4f5fa; color: var(--text-2); }

/* ============ 告警列表 ============ */
.al-list { display: flex; flex-direction: column; }
.al-item { display: flex; gap: 13px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.al-item:last-child { border-bottom: 0; }
.al-item .bd { flex: 1; min-width: 0; }
.al-item .t1 { font-size: 13px; margin-bottom: 3px; }
.al-item .t2 { font-size: 11.5px; color: var(--text-3); }
.al-item .op { flex: 0 0 auto; }

/* ============ 空状态 ============ */
.empty { text-align: center; color: var(--text-3); padding: 48px 16px; font-size: 13px; }
.empty .big { color: #d3d8e4; margin-bottom: 10px; display: flex; justify-content: center; }

/* ============ 使用率条 ============ */
.ubar { display: flex; align-items: center; gap: 9px; justify-content: flex-end; }
.ubar .t { width: 56px; height: 6px; background: #f1f3f9; border-radius: 999px; overflow: hidden; }
.ubar .f { height: 100%; background: var(--ok); border-radius: 999px; }
.ubar .f.warn { background: var(--warn); }
.ubar .f.bad { background: var(--bad); }
.ubar .n { width: 38px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* ============ 信息栅格 ============ */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-grid .it .k { color: var(--text-3); font-size: 11.5px; margin-bottom: 5px; letter-spacing: .02em; }
.info-grid .it .v { font-size: 13.5px; font-weight: 500; }

.token-row { display: flex; gap: 8px; align-items: center; }
.token-row .input { font-size: 12px; }
.note { font-size: 11.5px; color: var(--text-3); padding: 12px 20px; border-top: 1px solid var(--line-2); }
.rule-box { background: #fafbff; border: 1px solid #eceefb; border-radius: var(--r); padding: 14px 16px; font-size: 12.5px; color: var(--text-2); line-height: 2; }

/* ============ 管理后台 ============ */
.u-row { display: flex; align-items: center; gap: 10px; }
.u-ava {
    width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
    background: var(--pri-soft); color: var(--pri);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}
.u-meta .n { font-size: 13px; font-weight: 500; }
.u-meta .s { font-size: 11.5px; color: var(--text-3); }
.chip-school { display: inline-block; padding: 1px 8px; margin: 1px 4px 1px 0; border-radius: 6px; font-size: 11.5px; background: #f4f5fa; color: var(--text-2); }
.chip-school.none { color: var(--text-3); background: #fafbfd; }

.modal-mask {
    position: fixed; inset: 0; background: rgba(16, 24, 40, .38);
    display: flex; align-items: center; justify-content: center; z-index: 60;
    backdrop-filter: blur(2px);
}
.modal {
    width: 520px; max-height: 86vh; overflow: auto;
    background: #fff; border-radius: var(--r-lg);
    box-shadow: 0 24px 60px -20px rgba(16, 24, 40, .4);
    padding: 24px;
    position: relative;
}
.modal h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.modal .sub { color: var(--text-3); font-size: 12.5px; margin: 0 0 20px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.school-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.school-pick label {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 11px; border: 1px solid #e6e9f2; border-radius: var(--r-sm);
    font-size: 12.5px; cursor: pointer; color: var(--text-2);
}
.school-pick label:hover { border-color: #cfd5e6; background: #fafbff; }
.school-pick input { accent-color: var(--pri); }
.role-hint { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }

/* ============ 设备分类卡 ============ */
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tcard {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.tcard:hover { border-color: #d5d9ea; box-shadow: var(--sh-1); }
.tcard.on { border-color: var(--pri); background: var(--pri-soft); }
.tcard .ico {
    width: 34px; height: 34px; border-radius: 10px;
    background: #f4f5fa; color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 34px;
}
.tcard.on .ico { background: #fff; color: var(--pri); }
.tcard .bd { flex: 1; min-width: 0; }
.tcard .n { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.tcard .s { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.led { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; display: inline-block; }
.led.ok { background: var(--ok); }
.led.warn { background: var(--warn); }
.led.bad { background: var(--bad); }
.led.mute { background: #d6dce6; }

/* ============ 待开发占位 ============ */
.tag-todo {
    display: inline-block;
    padding: 0 6px;
    height: 17px;
    line-height: 17px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .02em;
    background: #f1f2f7;
    color: #98a2b3;
    border: 1px solid #e9ebf2;
    flex: 0 0 auto;
}
.tag-todo.big { position: absolute; top: 22px; right: 24px; height: 20px; line-height: 20px; padding: 0 8px; font-size: 11px; }
.nav-item.is-todo { color: #98a2b3; }
.nav-item.is-todo .ico { opacity: .55; }
.nav-item.is-todo:hover { background: #fafbfd; color: var(--text-2); }
.nav-item.is-todo:hover .tag-todo { background: #eef1ff; color: var(--pri); border-color: #dfe3ff; }

.td-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding-right: 80px; }
.td-ico {
    width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
    background: var(--pri-soft); color: var(--pri);
    display: flex; align-items: center; justify-content: center;
}
.td-head h3 { margin: 0; }

.td-now {
    background: #fafbff; border: 1px solid #eceefb; border-radius: var(--r);
    padding: 12px 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.75;
    margin-bottom: 18px;
}
.td-sec {
    font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    color: var(--text-3); margin: 18px 0 10px;
}
.td-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.td-list li { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.6; }
.td-list li b { font-weight: 600; color: var(--text); }
.td-list li span { color: var(--text-2); }

.td-brands { display: flex; flex-direction: column; gap: 8px; }
.td-brand {
    display: flex; align-items: flex-start; gap: 12px;
    border: 1px solid var(--line); border-radius: var(--r);
    padding: 11px 13px;
}
.td-brand .bd { flex: 1; min-width: 0; }
.td-brand .n { font-size: 13px; font-weight: 600; }
.td-brand .s { font-size: 11.5px; color: var(--text-3); }
.td-brand .d { font-size: 11.5px; color: var(--text-2); margin-top: 5px; line-height: 1.6; }

.td-dep {
    margin-top: 20px; padding: 11px 13px;
    background: #fffbeb; border: 1px solid #fdf0c9; border-radius: var(--r);
    font-size: 12px; color: #8a6100; line-height: 1.7;
}
.td-dep b { color: #6b4b00; }

.code-box {
    background: #0f1729; color: #d7e0f5;
    border-radius: var(--r); padding: 14px 16px;
    font-family: ui-monospace, "SF Mono", Consolas, Monaco, monospace;
    font-size: 12px; line-height: 1.75;
    white-space: pre; overflow-x: auto;
}
.td-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.td-ok { font-size: 12px; color: var(--ok); }

.steps { display: flex; flex-direction: column; gap: 9px; }
.steps .st { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.steps .st i {
    flex: 0 0 19px; height: 19px; border-radius: 50%;
    background: var(--pri-soft); color: var(--pri);
    font-style: normal; font-size: 11px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.steps .st .mono { background: #f4f5fa; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }

/* ============ 响应式 ============ */
@media (max-width: 1280px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1, .grid-1-1 { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .side { width: 72px; flex: 0 0 72px; }
    .side-head .tt, .nav-item .lb, .nav-item .cnt, .side-user .nm, .side-user .rl, .nav-group, .side-school { display: none; }
    .main { margin-left: 72px; }
    .page { padding: 16px; }
}
