/* ============================================================
   AdminFrame 通用后台管理框架 - 后台 & 登录 & 通用样式
   ============================================================ */
:root {
  --primary: #4f6bf5;
  --primary-2: #7a5af8;
  --grad: linear-gradient(135deg, #4f6bf5 0%, #7a5af8 100%);
  --grad-deep: linear-gradient(160deg, #101828 0%, #1b2444 60%, #2a1e5c 100%);
  --bg: #f3f5fa;
  --card: #ffffff;
  --line: #e9edf5;
  --text: #1b2437;
  --muted: #8a94a8;
  --ok: #16a34a;    --ok-bg: #e8f7ee;
  --warn: #d97706;  --warn-bg: #fdf3e3;
  --danger: #e5484d;--danger-bg: #fdecec;
  --info: #0784c7;  --info-bg: #e6f4fb;
  --side-w: 234px;
  --top-h: 62px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px -8px rgba(16,24,40,.18);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; }
::selection { background: rgba(79,107,245,.18); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9d0de; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: Consolas, "Courier New", monospace; }

/* ============ 后台布局 ============ */
.layout { min-height: 100vh; }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w);
  background: linear-gradient(180deg, #0e1526 0%, #131c33 70%, #182042 100%);
  color: #98a2c0; z-index: 50; display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.side-logo {
  display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px;
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .3px;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 6px 16px -4px rgba(97,97,245,.55);
}
.logo-mark .ic { width: 21px; height: 21px; color: #fff; }
.side-logo .ver { font-size: 10px; font-weight: 600; color: #b9c2e0; background: rgba(255,255,255,.09); border-radius: 6px; padding: 1px 6px; margin-left: 2px; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 12px 20px; }
.side-group { font-size: 11px; color: #5e688a; padding: 16px 12px 6px; letter-spacing: 1px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px;
  color: #98a2c0; border-radius: 10px; margin-bottom: 2px; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.side-nav a:hover { color: #e6e9f5; background: rgba(255,255,255,.05); }
.side-nav a.active { color: #fff; background: var(--grad); box-shadow: 0 6px 14px -4px rgba(79,107,245,.5); font-weight: 600; }
.side-nav a .ic { width: 17px; height: 17px; }
.side-nav .cnt {
  margin-left: auto; font-size: 11px; background: var(--danger-bg); color: var(--danger);
  border-radius: 20px; padding: 0 7px; font-weight: 700;
}
.side-foot { padding: 14px 18px; font-size: 11px; color: #525d80; border-top: 1px solid rgba(255,255,255,.06); }

.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: var(--top-h); background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 26px; gap: 14px; position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 17px; font-weight: 700; flex: 1; }
.topbar .chip {
  font-size: 12px; color: var(--primary); background: var(--info-bg);
  border-radius: 20px; padding: 3px 11px; font-weight: 600; white-space: nowrap;
}
.top-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.top-user .uname { font-size: 13px; font-weight: 600; }
.btn-logout { display: inline-flex; }
.content { padding: 24px 26px 40px; flex: 1; max-width: 1480px; width: 100%; }
.side-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; cursor: pointer; color: var(--text); }

/* ============ 卡片 ============ */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden;
}
.card-h {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.card-h h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-h h3 .ic { color: var(--primary); }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-b { padding: 20px; }
.card-b.p0 { padding: 0; }

/* ============ 统计卡片 ============ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(79,107,245,.07), transparent 70%); }
.stat .bubble {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; flex: none;
}
.stat .bubble .ic { width: 22px; height: 22px; }
.bubble.g1 { background: #eef1fe; color: var(--primary); }
.bubble.g2 { background: #f3effe; color: var(--primary-2); }
.bubble.g3 { background: var(--ok-bg); color: var(--ok); }
.bubble.g4 { background: var(--warn-bg); color: var(--warn); }
.bubble.g5 { background: var(--danger-bg); color: var(--danger); }
.bubble.g6 { background: var(--info-bg); color: var(--info); }
.stat .v { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .sub { font-size: 11px; color: var(--ok); font-weight: 600; }

/* ============ 仪表盘栅格 ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid-2-eq { grid-template-columns: 1fr; } }

/* ============ 图表 ============ */
.chart { width: 100%; height: 220px; display: block; }

/* ============ 关于系统 ============ */
.about-hero {
  background: var(--grad-deep); color: #fff; padding: 22px; position: relative; overflow: hidden;
}
.about-hero::before, .about-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px);
}
.about-hero::before { width: 180px; height: 180px; right: -60px; top: -60px; background: radial-gradient(circle, rgba(122,90,248,.5), transparent 70%); }
.about-hero::after { width: 150px; height: 150px; left: -50px; bottom: -70px; background: radial-gradient(circle, rgba(79,107,245,.45), transparent 70%); }
.about-hero .row1 { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.about-hero .logo-mark { width: 44px; height: 44px; }
.about-hero h3 { font-size: 17px; }
.about-hero .tag { font-size: 10px; background: rgba(255,255,255,.16); padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: 2px; }
.about-hero p { font-size: 12px; color: #c3c9e5; margin-top: 8px; position: relative; z-index: 1; }
.about-item { display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; }
.about-item:first-of-type { border-top: 0; }
.about-item .ic { color: var(--primary); margin-top: 3px; }
.about-item b { display: block; font-size: 13px; }
.about-item p { color: var(--muted); font-size: 12px; margin-top: 2px; text-align: justify; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: var(--font); line-height: 1.4;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #d7dded; background: #f8fafd; color: var(--text); }
.btn .ic { width: 15px; height: 15px; }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 14px -4px rgba(79,107,245,.45); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.06); color: #fff; box-shadow: 0 8px 18px -4px rgba(79,107,245,.55); }
.btn-danger { color: var(--danger); border-color: #f6cfd0; background: #fff; }
.btn-danger:hover { background: var(--danger-bg); border-color: #f0b9ba; color: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-sm .ic { width: 13px; height: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.act-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 4px 8px; border-radius: 7px; color: var(--muted); }
.act-link:hover { background: #f1f4fa; color: var(--primary); }
.act-link .ic { width: 13px; height: 13px; }
.act-link.danger:hover { color: var(--danger); background: var(--danger-bg); }
.act-link.warn:hover { color: var(--warn); background: var(--warn-bg); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  background: #f8fafc; color: #5b6780; text-align: left; font-weight: 600;
  padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px;
}
.tbl tbody td { padding: 12px 16px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.tbl tbody tr:hover { background: #f8fafd; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .t-title { font-weight: 600; }
.tbl .acts { display: flex; gap: 2px; justify-content: flex-end; white-space: nowrap; }
.tbl .check-col { width: 36px; }

/* ============ 徽章 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  border-radius: 20px; padding: 2px 10px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-danger { background: var(--danger-bg); color: var(--danger); }
.b-info { background: var(--info-bg); color: var(--info); }
.b-mute { background: #eef1f6; color: var(--muted); }
.b-grad { background: #eef1fe; color: var(--primary); }

/* ============ 表单 ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.f-item label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: #45516b; }
.f-item label .req { color: var(--danger); margin-left: 2px; }
.f-ctrl, select.f-ctrl, textarea.f-ctrl {
  width: 100%; padding: 9px 13px; border: 1px solid #dfe4ef; border-radius: 10px;
  font-size: 13px; font-family: var(--font); color: var(--text); background: #fff;
  transition: border .15s, box-shadow .15s; outline: none;
}
.f-ctrl:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,107,245,.13); }
textarea.f-ctrl { resize: vertical; min-height: 74px; }
.f-help { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.f-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.f-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-bar .f-ctrl, .search-bar select { width: auto; min-width: 130px; }
.search-bar .f-ctrl.grow { flex: 1; min-width: 160px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #d4dae8; border-radius: 22px; transition: .2s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--grad); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ============ 提示 ============ */
.alert {
  padding: 12px 16px; border-radius: 11px; font-size: 13px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 9px; border: 1px solid transparent;
}
.alert .ic { width: 17px; height: 17px; flex: none; }
.alert-ok { background: var(--ok-bg); color: #12703a; border-color: #cdeed9; }
.alert-warn { background: var(--warn-bg); color: #9a5a04; border-color: #f3ddb5; }
.alert-danger { background: var(--danger-bg); color: #a6282c; border-color: #f5cfd0; }
.alert-info { background: var(--info-bg); color: #04628f; border-color: #c8e6f5; }

/* ============ 分页 ============ */
.pagination { display: flex; align-items: center; gap: 6px; padding: 15px 20px; flex-wrap: wrap; font-size: 12.5px; }
.pagination .pg-total { color: var(--muted); margin-right: 8px; }
.pagination a, .pagination .pg-cur, .pagination .pg-dot {
  min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; padding: 0 9px; border: 1px solid var(--line); background: #fff; color: var(--text);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .pg-cur { background: var(--grad); color: #fff; border: 0; font-weight: 700; }
.pagination .pg-dot { border: 0; background: none; color: var(--muted); }

/* ============ 模态框 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 620px; max-height: 86vh;
  overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-h { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-h b { font-size: 15px; }
.modal-h .x-btn { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 8px; display: flex; }
.modal-h .x-btn:hover { background: #f1f4fa; color: var(--text); }
.modal-b { padding: 20px 22px; }

/* 代码块 */
.codebox {
  background: #0f172a; color: #cbd5e1; border-radius: 11px; padding: 14px 16px;
  font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.7;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin-top: 8px;
}
.keyline {
  display: flex; align-items: center; gap: 8px; background: #f6f8fc; border: 1px dashed #d5dcea;
  border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; font-size: 12.5px; word-break: break-all;
}
.keyline b { flex: 1; font-family: Consolas, monospace; }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic { width: 44px; height: 44px; color: #ccd4e3; margin-bottom: 10px; }
.empty p { font-size: 13px; }

/* ============ 登录页 ============ */
.login-wrap { display: flex; min-height: 100vh; background: #fff; }
.login-left {
  flex: 1.15; position: relative; overflow: hidden; background: var(--grad-deep);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh;
}
.login-left .ad-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-left .ad-mask {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(13,18,38,.10) 30%, rgba(13,18,38,.82) 100%);
}
.login-brand { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 34px 44px; z-index: 3; }
.login-brand .name { color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.login-brand .name small { display: block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.75); letter-spacing: 2px; }
.login-ad-text { position: relative; z-index: 3; padding: 0 52px 64px; color: #fff; max-width: 640px; }
.login-ad-text h2 { font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.login-ad-text p { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.9; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.login-ad-text .feats { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.login-ad-text .feat {
  font-size: 12px; padding: 7px 14px; border-radius: 20px; color: #fff;
  background: rgba(255,255,255,.13); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2);
}
.login-left.no-ad {
  justify-content: center;
}
.login-left.no-ad .login-ad-text { padding-bottom: 0; margin: 0 auto; }
.login-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.09); }
.r1 { width: 480px; height: 480px; right: -140px; top: -160px; }
.r2 { width: 320px; height: 320px; left: -110px; bottom: -100px; }
.r3 { width: 180px; height: 180px; right: 22%; bottom: 16%; border-color: rgba(255,255,255,.06); }

.login-right { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px 30px; min-width: 420px; }
.login-box { width: 100%; max-width: 388px; }
.login-box h2 { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.login-box .sub { color: var(--muted); font-size: 13px; margin: 6px 0 30px; }
.l-field { margin-bottom: 16px; }
.l-field .f-ctrl { height: 48px; font-size: 14px; padding-left: 44px; }
.l-input { position: relative; }
.l-input .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #a4aec4; pointer-events: none; }
.l-input .f-ctrl:focus ~ .ic, .l-input:focus-within .ic { color: var(--primary); }
.btn-login {
  width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--grad);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 6px; cursor: pointer;
  font-family: var(--font); box-shadow: 0 10px 22px -6px rgba(79,107,245,.55); transition: all .18s;
}
.btn-login:hover { filter: brightness(1.07); box-shadow: 0 12px 26px -6px rgba(79,107,245,.65); transform: translateY(-1px); }
.login-tips { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 11.5px; color: #a4aec4; text-align: center; line-height: 1.9; }
.login-alert { margin-bottom: 18px; }
@media (max-width: 960px) {
  .login-left { display: none; }
  .login-right { min-width: 0; }
}

/* ============ 安装向导 ============ */
.inst-body {
  min-height: 100vh; background: var(--grad-deep); display: flex; align-items: center;
  justify-content: center; padding: 36px 18px; position: relative; overflow-x: hidden;
  font-family: var(--font);
}
.inst-body::before, .inst-body::after { content: ""; position: absolute; border-radius: 50%; }
.inst-body::before { width: 560px; height: 560px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(122,90,248,.35), transparent 70%); }
.inst-body::after { width: 420px; height: 420px; left: -140px; bottom: -180px; background: radial-gradient(circle, rgba(79,107,245,.3), transparent 70%); }
.inst-card {
  width: 100%; max-width: 780px; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(6,10,30,.6); position: relative; z-index: 2;
}
.inst-head { background: var(--grad-deep); color: #fff; padding: 24px 30px; display: flex; align-items: center; gap: 14px; }
.inst-head .logo-mark { width: 46px; height: 46px; border-radius: 13px; }
.inst-head h1 { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.inst-head p { font-size: 12px; color: #aab3d6; margin-top: 2px; }
.inst-head .step-tag { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); padding: 4px 12px; border-radius: 20px; color: #fff; white-space: nowrap; }
.inst-steps { display: flex; align-items: center; padding: 22px 34px 6px; }
.inst-steps .st { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 86px; }
.inst-steps .dot {
  width: 34px; height: 34px; border-radius: 50%; background: #eef1f8; color: #9aa4bd;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
  border: 2px solid #eef1f8; transition: all .2s;
}
.inst-steps .st span.lbl { font-size: 11.5px; color: #9aa4bd; white-space: nowrap; }
.inst-steps .st.on .dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -4px rgba(79,107,245,.55); }
.inst-steps .st.on .lbl { color: var(--primary); font-weight: 700; }
.inst-steps .st.done .dot { background: var(--ok-bg); color: var(--ok); border-color: #cdeed9; }
.inst-steps .ln { flex: 1; height: 2px; background: #e8ecf5; margin: 0 4px 20px; border-radius: 2px; }
.inst-steps .ln.done { background: linear-gradient(90deg, #4f6bf5, #7a5af8); }
.inst-cont { padding: 18px 34px 30px; }
.inst-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 34px 28px; gap: 12px; }
.inst-foot .tip { font-size: 11.5px; color: var(--muted); }
.inst-protocol {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  height: 300px; overflow-y: auto; font-size: 12.5px; line-height: 2; color: #45516b; margin-bottom: 16px;
}
.inst-protocol h4 { margin: 6px 0 2px; font-size: 13px; color: var(--text); }
.env-row { display: flex; align-items: center; padding: 11px 4px; border-bottom: 1px dashed #eef1f7; font-size: 13px; }
.env-row:last-child { border-bottom: 0; }
.env-row .r-label { flex: 1; font-weight: 600; color: #45516b; }
.env-row .r-need { color: var(--muted); font-size: 12px; margin-right: 18px; white-space: nowrap; }
.env-row .r-have { width: 150px; color: var(--text); font-size: 12.5px; white-space: nowrap; }
.env-row .r-st { width: 74px; text-align: right; }
.inst-db-tip { background: var(--info-bg); color: #04628f; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 16px; }
.inst-done { text-align: center; padding: 26px 10px 10px; }
.inst-done .okmark {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok-bg);
  color: var(--ok); display: flex; align-items: center; justify-content: center;
}
.inst-done .okmark .ic { width: 36px; height: 36px; }
.inst-done h2 { font-size: 21px; margin-bottom: 8px; }
.inst-done p { color: var(--muted); font-size: 13px; }
.inst-done .links { display: flex; gap: 12px; justify-content: center; margin: 22px 0 6px; flex-wrap: wrap; }
.warn-box { background: var(--warn-bg); color: #9a5a04; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-top: 16px; text-align: left; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .main { margin-left: 0; }
  .side-toggle { display: inline-flex; }
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 0 14px; }
  .topbar .chip { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}
.side-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; display: none; }
.side-mask.show { display: block; }
