/* ===========================================================
   多体系一体化管理平台 - 全局样式（前卫科技风 / Tech-Future）
   设计语言：深色玻璃态导航 + 浅色科技内容区
   配色：青蓝(#0ea5e9) × 靛紫(#6366f1) 渐变，网格光晕背景
   说明：本文件仅调整视觉与交互，不改动任何业务/权限逻辑；
        所有 JS 内联引用的 CSS 变量名（--brand / --brand-light /
        --danger / --muted / --success 等）均保留原含义。
   =========================================================== */
:root {
  /* 主色：青蓝 → 靛紫 科技渐变 */
  --brand: #0ea5e9;
  --brand-2: #6366f1;
  --brand-3: #22d3ee;
  --brand-dark: #0369a1;
  --brand-light: #e0f2fe;

  /* 导航（深色玻璃态） */
  --nav-bg: linear-gradient(100deg, #0a1230 0%, #102a5e 48%, #0c1c44 100%);
  --nav-line: rgba(255, 255, 255, .08);

  /* 内容区 */
  --bg: #eaf0fa;
  --card: #ffffff;
  --border: #e3e9f3;
  --border-strong: #d2dbea;

  --text: #0f172a;
  --text-sub: #334155;
  --muted: #64748b;

  /* 状态色（保持 JS 引用语义） */
  --success: #10b981;
  --success-bg: #d1fae5;
  --warn: #f59e0b;
  --warn-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #0ea5e9;
  --info-bg: #e0f2fe;

  /* 渐变 / 发光 */
  --grad: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 45%, #6366f1 100%);
  --grad-soft: linear-gradient(135deg, #67e8f9, #a5b4fc);
  --glow: 0 0 0 1px rgba(14, 165, 233, .12), 0 10px 30px rgba(14, 165, 233, .16);
  --glow-strong: 0 6px 22px rgba(14, 165, 233, .35);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  /* 网格纹理 + 双色光晕，营造科技氛围 */
  background-image:
    radial-gradient(1100px 560px at 86% -12%, rgba(14, 165, 233, .12), transparent 60%),
    radial-gradient(900px 520px at -6% 0%, rgba(99, 102, 241, .10), transparent 55%),
    linear-gradient(rgba(15, 23, 42, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .022) 1px, transparent 1px);
  background-size: auto, auto, 30px 30px, 30px 30px;
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ---------- 全局导航栏（深色玻璃态） ---------- */
.gnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-line);
  box-shadow: 0 2px 26px rgba(8, 15, 40, .45);
}
.gnav-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.gnav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.gnav-logo .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 4px 14px rgba(34, 211, 238, .45);
}
.gnav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.gnav-menu a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  color: rgba(226, 232, 240, .82);
  font-size: 14px;
  font-weight: 500;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.gnav-menu a:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
}
.gnav-menu a.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, .45);
}
.gnav-menu a .nav-ico { width: 17px; height: 17px; flex: none; opacity: .95; }
.gnav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.gnav-user .user-name { font-size: 13px; color: rgba(226, 232, 240, .85); }
.gnav-user .avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, .9), rgba(99, 102, 241, .9));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(14, 165, 233, .4);
}
.gnav-user .role-tag {
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  color: #bfe3ff;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.gnav-user .role-tag.admin {
  background: rgba(16, 185, 129, .18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, .3);
  font-weight: 600;
}
.gnav-user .role-switch {
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: #e2e8f0;
  font-size: 12px;
  padding: 0 4px;
  cursor: pointer;
}
.gnav-user .role-switch option { color: #0f172a; }
/* 导航内按钮走半透明玻璃风格，避免白底突兀 */
.gnav .btn {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .2);
  color: #e2e8f0;
}
.gnav .btn:hover {
  background: rgba(255, 255, 255, .14);
  border-color: var(--brand-3);
  color: #fff;
}

/* ---------- 布局 ---------- */
.container {
  max-width: none;
  margin: 0 auto;
  padding: 24px 24px 52px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-actions { display: flex; align-items: center; gap: 8px; }
.page-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(14, 165, 233, .5);
}
.page-desc {
  margin: 6px 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  max-width: 880px;
}

