/* ============================================================
   等保测评平台 — 自包含样式（不依赖任何外部 CDN）
   主题通过 <html class="light|dark"> 切换
   ============================================================ */

:root {
  --bg: #eef1f6;
  --bg-grad-1: #e8edf6;
  --bg-grad-2: #f4f1fa;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.55);
  --text: #1b2230;
  --text-muted: #5b6577;
  --border: rgba(20, 30, 50, 0.10);
  --border-strong: rgba(20, 30, 50, 0.18);
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --shadow: 0 10px 30px -12px rgba(30, 40, 80, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(30, 40, 80, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --input-bg: rgba(255, 255, 255, 0.8);
  --row-hover: rgba(99, 102, 241, 0.06);
  --green: #10b981;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #f43f5e;
  --blue: #38bdf8;
}

html.dark {
  --bg: #0b1020;
  --bg-grad-1: #0c1226;
  --bg-grad-2: #140d28;
  --surface: rgba(22, 28, 46, 0.72);
  --surface-solid: #161c2e;
  --surface-2: rgba(30, 38, 60, 0.55);
  --text: #e7ebf5;
  --text-muted: #9aa4bd;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #818cf8;
  --accent-2: #a78bfa;
  --accent-soft: rgba(129, 140, 248, 0.16);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(22, 28, 46, 0.55);
  --glass-border: rgba(255, 255, 255, 0.10);
  --input-bg: rgba(10, 14, 28, 0.55);
  --row-hover: rgba(129, 140, 248, 0.10);
  --green: #34d399;
  --amber: #fbbf24;
  --orange: #fb923c;
  --red: #fb7185;
  --blue: #38bdf8;
}

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

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 12% -10%, var(--bg-grad-2), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, var(--bg-grad-1), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }

/* ---------- 布局 ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  flex-shrink: 0;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px -6px var(--accent);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; }
.brand-text span { font-size: 11px; color: var(--text-muted); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.nav-item:hover { background: var(--accent-soft); color: var(--text); transform: translateX(2px); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -10px var(--accent);
}
.nav-item svg { flex-shrink: 0; }

.sidebar-foot { margin-top: auto; font-size: 11px; padding: 8px 6px; }

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

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  position: sticky; top: 0; z-index: 20;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.page-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: .2px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.content { padding: 28px 32px 60px; max-width: 1240px; width: 100%; }

/* ---------- 用户菜单 ---------- */
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 13px; }
.user-name { font-size: 13px; font-weight: 600; }

/* ---------- 主题切换 ---------- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  color: var(--text); border: 1px solid var(--border);
  background: var(--surface-2);
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.theme-toggle:hover { transform: scale(1.06) rotate(-8deg); border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

/* ---------- 卡片 / 玻璃拟态 ---------- */
.luxury-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  animation: rise .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.grid { display: grid; gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .grid-4, .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content, .topbar { padding-left: 18px; padding-right: 18px; }
}

.stat-card .stat-label { font-size: 13px; color: var(--text-muted); }
.stat-card .stat-value { font-size: 30px; font-weight: 800; margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.section-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--text-muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.flux-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; color: var(--text);
  background: var(--surface-2); transition: all .2s cubic-bezier(.16,1,.3,1);
  font-family: inherit;
}
.flux-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.flux-btn.primary {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -10px var(--accent);
}
.flux-btn.primary:hover { filter: brightness(1.05); }
.flux-btn.ghost { background: transparent; border-color: var(--border-strong); }
.flux-btn.danger { color: #fff; background: linear-gradient(135deg, #f43f5e, #e11d48); }
.flux-btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }

