/* ============================================================
   启能力ERP系统 · 全链路协同中枢 —— 纯静态展示站样式
   浅色企业级 SaaS 控制台主题；零外部依赖，图标全部内联 SVG。
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --primary: #2E5BFF;
  --primary-strong: #1E44E0;
  --primary-weak: #EEF2FF;
  --bg: #F5F7FC;
  --panel: #FFFFFF;
  --border: #E6EAF3;
  --chip-bg: #F1F4FA;
  --text: #1E2A45;
  --text-2: #57647F;
  --text-3: #8B96AE;
  --success: #16A34A;
  --success-bg: #E9F7EE;
  --warn: #B45309;
  --warn-bg: #FEF3E2;
  --danger: #DC2626;
  --danger-bg: #FDECEC;
  --radius: 11px;
  --shadow: 0 1px 2px rgba(24, 44, 92, .05), 0 6px 18px rgba(24, 44, 92, .045);
  --shadow-hover: 0 10px 28px rgba(24, 44, 92, .11);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- 主框架 ---------- */
.app-shell { display: flex; height: 100vh; }
.workarea { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.content {
  flex: 1 1 auto;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 28px 30px 64px;
  outline: none;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 246px;
  flex: 0 0 246px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--border);
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2E5BFF, #7C9BFF);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 12px rgba(46, 91, 255, .28);
}
.brand-text strong { display: block; font-size: 15px; font-weight: 750; letter-spacing: .2px; }
.brand-text small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.sidebar-close {
  display: none;
  margin-left: auto;
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  color: var(--text-2);
  align-items: center; justify-content: center;
}

.nav { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px; }
.nav-group { margin-bottom: 18px; }
.nav-group-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--text-3); padding: 6px 10px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin: 2px 0;
  border-radius: 8px;
  color: var(--text-2); font-size: 13.5px;
  transition: background .16s, color .16s;
}
.nav-item .ic { width: 17px; height: 17px; flex: 0 0 17px; color: var(--text-3); }
.nav-item:hover { background: var(--primary-weak); color: var(--primary); }
.nav-item:hover .ic { color: var(--primary); }
.nav-item.active { background: var(--primary-weak); color: var(--primary); font-weight: 650; }
.nav-item.active .ic { color: var(--primary); }
.nav-item-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 11px; color: var(--text-3); background: var(--chip-bg); border-radius: 20px; padding: 1px 7px; }
.nav-domain-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: 0 0 8px; }
.sidebar-foot {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-3);
}
.sidebar-foot .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 3px var(--success-bg);
}

/* ---------- 顶部栏 ---------- */
.topbar {
  height: 64px; flex: 0 0 64px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border); background: var(--panel);
  border-radius: 9px; color: var(--text-2);
  align-items: center; justify-content: center;
}
.crumb { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text-3); }
.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); transition: color .16s; }
.crumb a:hover { color: var(--primary); }
.crumb a .ic { width: 15px; height: 15px; }
.crumb-sep { display: inline-flex; opacity: .65; }
.crumb-sep .ic { width: 13px; height: 13px; }
.crumb-current { color: var(--text); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.global-search { position: relative; width: 282px; flex: 0 0 auto; }
.gs-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
#globalSearch {
  width: 100%; height: 36px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text);
  padding: 0 34px 0 34px; outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