/* ---------- 卡片（白底 + 顶部渐变发光条） ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad);
  opacity: .92;
}
.card-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-title::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: var(--grad);
  flex: none;
  box-shadow: 0 0 8px rgba(14, 165, 233, .45);
}
.card-title .sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 0; }

/* ---------- 按钮（渐变发光 + 悬浮微动） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #f4fafe;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, .18);
}
.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, .35);
}
.btn-primary:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(14, 165, 233, .5);
}
.btn-lg { height: 40px; padding: 0 22px; font-size: 14px; }
.btn-sm { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 7px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--brand-light); box-shadow: none; }

/* ---------- 表单 / 筛选器 ---------- */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 500; }
select, input[type="text"], input[type="password"], input[type="date"], textarea {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 160px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 8px 10px; }
select:focus, input:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}
.search-input { min-width: 240px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data-table th {
  text-align: left;
  padding: 11px 16px;
  background: linear-gradient(180deg, #f4f8fe, #eef3fb);
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
  font-weight: 600;
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f7;
  color: var(--text);
  vertical-align: middle;
}
table.data-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(14, 165, 233, .06), rgba(99, 102, 241, .03));
}
table.data-table tbody tr:last-child td { border-bottom: none; }
.cell-actions { display: flex; gap: 6px; }
.link-btn {
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-default { background: #eef1f6; color: var(--text-sub); }

.tag {
  display: inline-block;
  padding: 2px 9px;
  margin-right: 6px;
  border-radius: 6px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
}

/* ---------- 看板网格 ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px 15px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.kpi::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .12), transparent 70%);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.kpi .kpi-label { font-size: 13px; color: var(--muted); }
.kpi .kpi-value { font-size: 27px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }
.kpi .kpi-foot { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.accent-blue .kpi-value { color: #0ea5e9; }
.kpi.accent-green .kpi-value { color: #10b981; }
.kpi.accent-orange .kpi-value { color: #f59e0b; }
.kpi.accent-red .kpi-value { color: #ef4444; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-sub);
  padding: 0 18px 6px;
}
.legend .item { display: flex; align-items: center; gap: 6px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 6px rgba(0,0,0,.08); }
.chart-box { padding: 4px 10px 14px; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-box text { font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
.chart-box .bar-hover { cursor: default; transition: opacity .15s; }
.chart-box .bar-hover:hover { opacity: .82; }
.pie-pair { display: flex; gap: 24px; justify-content: center; }
.pie-pair .pie-cell { flex: 1 1 0; min-width: 0; max-width: 460px; }
.pie-pair .legend { padding: 0 8px 8px; gap: 8px 10px; font-size: 11px; }
.card-body > .legend { padding: 0 0 8px; }
.card-body > .chart-box { padding: 0 0 6px; }

/* ---------- 详情页 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.detail-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desc-list { display: grid; grid-template-columns: 120px 1fr; row-gap: 12px; column-gap: 12px; font-size: 13px; }
.desc-list dt { color: var(--muted); }
.desc-list dd { margin: 0; color: var(--text); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--border);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(14, 165, 233, .5);
}
.timeline li.muted::before { background: var(--border-strong); box-shadow: none; }
.timeline .t-title { font-size: 13px; font-weight: 600; }
.timeline .t-meta { font-size: 12px; color: var(--muted); }

/* ---------- 知识库 ---------- */
.kb-list { display: flex; flex-direction: column; }
.kb-item {
  padding: 16px 18px;
  border-bottom: 1px solid #eef1f7;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  transition: background .15s;
}
.kb-item:last-child { border-bottom: none; }
.kb-item:hover { background: linear-gradient(90deg, rgba(14,165,233,.05), transparent); }
.kb-item h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.kb-item .excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-meta { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; gap: 14px; }
.kb-right { text-align: right; white-space: nowrap; }

.article-body { font-size: 14px; line-height: 1.9; color: var(--text-sub); }
.article-body h2 { font-size: 16px; color: var(--text); margin: 22px 0 8px; }
.article-body p { margin: 0 0 12px; }
.article-body ul { margin: 0 0 12px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-meta {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

/* ---------- 登录页（深色科技） ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(1000px 600px at 78% -10%, rgba(14,165,233,.22), transparent 60%),
    radial-gradient(800px 520px at 0% 110%, rgba(99,102,241,.20), transparent 55%),
    var(--nav-bg);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.login-left {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.login-left h1 {
  font-size: 33px;
  margin: 0 0 16px;
  line-height: 1.35;
  background: linear-gradient(90deg, #ffffff, #bae6fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-left p { margin: 0 0 26px; color: rgba(226,232,240,.78); font-size: 15px; max-width: 460px; }
.login-features { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.login-features .f-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 13px 15px;
  backdrop-filter: blur(6px);
}
.login-features .f-item .idx {
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 0 12px rgba(34,211,238,.5);
}
.login-features .f-item strong { font-size: 14px; color: #fff; }
.login-features .f-item span { font-size: 12px; color: rgba(226,232,240,.7); display: block; }
.login-right {
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%;
  background: rgba(255, 255, 255, .96);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(8, 15, 40, .5);
  padding: 34px 32px;
  border: 1px solid rgba(255, 255, 255, .5);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
}
.login-card h2 { margin: 0 0 6px; font-size: 21px; }
.login-card .tip { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.login-card .field { margin-bottom: 16px; }
.login-card .field input { width: 100%; height: 42px; }
.login-card .btn { width: 100%; justify-content: center; }
.login-extra {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.login-hint {
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--brand-light);
  border-radius: 8px;
  font-size: 12px;
  color: var(--brand-dark);
}
.form-error { color: var(--danger); font-size: 12px; min-height: 18px; margin-bottom: 8px; }

/* ---------- 导航二级下拉菜单 ---------- */
.gnav-item { position: relative; }
.gnav-item.has-sub > a.gnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
}
.gnav-item .caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .65;
}
.gnav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}
.gnav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 120;
}
.gnav-item:hover .gnav-sub,
.gnav-item.open .gnav-sub { display: block; }
.gnav-sub a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 10px !important;
  border-radius: 7px;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-sub) !important;
  white-space: nowrap;
}
.gnav-sub a:hover { background: var(--brand-light) !important; color: var(--brand) !important; }
.gnav-sub a.active { background: var(--brand-light) !important; color: var(--brand) !important; font-weight: 600 !important; }
.gnav-sub a .idx {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.gnav-sub a.active .idx { background: var(--grad); color: #fff; }

/* ---------- 统一看板卡片 ---------- */
.board-stack { display: flex; flex-direction: column; gap: 18px; }
.board-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}
.chart-scroll svg { width: auto; max-width: none; }
.chart-tip {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  padding: 2px 0 0;
}

.drill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 6px 0 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  border: 1px solid #bae6fd;
  color: var(--brand-dark);
  font-size: 12px;
  white-space: nowrap;
}
.drill-clear {
  width: 17px;
  height: 17px;
  line-height: 15px;
  border-radius: 50%;
  border: none;
  background: #bae6fd;
  color: var(--brand-dark);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.drill-clear:hover { background: var(--brand); color: #fff; }

.notice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #eef1f7;
  cursor: pointer;
  transition: background .15s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: linear-gradient(90deg, rgba(14,165,233,.06), transparent); }
.notice-item .n-body { flex: 1; min-width: 0; }
.notice-item .n-title {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-item .n-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notice-item .n-right { text-align: right; white-space: nowrap; }
.kb-item.compact { padding: 12px 18px; }
.kb-item.compact h3 { font-size: 14px; margin-bottom: 4px; }
.kb-item.compact .excerpt { -webkit-line-clamp: 1; }
.board-note {
  padding: 9px 18px;
  font-size: 12px;
  color: var(--muted);
  background: #f8fafe;
  border-top: 1px dashed var(--border);
}
.sub-list { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border); }
.sub-list + .sub-list { margin-top: 16px; }
.sub-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 2px 8px;
}
.sub-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sub-list-title .bar { width: 3px; height: 13px; border-radius: 2px; background: var(--grad); display: inline-block; }
.sub-list-title .cnt { font-size: 12px; font-weight: 400; color: var(--muted); }
.sub-list-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- EHS 日常管理 ---------- */
.ehs-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ehs-side {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 84px;
}
.ehs-side .side-title {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: linear-gradient(180deg, #f4f8fe, #eef3fb);
  border-bottom: 1px solid var(--border);
}
.ehs-side a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid #eef1f7;
}
.ehs-side a:last-child { border-bottom: none; }
.ehs-side a:hover { background: var(--brand-light); color: var(--brand); }
.ehs-side a.active { background: var(--grad); color: #fff; font-weight: 600; }
.ehs-side a .idx {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ehs-side a.active .idx { background: rgba(255, 255, 255, .25); color: #fff; }
.ehs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ehs-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  color: var(--text);
  transition: all .18s;
}
.ehs-card:hover { border-color: var(--brand); box-shadow: var(--glow); transform: translateY(-2px); }
.ehs-card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.ehs-card p { margin: 0; font-size: 12px; color: var(--muted); min-height: 38px; }
.ehs-card .card-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--brand);
}
/* ---------- 页签（群众意见模块） ---------- */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tab-bar .tab {
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  background: none;
}
.tab-bar .tab:hover { color: var(--brand); }
.tab-bar .tab.active {
  color: var(--brand-dark);
  font-weight: 600;
  background: #fff;
  border-color: var(--border);
  margin-bottom: -1px;
}
.tab-bar .tab .badge-dot {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.fb-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  transition: box-shadow .18s, border-color .18s;
}
.fb-item:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.fb-item .fb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.fb-item .fb-content {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}
.fb-item .fb-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(14,165,233,.08), rgba(99,102,241,.05));
  border-left: 3px solid var(--brand);
  font-size: 13px;
  line-height: 1.7;
}
.fb-item .fb-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.fb-steps { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.fb-step {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 10px;
  background: #f1f3f7;
  color: var(--muted);
}
.fb-step.done { background: var(--success-bg); color: var(--success); font-weight: 600; }
.fb-step.current { background: #fef3c7; color: var(--warn); font-weight: 600; }
.anon-tag {
  padding: 2px 8px;
  border-radius: 10px;
  background: #f1f3f7;
  color: var(--muted);
  font-size: 11.5px;
}
.module-note {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 18px;
  background: #f8fafe;
  border-bottom: 1px solid var(--border);
}

/* ---------- 首页双列看板 ---------- */
.board-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.board-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ---------- 清单区 ---------- */
.table-scroll { max-height: 268px; overflow: auto; }
.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f4f8fe, #eef3fb);
  box-shadow: inset 0 -1px 0 var(--border);
}
table.data-table.compact th { padding: 9px 12px; font-size: 12px; }
table.data-table.compact td { padding: 10px 12px; font-size: 12.5px; }
table.data-table tbody tr.clickable { cursor: pointer; }
table.data-table tbody tr.clickable:hover { background: linear-gradient(90deg, rgba(14,165,233,.07), rgba(99,102,241,.03)); }
.cell-ellipsis {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-hint { font-size: 11px; color: var(--muted); font-weight: 400; }
.mini-actions { display: flex; gap: 10px; white-space: nowrap; }

.reminder-list { padding: 4px 0; }
.reminder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid #eef1f7;
  cursor: pointer;
  transition: background .15s;
}
.reminder-item:last-child { border-bottom: none; }
.reminder-item:hover { background: linear-gradient(90deg, rgba(245,158,11,.08), transparent); }
.reminder-item .r-name { font-size: 13px; color: var(--text); }
.reminder-item .r-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.days-pill { font-size: 13px; font-weight: 700; color: var(--warn); white-space: nowrap; }
.days-pill.urgent { color: var(--danger); }

/* ---------- 弹窗（毛玻璃遮罩 + 发光） ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 48, .5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: maskIn .2s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: 560px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 80px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .6);
  animation: modalIn .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad);
  border-radius: 14px 14px 0 0;
}
.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px 20px; }
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-foot .left { margin-right: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field select,
.form-grid .field input,
.form-grid .field textarea { width: 100%; min-width: 0; }
.form-grid .field textarea { min-height: 62px; resize: vertical; }
.modal-close {
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 30px; height: 30px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }

/* 不符合项在线编辑弹窗 */
.modal.wide { width: 720px; }
.perm-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(14,165,233,.1), rgba(99,102,241,.06));
  border: 1px solid #bae6fd;
  color: var(--brand-dark);
}
.perm-tip.readonly {
  background: #fff7e8;
  border-color: #ffe0a3;
  color: #a1651a;
}
.field.select-disabled select,
.field.select-disabled textarea,
.field.select-disabled input {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}
/* ---------- 其他 ---------- */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.foot-note {
  max-width: none;
  margin: 0 auto;
  padding: 0 24px 30px;
  font-size: 12px;
  color: var(--muted);
}
.toast {
  position: fixed;
  top: 78px;
  right: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(14,165,233,.06);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  z-index: 999;
  animation: slideIn .22s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- 滚动条美化（科技感） ---------- */
* { scrollbar-width: thin; scrollbar-color: #c6d2e6 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #bcd0ee, #9fb6db);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8fb4e8, #6f93cf); background-clip: padding-box; }

/* ===========================================================
   机器人助手 · 智能引导（小体系）
   =========================================================== */
.as-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad);
  border: none;
  cursor: pointer;
  z-index: 880;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .5);
  transition: transform .2s, box-shadow .2s;
}
.as-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 30px rgba(14, 165, 233, .65); }
.as-fab svg { width: 30px; height: 30px; color: #fff; }
.as-fab .as-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, .7);
  animation: asPulse 2.4s ease-out infinite;
}
@keyframes asPulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
.as-fab .as-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.as-panel {
  position: fixed;
  right: 26px;
  bottom: 96px;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 130px);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 881;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: asPanelIn .24s cubic-bezier(.2, .8, .2, 1);
}
.as-panel.open { display: flex; }
@keyframes asPanelIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.as-panel-head {
  padding: 14px 16px;
  background: var(--nav-bg);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.as-panel-head .as-ava {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(34,211,238,.5);
}
.as-panel-head .as-ava svg { width: 20px; height: 20px; color: #fff; }
.as-panel-head .as-t { line-height: 1.3; }
.as-panel-head .as-t b { font-size: 14px; }
.as-panel-head .as-t span { display: block; font-size: 11px; color: rgba(226,232,240,.7); }
.as-panel-head .as-close {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.as-panel-head .as-close:hover { background: rgba(255,255,255,.2); }
.as-panel-body { padding: 16px; overflow: auto; }
.as-panel-body .as-intro {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  background: linear-gradient(90deg, rgba(14,165,233,.07), rgba(99,102,241,.04));
  border-left: 3px solid var(--brand);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.as-sec-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.as-sec-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--grad); }
.as-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.as-steps li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}
.as-steps li .as-num {
  flex: none;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.as-links { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.as-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all .16s;
  text-decoration: none;
}
.as-link:hover { border-color: var(--brand); background: #f4fafe; transform: translateX(2px); box-shadow: 0 4px 12px rgba(14,165,233,.14); }
.as-link .as-ico { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-light); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.as-link .as-ico svg { width: 15px; height: 15px; }
.as-link b { font-size: 13px; display: block; }
.as-link span { font-size: 11.5px; color: var(--muted); }
.as-foot {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* 首次进入欢迎气泡 */
.as-toast {
  position: fixed;
  right: 26px;
  bottom: 96px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 13px 15px;
  z-index: 882;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.6;
  animation: asPanelIn .26s ease;
}
.as-toast b { color: var(--brand-dark); }
.as-toast .as-toast-x {
  float: right;
  cursor: pointer;
  color: var(--muted);
  margin-left: 8px;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: 1fr; }
  .board-grid-2 { grid-template-columns: 1fr; }
  .detail-grid, .detail-grid.three { grid-template-columns: 1fr; }
  .ehs-layout { grid-template-columns: 1fr; }
  .ehs-side { position: static; }
  .ehs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gnav-inner { gap: 12px; }
  .gnav-menu a { padding: 8px 10px; }
  .as-panel, .as-toast { right: 14px; }
  .as-fab { right: 14px; bottom: 16px; }
}