/* ---------- 表单 ---------- */
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.flux-input {
  width: 100%; padding: 10px 13px; border-radius: 11px; font-size: 14px;
  background: var(--input-bg); color: var(--text);
  border: 1px solid var(--border-strong); font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.flux-input:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.flux-input { min-height: 84px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.block { display: block; }

/* ---------- 成员多选（复选框网格） ---------- */
.chk-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chk-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 12px; cursor: pointer; user-select: none;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  font-size: 14px; transition: all .18s ease;
}
.chk-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.chk-item input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.chk-item.on { background: rgba(99,102,241,.12); border-color: var(--accent); color: var(--text); }
.chk-toolbar { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; padding: 8px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.chk-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.chk-all input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.chk-toolbar #chkCount { font-variant-numeric: tabular-nums; }
html.dark .chk-item { background: rgba(255,255,255,.05); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-weight: 600; color: var(--text-muted); font-size: 12.5px;
  padding: 12px 14px; border-bottom: 1px solid var(--border-strong); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: var(--row-hover); }
table.data tbody tr:last-child td { border-bottom: none; }

/* ---------- 徽章 ---------- */
.badge-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
}
.b-slate  { background: rgba(100,116,139,.16); color: #64748b; border-color: rgba(100,116,139,.3); }
.b-green  { background: rgba(16,185,129,.16); color: var(--green); border-color: rgba(16,185,129,.3); }
.b-amber  { background: rgba(245,158,11,.16); color: var(--amber); border-color: rgba(245,158,11,.3); }
.b-orange { background: #fff7ed; color: #f97316; border-color: #fed7aa; }
html.dark .b-orange { background: rgba(251,146,60,.15); color: var(--orange); border-color: rgba(251,146,60,.3); }
.b-red    { background: rgba(244,63,94,.16); color: var(--red); border-color: rgba(244,63,94,.3); }
.b-blue   { background: rgba(56,189,248,.16); color: var(--blue); border-color: rgba(56,189,248,.3); }
.b-purple { background: rgba(167,139,250,.16); color: #a78bfa; border-color: rgba(167,139,250,.3); }

/* ---------- 进度条 ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s ease; }

/* ---------- 流程进度条 stepper ---------- */
.stepper { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--glass-border); border-radius: 16px; padding: 14px 18px; }
.step { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong); transition: all .2s; }
.step.active .step-dot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px var(--accent); }
.step.active { color: var(--text); }
.step.done { color: var(--green); }
.step.done .step-dot { background: rgba(16,185,129,.16); border-color: rgba(16,185,129,.4); color: var(--green); }
.step-line { flex: 1; height: 2px; min-width: 16px; background: var(--border-strong); }
.step-line.on { background: linear-gradient(90deg, var(--green), var(--accent)); }

/* ---------- 项目切换器 ---------- */
.switcher { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.switcher .flux-input { width: auto; min-width: 280px; }

/* ==========================================================
 * 主题浮动按钮
 * ========================================================== */
.theme-float {
  position: fixed; top: 18px; right: 18px; z-index: 50;
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,23,42,.45); backdrop-filter: blur(16px);
  color: #e2e8f0; cursor: pointer; font-size: 18px;
  display: grid; place-items: center; transition: all .2s;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.25);
}
.theme-float:hover {
  transform: translateY(-2px) rotate(15deg);
  border-color: rgba(99,102,241,.5);
  background: rgba(15,23,42,.65);
}

/* ==========================================================
 * 认证页背景与光晕（登录 / 注册 / 落地页共用）
 * ========================================================== */
.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(99,102,241,.18), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(6,182,212,.14), transparent 35%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #e0f2fe 100%);
  color: #0f172a;
}
html.dark .auth-body {
  background:
    radial-gradient(circle at 10% 20%, rgba(79,70,229,.22), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(6,182,212,.18), transparent 35%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
  color: #f1f5f9;
}

.auth-orb {
  position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; opacity: .6;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.auth-orb.a { width: 560px; height: 560px; top: -160px; left: -140px; background: #6366f1; animation-delay: -4s; }
.auth-orb.b { width: 480px; height: 480px; bottom: -160px; right: -120px; background: #06b6d4; animation-delay: -8s; }
html.dark .auth-orb.a { background: #4f46e5; opacity: .42; }
html.dark .auth-orb.b { background: #0891b2; opacity: .35; }
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.08); }
}

/* ==========================================================
 * 登录 / 注册页：独立聚焦
 * ========================================================== */
.auth-page {
  position: relative; z-index: 1;
  min-height: 100vh; display: grid; place-items: center;
  padding: 40px 24px;
}
.auth-center {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center;
  animation: rise .7s cubic-bezier(.16,1,.3,1) both;
}

.auth-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  text-decoration: none; color: inherit; transition: transform .2s, opacity .2s;
  cursor: pointer;
}
.auth-header:hover { transform: translateX(-3px); opacity: .92; }
.auth-header:hover .auth-header-mark { box-shadow: 0 16px 36px -10px rgba(79,70,229,.7); transform: rotate(-6deg); }
.auth-header-mark {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff; font-size: 21px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 12px 32px -12px rgba(79,70,229,.55);
  transition: transform .25s, box-shadow .25s;
}
.auth-header-text { display: flex; flex-direction: column; line-height: 1.25; }
.auth-header-text strong { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
html.dark .auth-header-text strong { color: #f1f5f9; }
.auth-header-text span { font-size: 12px; color: #64748b; }
html.dark .auth-header-text span { color: #94a3b8; }

.auth-card {
  width: 100%;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  box-shadow:
    0 32px 80px -24px rgba(30,41,59,.28),
    inset 0 1px 0 rgba(255,255,255,.8);
  padding: 34px 38px;
}
html.dark .auth-card {
  background: rgba(15,23,42,.62);
  border-color: rgba(255,255,255,.1);
  box-shadow:
    0 32px 80px -24px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.auth-tabs {
  display: flex; gap: 6px;
  background: rgba(99,102,241,.08);
  padding: 5px; border-radius: 14px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1; text-align: center; text-decoration: none;
  border: 0; background: transparent; color: #64748b;
  padding: 11px; border-radius: 11px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.auth-tab:hover { color: #4338ca; }
.auth-tab.active {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  box-shadow: 0 8px 24px -10px #4f46e5;
}
html.dark .auth-tab { color: #94a3b8; }
html.dark .auth-tab:hover { color: #c7d2fe; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #475569; margin-bottom: 6px;
}
html.dark .auth-form .form-label { color: #cbd5e1; }
.auth-form .flux-input {
  width: 100%; border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: rgba(255,255,255,.7);
  padding: 13px 15px; font-size: 14px; color: #1e293b;
  outline: none; transition: all .18s;
}
.auth-form .flux-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
  background: #fff;
}
html.dark .auth-form .flux-input {
  background: rgba(15,23,42,.55);
  border-color: #334155; color: #e2e8f0;
}
html.dark .auth-form .flux-input:focus {
  background: rgba(15,23,42,.85);
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(129,140,248,.15);
}
.auth-form .flux-input::placeholder { color: #94a3b8; }

.auth-submit {
  width: 100%; justify-content: center;
  padding: 13px 20px; font-size: 15px; font-weight: 700;
  border-radius: 14px; margin-top: 4px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(79,70,229,.55);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(79,70,229,.65);
  filter: brightness(1.05);
}

.auth-hint {
  text-align: center; margin: 2px 0 0;
  font-size: 12px; color: #64748b; line-height: 1.6;
}
html.dark .auth-hint { color: #94a3b8; }
.auth-hint code {
  background: rgba(99,102,241,.1); color: #4338ca;
  padding: 1px 5px; border-radius: 5px; font-size: 11px;
}
html.dark .auth-hint code { background: rgba(129,140,248,.15); color: #c7d2fe; }

.auth-foot {
  text-align: center; margin-top: 22px;
  font-size: 12px; color: #64748b;
}
html.dark .auth-foot { color: #94a3b8; }

@media (max-width: 520px) {
  .auth-page { padding: 28px 18px; }
  .auth-card { padding: 26px 22px; border-radius: 24px; }
  .auth-header { margin-bottom: 22px; }
}

/* ---------- 定级矩阵 ---------- */
.matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.matrix th, .matrix td { border: 1px solid var(--border-strong); padding: 10px 12px; text-align: center; }
.matrix th { background: var(--surface-2); font-weight: 700; color: var(--text-muted); }
.matrix td.rowhead { text-align: left; font-weight: 600; background: var(--surface-2); }
.matrix .lv { cursor: pointer; border-radius: 8px; transition: all .15s; }
.matrix .lv:hover { background: var(--accent-soft); }
.matrix .lv.picked { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* ---------- 首页欢迎区 ---------- */
.hero-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(139,92,246,.06)); border-color: var(--glass-border); }
@media (max-width: 820px) { .hero-card { grid-template-columns: 1fr; } }
.hero-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(99,102,241,.30), transparent 60%); filter: blur(6px); pointer-events: none; }
.hero-left { position: relative; z-index: 1; }
.hero-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .5px; }
.hero-title { font-size: 30px; font-weight: 800; margin: 0 0 10px; letter-spacing: .5px; }
.hero-sub { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin: 0 0 18px; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-stat { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.hero-stat .hs-val { font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat .hs-lab { font-size: 12.5px; color: var(--text-muted); }

/* ---------- 项目卡片 ---------- */
.project-grid { margin-top: 16px; }
.project-card { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px; transition: all .25s cubic-bezier(.16,1,.3,1); }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft); }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pc-name { font-size: 16px; font-weight: 700; }
.pc-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.pc-stage { font-size: 13px; color: var(--text-muted); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- 测评结论选择 ---------- */
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 620px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
.result-opt { position: relative; }
.result-opt input { position: absolute; opacity: 0; }
.result-opt label { display: block; text-align: center; padding: 9px 6px; border-radius: 10px;
  border: 1px solid var(--border-strong); cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; }
.result-opt label:hover { border-color: var(--accent); }
.result-opt input:checked + label { color: #fff; }
.result-opt.pass    input:checked + label { background: var(--green); border-color: var(--green); }
.result-opt.partial input:checked + label { background: var(--amber); border-color: var(--amber); }
.result-opt.fail    input:checked + label { background: var(--red); border-color: var(--red); }
.result-opt.na      input:checked + label { background: #64748b; border-color: #64748b; }

/* ---------- 测评分组 ---------- */
.domain-block { margin-bottom: 22px; }
.domain-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.domain-head .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.domain-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.domain-head .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.item-row { display: grid; grid-template-columns: 1fr 230px; gap: 14px; align-items: start;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 8px; background: var(--surface-2); }
.item-row .item-code { font-size: 12px; color: var(--accent); font-weight: 700; }
.item-row .item-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.item-row .item-title { font-weight: 600; font-size: 14px; line-height: 1.6; letter-spacing: .2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.item-row .item-title .item-idx { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 7px; background: linear-gradient(135deg, rgba(99,102,241,.16), rgba(6,182,212,.16)); color: var(--accent); font-weight: 800; font-size: 12.5px; border: 1px solid rgba(99,102,241,.22); text-align: center; flex-shrink: 0; }
.item-row.hr-row { background: linear-gradient(90deg, rgba(239,68,68,.08), rgba(239,68,68,.02)); border-color: rgba(239,68,68,.35); }
/* 建设整改：整张卡片随状态下拉框联动变色 */
.item-row.status-done { border-left: 4px solid var(--green); background: rgba(16,185,129,.05); }
.item-row.status-partial { border-left: 4px solid #f97316; background: rgba(249,115,22,.06); }
.item-row.status-fail { border-left: 4px solid var(--red); background: rgba(239,68,68,.06); }
/* 状态下拉框自身颜色 */
select.status-select { transition: border-color .2s, color .2s, box-shadow .2s; }
select.status-select.status-select-done { border-color: var(--green); color: var(--green); }
select.status-select.status-select-partial { border-color: #f97316; color: #f97316; }
select.status-select.status-select-fail { border-color: var(--red); color: var(--red); }
html.dark select.status-select.status-select-done { color: #34d399; }
html.dark select.status-select.status-select-partial { color: #fbbf24; }
html.dark select.status-select.status-select-fail { color: #f87171; }
.item-row .item-interpretation { font-size: 13px; color: var(--text); margin-top: 10px; padding: 10px 12px; background: rgba(99,102,241,.06); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; line-height: 1.85; letter-spacing: .3px; }
.item-row .item-method { font-size: 13px; color: var(--text-muted); margin-top: 10px; padding: 10px 12px; background: rgba(16,185,129,.06); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; line-height: 1.85; letter-spacing: .3px; }
.item-row .item-interpretation + .item-method { margin-top: 8px; }
.item-row .item-interpretation b,
.item-row .item-method b { color: var(--text); font-weight: 700; display: block; margin-bottom: 4px; }
.item-row .item-assess { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-style: italic; }
@media (max-width: 760px) { .item-row { grid-template-columns: 1fr; } }

/* 建设整改：安全计算环境合并域的核查对象提示 */
.compute-hint {
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(6,182,212,.08));
  border: 1px dashed rgba(99,102,241,.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 14px;
}
.compute-hint-title { font-weight: 700; font-size: 14px; color: var(--accent); margin-bottom: 4px; }
.compute-hint-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.compute-hint-table-wrap { overflow-x: auto; }
.compute-hint-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--surface); border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden;
}
.compute-hint-table th,
.compute-hint-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.compute-hint-table thead th {
  background: rgba(99,102,241,.10); color: var(--accent); font-weight: 700; font-size: 12px;
}
.compute-hint-table tbody tr:last-child td { border-bottom: none; }
.compute-hint-table tbody tr:hover { background: rgba(99,102,241,.04); }
.compute-hint-cat {
  width: 90px; font-weight: 700; color: var(--text); white-space: nowrap;
  background: rgba(99,102,241,.06);
}
.compute-hint-objs { display: flex; flex-wrap: wrap; gap: 6px; }
.compute-hint-objs .tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; }

/* ---------- 弹窗 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8,12,24,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-backdrop.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px;
  animation: rise .25s cubic-bezier(.16,1,.3,1) both;
}
.modal h2 { margin: 0 0 18px; font-size: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 26px; font-weight: 800; color: #b91c1c;
  background: rgba(239,68,68,.14); border: 1.5px solid rgba(239,68,68,.5); }
#jsConfirmTitle { text-align: center; }
#jsConfirmMsg { text-align: center; }

/* ---------- 闪现提示 ---------- */
.flash {
  padding: 18px 22px; border-radius: 14px; margin-bottom: 20px;
  font-size: 16px; font-weight: 600; line-height: 1.55; letter-spacing: .2px;
  background: rgba(16,185,129,.18); color: #047857; border: 2px solid rgba(16,185,129,.55);
  box-shadow: 0 8px 24px rgba(16,185,129,.18);
  animation: rise .35s ease both;
  position: relative;
}
.flash::before { content: "💾"; margin-right: 10px; font-size: 20px; vertical-align: -3px; }
.flash.err { background: rgba(239,68,68,.16); color: #b91c1c; border-color: rgba(239,68,68,.55); box-shadow: 0 8px 24px rgba(239,68,68,.18); }
.flash.err::before { content: "⚠️"; }
.flash.fade-out {
  animation: fadeOut .55s ease both;
  pointer-events: none;
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); max-height: 120px; margin-bottom: 20px; }
  to { opacity: 0; transform: translateY(-8px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
}

/* ---------- 报告预览 ---------- */
.report-doc {
  background: #fff; color: #1b2230; border-radius: 14px; padding: 40px 48px;
  box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.8;
}
html.dark .report-doc { background: #f7f8fb; }
.report-doc h1 { text-align: center; font-size: 24px; margin: 0 0 6px; }
.report-doc h2 { font-size: 17px; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #6366f1; }
.report-doc h3 { font-size: 15px; margin: 16px 0 8px; color: #4338ca; }
.report-doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.report-doc th, .report-doc td { border: 1px solid #cbd5e1; padding: 7px 9px; text-align: left; }
.report-doc th { background: #eef2ff; }
.report-doc .meta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px 24px; }
.report-doc ul { margin: 6px 0; padding-left: 20px; }

/* ---------- 2021 版报告模板专用 ---------- */
.rp-cover { text-align: center; padding: 40px 0 30px; }
.rp-cover-org { font-size: 15px; color: #64748b; letter-spacing: 2px; }
.rp-cover-title { font-size: 30px; font-weight: 800; margin: 18px 0 8px; letter-spacing: 3px; }
.rp-cover-note { font-size: 12px; color: #94a3b8; margin-top: 22px; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.rp-cover-sub { font-size: 12px; color: #94a3b8; letter-spacing: 1px; margin-bottom: 30px; }
.rp-cover-meta { width: 100%; max-width: 520px; margin: 0 auto; border-collapse: collapse; font-size: 14px; }
.rp-cover-meta td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.rp-cover-meta td:first-child { color: #64748b; width: 36%; }
.rp-pagebreak { page-break-after: always; }
.rp-h1 { font-size: 18px; font-weight: 800; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid #6366f1; }
.rp-h2 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; color: #4338ca; }
.rp-h3 { font-size: 14px; font-weight: 700; margin: 14px 0 6px; color: #3730a3; }
.rp-h4 { font-size: 13px; font-weight: 700; margin: 12px 0 5px; color: #4f46e5; }
.rp-toc { font-size: 13.5px; line-height: 2; }
.rp-toc ul { margin: 0; padding-left: 22px; }
.rp-toc li { color: #334155; }
.rp-text { font-size: 13.5px; line-height: 1.9; color: #334155; }
.rp-text p { margin: 8px 0; }
.rp-table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 13px; }
.rp-table th, .rp-table td { border: 1px solid #cbd5e1; padding: 7px 10px; text-align: left; vertical-align: top; }
.rp-table th { background: #eef2ff; font-weight: 700; color: #3730a3; }
.rp-table tbody tr:nth-child(even) { background: #f8fafc; }
.rp-conclusion { display: flex; gap: 24px; flex-wrap: wrap; background: #eef2ff; border: 1px solid #c7d2fe;
  border-radius: 14px; padding: 18px 22px; margin: 12px 0; }
.rp-conc-item { display: flex; flex-direction: column; gap: 4px; }
.rp-conc-item span { font-size: 12px; color: #64748b; }
.rp-conc-item strong { font-size: 22px; font-weight: 800; color: #4338ca; }
.rp-sign { margin-top: 40px; font-size: 13px; color: #475569; }

/* ---------- 工具类 ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; }
.flex { display: flex; } .gap-1 { gap: 8px; } .gap-2 { gap: 14px; } .items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.empty { text-align: center; color: var(--text-muted); padding: 50px 0; font-size: 14px; }
.no-print { }

/* ==========================================================
 * 通用表单字段 / 统计卡（漏洞扫描、渗透测试等模块复用）
 * ========================================================== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field .flux-input, .field textarea.flux-input { width: 100%; }

.ar-stat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 14px 0 6px; }
@media (max-width: 980px) { .ar-stat-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ar-stat-row { grid-template-columns: repeat(2, 1fr); } }
.ar-stat {
  position: relative; padding: 14px 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ar-stat:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(30,41,59,.3); }
.ar-stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #64748b, #94a3b8); }
.ar-stat.blue::before   { background: linear-gradient(90deg, #4f46e5, #06b6d4); }
.ar-stat.green::before  { background: linear-gradient(90deg, #10b981, #059669); }
.ar-stat.amber::before  { background: linear-gradient(90deg, #f59e0b, #d97706); }
.ar-stat.purple::before { background: linear-gradient(90deg, #a855f7, #7e22ce); }
.ar-stat.red::before    { background: linear-gradient(90deg, #ef4444, #dc2626); }
.ar-stat-num { font-size: 24px; font-weight: 800; line-height: 1.1; }
.ar-stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
html.dark .ar-stat { background: rgba(15,23,42,.5); border-color: rgba(255,255,255,.08); }
.ar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.ar-head-left { flex: 1; min-width: 260px; }
.row-actions .flux-btn { margin-right: 4px; }
.row-actions .flux-btn { margin-right: 4px; }

/* ==========================================================
 * 落地首页（与登录页完全分离）
 * ========================================================== */
.landing {
  position: relative; z-index: 1;
  max-width: 1140px; margin: 0 auto;
  padding: 0 24px 60px;
}

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.landing-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.landing-brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff; font-size: 18px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px -10px rgba(79,70,229,.5);
}
.landing-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.landing-brand-text strong { font-size: 16px; font-weight: 800; color: #0f172a; }
html.dark .landing-brand-text strong { color: #f1f5f9; }
.landing-brand-text span { font-size: 11px; color: #64748b; }
html.dark .landing-brand-text span { color: #94a3b8; }

.landing-nav-actions { display: flex; align-items: center; gap: 10px; }
.landing-nav-link {
  padding: 9px 16px; border-radius: 11px;
  font-size: 14px; font-weight: 600; color: #475569; text-decoration: none;
  transition: all .18s;
}
.landing-nav-link:hover { color: #4338ca; background: rgba(99,102,241,.08); }
html.dark .landing-nav-link { color: #cbd5e1; }
html.dark .landing-nav-link:hover { color: #c7d2fe; background: rgba(255,255,255,.06); }
.btn-primary-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 11px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(79,70,229,.5);
  transition: transform .18s, box-shadow .18s;
}
.btn-primary-sm:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(79,70,229,.6); }

.landing-hero {
  text-align: center; padding: 56px 0 48px;
}
.landing-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  background: rgba(99,102,241,.1); color: #4338ca;
  border: 1px solid rgba(99,102,241,.18);
}
html.dark .landing-badge { background: rgba(99,102,241,.15); color: #c7d2fe; border-color: rgba(129,140,248,.25); }

.landing-title {
  font-size: 64px; font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; margin: 24px 0 18px;
  background: linear-gradient(135deg, #0f172a 0%, #4338ca 60%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.dark .landing-title {
  background: linear-gradient(135deg, #f8fafc 0%, #a5b4fc 60%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text;
}
.landing-title span { -webkit-text-fill-color: #4f46e5; }
html.dark .landing-title span { -webkit-text-fill-color: #818cf8; }

.landing-sub {
  font-size: 17px; line-height: 1.8; color: #475569;
  max-width: 680px; margin: 0 auto 32px;
}
html.dark .landing-sub { color: #94a3b8; }

.landing-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary-lg, .btn-ghost-lg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 34px; border-radius: 16px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform .22s, box-shadow .22s, background .22s;
}
.btn-primary-lg {
  background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff;
  box-shadow: 0 18px 44px -14px rgba(79,70,229,.55);
}
.btn-primary-lg:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -14px rgba(79,70,229,.65); }
.btn-ghost-lg {
  background: rgba(255,255,255,.65); color: #4338ca;
  border: 1px solid rgba(99,102,241,.3);
}
.btn-ghost-lg:hover { transform: translateY(-3px); background: #fff; border-color: #6366f1; }
html.dark .btn-ghost-lg { background: rgba(255,255,255,.05); color: #c7d2fe; border-color: rgba(129,140,248,.3); }
html.dark .btn-ghost-lg:hover { background: rgba(255,255,255,.1); }

.landing-trust {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 42px;
  font-size: 13px; font-weight: 700; color: #64748b;
}
.landing-trust i { width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
html.dark .landing-trust { color: #94a3b8; }
html.dark .landing-trust i { background: #475569; }

.landing-section { margin-top: 72px; }
.landing-section-title {
  text-align: center; font-size: 28px; font-weight: 800;
  margin: 0 0 32px; letter-spacing: -.5px;
}

.landing-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 22px; padding: 28px 24px;
  box-shadow: 0 20px 48px -24px rgba(30,41,59,.25);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 32px 64px -24px rgba(30,41,59,.32); }
html.dark .feature-card { background: rgba(15,23,42,.58); border-color: rgba(255,255,255,.1); }
.fc-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(6,182,212,.14));
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.feature-card p { margin: 0; font-size: 14px; line-height: 1.7; color: #64748b; }
html.dark .feature-card p { color: #94a3b8; }

.landing-steps { margin-top: 16px; }
.steps-row { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step-card {
  flex: 1 1 150px; max-width: 180px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px; padding: 24px 16px;
  text-align: center; transition: transform .22s;
}
.step-card:hover { transform: translateY(-5px); }
html.dark .step-card { background: rgba(15,23,42,.52); border-color: rgba(255,255,255,.08); }
.step-num {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff; font-weight: 800; font-size: 18px;
}
.step-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.step-card p { margin: 0; font-size: 13px; line-height: 1.6; color: #64748b; }
html.dark .step-card p { color: #94a3b8; }
.step-arrow { align-self: center; color: #c7d2fe; font-size: 24px; font-weight: 800; }
html.dark .step-arrow { color: #6366f1; }

.landing-cta-band {
  margin-top: 80px; text-align: center;
  padding: 52px 36px; border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(79,70,229,.14), rgba(6,182,212,.12)),
    rgba(255,255,255,.55);
  border: 1px solid rgba(99,102,241,.18);
  backdrop-filter: blur(16px);
}
html.dark .landing-cta-band { background: linear-gradient(135deg, rgba(79,70,229,.18), rgba(6,182,212,.14)), rgba(15,23,42,.45); border-color: rgba(255,255,255,.08); }
.landing-cta-band h2 { margin: 0 0 12px; font-size: 30px; font-weight: 800; }
.landing-cta-band p { margin: 0 0 26px; font-size: 15px; color: #475569; }
html.dark .landing-cta-band p { color: #94a3b8; }

.landing-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; margin-top: 60px; padding-top: 26px;
  border-top: 1px solid rgba(99,102,241,.14);
  font-size: 13px; color: #64748b;
}
html.dark .landing-footer { color: #94a3b8; border-top-color: rgba(255,255,255,.08); }

@media (max-width: 940px) {
  .landing-title { font-size: 48px; }
  .landing-features { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .step-card { max-width: none; }
}
@media (max-width: 540px) {
  .landing-nav { flex-direction: column; gap: 14px; align-items: flex-start; }
  .landing-hero { padding: 36px 0 32px; }
  .landing-title { font-size: 36px; letter-spacing: -1px; }
  .landing-sub { font-size: 15px; }
  .btn-primary-lg, .btn-ghost-lg { width: 100%; justify-content: center; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-cta-band { padding: 36px 24px; }
  .landing-footer { flex-direction: column; text-align: center; }
}

/* ==========================================================
 * 首页仪表盘（概览）
 * ========================================================== */
.hero-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center;
  padding: 32px 34px; min-height: 220px;
}
.hero-glow {
  position: absolute; top: -80px; right: -80px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(99,102,241,.12); color: #4338ca; border: 1px solid rgba(99,102,241,.2);
}
.hero-title { font-size: 28px; font-weight: 800; margin: 14px 0 10px; }
.hero-sub { font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stat {
  background: rgba(99,102,241,.06); border: 1px solid rgba(99,102,241,.12);
  border-radius: 16px; padding: 18px 16px; text-align: center; transition: transform .18s;
}
.hero-stat:hover { transform: translateY(-3px); }
.hs-val { display: block; font-size: 28px; font-weight: 800; color: #4f46e5; }
.hs-lab { display: block; font-size: 12px; color: #64748b; margin-top: 4px; }

.section-title { font-size: 17px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title::before {
  content: ''; width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg,#4f46e5,#06b6d4);
}

.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid-5 > .stage-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 16px; text-align: center; border-radius: 16px; cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  border: 1px solid var(--glass-border);
  border-top: 4px solid var(--stage-color, var(--accent)) !important;
  background: linear-gradient(180deg, var(--stage-bg, rgba(99,102,241,.12)), var(--surface)) !important;
}
.grid-5 > .stage-card:hover { transform: translateY(-4px); border-color: var(--stage-color, rgba(99,102,241,.35)) !important; box-shadow: var(--shadow-lg); }
.stage-idx { display: block; font-size: 17px; font-weight: 800; color: var(--stage-color, var(--accent)); margin-bottom: 4px; letter-spacing: .5px; }
.stage-name { display: block; font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.stage-desc { display: block; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.stage-card.stage-1 { --stage-color: #2563eb; --stage-bg: rgba(37,99,235,.14); }
.stage-card.stage-2 { --stage-color: #4f46e5; --stage-bg: rgba(79,70,229,.14); }
.stage-card.stage-3 { --stage-color: #7c3aed; --stage-bg: rgba(124,58,237,.14); }
.stage-card.stage-4 { --stage-color: #9333ea; --stage-bg: rgba(147,51,234,.14); }
.stage-card.stage-5 { --stage-color: #059669; --stage-bg: rgba(5,150,105,.14); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card {
  border-radius: 18px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pc-name { font-size: 16px; font-weight: 700; }
.pc-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.pc-stage { font-size: 13px; color: var(--text-muted); margin: 14px 0 8px; }
.pc-stage b { color: var(--text); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg,#4f46e5,#06b6d4); transition: width .5s ease; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--text-muted); }

@media (max-width: 1020px) {
  .hero-card { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================
 * 设置页
 * ========================================================== */
.settings-card { max-width: 520px; }

/* ---------- old auth-wrap kept for fallback ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; }

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; }
  .report-doc { box-shadow: none; border-radius: 0; }
}

/* ==========================================================
 * 高端质感增强（统一覆盖 · 提升所有内部页面）
 * ========================================================== */
.luxury-card {
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s;
  position: relative;
}
.luxury-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.luxury-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(99,102,241,.28); }

.flux-btn.primary { box-shadow: 0 12px 28px -10px rgba(99,102,241,.55); transition: all .22s cubic-bezier(.16,1,.3,1); }
.flux-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(99,102,241,.65); filter: brightness(1.04); }

table.data { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
table.data th { background: linear-gradient(180deg, var(--accent-soft), transparent); font-weight: 700; }
table.data tbody tr:hover { background: var(--row-hover); }
table.data td:first-child, table.data th:first-child { font-weight: 600; }

.section-title { font-size: 18px; }
.page-title { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card { transition: transform .22s, box-shadow .22s; }
.stat-card:hover { transform: translateY(-4px); }

/* ==========================================================
 * 分组折叠（下发学生 / 建设整改安全域共用下箭头图标）
 * ========================================================== */
.group-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.group-block {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
}
.group-block > summary {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer; list-style: none; user-select: none;
  transition: background .15s;
}
.group-block > summary::-webkit-details-marker { display: none; }
.group-block > summary:hover { background: var(--row-hover); }
.group-block .chev {
  flex: 0 0 auto; width: 18px; height: 18px; color: var(--text-muted);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.group-block[open] > summary .chev { transform: rotate(180deg); }
.group-block .group-name { font-weight: 700; font-size: 14.5px; }
.group-block .group-num { flex: 0 0 auto; }
.group-block .grp-all-wrap {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-muted); cursor: pointer;
}
.group-block .grp-all-wrap input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.group-block .chk-grid { padding: 14px; border-top: 1px solid var(--border); }

/* 建设整改：安全域折叠箭头 */
.domain-block > summary { list-style: none; }
.domain-block > summary::-webkit-details-marker { display: none; }
.domain-block .chev {
  flex: 0 0 auto; width: 18px; height: 18px; color: var(--text-muted);
  transition: transform .25s cubic-bezier(.16,1,.3,1); margin-right: 2px;
}
.domain-block[open] > summary .chev { transform: rotate(180deg); }