#globalSearch:focus { border-color: var(--primary); background: var(--panel); box-shadow: 0 0 0 3px rgba(46, 91, 255, .12); }
#globalSearch::placeholder { color: var(--text-3); }
.gs-hint {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 0 5px;
  background: var(--panel); pointer-events: none;
}
.gs-results {
  display: none;
  position: absolute; top: 44px; right: 0;
  width: 366px; max-height: 430px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 14px 38px rgba(24, 44, 92, .16);
  padding: 6px; z-index: 50;
}
.gs-results.show { display: block; }
.gs-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 8px; transition: background .14s; }
.gs-item:hover { background: var(--primary-weak); }
.gs-seq {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--dc);
}
.gs-body { flex: 1 1 auto; min-width: 0; }
.gs-name { display: block; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-meta { display: block; font-size: 11px; color: var(--text-3); }
.gs-go { color: var(--text-3); }
.gs-go .ic { width: 14px; height: 14px; }
.gs-empty { padding: 16px 10px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.gs-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 4px; padding: 9px; border-top: 1px solid var(--border);
  font-size: 12.5px; font-weight: 650; color: var(--primary);
}
.gs-all .ic { width: 14px; height: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 15px;
  border: 1px solid transparent; border-radius: 9px;
  font-size: 13px; font-weight: 650; white-space: nowrap;
  transition: background .16s, transform .16s, box-shadow .16s, border-color .16s;
}
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(46, 91, 255, .22); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(46, 91, 255, .3); }
.btn-ghost { background: var(--panel); border-color: var(--border); color: var(--primary); }
.btn-ghost:hover { background: var(--primary-weak); border-color: var(--primary); }
.btn-soft { background: var(--primary-weak); color: var(--primary); }
.btn-soft:hover { background: #E1E9FF; }

/* ---------- 页面通用块 ---------- */
.page { max-width: 1360px; margin: 0 auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeUp .34s ease both; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.eyebrow { font-size: 11.5px; color: var(--primary); font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 7px; }
.page-head h1 { font-size: 24px; font-weight: 760; letter-spacing: -.4px; margin-bottom: 8px; }
.lead { color: var(--text-2); font-size: 13.5px; max-width: 780px; }
.head-actions { display: flex; align-items: center; gap: 10px; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; font-weight: 720; }
.panel-sub { font-size: 12.5px; color: var(--text-3); }
.link-more { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--primary); font-weight: 650; transition: gap .16s; }
.link-more .ic { width: 14px; height: 14px; }
.link-more:hover { gap: 9px; }
.subhead { font-size: 14px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.subhead .ic { width: 16px; height: 16px; color: var(--primary); }

/* ---------- 标签 / 徽标 ---------- */
.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 650; border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-neutral { background: var(--chip-bg); color: var(--text-2); }
.opt-chip { display: inline-block; font-size: 11px; border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; margin: 2px 4px 2px 0; background: var(--panel); color: var(--text-2); }
.muted { color: var(--text-3); }
.cell-empty { color: var(--text-3); }
.cell-money { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- KPI 卡片 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 16px 14px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.kpi-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--kpi); }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--kpi-bg); color: var(--kpi); display: flex; align-items: center; justify-content: center; }
.kpi-icon .ic { width: 18px; height: 18px; }
.kpi-unit { font-size: 11.5px; color: var(--text-3); }
.kpi-value { font-size: 30px; font-weight: 770; line-height: 1.15; margin: 10px 0 2px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: 13px; font-weight: 650; }
.kpi-note { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* ---------- 总览：全链路流程带 ---------- */
.flow-strip { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.fs-node {
  flex: 1 1 0; min-width: 132px;
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  position: relative; transition: all .18s;
}
.fs-node::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--stage); border-radius: 10px 0 0 10px; }
.fs-node:hover { transform: translateY(-2px); border-color: var(--stage); background: var(--panel); box-shadow: var(--shadow-hover); }
.fs-idx { font-size: 11px; font-weight: 700; color: var(--stage); letter-spacing: 1px; }
.fs-name { font-size: 14px; font-weight: 700; }
.fs-sub { font-size: 11.5px; color: var(--text-3); }
.fs-arrow { display: flex; align-items: center; color: var(--text-3); flex: 0 0 auto; }
.fs-arrow .ic { width: 17px; height: 17px; }

/* ---------- 总览：业务域覆盖 ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.domain-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  background: var(--panel); transition: all .18s; position: relative; overflow: hidden;
}
.domain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--dc); }
.dc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dc-id { font-size: 12px; font-weight: 700; color: var(--dc); background: var(--chip-bg); border-radius: 6px; padding: 2px 8px; letter-spacing: .5px; }
.dc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dc); display: inline-block; flex: 0 0 auto; }
.domain-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.domain-card p { font-size: 12.5px; color: var(--text-2); min-height: 38px; line-height: 1.55; margin-bottom: 14px; }
.dc-foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 10px; }
.dc-foot .ic { margin-left: auto; width: 15px; height: 15px; color: var(--dc); }

/* ---------- 总览：最新预警 ---------- */
.alert-list { display: flex; flex-direction: column; }
.alert-row { display: flex; gap: 14px; align-items: flex-start; padding: 13px 4px; border-bottom: 1px solid var(--border); }
.alert-row:last-child { border-bottom: none; }
.alert-row > .tag { flex: 0 0 auto; margin-top: 1px; }
.alert-main { flex: 1 1 auto; min-width: 0; }
.alert-title { font-size: 13.5px; font-weight: 650; }
.alert-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.alert-note { font-size: 12px; color: var(--text-2); margin-top: 6px; background: var(--bg); border-radius: 6px; padding: 6px 10px; }

