/* ============================================================
 *  集团资质管理系统 · 样式
 * ============================================================ */
:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --border: #e2e8f1;
  --border-strong: #cfd9e7;
  --text: #14233b;
  --text-sub: #43536b;
  --muted: #8494a9;
  /* 同创品牌色：深蓝主色 + 青色点缀（取自集团 logo） */
  --primary: #00498F;
  --primary-dark: #00356a;
  --primary-soft: #e7eff7;
  --accent: #00AEEF;
  --accent-dark: #0090c8;
  --accent-soft: #e2f6fd;
  --gold: #C8A96A;
  --gold-soft: #f6efdf;
  --sidebar: #00234a;
  --sidebar-2: #003a6b;
  --sidebar-hover: #0d3560;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 35, 74, .05), 0 6px 20px rgba(0, 35, 74, .06);
  --shadow-lg: 0 8px 40px rgba(0, 35, 74, .18);

  --ok: #10b981; --warn: #f59e0b; --crit: #f97316; --bad: #ef4444;
  --proc: #2f7fd1; --perm: #00AEEF; --dead: #94a3b8;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a8b6c9; }
::-webkit-scrollbar-track { background: transparent; }

.page-title { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: 0 0 232px; background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%); color: #c9d8ea;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 60;
  border-right: 1px solid rgba(0,174,239,.18);
}
.brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  background: #fff;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,35,74,.35), inset 0 0 0 1px rgba(0,174,239,.25);
}
.brand-mark img { width: 30px; height: 30px; object-fit: contain; display: block; }
.brand-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: #7fa0c4; letter-spacing: .4px; margin-top: 1px; text-align: center; }
.brand-banner {
  background: #fff; border-radius: 10px; height: 46px; padding: 0 12px; margin-bottom: 9px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,35,74,.35), inset 0 0 0 1px rgba(0,174,239,.25);
}
.brand-banner img { display: block; max-width: 100%; max-height: 30px; width: auto; height: auto; object-fit: contain; }

.nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav-group { font-size: 11px; color: #5f7194; letter-spacing: 1px; padding: 14px 12px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  cursor: pointer; color: #b9c5da; font-size: 13.5px; margin-bottom: 2px; transition: .16s;
  user-select: none; position: relative;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(0,73,143,.55), rgba(0,174,239,.10)); color: #fff; font-weight: 600; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--accent), #fff); }
