/* ============================================================
   合规智图 ComplyMap — 样式（浅色 · 医药蓝绿）
   ============================================================ */
:root {
  --c-primary: #0b6e99;
  --c-primary-2: #0e8a9b;
  --c-teal: #13a89e;
  --c-ink: #1d2b36;
  --c-sub: #5b6b78;
  --c-line: #e3ebf0;
  --c-bg: #f3f7fa;
  --c-card: #ffffff;
  --c-green: #1f9d55;
  --c-amber: #d99500;
  --c-red: #d64545;
  --shadow: 0 2px 10px rgba(20, 60, 90, .07);
  --shadow-lg: 0 8px 28px rgba(20, 60, 90, .12);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--c-ink); background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
/* 登录判定前隐藏主区，避免刷新时静态顶栏(工作台/全员在线·主动合规)闪现一帧 */
body.app-loading .main { visibility: hidden; }
.sidebar {
  width: 248px; background: linear-gradient(180deg, #0b3d57, #0b6e99);
  color: #eaf4fa; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; background: #fff;
  color: var(--c-primary); display: grid; place-items: center;
  font-size: 24px; font-weight: 700; box-shadow: var(--shadow);
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.brand-sub { font-size: 12px; opacity: .7; letter-spacing: 2px; }

.nav { padding: 8px 12px; flex: 1; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: transparent; border: none; color: #d7ecf6;
  padding: 12px 14px; border-radius: 10px; font-size: 15px;
  text-align: left; margin-bottom: 4px; transition: .18s;
}
.nav-ico { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-item.active { background: #fff; color: var(--c-primary); font-weight: 600; border-left: 3px solid var(--c-primary); padding-left: 11px; }

/* 折叠分组（管理） */
.nav-group { margin: 2px 0; }
.nav-group-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: transparent; border: none; cursor: pointer; color: #d7ecf6; font-size: 15px; font-family: inherit; padding: 12px 14px; border-radius: 10px; margin-bottom: 4px; transition: .18s; text-align: left; }
.gh-label { display: flex; align-items: center; gap: 12px; }
.nav-group-head:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-group-caret { font-size: 11px; transition: transform .2s; }
.nav-group.open .nav-group-caret { transform: rotate(90deg); }
.nav-group-body { display: none; }
.nav-group.open .nav-group-body { display: block; }
.nav-sub { padding-left: 30px; font-size: 14px; }
.nav-sub.active { background: #fff; color: var(--c-primary); font-weight: 600; border-left: 3px solid var(--c-primary); padding-left: 27px; }

.sidebar-foot { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; }
.foot-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.20); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.foot-uinfo { min-width: 0; }
.foot-uname { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; }
.foot-ujob { color: rgba(255,255,255,.82); font-size: 12px; margin-top: 2px; }
.foot-stat { font-size: 14px; font-weight: 600; color: #fff; }
.foot-stat span { font-size: 22px; }
.foot-meta { opacity: .65; margin-top: 6px; line-height: 1.6; }

.mm-tabs { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.mm-tab { border: 1px solid var(--c-line); background: #fff; padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--c-sub); cursor: pointer; }
.mm-tab.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
/* 知识库搜索框（与 tab 同行） */
.mm-search { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.mm-search input { width: 260px; height: 38px; border: 1px solid var(--c-line); border-radius: 10px; padding: 0 14px; font-size: 14px; outline: none; background: var(--c-bg); }
.mm-search input:focus { border-color: var(--c-primary); background: #fff; }
.mm-search button { height: 38px; padding: 0 18px; border: none; border-radius: 10px; background: var(--c-primary); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.mm-search button:hover { background: #0a5f82; }
/* 知识库热门检索提示 */
.lib-hints { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--c-sub); margin-bottom: 14px; }
.lib-hints a { color: var(--c-primary); background: var(--c-bg); padding: 3px 11px; border-radius: 14px; cursor: pointer; border: 1px solid var(--c-line); }
.lib-hints a:hover { border-color: var(--c-primary); background: #e8f3f8; }

/* ---------- 主区 ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center; gap: 18px; padding: 0 26px;
  position: sticky; top: 0; z-index: 5;
}
.topbar-title { font-size: 18px; font-weight: 700; min-width: 120px; }
.topbar-user { font-size: 13px; color: var(--c-sub); display: flex; align-items: center; gap: 7px; margin-left: auto; }
.cloud-status { font-size: 12px; padding: 2px 9px; border-radius: 10px; white-space: nowrap; font-weight: 500; }
.cloud-status.cloud-ok { background: #e6f4ea; color: #137333; }
.cloud-status.cloud-sync { background: #fef7e0; color: #8a6d00; }
.cloud-status.cloud-off { background: #fce8e6; color: #a50e0e; }
.cloud-status.cloud-local { background: #f1f3f4; color: #5f6368; }
.topbar-brand { display: flex; align-items: center; gap: 12px; margin-right: 18px; }
.topbar-brand .brand-logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--c-primary), var(--c-teal)); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.topbar-brand .brand-name { font-size: 17px; font-weight: 700; color: var(--c-ink); line-height: 1.2; }
.topbar-brand .brand-sub { font-size: 11px; color: var(--c-sub); letter-spacing: 1.5px; }
.dot-online { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 3px rgba(31,157,85,.2); }

.view { padding: 28px; max-width: 1240px; width: 100%; }

/* ---------- 通用卡片 ---------- */
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; }
.section-head p { color: var(--c-sub); font-size: 13px; margin-top: 4px; }

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(120deg, #0b6e99, #13a89e);
  color: #fff; border-radius: 18px; padding: 34px 36px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; margin-bottom: 26px;
}
.hero::after {
  content: "⚕"; position: absolute; right: 24px; top: -10px; font-size: 150px;
  opacity: .08; transform: rotate(-12deg);
}
.hero h1 { font-size: 27px; margin-bottom: 14px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span { background: rgba(255,255,255,.18); padding: 7px 14px; border-radius: 20px; font-size: 13px; }
.hero-cta { margin-top: 22px; display: flex; gap: 14px; }
.hero-cta button {
  border: none; border-radius: 10px; padding: 12px 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-white { background: #fff; color: var(--c-primary); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-white:hover, .btn-ghost:hover { transform: translateY(-2px); }
.btn-white:active, .btn-ghost:active { transform: translateY(0); }
/* 主推按钮：强调「查看我的岗位风险」，加白色光晕突出 */
.btn-emph { box-shadow: 0 8px 22px rgba(255,255,255,.4); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4) !important; }

/* 工作台模式：三入口按钮同一行 */
.workbench-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 36px; }
.workbench-hero .wb-hero-main { flex: 1; min-width: 260px; }
.workbench-hero .wb-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.workbench-hero .wb-hero-actions button { white-space: nowrap; }

/* 首页三大入口卡片 */
.wb-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 4px; }
.wb-entry {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--c-line); background: #fff; border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.wb-entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--c-primary); }
.wb-entry .wbe-ico { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-size: 24px; color: #fff; }
.wb-entry-risk .wbe-ico { background: linear-gradient(135deg, #0b6e99, #13a89e); }
.wb-entry-lib .wbe-ico { background: linear-gradient(135deg, #1f9d55, #13a89e); }
.wb-entry-adm .wbe-ico { background: linear-gradient(135deg, #d99500, #e0a106); }
.wb-entry .wbe-main { flex: 1; min-width: 0; }
.wb-entry .wbe-title { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.wb-entry .wbe-desc { font-size: 12.5px; color: var(--c-sub); margin-top: 4px; line-height: 1.6; }
.wb-entry .wbe-arrow { font-size: 26px; color: var(--c-sub); flex: 0 0 auto; transition: transform .16s ease, color .16s ease; }
.wb-entry:hover .wbe-arrow { transform: translateX(4px); color: var(--c-primary); }

/* 管理模块总览 */
.adm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* 云端同步设置面板 */
.cloud-panel {
  margin-top: 18px; border: 1px solid var(--c-line); background: #fff;
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.cloud-panel-h { font-size: 14px; font-weight: 700; color: var(--c-text); margin-bottom: 10px; }
.cloud-panel-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cloud-input {
  flex: 1 1 320px; min-width: 240px; height: 34px; padding: 0 10px;
  border: 1px solid var(--c-line); border-radius: 6px; font-size: 13px; color: var(--c-text);
}
.cloud-input:focus { outline: none; border-color: var(--c-primary); }
.cloud-btn {
  height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--c-primary);
  background: var(--c-primary); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cloud-btn.ghost { background: #fff; color: var(--c-primary); }
.cloud-btn:hover { opacity: .88; }
.cloud-panel-tip { margin-top: 10px; font-size: 12px; color: var(--c-sub); line-height: 1.7; }
.cloud-panel-result { margin-top: 8px; font-size: 13px; color: var(--c-text); }
.adm-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--c-line); background: #fff; border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.adm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--c-primary); }
.adm-ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, var(--c-primary), var(--c-teal)); color: #fff; }
.adm-main { flex: 1; min-width: 0; }
.adm-t { font-size: 15px; font-weight: 700; color: var(--c-ink); }
.adm-d { font-size: 12.5px; color: var(--c-sub); margin-top: 3px; line-height: 1.6; }
.adm-arrow { font-size: 24px; color: var(--c-sub); flex: 0 0 auto; }
.adm-card:hover .adm-arrow { color: var(--c-primary); }

@media (max-width: 880px) {
  .wb-entries, .adm-grid { grid-template-columns: 1fr; }
}

/* 返回首页按钮条 */
.back-bar { margin-bottom: 18px; }
.back-bar button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--c-line); background: #fff; color: var(--c-primary); border-radius: 10px; padding: 8px 16px; font-size: 13px; font-weight: 600; transition: .15s; }
.back-bar button:hover { background: var(--c-bg); border-color: var(--c-primary); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0; }
.kpi { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.kpi .num { font-size: 30px; font-weight: 700; color: var(--c-primary); }
.kpi .lab { font-size: 13px; color: var(--c-sub); margin-top: 4px; }
.kpi .sub { font-size: 12px; color: var(--c-teal); margin-top: 6px; }

.value-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.value { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.value .ve { font-size: 30px; margin-bottom: 8px; }
.value h4 { font-size: 15px; margin-bottom: 6px; }
.value p { font-size: 12px; color: var(--c-sub); line-height: 1.6; }

/* ---------- 法规库 ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.chip {
  border: 1px solid var(--c-line); background: #fff; color: var(--c-sub);
  padding: 7px 14px; border-radius: 20px; font-size: 13px; transition: .15s;
}
.chip:hover { border-color: var(--c-primary); }
.chip.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.sort-sel { margin-left: auto; height: 36px; border: 1px solid var(--c-line); border-radius: 10px; padding: 0 12px; background: #fff; font-size: 13px; }

.reg-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
/* 主题导图 tab：容器改回块级，避免 SVG 被挤压成半宽而只显示一部分 */
.reg-list.mm-mode { display: block; }
/* 主题导图（XMind 风格交互式）：容器需固定高度供导图测量与拖拽缩放 */
.mm-phase { display: block; }
#mmWrap { width: 100%; height: 72vh; min-height: 480px; background: #fafbfc; border: 1px solid #e3e9ee; border-radius: 12px; overflow: hidden; }
.mm-toolbar-wrap { margin-bottom: 10px; }
.mm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-toolbar-spacer { flex: 1; }
.btn-chip { padding: 6px 14px; border: 1px solid #cfe0e9; background: #fff; color: #0b6e99; border-radius: 18px; font-size: 13px; cursor: pointer; transition: .15s; }
.btn-chip:hover { background: #eaf6fb; border-color: #0b6e99; }
.mm-tip { font-size: 12px; color: #5b6b78; margin: 8px 0 0; line-height: 1.6; }
.reg-card { border: 1px solid var(--c-line); border-radius: 12px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow); transition: .15s; cursor: pointer; }
.reg-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--c-primary); }
.reg-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.reg-card h3 { font-size: 15px; line-height: 1.4; }
.reg-card .meta { font-size: 12px; color: var(--c-sub); margin: 8px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.reg-card .summary { font-size: 12.5px; color: var(--c-sub); line-height: 1.6; }
.tag-row { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; background: var(--c-bg); color: var(--c-sub); padding: 3px 8px; border-radius: 6px; }

/* ---------- 内部制度卡片（法规与制度中心 tab） ---------- */
.ir-card { border: 1px solid var(--c-line); border-radius: 12px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow); transition: .15s; cursor: pointer; }
.ir-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--c-primary); }
.ir-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ir-card h3 { font-size: 15px; line-height: 1.4; }
.ir-card .meta { font-size: 12px; color: var(--c-sub); margin: 8px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.ir-card .summary { font-size: 12.5px; color: var(--c-sub); line-height: 1.6; }
.ir-redlines { margin: 10px 0 0; padding-left: 18px; font-size: 12px; color: var(--c-text); line-height: 1.7; }
.ir-redlines li.more { color: var(--c-sub); list-style: none; margin-left: -18px; font-size: 11.5px; }
.ir-detail-redlines { margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--c-text); }
.ir-detail-redlines li b { color: var(--c-primary); margin-right: 4px; }

.badge-status { font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.st-有效 { background: #eafaf0; color: var(--c-green); }
.st-即将失效 { background: #fff6e0; color: var(--c-amber); }
.st-作废 { background: #fdeaea; color: #d64545; }
.type-pill { font-size: 11px; background: #e8f3f8; color: var(--c-primary); padding: 3px 8px; border-radius: 6px; }

/* ---------- 思维导图 ---------- */
.mm-wrap { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); overflow-x: auto; }
.mm-wrap svg { display: block; }

/* 双轴矩阵 */
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.matrix th, .matrix td { border: 1px solid var(--c-line); padding: 10px; text-align: center; }
.matrix thead th { background: #eef6fa; color: var(--c-primary); font-weight: 600; position: sticky; top: 0; }
.matrix tbody th { background: #eef6fa; color: var(--c-primary); font-weight: 600; text-align: left; white-space: nowrap; }
.matrix .cell { cursor: pointer; transition: .15s; border-radius: 6px; }
.matrix .cell:hover { background: #f0f9ff; }
.cell-num { font-size: 16px; font-weight: 700; }
.cell-num.has { color: var(--c-red); }
.cell-zero { color: #c2cdd4; }

/* ---------- 风险快查 ---------- */
.risk-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.job-list { display: flex; flex-direction: column; gap: 8px; }
.job-btn { border: 1px solid var(--c-line); background: #fff; padding: 12px 14px; border-radius: 10px; text-align: left; transition: .15s; }
.job-btn:hover { border-color: var(--c-primary); }
.job-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.job-btn .jn { font-size: 14px; font-weight: 600; }
.job-btn .jd { font-size: 11px; opacity: .7; margin-top: 3px; }
.risk-panel { min-height: 300px; }
.risk-timer { font-size: 13px; color: var(--c-sub); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.risk-timer b { color: var(--c-teal); font-size: 15px; }
.risk-card { border: 1px solid var(--c-line); border-left: 4px solid var(--c-sub); border-radius: 10px; padding: 14px 16px; background: #fff; margin-bottom: 12px; box-shadow: var(--shadow); }
.risk-card.lv-高 { border-left-color: var(--c-red); }
.risk-card.lv-中 { border-left-color: var(--c-amber); }
.risk-card.lv-低 { border-left-color: var(--c-green); }
.risk-card .rh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.risk-card h4 { font-size: 15px; }
.risk-card .stage { font-size: 12px; color: var(--c-sub); background: var(--c-bg); padding: 3px 9px; border-radius: 6px; }
.risk-card p { font-size: 13px; color: var(--c-sub); line-height: 1.7; margin: 8px 0; }
.lv-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.lv-badge.lv-高 { background: #fdeaea; color: var(--c-red); }
.lv-badge.lv-中 { background: #fff6e0; color: var(--c-amber); }
.lv-badge.lv-低 { background: #eafaf0; color: var(--c-green); }
.ref-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ref-link { font-size: 11px; color: var(--c-primary); background: #e8f3f8; padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.ref-link:hover { text-decoration: underline; }

/* ---------- 预警 ---------- */
.alert-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 18px; }
.alert-box { border-radius: var(--radius); padding: 18px 20px; color: #fff; box-shadow: var(--shadow); }
.alert-box.g { background: linear-gradient(120deg,#1f9d55,#13a89e); }
.alert-box.a { background: linear-gradient(120deg,#e0a106,#f0b94a); }
.alert-box.r { background: linear-gradient(120deg,#d64545,#e96a6a); }
.alert-box .n { font-size: 32px; font-weight: 700; }
.alert-box .l { font-size: 13px; opacity: .95; margin-top: 4px; }
.timeline { list-style: none; }
.timeline li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--c-line); }
.tl-date { font-size: 13px; font-weight: 600; color: var(--c-primary); min-width: 96px; }
.tl-body { font-size: 13px; color: var(--c-sub); }
.tl-body b { color: var(--c-ink); }

/* ---------- 详情弹层 ---------- */

/* ---------- 详情弹层 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,40,55,.45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 86vh; overflow: auto; padding: 26px; box-shadow: var(--shadow-lg); transition: max-width .22s ease, max-height .22s ease; }
.modal h2 { font-size: 19px; margin-bottom: 12px; }
.modal .m-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.modal .m-sec { font-size: 13px; color: var(--c-sub); line-height: 1.8; margin-bottom: 10px; }
.modal .m-sec b { color: var(--c-ink); }
.modal-close { margin-top: 16px; width: 100%; height: 40px; border: none; border-radius: 10px; background: var(--c-primary); color: #fff; font-weight: 600; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 10px 0 12px; }
.modal-head h2 { margin: 0; flex: 1; font-size: 19px; line-height: 1.35; }
.modal-expand { flex: none; width: 34px; height: 34px; border: 1px solid #e3e9f2; background: #fff; border-radius: 8px; cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--c-sub); transition: .15s; }
.modal-expand:hover { background: #f7f9fc; color: var(--c-ink); border-color: #ccd6e3; }
.modal-expand svg { display: block; }
/* 展开态：接近全屏，宽屏下用 1200px 封顶避免一行过长；小屏按 92vw 自适应 */
.modal.modal-expanded { max-width: min(92vw, 1200px); max-height: 92vh; }
.modal.modal-expanded .m-sec { font-size: 14px; }

.empty { text-align: center; color: var(--c-sub); padding: 40px; font-size: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .kpi-row, .value-grid { grid-template-columns: repeat(2,1fr); }
  .reg-list, .alert-summary { grid-template-columns: 1fr; }
  .risk-layout { grid-template-columns: 1fr; }
  .sidebar { width: 200px; }
}

/* ================= 新增模块样式 ================= */

/* 风险预警看板 */
.warn-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 18px; }
.warn-card { border-radius: var(--radius); padding: 18px 20px; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; cursor: pointer; }
.warn-card.a { background: linear-gradient(120deg,#e0a106,#f0b94a); }
.warn-card.b { background: linear-gradient(120deg,#d64545,#e96a6a); }
.warn-card.c { background: linear-gradient(120deg,#0b6e99,#13a89e); }
.warn-card .wn { font-size: 30px; font-weight: 700; }
.warn-card .wl { font-size: 13px; opacity: .95; margin-top: 4px; }
.warn-card .wsub { font-size: 12px; opacity: .85; margin-top: 8px; }
.warn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* 资产总览小卡 */
.asset-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 8px; }

/* AI 小助理浮窗 */
.assistant-fab {
  position: fixed; right: 26px; bottom: 26px; width: 72px; height: 72px; border-radius: 50%;
  border: none; background: transparent; padding: 0; overflow: visible;
  z-index: 60; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.assistant-fab:active { cursor: grabbing; }
.fab-char-wrap {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  overflow: hidden; will-change: transform;
  transition: transform .25s cubic-bezier(.25,.8,.25,1);
  transform: rotate(var(--r,0deg)) translate(var(--tx,0px), var(--ty,0px)) scale(var(--sc,1));
}
.fab-char {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%;
  display: block; pointer-events: none;
}

/* 呼吸 idle 动画 */
@keyframes fabBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.assistant-fab.idle .fab-char-wrap {
  animation: fabBreathe 2.4s ease-in-out infinite;
}
.assistant-panel {
  position: fixed; right: 26px; bottom: 92px; width: 380px; max-width: calc(100vw - 40px); height: 540px; max-height: calc(100vh - 120px);
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; z-index: 61; overflow: hidden;
}
.assistant-panel.show { display: flex; }
/* 对话框手动调整大小手柄（左上角，nw 方向） */
.asst-resize {
  position: absolute; top: 0; left: 0; width: 18px; height: 18px; z-index: 3;
  cursor: nwse-resize; touch-action: none; border-top-left-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0) 0 46%, rgba(19,168,158,.65) 46% 54%, rgba(255,255,255,0) 54% 100%),
    linear-gradient(135deg, rgba(255,255,255,0) 0 60%, rgba(19,168,158,.4) 60% 68%, rgba(255,255,255,0) 68% 100%);
}
.asst-resize:hover { background:
    linear-gradient(135deg, rgba(255,255,255,0) 0 42%, rgba(11,110,153,.9) 42% 50%, rgba(255,255,255,0) 50% 100%),
    linear-gradient(135deg, rgba(255,255,255,0) 0 58%, rgba(11,110,153,.6) 58% 66%, rgba(255,255,255,0) 66% 100%); }
.asst-head { background: linear-gradient(120deg,#0b6e99,#13a89e); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.asst-head .at { font-size: 15px; font-weight: 700; }
.asst-head .ah-actions { display: flex; align-items: center; gap: 8px; }
.asst-head .ah-btn { background: rgba(255,255,255,.18); border: none; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.asst-head .ah-btn:hover { background: rgba(255,255,255,.32); }
.asst-head .ax { background: rgba(255,255,255,.2); border: none; color: #fff; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.asst-body { flex: 1; overflow: auto; padding: 14px; background: var(--c-bg); }
.asst-msg { margin-bottom: 12px; }
.asst-msg.user { text-align: right; }
.asst-bubble { display: inline-block; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.6; max-width: 88%; text-align: left; }
.asst-msg.user .asst-bubble { background: var(--c-primary); color: #fff; border-bottom-right-radius: 3px; }
.asst-msg.bot .asst-bubble { background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 3px; }
.asst-foot { padding: 10px; border-top: 1px solid var(--c-line); display: flex; gap: 8px; background: #fff; }
.asst-foot input { flex: 1; height: 38px; border: 1px solid var(--c-line); border-radius: 10px; padding: 0 12px; font-size: 13px; outline: none; }
.asst-foot input:focus { border-color: var(--c-primary); }
.asst-foot button { height: 38px; padding: 0 16px; border: none; border-radius: 10px; background: var(--c-primary); color: #fff; font-weight: 600; }
.asst-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; background: #fff; }
.asst-quick span { font-size: 11px; background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-sub); padding: 4px 9px; border-radius: 14px; cursor: pointer; }
.asst-quick span:hover { border-color: var(--c-primary); color: var(--c-primary); }
.asst-ai-note { font-size: 11px; color: var(--c-teal); margin-bottom: 4px; }
.asst-ai-ref { font-size: 11px; color: var(--c-teal); font-weight: 700; margin: 10px 0 2px; }
/* AI 回答正文中的可点击引用（防幻觉·跳转原文复核） */
.asst-cite { color: var(--c-primary); background: #eef4ff; border-bottom: 1px solid #9db8e8; padding: 0 3px; border-radius: 4px; cursor: pointer; text-decoration: none; font-weight: 600; white-space: nowrap; }
.asst-cite:hover { background: #dce8ff; }
.asst-cite-kb { color: #8a5a00; background: #fff5e0; border-bottom-color: #e0c070; }
.asst-cite-kb:hover { background: #ffeecc; }
/* 引用跳转后的原文高亮闪动（法规全文 / 制度红线 / 问答库条目共用） */
.cite-flash { animation: citeFlash 1.6s ease; }
@keyframes citeFlash {
  0% { box-shadow: 0 0 0 0 rgba(58,110,235,0); background: transparent; }
  18% { box-shadow: 0 0 0 5px rgba(58,110,235,.5); background: rgba(58,110,235,.12); }
  100% { box-shadow: 0 0 0 0 rgba(58,110,235,0); background: transparent; }
}

/* 结构化答案卡片 */
.ans-card { border: 1px solid var(--c-line); border-radius: 10px; padding: 12px 14px; background: #fff; margin-top: 8px; font-size: 13px; }
.ans-verdict { display: inline-block; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 8px; }
.ans-verdict.can-yes { background: #eafaf0; color: var(--c-green); }
.ans-verdict.can-maybe { background: #fff6e0; color: var(--c-amber); }
.ans-verdict.can-no { background: #fdeaea; color: var(--c-red); }
.ans-card .row { margin: 6px 0; line-height: 1.7; }
.ans-card .row b { color: var(--c-ink); }
.ans-refs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ans-refs .rf { font-size: 11px; background: #e8f3f8; color: var(--c-primary); padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.ans-graph { font-size: 11px; background: #fff6e0; color: var(--c-amber); padding: 3px 8px; border-radius: 6px; display: inline-block; margin-top: 4px; }

/* 法规库多维筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-group .fg-lab { font-size: 12px; color: var(--c-sub); font-weight: 600; }
.filter-group select { height: 34px; border: 1px solid var(--c-line); border-radius: 8px; padding: 0 8px; font-size: 12px; background: #fff; }

/* 新旧对照高亮 */
.diff-box { border: 1px solid var(--c-line); border-radius: 10px; background: #fff; padding: 14px 16px; margin-top: 10px; font-size: 13px; line-height: 1.9; }
.diff-old { background: #fdeaea; color: #b23030; text-decoration: line-through; padding: 1px 3px; border-radius: 4px; }
.diff-new { background: #eafaf0; color: #157a40; padding: 1px 3px; border-radius: 4px; font-weight: 600; }
.diff-title { font-size: 13px; font-weight: 700; color: var(--c-sub); margin: 6px 0; }
.diff-title .diff-del { color: #b23030; font-weight: 600; }
.diff-title .diff-new { background: none; padding: 0; font-weight: 600; }
.diff-title .diff-mod-t { color: #c47f00; font-weight: 600; }
/* AI 结构化差异：变更摘要 + 增/删/改列表（红=删除/旧版、绿=新增/新版、琥珀=修改） */
.diff-summary { background: #f7f9fc; border: 1px solid #e3e9f2; border-radius: 8px; padding: 10px 12px; margin: 8px 0 10px; }
.diff-summary-many { background: #fff8ec; border-color: #f3e2c0; }
.diff-summary-h { font-size: 12px; font-weight: 700; color: var(--c-sub); margin-bottom: 4px; }
.diff-summary-b { font-size: 13px; color: #36404a; line-height: 1.8; }
.diff-list { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.diff-item { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-radius: 7px; font-size: 13px; line-height: 1.6; }
.diff-item .diff-tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; margin-top: 1px; }
.diff-item .diff-text { flex: 1; }
.diff-add { background: #eafaf0; }
.diff-add .diff-tag { background: #157a40; color: #fff; }
.diff-del { background: #fdeaea; }
.diff-del .diff-tag { background: #b23030; color: #fff; }
.diff-mod { background: #fff5e6; }
.diff-mod .diff-tag { background: #c47f00; color: #fff; }
.diff-raw { margin-top: 8px; font-size: 12px; color: var(--c-sub); }
.diff-raw summary { cursor: pointer; user-select: none; }
.diff-rebtn { font-size: 11px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.diff-ai-action { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 新旧对照「人工修正」：AI 结果可改写（摘要可编辑、条目可改类型/删/增） */
/* .btn-ghost 是为深色 banner 设计的（白字白边），在白色弹窗里会隐形，这里强制覆盖为浅色按钮 */
.diff-editbtn, .diff-rebtn { background: #fff !important; color: var(--c-primary) !important; border: 1px solid #b9d4f0 !important; border-radius: 6px; cursor: pointer; }
.diff-editbtn:hover, .diff-rebtn:hover { background: #f0f6ff !important; transform: none; }
.diff-editbtn { font-size: 11px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.diff-box.diff-editing { border-color: #b9d4f0; background: #fbfdff; }
.diff-edit-tip { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: #7b8794; line-height: 1.5; }
.diff-edit-field { margin: 10px 0; }
.diff-edit-lab { display: block; font-size: 12px; font-weight: 700; color: var(--c-sub); margin-bottom: 5px; }
.diff-edit-summary { width: 100%; min-height: 68px; resize: vertical; padding: 8px 10px; border: 1px solid #dbe3ee; border-radius: 8px; font-size: 13px; line-height: 1.7; font-family: inherit; color: var(--c-ink); background: #fff; box-sizing: border-box; }
.diff-edit-summary:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(11,110,153,.1); }
.diff-edit-list { display: flex; flex-direction: column; gap: 7px; }
.diff-edit-item { display: flex; gap: 7px; align-items: center; }
.diff-edit-item .diff-edit-type { flex: 0 0 auto; width: auto; height: 32px; padding: 0 6px; border: 1px solid #dbe3ee; border-radius: 7px; background: #fff; font-size: 12px; color: var(--c-ink); }
.diff-edit-item .diff-edit-text { flex: 1 1 0%; width: auto; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid #dbe3ee; border-radius: 7px; font-size: 13px; color: var(--c-ink); background: #fff; box-sizing: border-box; }
.diff-edit-item .diff-edit-text:focus, .diff-edit-item .diff-edit-type:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(11,110,153,.1); }
.diff-edit-del { flex: 0 0 auto; width: 30px; height: 32px; border: 1px solid #f0d4d4; background: #fff; border-radius: 7px; color: #b23030; cursor: pointer; font-size: 13px; line-height: 1; }
.diff-edit-del:hover { background: #fdeaea; border-color: #e8bcbc; }
.diff-edit-add { margin-top: 8px; }
.diff-edit-actions { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #dbe3ee; display: flex; gap: 8px; }
/* 修订状态标签（已修订） */
.rev-pill { background: transparent !important; color: #d9740a !important; border: none !important; padding-left: 0; }
/* 编辑表单：新旧对照两栏 + AI 比对 */
.rs-diff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-diff-row textarea { width: 100%; font-size: 12px; line-height: 1.6; padding: 8px; border: 1px solid var(--c-line); border-radius: 8px; resize: vertical; }
.rs-diff-actions { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#rfDiffPreview .diff-box { margin-top: 10px; }

/* 双轴导图工作台 */
.wb-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
.wb-nodes { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; padding-right: 4px; }
.wb-node { border: 1px solid var(--c-line); background: #fff; padding: 12px 14px; border-radius: 10px; cursor: pointer; transition: .15s; box-shadow: var(--shadow); }
.wb-node:hover { border-color: var(--c-primary); }
.wb-node.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.wb-node .wn-t { font-size: 14px; font-weight: 600; }
.wb-node .wn-s { font-size: 11px; opacity: .7; margin-top: 3px; }
.wb-detail { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; padding: 18px; box-shadow: var(--shadow); min-height: 400px; }
.wb-detail h3 { font-size: 17px; margin-bottom: 4px; }
.wb-sec { margin: 14px 0 8px; }
.wb-sec .h { font-size: 13px; font-weight: 700; color: var(--c-primary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.wb-list { display: flex; flex-direction: column; gap: 8px; }
.wb-item { border: 1px solid var(--c-line); border-left: 3px solid var(--c-teal); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.wb-item.red { border-left-color: var(--c-red); }
.wb-item.risk { border-left-color: var(--c-amber); }
.wb-item .wt { font-weight: 600; }
.wb-item .wd { color: var(--c-sub); font-size: 12px; margin-top: 3px; line-height: 1.6; }

/* 推送日志 */
.push-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.push-table th, .push-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; }
.push-table th { background: #eef6fa; color: var(--c-primary); font-weight: 600; }
.push-table tr:last-child td { border-bottom: none; }
.push-status { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.ps-pushed { background: #fff6e0; color: var(--c-amber); }
.ps-read { background: #eafaf0; color: var(--c-green); }
.ps-part { background: #e8f4fd; color: #1a7fb8; }
.ps-none { background: #eef1f4; color: #8a9aa6; }
.ps-unread { background: #fdecec; color: var(--c-red); }
/* 首页推送记录：固定高度（约 5 条），超出出现滚动条；表头吸顶 */
.push-scroll { height: 270px; overflow-y: auto; }
.push-scroll .push-table thead th { position: sticky; top: 0; z-index: 1; }
/* 法规预警时间轴：固定高度（约 3 条），超出出现滚动条 */
.tl-scroll { height: 210px; overflow-y: auto; padding-right: 8px; }
.push-jobs { display: flex; gap: 5px; flex-wrap: wrap; }
.pj { font-size: 11px; background: var(--c-bg); color: var(--c-sub); padding: 2px 8px; border-radius: 6px; }
.pj.read { background: #eafaf0; color: var(--c-green); }

/* 我的合规视图 */
.myview-head { background: linear-gradient(120deg,#0b6e99,#13a89e); color: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.myview-head .mv-name { font-size: 18px; font-weight: 700; }
.myview-head .mv-sub { font-size: 13px; opacity: .92; margin-top: 4px; }
.myview-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
/* 岗位风险头部 · 打开双轴导图按钮（白色胶囊） */
.myview-head .btn-map {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #0b6e99;
  border: none; border-radius: 999px;
  padding: 10px 20px 10px 18px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.myview-head .btn-map .bm-ico { font-size: 15px; line-height: 1; }
.myview-head .btn-map .bm-arrow { font-size: 14px; line-height: 1; opacity: .7; transition: transform .16s ease, opacity .16s ease; }
.myview-head .btn-map:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.26); background: #f2fdfb; }
.myview-head .btn-map:hover .bm-arrow { transform: translateX(3px); opacity: 1; }
.myview-head .btn-map:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.myview-tabs .mt { border: 1px solid var(--c-line); background: #fff; padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--c-sub); }
.myview-tabs .mt.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

@media (max-width: 980px) {
  .warn-board, .asset-row { grid-template-columns: 1fr; }
  .wb-layout { grid-template-columns: 1fr; }
  /* 对话框尺寸由 JS applyAsstPos 统一控制(userSize + 视口约束)，此处不再写死 70vh */
  .mm-search input { min-width: 160px; }
}

/* ===== 本轮优化新增样式 ===== */

/* 章节标题左边线 */
.section-head h2 { position:relative; padding-left:13px; }
.section-head h2::before { content:""; position:absolute; left:0; top:3px; bottom:3px; width:4px; border-radius:3px; background:linear-gradient(180deg,var(--c-primary),var(--c-teal)); }

/* KPI 图标 */
.kpi .ki { font-size:22px; margin-bottom:6px; }

/* 双轴矩阵 */
.wb-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.wb-bar-lab { font-size:13px; color:var(--c-sub); font-weight:600; }
.wb-matrix-wrap { overflow-x:auto; padding-bottom:6px; }
.wb-matrix { min-width:780px; }
.wb-matrix .mh-corner { background:#0b3d57; color:#fff; font-size:13px; white-space:nowrap; }
.wb-matrix td.mcell { cursor:pointer; }
.mcell b { font-size:15px; }
.mcell.cell-高 { background:#fdeaea; }
.mcell.cell-高:hover { background:#fbdada; }
.mcell.cell-中 { background:#fff6e0; }
.mcell.cell-中:hover { background:#ffedc2; }
.mcell.cell-低 { background:#eafaf0; }
.mcell.cell-低:hover { background:#d8f3e2; }
.mcell.cell-empty { background:#fafcfd; }
.mcell .ch { font-size:12px; margin-left:3px; }
.mcell .ch0 { color:#c2cdd4; }
.mcell.sel { outline:3px solid var(--c-primary); outline-offset:-3px; }

/* 核心条款原文框 */
.clause-box { margin-top:6px; padding:12px 14px; background:#f3f8fb; border-left:3px solid var(--c-primary); border-radius:8px; font-size:13px; line-height:1.85; color:var(--c-ink); }

/* 关联导图可点击 */
.ans-graph { cursor:pointer; font-weight:600; }
.ans-graph:hover { text-decoration:underline; }

/* 小助理"正在思考"气泡 */
.asst-think { display:flex; align-items:center; gap:8px; color:var(--c-sub); }
.dot-pulse { width:7px; height:7px; border-radius:50%; background:var(--c-primary); display:inline-block; animation:pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:.3; transform:scale(.8);} 50%{opacity:1; transform:scale(1.25);} }

/* ---------- 法规思维导图弹窗 ---------- */
.mm-modal { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; }
.mm-modal.hidden { display:none !important; }
.mm-modal-backdrop { position:absolute; inset:0; background:rgba(16,35,48,.55); }
.mm-modal-content { position:relative; width:94vw; height:92vh; background:#fff; border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.25); display:flex; flex-direction:column; overflow:hidden; }
.mm-modal-head { flex:0 0 auto; height:56px; display:flex; align-items:center; justify-content:space-between; padding:0 18px; background:linear-gradient(120deg,var(--c-primary),var(--c-teal)); color:#fff; }
.mm-modal-head h3 { margin:0; font-size:16px; font-weight:600; }
.mm-modal-actions { display:flex; gap:8px; align-items:center; }
.mm-modal-actions button { border:none; background:rgba(255,255,255,.18); color:#fff; padding:5px 12px; border-radius:6px; font-size:12px; }
.mm-modal-actions button:hover { background:rgba(255,255,255,.3); }
.mm-modal-actions .mm-close { width:28px; height:28px; padding:0; font-size:18px; line-height:28px; border-radius:50%; }
.mm-modal-actions .mm-export-btn { background:#fff; color:var(--c-primary); font-weight:600; }
.mm-modal-actions .mm-export-btn:hover { background:#eef6ff; }
/* AI 自动提炼状态角标（只读，非按钮） */
.mm-modal-actions .mm-ai-status {
  display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:6px;
  font-size:12px; font-weight:600; background:rgba(255,255,255,.18); color:#fff;
  border:1px solid rgba(255,255,255,.35); cursor:default;
}
.mm-modal-actions .mm-ai-status::before {
  content:""; width:8px; height:8px; border-radius:50%; background:#ffd166;
  animation:mm-ai-blink 1s ease-in-out infinite;
}
@keyframes mm-ai-blink { 0%,100% { opacity:1; } 50% { opacity:.25; } }
.mm-modal-body { flex:1 1 auto; position:relative; overflow:hidden; background:#f5f8fa; }
.mm-modal-tip { position:absolute; left:14px; bottom:12px; z-index:5; font-size:11px; color:var(--c-sub); background:rgba(255,255,255,.9); padding:5px 10px; border-radius:6px; pointer-events:none; }

/* ---------- 法规全文查看弹窗 ---------- */
.m-actions { margin-top:14px; }
.m-actions:empty { margin-top:0; }
.btn-fulltext { border:none; background:linear-gradient(120deg,var(--c-primary),var(--c-teal)); color:#fff; padding:9px 20px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; box-shadow:0 3px 10px rgba(11,110,153,.25); transition:.15s; }
.btn-fulltext:hover { transform:translateY(-1px); box-shadow:0 5px 14px rgba(11,110,153,.35); }
/* 法规详情页 AI 一键总结按钮 + 总结面板 */
.btn-ai-sum { margin-left:10px; background:linear-gradient(120deg,#f0883e,#e8590c); box-shadow:0 3px 10px rgba(224,89,12,.22); }
.btn-ai-sum:hover { box-shadow:0 5px 14px rgba(224,89,12,.34); }
/* AI 一键总结按钮：橙黄背景上把星星 emoji 强制转为纯白，避免与背景同色 */
.btn-ai-sum .ai-ico { filter: brightness(0) invert(1); }
/* 详情页未导入全文时的一键导入入口（与查看全文同款按钮，浅色描边区分） */
.ai-sum-wrap { margin-top:14px; }
.ft-missing-hint { font-size:12px; color:var(--c-sub); padding:6px 10px; background:#faf7f2; border:1px dashed #e4d8c4; border-radius:8px; margin-left:8px; }
.ai-sum-wrap.hidden { display:none; }
.ai-sum-think { font-size:13px; color:var(--c-sub); padding:12px 14px; background:#fff7f0; border:1px solid #ffe2cc; border-radius:10px; display:flex; align-items:center; gap:8px; }
.ai-sum-head { font-size:14px; font-weight:700; color:#e8590c; margin-bottom:6px; }
.ai-sum-src { font-size:12px; font-weight:500; color:var(--c-sub); }
.ai-sum-body { font-size:13.5px; line-height:1.85; color:var(--c-ink); background:#fffaf5; border:1px solid #ffe9d6; border-radius:10px; padding:14px 16px; }
.ai-sum-body b { color:#c2410c; }
.ai-sum-err { font-size:13px; color:#b42318; background:#fff4f3; border:1px solid #ffd0cb; border-radius:10px; padding:12px 14px; line-height:1.7; }
/* 结合岗位的重点关注建议：单独高亮成一块，方便用户第一时间聚焦 */
.ai-sum-focus { margin-top:12px; background:linear-gradient(120deg,#eef4ff,#f5f0ff); border:1px solid #c9d8ff; border-radius:10px; padding:12px 16px; }
.ai-sum-focus-h { font-size:13.5px; font-weight:700; color:#5b4bc4; margin-bottom:6px; }
.ai-sum-focus-b { font-size:13.5px; line-height:1.85; color:var(--c-ink); }
.ai-sum-focus-b b { color:#5b4bc4; }
.ai-sum-foot { margin-top:10px; font-size:13px; color:#3b5168; background:#f3f7fb; border:1px solid #dbe6f0; border-radius:10px; padding:10px 14px; line-height:1.7; }
.ai-sum-foot b { color:#1f6f9c; }
.ft-modal-content { position:relative; width:96vw; height:94vh; background:#fff; border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.25); display:flex; flex-direction:column; overflow:hidden; }
.ft-modal-head { flex:0 0 auto; height:58px; display:flex; align-items:center; justify-content:space-between; padding:0 18px; background:linear-gradient(120deg,var(--c-primary),var(--c-teal)); color:#fff; gap:12px; }
.ft-title-wrap { display:flex; flex-direction:column; min-width:0; }
.ft-title-wrap h3 { margin:0; font-size:16px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ft-sub { font-size:11px; opacity:.85; max-width:46vw; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ft-modal-actions { display:flex; gap:8px; align-items:center; }
.ft-search { display:flex; gap:6px; align-items:center; background:rgba(255,255,255,.16); border-radius:8px; padding:4px 6px; }
.ft-search input { border:none; background:transparent; color:#fff; outline:none; font-size:12px; width:150px; }
.ft-search input::placeholder { color:rgba(255,255,255,.7); }
.ft-search button { border:none; background:rgba(255,255,255,.25); color:#fff; padding:4px 10px; border-radius:6px; font-size:12px; cursor:pointer; }
.ft-size { display:flex; gap:4px; }
.ft-size button { border:none; background:rgba(255,255,255,.18); color:#fff; width:30px; height:26px; border-radius:6px; font-size:12px; cursor:pointer; }
/* 全文弹窗 → 查看思维导图（白底蓝字，突出于深蓝顶栏） */
.ft-modal-actions .ft-mm-btn {
  display:inline-flex; align-items:center; gap:6px; border:none; cursor:pointer;
  background:#fff; color:var(--c-primary); font-weight:600; font-size:12px; padding:6px 12px; border-radius:6px;
}
.ft-modal-actions .ft-mm-btn:hover { background:#eef6ff; }
.ft-modal-actions .ft-mm-btn svg { flex:0 0 auto; }
.ft-modal-actions .mm-close { width:28px; height:28px; padding:0; font-size:18px; line-height:28px; border-radius:50%; }
.ft-modal-body { flex:1 1 auto; display:flex; overflow:hidden; background:#fff; }
.ft-nav { flex:0 0 300px; border-right:1px solid #e3ebf0; background:#f7fafc; overflow-y:auto; padding:10px 8px; }
.ft-nav-ch { margin-bottom:6px; border-radius:8px; overflow:hidden; }
.ft-nav-ch-t { padding:9px 12px; font-size:13px; font-weight:600; color:var(--c-primary); cursor:pointer; background:#eef4f8; border-radius:8px; display:flex; align-items:center; justify-content:space-between; user-select:none; }
.ft-nav-ch-t::after { content:"▾"; font-size:10px; color:var(--c-sub); transition:.15s; }
.ft-nav-ch:not(.open) .ft-nav-ch-t::after { transform:rotate(-90deg); }
.ft-nav-secs { display:none; padding:6px 0 6px 6px; }
.ft-nav-ch.open > .ft-nav-secs { display:block; }
.ft-nav-sec { margin-bottom:4px; }
.ft-nav-sec-t { padding:7px 10px; font-size:12px; font-weight:600; color:var(--c-ink); cursor:pointer; border-radius:6px; user-select:none; display:flex; align-items:center; justify-content:space-between; }
.ft-nav-sec-t::after { content:"▾"; font-size:10px; color:var(--c-sub); transition:.15s; }
.ft-nav-sec:not(.open) .ft-nav-sec-t::after { transform:rotate(-90deg); }
.ft-nav-sec-t:hover { background:#e9f2f7; }
.ft-nav-arts { display:none; padding:2px 0 4px 10px; }
.ft-nav-sec.open > .ft-nav-arts { display:block; }
.ft-nav-art { padding:5px 8px; font-size:12px; color:var(--c-sub); cursor:pointer; border-radius:6px; display:flex; gap:6px; line-height:1.5; }
.ft-nav-art:hover { background:#e9f2f7; color:var(--c-primary); }
.ft-nav-num { flex:0 0 auto; font-weight:600; color:var(--c-primary); }
.ft-nav-txt { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ft-doc { flex:1 1 auto; overflow-y:auto; padding:26px 34px 60px; line-height:1.9; }
.ft-doc-title { font-size:22px; font-weight:700; color:var(--c-ink); text-align:center; margin-bottom:8px; }
.ft-doc-meta { font-size:12px; color:var(--c-sub); text-align:center; margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid #eef2f5; }
.ft-chapter { margin-bottom:20px; }
.ft-ch-head { font-size:17px; font-weight:700; color:#fff; background:linear-gradient(120deg,var(--c-primary),var(--c-teal)); padding:8px 16px; border-radius:8px; margin:18px 0 10px; }
.ft-sec { font-size:15px; font-weight:700; color:var(--c-primary); margin:14px 0 8px; padding-left:10px; border-left:4px solid var(--c-primary); }
.ft-art { display:flex; gap:10px; padding:9px 12px; border-radius:8px; margin-bottom:6px; transition:.15s; }
.ft-art:hover { background:#f3f8fb; }
.ft-art-num { flex:0 0 auto; font-weight:700; color:var(--c-primary); font-size:14px; padding-top:2px; }
.ft-art-body { flex:1 1 auto; font-size:inherit; color:var(--c-ink); text-align:justify; }
.ft-art.hit { background:#fff8e1; outline:2px solid #ffd54f; }
.ft-art.hit-flash { animation:ftFlash 1.6s ease; }
@keyframes ftFlash { 0% { background:#fff3c4; } 100% { background:transparent; } }
.ft-p { margin:0 0 6px; line-height:1.85; }
.ft-p:last-child { margin-bottom:0; }
/* 全文查看中的表格（Word/PDF 提取保留） */
.ft-table { border-collapse:collapse; width:100%; margin:8px 0 12px; font-size:inherit; table-layout:fixed; word-break:break-word; }
.ft-table th, .ft-table td { border:1px solid #cfd6e0; padding:7px 10px; text-align:left; vertical-align:top; line-height:1.7; }
.ft-table thead th { background:#eef4f9; font-weight:700; color:var(--c-ink); }
.ft-table tbody tr:nth-child(even) { background:#fafcfe; }

/* ---------- 思维导图（SVG 纯原生） ---------- */
.mm-svg { width:100%; height:100%; display:block; background:#fafbfc; }
/* 节点右侧拖拽调宽热区（透明，无可见手柄，避免导出出现黑块/三个点） */
.mm-resize-grip { cursor: ew-resize; }

/* 画布容器：承载缩放手柄与滑杆 */
#mmCanvas { position: relative; overflow: hidden; }
.mm-wrap, #mmWrap { position: relative; }
.mm-wrap { overflow: hidden; }

/* 缩放控制条 */
.mm-ctrl-layer { position:absolute; inset:0; pointer-events:none; z-index:5; }
.mm-zoombar { position:absolute; top:10px; left:10px; z-index:7; display:flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.94); border:1px solid #e1e7ec; border-radius:10px; padding:5px 8px;
  box-shadow:0 2px 8px rgba(0,0,0,.12); pointer-events:auto; }
.mm-ctrl-btn { border:none; background:#eef3f7; color:#33414d; width:26px; height:26px; border-radius:6px;
  font-size:15px; line-height:1; cursor:pointer; transition:background .15s; }
.mm-ctrl-btn:hover { background:#dde7ee; }
.mm-ctrl-fit { width:auto; padding:0 10px; font-size:12px; }
.mm-zoom-slider { width:108px; cursor:pointer; accent-color:#2f7fb5; }
.mm-zoom-pct { font-size:12px; color:#33414d; min-width:40px; text-align:center; user-select:none; }

/* 平移滑杆（横向 / 纵向） */
.mm-scroll { position:absolute; z-index:6; pointer-events:auto; }
.mm-scroll-x { left:12px; right:22px; bottom:8px; height:10px; }
.mm-scroll-y { top:12px; bottom:22px; right:8px; width:10px; }
.mm-scroll-thumb { position:absolute; background:rgba(90,110,125,.45); border-radius:6px; cursor:pointer; }
.mm-scroll-thumb:hover { background:rgba(70,90,105,.65); }
.mm-scroll-x .mm-scroll-thumb { top:0; height:10px; }
.mm-scroll-y .mm-scroll-thumb { left:0; width:10px; }


/* ---------- 账号权限管理 ---------- */
.acc-summary { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:16px; }
.acc-box { background:var(--c-card); border:1px solid var(--c-line); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 18px; border-left:4px solid var(--ac,var(--c-primary)); }
.acc-box .n { font-size:26px; font-weight:800; color:var(--ac,var(--c-primary)); line-height:1.1; }
.acc-box .l { font-size:12px; color:var(--c-sub); margin-top:4px; }
.acc-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.acc-search { flex:1 1 220px; min-width:180px; border:1px solid var(--c-line); border-radius:9px; padding:9px 12px; font-size:14px; outline:none; transition:.15s; background:#fbfdfe; }
.acc-search:focus { border-color:var(--c-primary); background:#fff; box-shadow:0 0 0 3px rgba(11,110,153,.10); }
select.acc-search { height:40px; padding:8px 10px; background:#fbfdfe; cursor:pointer; }
.acc-f { border:1px solid var(--c-line); border-radius:9px; padding:9px 10px; font-size:14px; color:var(--c-ink); background:#fff; outline:none; }
.acc-spacer { flex:1 1 auto; }
.acc-btn { border:none; border-radius:9px; padding:9px 16px; font-size:14px; font-weight:600; color:#fff; background:linear-gradient(120deg,var(--c-primary),var(--c-teal)); box-shadow:0 3px 10px rgba(11,110,153,.25); transition:.16s; }
.acc-btn:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(11,110,153,.32); }
.acc-btn.ghost { color:var(--c-primary); background:#fff; border:1px solid var(--c-primary); box-shadow:none; }
.acc-btn.ghost:hover { background:#f0f8fc; transform:none; box-shadow:none; }
.acc-table-wrap { overflow:auto; border:1px solid var(--c-line); border-radius:10px; }
.acc-table { width:100%; border-collapse:collapse; font-size:14px; min-width:880px; }
/* 岗位与阶段配置卡片内的两表并列：允许收缩、超宽时在本列内横向滚动，避免互相覆盖遮挡按钮 */
.dim-tbl { min-width:460px; }
.acc-table th { background:#f2f7fa; color:var(--c-sub); font-size:12.5px; font-weight:700; text-align:left; padding:10px 12px; border-bottom:1px solid var(--c-line); white-space:nowrap; }
.acc-table td { padding:9px 12px; border-bottom:1px solid #eef2f5; vertical-align:middle; }
.acc-table tbody tr:hover { background:#f7fbfd; }
.acc-table tbody tr:last-child td { border-bottom:none; }
.acc-me { background:#eef8fb !important; }
.acc-me-tag { display:inline-block; font-size:11px; color:#fff; background:var(--c-primary); border-radius:6px; padding:1px 6px; margin-left:6px; vertical-align:1px; }
.acc-root-tag { font-size:11px; color:var(--c-sub); background:#eef1f4; border-radius:6px; padding:2px 8px; }
.acc-dup { font-size:11px; color:var(--c-red); background:#fdeaea; border-radius:6px; padding:2px 7px; }
.acc-unmapped { font-size:11px; color:var(--c-amber); background:#fff6e0; border-radius:6px; padding:2px 7px; }
.acc-empty { text-align:center; color:var(--c-sub); padding:34px 0 !important; }
/* 通用空状态卡（列表无数据 / 筛选无果时的引导） */
.acc-empty-card-wrap { padding:6px 0; }
.acc-empty-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:48px 20px; text-align:center; }
.acc-empty-card .ec-ico { font-size:42px; line-height:1; opacity:.92; }
.acc-empty-card .ec-title { font-size:15px; font-weight:600; color:var(--c-text); }
.acc-empty-card .ec-hint { font-size:13px; color:var(--c-sub); max-width:440px; line-height:1.75; }
.acc-empty-card .ec-actions { margin-top:8px; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.acc-job, .acc-level { border:1px solid var(--c-line); border-radius:8px; padding:6px 8px; font-size:13px; color:var(--c-ink); background:#fff; outline:none; max-width:170px; }
.acc-level { border-color:#cfdbe6; font-weight:600; }
.acc-switch { position:relative; display:inline-block; width:42px; height:22px; vertical-align:middle; }
.acc-switch input { opacity:0; width:0; height:0; }
.acc-switch span { position:absolute; inset:0; background:#ccd6de; border-radius:22px; transition:.2s; cursor:pointer; }
.acc-switch span::before { content:""; position:absolute; width:16px; height:16px; border-radius:50%; background:#fff; top:3px; left:3px; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.25); }
.acc-switch.on span { background:var(--c-green); }
.acc-switch.on span::before { transform:translateX(20px); }
.acc-edit { border:1px solid var(--c-line); color:var(--c-sub); background:#fff; border-radius:7px; padding:5px 11px; font-size:12.5px; transition:.15s; }
.acc-edit:hover { background:#f0f8fc; color:var(--c-primary); border-color:var(--c-primary); }
.acc-del { border:1px solid #f0c4c4; color:var(--c-red); background:#fff; border-radius:7px; padding:5px 11px; font-size:12.5px; transition:.15s; }
.acc-del:hover { background:var(--c-red); color:#fff; border-color:var(--c-red); }
.acc-del.danger { background:var(--c-red); color:#fff; border-color:var(--c-red); }
.acc-del.danger:hover { background:#c0392b; border-color:#c0392b; }
.acc-tip { margin-top:12px; font-size:12.5px; color:var(--c-sub); line-height:1.7; background:#f7fafc; border:1px dashed var(--c-line); border-radius:9px; padding:10px 14px; }
.acc-tip b { color:var(--c-ink); }
.acc-import-mask { position:fixed; inset:0; background:rgba(15,35,50,.45); z-index:1200; display:grid; place-items:center; padding:24px; }
.acc-import-box { width:min(880px,94vw); background:#fff; border-radius:16px; box-shadow:var(--shadow-lg); display:flex; flex-direction:column; max-height:86vh; overflow:hidden; }
.acc-import-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--c-line); }
.acc-import-head h3 { font-size:17px; }
.mm-close { width:30px; height:30px; padding:0; font-size:20px; line-height:28px; text-align:center; border-radius:50%; border:1px solid var(--c-line); background:#fff; color:#5b6b78; cursor:pointer; transition:.15s; }
.mm-close:hover { background:#f3f6f9; color:#d64545; border-color:#e3e8ec; }
.acc-import-sub { font-size:13px; color:var(--c-sub); padding:12px 20px 0; }
.acc-import-body { flex:1 1 auto; overflow:auto; padding:12px 20px; }
.acc-import-foot { display:flex; justify-content:flex-end; gap:10px; padding:14px 20px; border-top:1px solid var(--c-line); }

/* ---------- 登录 ---------- */
.login-mask { position:fixed; inset:0; z-index:2000; display:grid; place-items:center; background:linear-gradient(135deg,#0b2e45 0%,#0b6e99 55%,#12a5b0 100%); padding:20px; }
.login-box { width:min(400px,94vw); background:#fff; border-radius:18px; box-shadow:0 24px 60px rgba(4,20,32,.45); padding:36px 34px 26px; text-align:center; }
.login-logo { width:56px; height:56px; margin:0 auto 12px; border-radius:16px; background:linear-gradient(135deg,#0b6e99,#12a5b0); color:#fff; font-size:28px; display:grid; place-items:center; box-shadow:0 8px 18px rgba(11,110,153,.35); }
.login-title { font-size:22px; font-weight:800; color:var(--c-ink); letter-spacing:.5px; }
.login-title span { font-size:12px; font-weight:600; color:var(--c-sub); margin-left:6px; vertical-align:2px; }
.login-sub { font-size:13px; color:var(--c-sub); margin:6px 0 22px; }
.login-field { text-align:left; margin-bottom:14px; }
.login-field label { display:block; font-size:12.5px; color:var(--c-ink); font-weight:600; margin-bottom:6px; }
.login-field input { width:100%; box-sizing:border-box; border:1.5px solid var(--c-line); border-radius:9px; padding:10px 13px; font-size:14px; outline:none; transition:border-color .15s; background:#fbfdfe; }
.login-field input:focus { border-color:var(--c-blue); background:#fff; }
.login-err { min-height:20px; font-size:12.5px; color:var(--c-red); text-align:left; margin-bottom:4px; }
.login-btn { width:100%; border:none; border-radius:10px; padding:12px; font-size:15px; font-weight:700; color:#fff; background:linear-gradient(135deg,#0b6e99,#12a5b0); cursor:pointer; transition:.2s; box-shadow:0 6px 14px rgba(11,110,153,.3); }
.login-btn:hover { transform:translateY(-1px); box-shadow:0 8px 18px rgba(11,110,153,.4); }
.login-tip { margin-top:16px; font-size:12px; color:var(--c-sub); background:#f2f8fa; border:1px dashed #b8dce6; border-radius:8px; padding:8px 12px; line-height:1.7; }
.login-tip b { color:var(--c-blue); }
.login-demo { margin-top:10px; font-size:11.5px; color:#8aa3b1; }
.top-login-btn { margin-left:10px; border:1px solid var(--c-primary); background:#fff; color:var(--c-primary); border-radius:7px; padding:5px 14px; font-size:13px; font-weight:600; cursor:pointer; transition:.15s; white-space:nowrap; }
.top-login-btn:hover { background:var(--c-primary); color:#fff; }
.dot-off { display:inline-block; width:8px; height:8px; border-radius:50%; background:#98a6af; margin-right:7px; vertical-align:1px; }

@media (max-width:1080px) { .acc-summary { grid-template-columns:repeat(3,1fr); } }


/* ---------- 法规与制度管理 ---------- */
.rs-tabs { display:flex; gap:6px; }
.rs-tab { border:1px solid var(--c-line); background:#fff; color:var(--c-sub); border-radius:8px; padding:6px 14px; font-size:13px; cursor:pointer; transition:.15s; }
.rs-tab.active { background:var(--c-primary); color:#fff; border-color:var(--c-primary); font-weight:600; }
.rs-status { font-size:12px; padding:2px 9px; border-radius:6px; background:#eef6fa; color:var(--c-primary); white-space:nowrap; }
.st-有效, .st-现行 { background:#e7f6ee; color:#1f9d55; }
.st-即将失效 { background:#fff6e0; color:#c98a00; }
.st-试行 { background:#eef0fb; color:#6a5acd; }
.st-作废 { background:#fdeaea; color:#d64545; }
.rs-id { font-size:11px; color:#9aa7b1; margin-top:2px; }
.rs-pushed { font-size:11px; color:#1f9d55; background:#e7f6ee; padding:1px 7px; border-radius:5px; margin-left:6px; white-space:nowrap; }
.rs-idle { font-size:11px; color:#9aa7b1; background:#f2f5f7; padding:1px 7px; border-radius:5px; margin-left:6px; white-space:nowrap; }
.reg-pick { width:16px; height:16px; cursor:pointer; accent-color:var(--c-primary); }
.pager { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:14px; }
.pager-info { font-size:12.5px; color:var(--c-sub); }
.pager-btn { min-width:0; }
.pager-btn[disabled] { opacity:.45; cursor:not-allowed; }
.pager-size { font-size:12.5px; color:var(--c-sub); display:inline-flex; align-items:center; gap:4px; }
.acc-pagesize { font-size:12.5px; padding:3px 6px; border:1px solid var(--bd); border-radius:6px; background:var(--bg-card); color:var(--c-text); cursor:pointer; }
.rs-ops { white-space:nowrap; }
.rs-ops .acc-edit, .rs-ops .acc-del { margin-right:6px; }
.rs-form { display:flex; flex-direction:column; gap:14px; padding:4px 2px; }
.rs-field { display:flex; flex-direction:column; gap:5px; }
.rs-field > label { font-size:12.5px; color:var(--c-sub); font-weight:600; }
.rs-field input, .rs-field textarea, .rs-field select { border:1px solid var(--c-line); border-radius:8px; padding:8px 10px; font-size:13px; font-family:inherit; color:var(--c-text); background:#fff; width:100%; box-sizing:border-box; }
.rs-field textarea { resize:vertical; }
.rs-row { display:flex; gap:12px; }
.rs-row .rs-field { flex:1; min-width:0; }
.rs-field-inline { display:flex; flex-direction:row; align-items:center; gap:10px; }
.rs-field-inline > label { margin:0; flex:0 0 auto; }
.rs-field-inline > span { flex:1; min-width:0; }
/* 开关样式（复用 .rs-field 容器，需覆盖其 input 全局 100% 宽度） */
.switch { position:relative; display:inline-block; width:42px; height:24px; flex:0 0 auto; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; cursor:pointer; inset:0; background:#cdd6dd; border-radius:24px; transition:.2s; }
.slider:before { content:""; position:absolute; height:18px; width:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .slider { background:var(--c-primary); }
.switch input:checked + .slider:before { transform:translateX(18px); }

/* ===== 风险点 AI 智能识别 ===== */
.ai-btn { background:linear-gradient(120deg,#6a5acd,#8b7cf0); box-shadow:0 3px 10px rgba(106,90,205,.28); }
.ai-btn:hover { box-shadow:0 6px 16px rgba(106,90,205,.36); }
.ai-btn:disabled { opacity:.55; cursor:not-allowed; transform:none; }
.ai-panel { margin-top:16px; border:1px solid #d9d3f5; }
.ai-panel-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.ai-panel-sub { font-size:12px; color:var(--c-sub); }
.ai-dup { margin-left:8px; font-size:11px; color:#e5484d; background:#fdebec; padding:2px 8px; border-radius:10px; white-space:nowrap; }
.rs-jobgrid { display:flex; flex-wrap:wrap; gap:8px 12px; padding:6px 2px; }
.rs-jobcb { font-size:13px; color:var(--c-text); display:flex; align-items:center; gap:5px; cursor:pointer; }
.rs-jobcb input { width:auto; }
.rs-job-note { font-size:11px; color:#8a6d1a; background:#fdf3d8; border:1px solid #eedfb0; border-radius:4px; padding:0 5px; line-height:16px; }
.rs-ft-row { display:flex; align-items:center; gap:10px; }
.rs-ft-row input[type=file] { flex:1; font-size:12.5px; border:1px dashed var(--c-line); border-radius:8px; padding:7px 10px; background:#fafcff; }
.rs-ft-clear { flex:none; }
.rs-hint { font-size:12px; color:var(--c-sub); line-height:1.6; }
.rs-ft-row + .rs-hint { margin-top:4px; }
.acc-sub-h { font-size:13px; font-weight:600; color:#3a4a55; margin-bottom:8px; }