/* ---------- 总览：钉钉能力矩阵 ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cap-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--bg); transition: all .18s; }
.cap-card:hover { background: var(--panel); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cap-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--panel); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--cap); }
.cap-icon .ic { width: 18px; height: 18px; }
.cap-title { font-size: 13.5px; font-weight: 700; }
.cap-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.55; min-height: 34px; }
.cap-value { font-size: 12px; font-weight: 700; color: var(--cap); margin-top: auto; }

/* ---------- 业务域页：数据表卡片 ---------- */
.table-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.table-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--panel); transition: all .18s; position: relative; }
.table-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.tc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tc-seq { font-size: 12px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 6px; padding: 2px 8px; letter-spacing: .5px; }
.tc-domain-chip { font-size: 11px; color: var(--text-3); }
.tc-name { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.tc-meta { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-badge { font-size: 10.5px; font-weight: 650; border-radius: 5px; padding: 2px 7px; background: var(--chip-bg); color: var(--text-2); }
.mini-badge.vt { background: var(--primary-weak); color: var(--primary); }
.mini-badge.form { background: #FEF3E2; color: #B45309; }
.mini-badge.ai { background: #F2ECFF; color: #7C5CFC; }
.mini-badge.attach { background: #E4F6F2; color: #0E9F8C; }
.mini-badge.link { background: #E7F0FF; color: #2E5BFF; }
.tc-arrow { position: absolute; right: 14px; bottom: 14px; color: var(--text-3); transition: transform .18s, color .18s; }
.table-card:hover .tc-arrow { transform: translateX(3px); color: var(--primary); }
.tc-arrow .ic { width: 16px; height: 16px; }

/* ---------- 表详情：描述条 ---------- */
.desc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); margin-bottom: 20px; }
.desc-bar .ic { width: 20px; height: 20px; color: var(--primary); flex: 0 0 auto; }
.desc-bar p { flex: 1 1 320px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.desc-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.desc-stat { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.desc-stat strong { font-size: 15px; color: var(--text); font-weight: 750; margin-right: 4px; font-variant-numeric: tabular-nums; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- 数据表（通用） ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { background: var(--bg); color: var(--text-3); font-weight: 650; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .14s; }
.data-table tbody tr:hover { background: var(--primary-weak); }
.col-idx { width: 52px; color: var(--text-3); }
.col-type { width: 116px; }
.type-pill { display: inline-flex; font-size: 11px; font-weight: 650; border-radius: 5px; padding: 2px 8px; background: var(--chip-bg); color: var(--text-2); }
.type-pill.t-s { background: var(--primary-weak); color: var(--primary); }
.type-pill.t-m { background: #F2ECFF; color: #7C5CFC; }
.type-pill.t-c { background: #FEF3E2; color: #B45309; }
.type-pill.t-a { background: #E4F6F2; color: #0E9F8C; }
.type-pill.t-d { background: #E7F0FF; color: #2E5BFF; }
.type-pill.t-q { background: #FCE9F1; color: #DB2777; }

/* ---------- 表详情：视图清单 ---------- */
.view-list { display: flex; flex-direction: column; gap: 8px; }
.view-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); transition: all .16s; }
.view-item:hover { background: var(--panel); box-shadow: var(--shadow); transform: translateX(2px); }
.view-ic { width: 32px; height: 32px; border-radius: 8px; color: #fff; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; background: var(--vt); }
.view-ic .ic { width: 17px; height: 17px; }
.view-name { font-size: 13px; font-weight: 650; }
.view-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.view-item .spacer { flex: 1 1 auto; }
.view-type-badge { font-size: 11px; color: var(--text-2); background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px; white-space: nowrap; }

/* ---------- 表详情：AI / 表单 / 关联小卡 ---------- */
.mini-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--bg); margin-bottom: 12px; }
.mini-card:last-child { margin-bottom: 0; }
.mini-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mini-head .ic { width: 16px; height: 16px; color: var(--primary); }
.mini-head h4 { font-size: 13.5px; font-weight: 700; }
.ai-item { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 10px; }
.ai-item:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.ai-name { font-size: 13px; font-weight: 650; color: var(--primary); }
.ai-fields { font-size: 11.5px; color: var(--text-3); margin: 6px 0; }
.ai-prompt { font-size: 12px; color: var(--text-2); background: var(--panel); border-radius: 7px; padding: 8px 10px; line-height: 1.6; }
.form-name { font-size: 14px; font-weight: 700; }
.form-title { font-size: 12px; color: var(--text-3); margin: 2px 0 8px; }
.mini-card p { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.link-line { font-size: 12.5px; display: flex; align-items: center; gap: 7px; padding: 6px 0; }
.link-line .ic { width: 14px; height: 14px; color: var(--primary); }
.link-line a { color: var(--primary); font-weight: 600; }
.link-line a:hover { text-decoration: underline; }
.empty-line { font-size: 12px; color: var(--text-3); }

/* ---------- 表详情：演示数据 / 空态 ---------- */
.section-gap { margin-top: 20px; }
.empty-state { text-align: center; padding: 30px 20px; border: 1px dashed var(--border); border-radius: 10px; background: var(--bg); }
.empty-ic { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.empty-ic .ic { width: 24px; height: 24px; }
.empty-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: 12.5px; color: var(--text-3); max-width: 660px; margin: 0 auto 16px; line-height: 1.7; }
.empty-preview { max-width: 560px; margin: 0 auto; text-align: left; }
.stars { color: #F59E0B; letter-spacing: 1px; }
.stars .off { color: var(--border); }

/* ---------- 全链路流程页 ---------- */
.flowmap { width: 100%; height: auto; display: block; margin-bottom: 4px; }
.flow-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.summary-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.summary-pill .ic { width: 15px; height: 15px; color: var(--primary); }
.summary-pill strong { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.stage-spine { display: flex; align-items: stretch; gap: 8px; }
.spine-card { flex: 1 1 0; min-width: 120px; border: 1px solid var(--border); border-top: 3px solid var(--stage); border-radius: 10px; padding: 14px 12px; background: var(--panel); text-align: center; transition: all .18s; }
.spine-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.spine-idx { font-size: 12px; font-weight: 700; color: var(--stage); letter-spacing: 1px; }
.spine-name { font-size: 14.5px; font-weight: 700; margin-top: 4px; }
.spine-domain { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.spine-count { font-size: 11px; color: var(--text-3); margin-top: 9px; border-top: 1px solid var(--border); padding-top: 8px; }
.spine-arrow { display: flex; align-items: center; color: var(--text-3); flex: 0 0 auto; }
.spine-arrow .ic { width: 18px; height: 18px; }
.stage-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stage-col { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.stage-col-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--border); border-top: 3px solid var(--stage); }
.sc-num { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: var(--stage); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.sc-name { font-size: 13.5px; font-weight: 700; }
.sc-domain { font-size: 11px; color: var(--text-3); }
.stage-nodes { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.stage-node { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 7px; font-size: 12.5px; transition: all .15s; }
.stage-node:hover { border-color: var(--stage); transform: translateX(2px); box-shadow: var(--shadow); }
.sn-seq { font-size: 10.5px; font-weight: 700; color: var(--stage); background: var(--bg); border-radius: 4px; padding: 1px 6px; flex: 0 0 auto; }
.sn-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-go { color: var(--text-3); flex: 0 0 auto; }
.sn-go .ic { width: 13px; height: 13px; }
.foundation-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* ---------- 数据表字典页 ---------- */
.dict-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dict-search { position: relative; flex: 1 1 280px; max-width: 360px; }
.dict-search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
#dictSearch { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); padding: 0 12px 0 34px; outline: none; transition: border-color .16s, box-shadow .16s; }
#dictSearch:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46, 91, 255, .12); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--panel); color: var(--text-2); border-radius: 20px; padding: 5px 12px; font-size: 12px; transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 650; }
.chip span { font-size: 10.5px; opacity: .85; }
.dict-meta { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.dict-meta strong { color: var(--primary); font-weight: 700; }
.dict-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dict-thead, .dict-row { display: grid; grid-template-columns: 56px minmax(180px, 2fr) minmax(110px, 1.2fr) 62px 62px minmax(140px, 1.5fr) 24px; gap: 10px; align-items: center; padding: 10px 14px; }
.dict-thead { background: var(--bg); font-size: 11.5px; font-weight: 650; color: var(--text-3); border-bottom: 1px solid var(--border); }
.dict-row { border-bottom: 1px solid var(--border); font-size: 12.5px; transition: background .14s; }
.dict-row:last-child { border-bottom: none; }
.dict-row:hover { background: var(--primary-weak); }
.dr-seq { font-size: 11.5px; font-weight: 700; color: var(--primary); background: var(--primary-weak); border-radius: 5px; padding: 2px 7px; text-align: center; }
.dr-name { min-width: 0; }
.dr-name strong { display: block; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-name small { display: block; font-size: 11px; color: var(--text-3); }
.dr-domain { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.dr-num { text-align: center; font-variant-numeric: tabular-nums; color: var(--text-2); }
.dr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dr-go { color: var(--text-3); }
.dr-go .ic { width: 15px; height: 15px; }
.dict-empty { padding: 34px 16px; }

/* ---------- 背景遮罩 ---------- */
.backdrop { display: none; position: fixed; inset: 0; background: rgba(22, 36, 70, .36); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 25; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .domain-grid { grid-template-columns: repeat(3, 1fr); }
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .table-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .sidebar { position: fixed; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(24, 44, 92, .14); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-flex; }
  .menu-toggle { display: inline-flex; }
  .backdrop { display: block; }
  body.sidebar-open .backdrop { opacity: 1; pointer-events: auto; }
  .content { padding: 22px 18px 50px; }
  .topbar { padding: 0 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .stage-spine { flex-wrap: wrap; }
  .spine-arrow { display: none; }
  .spine-card { min-width: 140px; }
}
@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid, .cap-grid, .table-grid, .stage-columns, .foundation-cols { grid-template-columns: 1fr; }
  .global-search { width: 170px; }
  .gs-results { width: 300px; right: 0; }
  .btn-primary span { display: none; }
  .btn-primary { padding: 0 11px; }
  .dict-thead { display: none; }
  .dict-row { grid-template-columns: 48px 1fr 22px; }
  .dr-domain, .dr-num, .dr-tags { display: none; }
  .page-head h1 { font-size: 21px; }
}

/* 钉钉直达入口 */
.portal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
.portal-link{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid #E5E9F2;border-radius:10px;
  background:#fff;text-decoration:none;color:inherit;transition:border-color .18s,box-shadow .18s,transform .18s;position:relative}
.portal-link:hover{border-color:#2E5BFF;box-shadow:0 6px 18px rgba(46,91,255,.10);transform:translateY(-1px)}
.portal-link svg{position:absolute;right:14px;top:14px;color:#8A94A6}
.portal-name{font-size:14px;font-weight:600;color:#1B2333;padding-right:22px}
.portal-desc{font-size:12px;color:#7A8497}