.nav-ico { width: 18px; text-align: center; font-size: 14px; opacity: .9; }
.nav-badge {
  margin-left: auto; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 20px; line-height: 1.5; min-width: 18px; text-align: center;
}
.nav-badge.cool { background: #3b5b9b; color: #dbe7ff; }

.sidebar-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11.5px; color: #5f7194; }
.sidebar-foot b { color: #93a5c6; font-weight: 600; }

.main { flex: 1; margin-left: 232px; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 50;
}
.topbar .crumbs { font-size: 13px; color: var(--muted); }
.topbar .crumbs b { color: var(--text); font-weight: 600; }
.topbar-spacer { flex: 1; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text-sub); font-size: 15px; position: relative;
}
.icon-btn:hover { background: var(--primary-soft); border-color: #b9d4ea; color: var(--primary); }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #fff; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #f3f6fb; border: 1px solid var(--border);
  border-radius: 9px; padding: 6px 12px; width: 260px; color: var(--muted);
}
.search-box input { border: 0; background: transparent; outline: none; flex: 1; font-size: 13px; color: var(--text); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 30px; border: 1px solid var(--border); cursor: pointer; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #00498F, #00AEEF);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.user-chip span { font-size: 13px; font-weight: 600; }

.content { padding: 22px 24px 40px; }
.content > .view { display: none; animation: fade .28s ease; }
.content > .view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- 通用组件 ---------------- */
.view-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.view-head .desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.view-head .spacer { flex: 1; }

.btn {
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text-sub); font-size: 13px; cursor: pointer; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 12px rgba(0,73,143,.28); }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.danger { color: var(--bad); border-color: #fbc9c9; }
.btn.danger:hover { background: #fef2f2; border-color: var(--bad); color: var(--bad); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: #f3f6fb; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
}
.card-title { font-size: 14.5px; font-weight: 700; }
.card-sub { font-size: 12px; color: var(--muted); }
.card-head .spacer { flex: 1; }
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 10px 12px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.g-3-2 { grid-template-columns: 3fr 2fr; }
.g-2-3 { grid-template-columns: 2fr 3fr; }
.row { display: flex; gap: 16px; }
.row .card { flex: 1; min-width: 0; }

/* KPI */
.kpi {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::after { content: ""; position: absolute; right: -18px; top: -18px; width: 76px; height: 76px; border-radius: 50%; background: var(--primary-soft); opacity: .7; }
.kpi .label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.kpi .value { font-size: 27px; font-weight: 800; letter-spacing: -.6px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.kpi .value small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.kpi .trend { font-size: 12px; display: flex; align-items: center; gap: 4px; position: relative; z-index: 1; }
.kpi .trend.up { color: var(--ok); } .kpi .trend.down { color: var(--bad); } .kpi .trend.flat { color: var(--muted); }
.kpi.k-red::after { background: #fee9e9; } .kpi.k-red .value { color: #dc2626; }
.kpi.k-amber::after { background: #fff2dd; } .kpi.k-amber .value { color: #d97706; }
.kpi.k-green::after { background: #e4f7ef; } .kpi.k-green .value { color: #059669; }
.kpi.k-purple::after { background: #e7f0f9; } .kpi.k-purple .value { color: #2f7fd1; }
.kpi.k-blue::after { background: var(--primary-soft); } .kpi.k-blue .value { color: var(--primary); }

/* 标签 */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.cat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-sub); }
.cat-chip i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

/* 表格 */
.tbl-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 12px;
  background: #fafbfd; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
table.tbl tbody tr { transition: .12s; }
table.tbl tbody tr:hover { background: #f7f9fd; }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl td.nowrap { white-space: nowrap; }
.tbl-foot { padding: 11px 16px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.tbl-foot .spacer { flex: 1; }
.pager { display: flex; gap: 4px; }
.pager button {
  min-width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: #fff;
  cursor: pointer; font-size: 12.5px; color: var(--text-sub);
}
.pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* 过滤器 */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select, .filters input {
  height: 34px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px;
  background: #fff; font-size: 13px; color: var(--text); outline: none; min-width: 130px;
}
.filters select:focus, .filters input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,73,143,.1); }
.filters .lab { font-size: 13px; color: var(--muted); }

/* 段选择器 */
.seg { display: inline-flex; background: #f1f4f9; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 5px 13px; border-radius: 7px; font-size: 12.5px;
  cursor: pointer; color: var(--text-sub); font-weight: 500; white-space: nowrap;
}
.seg button.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 1px 4px rgba(16,32,64,.1); }

/* 图表容器 */
.chart { width: 100%; height: 260px; }
.chart.sm { height: 210px; }
.chart.lg { height: 330px; }
.chart-fallback { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }

/* 进度条 */
.bar { height: 6px; border-radius: 6px; background: #eef1f6; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; transition: width .6s ease; }

/* 倒计时条 */
.countdown { display: flex; align-items: center; gap: 8px; }
.countdown .num { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 42px; }

/* 抽屉 */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 90; opacity: 0; pointer-events: none; transition: .25s; }
.mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw; background: #fff;
  z-index: 100; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; }
.drawer-head h3 { margin: 0; font-size: 16.5px; font-weight: 700; flex: 1; }
.drawer-close { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.drawer-close:hover { background: #fef2f2; color: var(--bad); border-color: #fbc9c9; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: #fafbfd; }

.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs button {
  border: 0; background: none; padding: 8px 2px 10px; font-size: 13.5px; cursor: pointer; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
}
.tabs button.active { color: var(--primary); border-color: var(--primary); font-weight: 700; }

.kv { display: grid; grid-template-columns: 108px 1fr; gap: 9px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); font-weight: 500; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 18px; }
.info-grid .cell { background: #fafbfd; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.info-grid .cell .k { font-size: 11.5px; color: var(--muted); }
.info-grid .cell .v { font-size: 14px; font-weight: 700; margin-top: 1px; }

/* 资质登记 / 编辑表单（参考付款单弹窗设计） */
.qform { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.qform .fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qform .fld.full { grid-column: 1 / -1; }
.qform .fld > label { font-size: 12.5px; color: var(--text-sub); font-weight: 600; }
.qform .fld .req { color: var(--bad); margin-left: 3px; }
.qform input[type=text], .qform input[type=number], .qform input[type=date],
.qform select, .qform textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 11px; font-size: 13px; color: var(--text); background: #fff; font-family: inherit;
}
.qform input[type=text], .qform input[type=number], .qform input[type=date], .qform select { height: 36px; }
.qform textarea { min-height: 68px; padding: 8px 11px; line-height: 1.55; resize: vertical; }
.qform input:focus, .qform select:focus, .qform textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,73,143,.12);
}
.qform .fld.check { flex-direction: row; align-items: center; height: 36px; }
.qform .ckbox { display: inline-flex; align-items: center; cursor: pointer; font-size: 13px; color: var(--text); font-weight: 500; }
.qform .ckbox input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.qtip {
  background: #fff8ec; border: 1px solid #f6e2bd; color: #9a6b1a; border-radius: 10px;
  padding: 10px 13px; font-size: 12.5px; line-height: 1.6; margin-bottom: 14px;
}
.qtip .req { color: var(--bad); margin: 0 1px; }
.qdrop {
  border: 1.5px dashed var(--border-strong); border-radius: 11px; background: #fbfcfe;
  padding: 18px 16px; text-align: center; cursor: pointer; margin-bottom: 12px; transition: .16s;
}
.qdrop:hover { border-color: var(--primary); background: var(--primary-soft); }
.qdrop .qd-tx { font-size: 13px; color: var(--text-sub); }
.qdrop .qd-tx b { color: var(--primary); }
.qdrop .qd-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qchip {
  display: inline-flex; align-items: center; gap: 6px; background: #f1f5f9; border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 6px 4px 12px; font-size: 12px; color: var(--text); max-width: 100%;
}
.qchip .qn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.qchip .qs { color: var(--muted); font-size: 11px; }
.qchip .qx {
  width: 18px; height: 18px; border-radius: 50%; border: none; background: #cbd5e1; color: #fff;
  cursor: pointer; font-size: 13px; line-height: 1; display: grid; place-items: center; padding: 0;
}
.qchip .qx:hover { background: var(--bad); }

/* 时间轴 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: #e8edf5; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 3px #fff; }
.tl-item.done::before { background: var(--ok); }
.tl-item.now::before { background: var(--primary); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,73,143,.18); }
.tl-time { font-size: 11.5px; color: var(--muted); }
.tl-text { font-size: 13.5px; }

/* 列表组 */
.list-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px dashed #edf1f7; }
.list-item:last-child { border-bottom: 0; }
.list-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; flex: 0 0 28px; font-weight: 700; }
.list-main { flex: 1; min-width: 0; }
.list-main .t { font-size: 13px; line-height: 1.45; }
.list-main .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* 热力矩阵 */
.heat { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.heat th { font-weight: 600; color: var(--text-sub); font-size: 11.5px; padding: 4px 6px; text-align: center; }
.heat th.rowh { text-align: right; padding-right: 8px; white-space: nowrap; }
.heat td { width: 46px; height: 30px; text-align: center; border-radius: 5px; font-weight: 700; cursor: default; }
.heat td .tip { display: none; }

/* 看板 */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kb-col { flex: 0 0 236px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 11px; padding: 10px; }
.kb-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 2px 4px 10px; }
.kb-head .cnt { margin-left: auto; background: #e8edf5; color: var(--text-sub); font-size: 11.5px; padding: 0 7px; border-radius: 20px; }
.kb-head i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.kb-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; margin-bottom: 9px;
  box-shadow: 0 1px 2px rgba(16,32,64,.04); cursor: pointer; transition: .15s;
}
.kb-card:hover { box-shadow: var(--shadow); border-color: #b9d4ea; transform: translateY(-1px); }
.kb-card .t { font-size: 13px; font-weight: 600; line-height: 1.4; }
.kb-card .m { font-size: 11.5px; color: var(--muted); margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; }

/* 投标匹配 */
.bid-card { border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.bid-card.sel { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,73,143,.1); }
.match-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed #edf1f7; }
.match-row:last-child { border-bottom: 0; }
.match-row .mi { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: 0 0 22px; }
.match-row .mt { flex: 1; min-width: 0; }
.match-row .mt .n { font-size: 13.5px; font-weight: 600; }
.match-row .mt .d { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.summary-banner { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sum-pill { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; min-width: 120px; }
.sum-pill .k { font-size: 12px; color: var(--muted); }
.sum-pill .v { font-size: 22px; font-weight: 800; line-height: 1.2; }

/* 空态/提示 */
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 34px; opacity: .35; }

/* 层级树 */
.tree-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.tree-row:hover { background: #f5f8fd; }
.tree-row.sel { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tree-indent { display: inline-block; width: 14px; }

/* 方案页 */
.arch-layer { border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; position: relative; }
.arch-layer .ln { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.arch-layer .ln span { font-weight: 500; color: var(--text-sub); font-size: 12px; }
.arch-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.arch-chip { background: rgba(255,255,255,.85); border: 1px solid rgba(0,0,0,.06); border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; }
.arch-arrow { text-align: center; color: #b6c2d4; font-size: 15px; margin: -4px 0 4px; }

.roadmap { display: flex; gap: 12px; }
.rm-phase { flex: 1; border-radius: 11px; padding: 14px; position: relative; }
.rm-phase .p { font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.rm-phase h4 { margin: 4px 0 8px; font-size: 14px; }
.rm-phase ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--text-sub); }
.rm-phase li { margin-bottom: 3px; }
.rm-stage-track { height: 6px; border-radius: 6px; background: #eef1f6; margin-top: 12px; overflow: hidden; }
.rm-stage-track > i { display: block; height: 100%; border-radius: 6px; }

.stat-strip { display: flex; gap: 0; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); }
.stat-strip > div { flex: 1; padding: 14px 16px; border-right: 1px solid var(--border); background: #fff; }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .k { font-size: 12px; color: var(--muted); }
.stat-strip .v { font-size: 20px; font-weight: 800; }

.table-compact td, .table-compact th { padding: 8px 12px; font-size: 12.5px; }

@media (max-width: 1400px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1180px) {
  .g-2-1, .g-1-2, .g-3-2, .g-2-3, .g3 { grid-template-columns: 1fr; }
}

/* ---------------- 多维分析中心 · 洞察增强 ---------------- */
.page-title::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; margin-top: 7px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

.insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1400px) { .insight-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.insight {
  background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 11px; padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.insight.i-risk { border-left-color: var(--bad); }
.insight.i-warn { border-left-color: var(--warn); }
.insight.i-good { border-left-color: var(--ok); }
.insight.i-info { border-left-color: var(--accent); }
.insight .k { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.insight .big { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 5px 0 3px; font-variant-numeric: tabular-nums; }
.insight .big small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.insight .note { font-size: 12px; color: var(--text-sub); line-height: 1.55; }
.insight .note b { color: var(--primary); font-weight: 700; }
.insight.i-risk .note b { color: var(--bad); } .insight.i-warn .note b { color: #d97706; } .insight.i-good .note b { color: #059669; }
.insight::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 60px; height: 60px; border-radius: 50%; background: var(--primary-soft); opacity: .5; }

.ana-hint { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }
.legend-dots { display: inline-flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-sub); }
.legend-dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }
