:root {
  --navy: #0F2747;
  --navy-2: #1E3A66;
  --primary: #2563EB;
  --primary-600: #1D4ED8;
  --primary-50: #EFF4FF;
  --primary-100: #DBE6FE;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --line: #E3E8F0;
  --line-soft: #EEF2F7;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --ok: #16A34A;
  --ok-soft: #DCFCE7;
  --warn: #D97706;
  --warn-soft: #FEF3C7;
  --err: #DC2626;
  --err-soft: #FEE2E2;
  --blue: #2563EB;
  --teal: #0D9488;
  --violet: #7C3AED;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -18px rgba(15, 23, 42, .18);
  --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* ---------- 图标 ---------- */
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
i[data-icon] { display: inline-flex; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); cursor: pointer; white-space: nowrap; font-weight: 500;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: #CBD5E1; background: #F8FAFC; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #3B76F6, var(--primary)); border-color: var(--primary); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .7);
}
.btn-primary:hover { background: linear-gradient(180deg, #2F6AF0, var(--primary-600)); border-color: var(--primary-600); color: #fff; }
.btn-outline { border-color: var(--primary-100); color: var(--primary); background: var(--primary-50); }
.btn-outline:hover { background: var(--primary-100); border-color: #BFD3FD; color: var(--primary-600); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-50); border-color: transparent; color: var(--primary-600); }
.btn-danger { background: #fff; border-color: #FECACA; color: var(--err); }
.btn-danger:hover { background: var(--err-soft); border-color: #FCA5A5; color: var(--err); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; font-weight: 600; }
.btn-block { width: 100%; height: 44px; font-size: 15px; letter-spacing: 2px; }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: inherit; padding: 4px; border-radius: 6px; display: inline-flex; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }

/* ---------- 顶栏 ---------- */
.topbar {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 60%, #23467A 100%);
  color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 6px 20px -12px rgba(15, 39, 71, .6);
}
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.brand-logo img { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-mark { font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.brand-name { font-size: 12px; color: #A9BCD6; }
.tabs { display: flex; gap: 4px; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; color: #C3D1E5; padding: 8px 14px; border-radius: 10px; font-size: 14px;
  transition: background .15s, color .15s;
}
.tab .ico { width: 17px; height: 17px; opacity: .85; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tab.is-active { color: #fff; background: rgba(255, 255, 255, .15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tab-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F59E0B; color: #1F2937;
  font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #60A5FA, #6366F1); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}
.avatar .ico { width: 20px; height: 20px; color: #fff; stroke-width: 2; }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-name { font-weight: 600; font-size: 14px; }
.user-role { font-size: 11.5px; color: #A9BCD6; }
.logout-btn {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .18); background: transparent;
  color: #DCE6F5; height: 32px; padding: 0 10px; border-radius: 9px; cursor: pointer; font-size: 13px; margin-left: 4px;
}
.logout-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.logout-btn .ico { width: 15px; height: 15px; }

/* ---------- 页面 ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 26px 24px 56px; }
.view { display: flex; flex-direction: column; gap: 18px; }
.hero, .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero h1, .page-head h1 { font-size: 22px; color: var(--text); letter-spacing: .3px; }
.hero p, .page-head p { color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hero p .ico { width: 14px; height: 14px; color: #94A3B8; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--text-2); font-size: 13px;
}
.hero-chip .ico { width: 16px; height: 16px; color: var(--muted); }

.notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid transparent; }
.notice-error { background: var(--err-soft); border-color: #FECACA; color: #991B1B; }
.notice-text { margin: 0; flex: 1; white-space: pre-line; }

/* 概览数字 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px; min-width: 0;
}
.stat-body { min-width: 0; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub.warn { color: var(--warn); }

.tile-icon {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.tile-icon .ico { width: 22px; height: 22px; }
.tile-icon.blue { background: #E8F0FE; color: var(--blue); }
.tile-icon.green { background: #DCFCE7; color: #15803D; }
.tile-icon.violet { background: #EDE9FE; color: var(--violet); }
.tile-icon.teal { background: #CCFBF1; color: var(--teal); }
.tile-icon.amber { background: #FEF3C7; color: #B45309; }

/* 面板 */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 22px; }
.panel-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.step-num {
  width: 32px; height: 32px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3B82F6, #6366F1); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .7);
}
.panel-title { flex: 1; min-width: 0; }
.panel-title h2 { font-size: 17px; color: var(--text); }
.panel-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.status {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; background: #F1F5F9; color: var(--muted);
}
.status .ico { width: 14px; height: 14px; }
.status.done { background: var(--ok-soft); color: #15803D; }
.status.todo { background: var(--warn-soft); color: #B45309; }

.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: #15803D; }
.pill.todo { background: var(--warn-soft); color: #B45309; }
.pill.info { background: #F1F5F9; color: var(--muted); }

/* ---------- 第一步 ---------- */
.src-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.src-tile {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, #FFFFFF, #FBFCFE); min-width: 0;
}
.src-top { display: flex; align-items: center; gap: 11px; }
.src-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.src-title h3 { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-no { color: var(--primary); font-weight: 700; }
.src-value { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.3; min-height: 29px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-value small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.src-value.is-empty { color: #94A3B8; font-size: 16px; font-weight: 500; }
.src-meta { color: var(--muted); font-size: 12.5px; line-height: 1.6; min-height: 40px; word-break: break-all; }
.src-actions { display: flex; gap: 8px; margin-top: auto; }

/* ---------- 第二步 ---------- */
.ent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ent {
  --accent: var(--blue); --accent-soft: #E8F0FE;
  position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px;
  background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.ent::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.ent.teal { --accent: var(--teal); --accent-soft: #CCFBF1; }
.ent.violet { --accent: var(--violet); --accent-soft: #EDE9FE; }
.ent.is-over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ent-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ent-prefix { font-family: Consolas, "Microsoft YaHei", monospace; font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 7px; }
.ent-count { font-size: 26px; font-weight: 700; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.ent-count small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.ent-name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.ent-meta { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12.5px; }
.ent-meta span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ent-meta .ico { width: 14px; height: 14px; color: #94A3B8; }
.drop {
  border: 1.5px dashed #CBD5E1; border-radius: 10px; padding: 14px 10px 12px; text-align: center; background: #FAFBFD;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .15s, background .15s;
}
.drop > .ico { width: 26px; height: 26px; color: var(--accent); }
.drop p { color: var(--muted); font-size: 12.5px; }
.drop-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ent.is-over .drop { border-color: var(--accent); background: var(--accent-soft); }
.ent .btn-primary { background: var(--accent); border-color: var(--accent); box-shadow: none; }
.ent .btn-primary:hover { filter: brightness(.94); background: var(--accent); }
.ent-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); align-self: flex-start; }
.ent-link .ico { width: 14px; height: 14px; }

.upload-card { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: linear-gradient(180deg, #FFFFFF, #F8FAFF); }
.upload-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.upload-info { flex: 1; min-width: 0; }
.upload-info strong { display: block; }
.upload-info p { color: var(--muted); font-size: 13px; }
.upload-percent { font-size: 20px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: #E8EDF5; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #60A5FA, var(--primary)); border-radius: 4px; transition: width .2s; }
.bar-fill.is-done { background: linear-gradient(90deg, #4ADE80, var(--ok)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; background: #F1F5F9; color: var(--text-2); }
.chip.ok { background: var(--ok-soft); color: #15803D; }
.chip.warn { background: var(--warn-soft); color: #B45309; }
.chip.err { background: var(--err-soft); color: #B91C1C; }
.error-list { margin: 10px 0 0; padding-left: 18px; color: #B91C1C; font-size: 13px; max-height: 160px; overflow: auto; }
.extra { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #FFFBEB; border: 1px solid #FDE68A; }
.extra-head { display: flex; gap: 8px; color: #92400E; }
.extra-head .ico { width: 18px; height: 18px; color: var(--warn); margin-top: 2px; }
.mini-list { margin: 8px 0; padding-left: 26px; font-size: 13px; max-height: 150px; overflow: auto; color: #78350F; }
.row-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- 第三步 ---------- */
.gen-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 12px; border: 1px solid #DCE6FE;
  background: radial-gradient(600px 160px at 0% 0%, #EAF1FF 0%, rgba(234, 241, 255, 0) 70%), linear-gradient(90deg, #F5F8FF, #FFFFFF);
}
.gen-text h3 { font-size: 15.5px; color: var(--navy); }
.gen-text p { color: var(--muted); font-size: 13px; margin-top: 3px; max-width: 620px; }
.gen-status { margin-top: 12px; color: var(--muted); font-size: 13px; }
.gen-result { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-head .ok-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.result-head .ok-icon .ico { width: 20px; height: 20px; }
.result-head strong { font-size: 15.5px; }
.result-head .muted { font-size: 13px; }
.result-head .btn { margin-left: auto; }
.mini-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.mini-stat { border-radius: 10px; background: #F8FAFC; border: 1px solid var(--line-soft); padding: 10px 12px; }
.mini-stat b { display: block; font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.3; }
.mini-stat span { color: var(--muted); font-size: 12.5px; }
.mini-stat.warn { background: #FFFBEB; border-color: #FDE68A; }
.mini-stat.warn b { color: #B45309; }
.result-notes { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.result-notes li { display: flex; gap: 6px; align-items: flex-start; color: var(--text-2); }
.result-notes .ico { width: 15px; height: 15px; margin-top: 3px; color: var(--warn); }
.result-notes li.muted { color: var(--muted); }
.result-notes li.muted .ico { color: #94A3B8; }

.sub-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 6px; }
.sub-head h3 { font-size: 14px; color: var(--text-2); }
.sub-head a { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; }
.sub-head a .ico { width: 14px; height: 14px; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-top: 1px solid var(--line-soft); }
.report-list li:first-child { border-top: 0; }
.report-list .tile-icon { width: 36px; height: 36px; border-radius: 10px; }
.report-list .tile-icon .ico { width: 19px; height: 19px; }
.report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.report-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.report-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.report-chips .chip { padding: 1px 8px; font-size: 12px; }
.report-list li.none { color: var(--muted); justify-content: center; padding: 18px 0; }

/* ---------- 表格页 ---------- */
.files-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: #F1F5F9; border-radius: 11px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 8px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.seg .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.seg .dot.teal { background: var(--teal); }
.seg .dot.violet { background: var(--violet); }
.seg .cnt { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; flex: 1; min-width: 240px; max-width: 440px; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.search .ico { width: 17px; height: 17px; color: #94A3B8; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; height: 100%; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); background: #F8FAFC; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBFE; }
.table .num-col { text-align: right; white-space: nowrap; }
.table .act-col { text-align: right; white-space: nowrap; width: 1%; }
.table td.dim { color: var(--muted); }
.file-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-cell a { color: var(--text); font-weight: 500; word-break: break-all; }
.file-cell a:hover { color: var(--primary); }
.ftype { width: 30px; height: 30px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; letter-spacing: .2px; }
.ftype .ico { width: 17px; height: 17px; }
.ftype.pdf { background: #FEE2E2; color: #DC2626; }
.ftype.img { background: #DCFCE7; color: #15803D; }
.ftype.doc { background: #DBEAFE; color: #1D4ED8; }
.ftype.xls { background: #D1FAE5; color: #047857; }
.ftype.other { background: #F1F5F9; color: var(--muted); }
.folder-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.folder-tag .ico { width: 14px; height: 14px; color: #94A3B8; }
.del-btn { color: var(--muted); }
.del-btn:hover { color: var(--err); background: var(--err-soft); }
.reason { display: inline-flex; padding: 1px 8px; border-radius: 6px; background: #F1F5F9; color: var(--text-2); font-size: 12px; }
.left-days { font-weight: 600; color: var(--text-2); }
.left-days.soon { color: var(--warn); }
.more-row { text-align: center; margin-top: 10px; }
.empty { text-align: center; padding: 36px 0 26px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-icon { width: 56px; height: 56px; border-radius: 50%; background: #F1F5F9; display: inline-flex; align-items: center; justify-content: center; color: #94A3B8; }
.empty-icon .ico { width: 26px; height: 26px; }

/* ---------- 弹窗与提示 ---------- */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .42); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; backdrop-filter: blur(2px); }
.modal-box { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 6px; }
.modal-head h3 { font-size: 16.5px; color: var(--text); }
.modal-icon { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.modal-icon .ico { width: 20px; height: 20px; }
.modal-icon.ok { background: var(--ok-soft); color: var(--ok); }
.modal-icon.warn { background: var(--warn-soft); color: var(--warn); }
.modal-icon.ask { background: var(--primary-50); color: var(--primary); }
.modal-icon.err { background: var(--err-soft); color: var(--err); }
.modal-body { padding: 8px 24px 4px 72px; overflow: auto; white-space: pre-line; line-height: 1.75; color: var(--text-2); }
.modal-body ul { margin: 6px 0; padding-left: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 20px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px;
  background: #0F172A; color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px;
}
.toast .ico { width: 18px; height: 18px; color: #4ADE80; }

/* ---------- 登录 ---------- */
.auth { min-height: 100vh; margin: 0; background: radial-gradient(1200px 700px at 10% -10%, #24467A 0%, var(--navy) 50%, #0A1B33 100%); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-wrap { width: min(1000px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.auth-side { padding: 38px 40px 28px; color: #fff; display: flex; flex-direction: column; gap: 14px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.auth-brand img { width: 34px; height: 34px; }
.auth-side h1 { font-size: 30px; letter-spacing: 1px; margin-top: 18px; }
.auth-side p { color: #B8C9E2; line-height: 1.8; max-width: 400px; }
.auth-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: #DCE6F5; font-size: 14px; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points .dot { width: 8px; height: 8px; border-radius: 50%; background: #60A5FA; box-shadow: 0 0 0 4px rgba(96, 165, 250, .2); }
.auth-illus { width: 100%; max-width: 420px; margin-top: auto; align-self: center; }
.auth-card { background: #fff; padding: 46px 40px 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-logo { width: 50px; height: 50px; }
.auth-head h2 { font-size: 22px; margin-top: 10px; color: var(--text); }
.auth-head p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.auth-card .notice { margin-bottom: 14px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field input { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; width: 100%; background: #F8FAFC; transition: border-color .15s, box-shadow .15s, background .15s; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); background: #fff; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 44px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 5px; display: flex; border-radius: 6px; }
.password-toggle:hover { background: #EEF2F7; }
.password-toggle[aria-pressed="true"] { color: var(--primary); }
.auth-foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 18px; }
.message-card { background: #fff; border-radius: 18px; padding: 34px 32px 28px; width: min(400px, 100%); text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.message-card img { width: 48px; height: 48px; }
.message-card h1 { font-size: 20px; margin: 10px 0 8px; }
.message-card p { color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gen-text p { max-width: none; }
  .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-meta { display: none; }
}
@media (max-width: 900px) {
  .src-grid, .ent-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-name { display: none; }
  .topbar-inner { gap: 14px; }
  .tab { padding: 8px 10px; }
  .auth-wrap { grid-template-columns: 1fr; max-width: 440px; }
  .auth-side { display: none; }
}
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 14px 8px; row-gap: 8px; }
  .tabs { order: 3; width: 100%; justify-content: space-between; }
  .tab { padding: 7px 8px; font-size: 13px; gap: 4px; }
  .tab .ico { display: none; }
  .logout-btn span { display: none; }
  .page { padding: 18px 12px 40px; }
  .panel { padding: 16px 14px 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero h1, .page-head h1 { font-size: 20px; }
  .user-chip { gap: 6px; }
  .avatar { width: 32px; height: 32px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .tile-icon { display: none; }
  .stat-value { font-size: 20px; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-head .status { display: none; }
  .search { min-width: 0; max-width: none; width: 100%; }
  .gen-banner .btn-lg { width: 100%; }
  .modal-body { padding-left: 24px; }
  .auth-card { padding: 34px 24px 26px; }
}
