/* ==========================================================================
   科技创新工作室资源支持需求管理系统 V1.1
   样式表：管理端 + 汇报看板（看板样式同时用于 报告/PDF/PNG）
   ========================================================================== */

/* ---------- 1. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --navy: #0f2e57;
  --navy-2: #163d6e;
  --navy-3: #1d4d88;
  --ink: #14263c;
  --ink-2: #3a4c63;
  --muted: #6b7c92;
  --muted-2: #8a99ac;
  --gold: #b0842c;
  --gold-2: #d9b061;
  --gold-soft: #fbf3e2;
  --line: #e4e9f1;
  --line-2: #eef2f7;
  --bg: #f2f5fa;
  --card: #ffffff;
  --hw: #2563eb;
  --hw-soft: #eaf0fd;
  --tech: #0d8a7c;
  --tech-soft: #e6f6f3;
  --sw: #7a45c9;
  --sw-soft: #f2ebfd;
  --ok: #1a7f5a;
  --warn: #b06d1e;
  --danger: #b3352f;
  --shadow-sm: 0 1px 2px rgba(15, 46, 87, .05);
  --shadow: 0 10px 30px -18px rgba(15, 46, 87, .35), 0 1px 2px rgba(15, 46, 87, .05);
  --radius: 14px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 8% -8%, #e8eefb 0%, rgba(232, 238, 251, 0) 62%),
    radial-gradient(900px 400px at 100% 0%, #f4efe2 0%, rgba(244, 239, 226, 0) 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }
code { font-family: "Cascadia Mono", Consolas, monospace; font-size: .92em; background: #eef2f8; padding: 1px 5px; border-radius: 4px; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd6e3; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b6c2d3; background-clip: content-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 2. 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 62px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 10px -6px rgba(15, 46, 87, .8);
}
.brand-mark span { transform: scale(.94); }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 14.5px; letter-spacing: .01em; color: var(--navy); }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted-2); letter-spacing: .02em; }
.brand-text em b { color: var(--gold); font-weight: 600; }

.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.nav a:hover { background: #f2f5fa; color: var(--navy); }
.nav a.active { color: var(--navy); font-weight: 600; background: #eef3fb; }
.nav a.active::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

.topbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.sync-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-2); }
.sync-dot i { width: 6px; height: 6px; border-radius: 50%; background: #3fae7f; box-shadow: 0 0 0 3px rgba(63, 174, 127, .14); }

/* ---------- 3. 按钮 / 表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: .16s;
  white-space: nowrap;
}
.btn:hover { border-color: #c9d4e3; color: var(--navy); background: #fbfcfe; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--navy-3), var(--navy));
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px -10px rgba(15, 46, 87, .9);
}
.btn-primary:hover { background: linear-gradient(180deg, #22578f, var(--navy-2)); color: #fff; border-color: var(--navy-2); }

.btn-gold {
  background: linear-gradient(180deg, #c99a3f, #ab7d24);
  border-color: #a97b22;
  color: #fff;
}
.btn-gold:hover { background: linear-gradient(180deg, #d3a54c, #b3842a); color: #fff; border-color: #b3842a; }

.btn-ghost { background: #fff; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-danger { color: var(--danger); border-color: #f0d3d1; background: #fff8f7; }
.btn-danger:hover { background: #fdf0ef; border-color: #e7b9b5; color: #922d28; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn {
  width: 30px; height: 30px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: #f1f5fa; color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; letter-spacing: .01em; }
.field .hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.field.req > label::after { content: " *"; color: #c0392b; }

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 76px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #9db6d8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}
input[type="number"] { font-variant-numeric: tabular-nums; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.switch input { display: none; }
.switch i {
  width: 36px; height: 20px; border-radius: 20px;
  background: #d8e0ec; position: relative; transition: .18s; flex: none;
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .18s;
}
.switch input:checked + i { background: linear-gradient(180deg, var(--navy-3), var(--navy)); }
.switch input:checked + i::after { left: 18px; }

/* ---------- 4. 视图容器 ---------- */
.view { max-width: 1420px; margin: 0 auto; padding: 22px 24px 48px; }

.site-foot {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 24px 30px;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11.5px; color: var(--muted-2);
}
.site-foot .dot { opacity: .5; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; letter-spacing: -.01em; color: var(--navy); }
.page-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- 5. 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  padding: 26px 30px;
  border-radius: 18px;
  background:
    radial-gradient(700px 260px at 88% 10%, rgba(216, 176, 97, .16), rgba(216, 176, 97, 0) 60%),
    linear-gradient(120deg, #0e2b52 0%, #143a66 52%, #1b4778 100%);
  color: #fff;
  box-shadow: 0 22px 44px -30px rgba(15, 46, 87, .85);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(105deg, transparent 42%, #000 100%);
  pointer-events: none;
}
.hero-main { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #d9c096; margin-bottom: 10px;
}
.hero-kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold-2); }
.hero h1 { font-size: 27px; line-height: 1.3; letter-spacing: .012em; font-weight: 700; }
.hero-sub { margin-top: 8px; font-size: 13.5px; color: rgba(226, 236, 250, .82); letter-spacing: .04em; }

.hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: right; }
.hero-upd { font-size: 11.5px; color: rgba(214, 227, 245, .72); }
.hero-upd b { display: block; font-size: 13.5px; color: #fff; font-weight: 600; letter-spacing: .02em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hero .btn {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero .btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero .btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn-light:hover { background: #f2f6fc; color: var(--navy); }

/* ---------- 6. 统计卡 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  position: relative;
  padding: 14px 16px 13px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--navy-3); opacity: .85;
}
.stat-card.c-hw::before { background: var(--hw); }
.stat-card.c-tech::before { background: var(--tech); }
.stat-card.c-sw::before { background: var(--sw); }
.stat-card.c-gold::before { background: var(--gold); }
.stat-card.c-warn::before { background: #c98b2f; }

.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.stat-value {
  margin-top: 6px;
  font-size: 27px; line-height: 1.1; font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-value span { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat-note { margin-top: 5px; font-size: 11px; color: var(--muted-2); line-height: 1.45; }

/* ---------- 7. 三大板块 ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 26px 0 12px; }
.sec-head h2 { font-size: 16px; color: var(--navy); letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.sec-head h2::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.sec-head .sec-sub { font-size: 11.5px; color: var(--muted-2); }

.boards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.board-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .18s;
}
.board-card:hover { box-shadow: var(--shadow); }

.board-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px 10px; }
.board-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; flex: none;
}
.board-icon svg { width: 16px; height: 16px; }
.board-head h3 { font-size: 14.5px; color: var(--ink); letter-spacing: .01em; flex: 1; }
.board-count { font-size: 11.5px; color: var(--muted); background: #f3f6fb; border-radius: 20px; padding: 2px 9px; font-variant-numeric: tabular-nums; }

.b-hw .board-icon { background: var(--hw-soft); color: var(--hw); }
.b-tech .board-icon { background: var(--tech-soft); color: var(--tech); }
.b-sw .board-icon { background: var(--sw-soft); color: var(--sw); }
.b-hw .board-accent { background: var(--hw); }
.b-tech .board-accent { background: var(--tech); }
.b-sw .board-accent { background: var(--sw); }

.board-desc { padding: 0 16px 10px; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; border-bottom: 1px dashed var(--line); }

.board-list { padding: 6px 8px 8px; display: flex; flex-direction: column; }

.need-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  border: 0; background: transparent;
  width: 100%;
  transition: background .14s;
}
.need-row:hover { background: #f5f8fd; }
.need-row + .need-row { box-shadow: inset 0 1px 0 var(--line-2); }
.need-row .nr-main { flex: 1; min-width: 0; }
.need-row .nr-name {
  font-size: 12.5px; color: var(--ink);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.need-row.hl .nr-name { font-weight: 600; }
.need-row .nr-name .star { color: var(--gold); margin-right: 4px; font-size: 11px; }
.need-row .nr-meta { font-size: 10.5px; color: var(--muted-2); margin-top: 1px; display: flex; gap: 6px; }
.need-row .nr-money { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.need-row .nr-money.pending { color: #b07a26; }
.need-row .nr-meta .st { display: inline-flex; align-items: center; gap: 3px; }
.need-row .nr-meta .st i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.d-info { background: #2563eb; }
.d-warn { background: #c0642f; }
.d-mid { background: #b0842c; }
.d-done { background: #1a7f5a; }
.d-idle { background: #a9b6c7; }
.d-ok { background: #1a7f5a; }

.legend-inline { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.legend-inline > span { color: var(--muted-2); }
.legend-inline .lg { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.legend-inline .lg::before { content: ""; width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.legend-inline .lg.d-info::before { background: #2563eb; }
.legend-inline .lg.d-warn::before { background: #c0642f; }
.legend-inline .lg.d-ok::before { background: #1a7f5a; }
.legend-inline .lg.d-idle::before { background: #a9b6c7; }
.legend-inline .lg-sep { width: 1px; height: 11px; background: var(--line); margin: 0 8px; }

.hl-tags { display: inline-flex; align-items: center; gap: 5px; }
.hl-money.pending { color: #a8761f; }

.board-more { padding: 8px 16px 14px; }
.board-more button {
  border: 0; background: none; padding: 0;
  font-size: 11.5px; color: var(--navy-3); cursor: pointer; letter-spacing: .01em;
}
.board-more button:hover { color: var(--gold); }

/* ---------- 8. 重点事项 + 资金分析 ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 14px; align-items: start; }

.appeal-line {
  margin: -2px 0 12px;
  padding: 9px 14px;
  border-left: 2px solid var(--gold-2);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #fdf9f0, rgba(253, 249, 240, 0));
  font-size: 12px; color: #6b5a38; line-height: 1.7;
}
.hl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.hl-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s;
}
.hl-card:hover { box-shadow: var(--shadow); border-color: #d8e1ee; }
.hl-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hl-card::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.hl-top { display: flex; align-items: flex-start; gap: 8px; }
.hl-idx {
  flex: none; width: 18px; height: 18px; border-radius: 5px;
  background: var(--gold-soft); color: var(--gold);
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  margin-top: 1px;
}
.hl-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.45; flex: 1; }
.hl-body { margin-top: 8px; display: grid; gap: 4px; }
.hl-line { display: flex; gap: 7px; font-size: 11.5px; line-height: 1.55; }
.hl-line .k { color: var(--muted-2); flex: none; width: 66px; white-space: nowrap; }
.hl-line .v { color: var(--ink-2); flex: 1; min-width: 0; }
.hl-foot { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hl-money { font-size: 12px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.hl-money.pending { color: #b07a26; font-weight: 500; }

/* 资金分析 */
.money-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px 14px;
  box-shadow: var(--shadow-sm);
}
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.money-item { padding: 9px 11px; border-radius: 9px; background: #f7f9fd; border: 1px solid #eef2f8; }
.money-item .k { font-size: 11px; color: var(--muted); }
.money-item .v { font-size: 17px; font-weight: 700; color: var(--navy); margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.money-item .v small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.money-item.total { background: linear-gradient(135deg, #fdf7ea, #fbf2df); border-color: #f0e2c4; }
.money-item.total .v { color: #8d6820; }

.bars { margin-top: 13px; display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 62px 1fr 62px; align-items: center; gap: 8px; font-size: 11.5px; }
.bar-row .bl { color: var(--ink-2); }
.bar-track { height: 9px; border-radius: 6px; background: #eef2f8; overflow: hidden; display: flex; }
.bar-seg { height: 100%; }
.bar-seg.s1 { background: var(--navy-3); }
.bar-seg.s2 { background: #9db9dd; }
.bar-row .bv { text-align: right; color: var(--navy); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-row .bv.pending { color: #a8761f; font-weight: 500; font-size: 10.5px; }
.bar-legend { margin-top: 10px; display: flex; gap: 14px; font-size: 10.5px; color: var(--muted); }
.bar-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

.pending-note {
  margin-top: 12px; padding: 9px 11px;
  border-radius: 9px;
  background: #fdf8ee;
  border: 1px solid #f1e4c9;
  font-size: 11px; color: #8a6620; line-height: 1.6;
}
.pending-note b { font-weight: 700; }

.mini-pending { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mini-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.mini-head span { font-size: 10.5px; color: #a8761f; background: #fdf8ee; border: 1px dashed #e6cf9f; border-radius: 4px; padding: 0 5px; }
.mini-pending ul { margin-top: 4px; }
.mini-pending li { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 11.5px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.mini-pending li:last-child { border-bottom: 0; }
.mini-pending li:hover .mn { color: var(--navy-3); }
.mini-pending li i { width: 4px; height: 4px; border-radius: 50%; background: #d8b061; flex: none; }
.mini-pending .mn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.mini-pending .ms { font-size: 10px; color: var(--muted-2); }
.mini-more { margin-top: 6px; border: 0; background: none; padding: 0; font-size: 11px; color: var(--navy-3); cursor: pointer; }
.mini-more:hover { color: var(--gold); }

/* ---------- 9. 建设价值 ---------- */
.value-card {
  margin-top: 14px;
  display: flex; gap: 18px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, #fbfcfe, #f7f9fd);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.value-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.value-label { flex: none; width: 74px; font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.5; letter-spacing: .04em; padding-top: 1px; }
.value-text { flex: 1; font-size: 12.5px; color: var(--ink-2); line-height: 1.85; text-align: justify; }
.value-tools { flex: none; }

/* ---------- 10. 表格 ---------- */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: auto;
}

table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: #f7f9fc;
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .03em;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover td { background: #fafcff; }
table.tbl .col-name { min-width: 220px; }
table.tbl .right { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .nowrap { white-space: nowrap; }
table.tbl .name-cell { font-weight: 600; color: var(--ink); }
table.tbl .sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; font-weight: 400; }
.tbl-empty { padding: 40px; text-align: center; color: var(--muted-2); font-size: 13px; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
}
.tag-hw { background: var(--hw-soft); color: var(--hw); }
.tag-tech { background: var(--tech-soft); color: var(--tech); }
.tag-sw { background: var(--sw-soft); color: var(--sw); }
.tag-p-high { background: #fdecea; color: #b3352f; }
.tag-p-mid { background: #fdf3e3; color: #a5711d; }
.tag-p-low { background: #eef1f6; color: #67788e; }
.tag-s0 { background: #f1f4f9; color: #5b6b80; }
.tag-s1 { background: #eaf1fd; color: #2563eb; }
.tag-s2 { background: #fdf3e3; color: #a5711d; }
.tag-s3 { background: #e9f6f0; color: #1a7f5a; }
.tag-s4 { background: #f0eef8; color: #6b5bb0; }
.tag-pending { background: #fdf8ee; color: #a8761f; border: 1px dashed #e6cf9f; }
.tag-s5 { background: #fdeee7; color: #b0552a; }
.tag-budget-ok { background: #e9f6f0; color: #1a7f5a; }
.tag-known { background: #eef4fd; color: #2c5b96; }
.tag-gold { background: var(--gold-soft); color: var(--gold); }

/* ---------- 11. 台账页 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.toolbar .grow { flex: 1; }
.search-box { position: relative; min-width: 220px; flex: 1; max-width: 300px; }
.search-box input { padding-left: 30px; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.toolbar select { width: auto; min-width: 108px; font-size: 12.5px; }

.sort-panel {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sort-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.sort-head h3 { font-size: 13.5px; color: var(--navy); }
.sort-head p { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.sort-list { padding: 8px; }
.sort-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #fbfcfe;
  cursor: grab;
  font-size: 12.5px;
  transition: .14s;
}
.sort-item + .sort-item { margin-top: 6px; }
.sort-item:hover { background: #f4f8fe; border-color: #dde7f5; }
.sort-item.dragging { opacity: .45; border-style: dashed; border-color: #b9cbe4; }
.sort-item.over { border-color: var(--navy-3); box-shadow: 0 0 0 2px rgba(29, 77, 136, .12); }
.sort-item .drag-handle { color: #a8b6c8; letter-spacing: -1px; font-size: 14px; cursor: grab; user-select: none; }
.sort-item .si-idx { width: 20px; height: 20px; border-radius: 5px; background: var(--gold-soft); color: var(--gold); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.sort-item .si-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-item .si-tools { display: flex; gap: 4px; }

/* ---------- 12. 预算页 ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  padding: 15px 17px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.kpi .k { font-size: 11.5px; color: var(--muted); }
.kpi .v { margin-top: 6px; font-size: 23px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .v small { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .n { margin-top: 4px; font-size: 11px; color: var(--muted-2); }
.kpi.accent { background: linear-gradient(135deg, #fffdf8, #fbf3e3); border-color: #efe1c3; }
.kpi.accent .v { color: #8d6820; }

.split-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 13.5px; color: var(--navy); }
.panel-head p { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.panel-body { padding: 14px 16px; }

.calc-box { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.calc-box .field { width: 104px; }
.calc-eq { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); padding-bottom: 8px; white-space: nowrap; }
.calc-eq b { font-size: 15px; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- 13. 导出页 ---------- */
.export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.export-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.export-top { padding: 16px 18px 12px; border-bottom: 1px dashed var(--line); }
.export-badge { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 5px; background: var(--gold-soft); color: var(--gold); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
.export-top h3 { margin-top: 9px; font-size: 15px; color: var(--navy); }
.export-top p { margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.export-body { padding: 13px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.export-list { display: grid; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.export-list li { display: flex; gap: 7px; line-height: 1.55; }
.export-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c6d3e4; margin-top: 6px; flex: none; }
.export-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.seg { display: inline-flex; padding: 2px; background: #f1f4f9; border-radius: 8px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 6px;
  font-size: 12px; color: var(--muted); cursor: pointer; transition: .14s;
}
.seg button.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 46, 87, .12); }
.export-tip { margin-top: 14px; padding: 12px 16px; border-radius: 11px; background: #f7f9fd; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.export-tip b { color: var(--ink-2); }

/* ---------- 14. 设置页 ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.form-grid { display: grid; gap: 13px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid .span2 { grid-column: 1 / -1; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-inline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.stat-inline b { color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- 15. 弹窗 / 抽屉 / Toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(12, 26, 46, .42);
  backdrop-filter: blur(3px);
  padding: 30px 20px;
  overflow: auto;
}
.modal-backdrop.open { display: flex; align-items: flex-start; justify-content: center; }

.modal {
  width: 100%;
  max-width: 780px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px -30px rgba(8, 20, 38, .55);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 60px);
  animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15.5px; color: var(--navy); }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 16px 16px; }
.modal-foot .left { margin-right: auto; }

.form-section { margin-bottom: 18px; }
.form-section:last-child { margin-bottom: 0; }
.form-section > h4 {
  font-size: 12px; font-weight: 700; color: var(--navy);
  letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: 7px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-grid { display: grid; grid-template-columns: 108px 1fr; gap: 9px 14px; font-size: 12.5px; }
.detail-grid dt { color: var(--muted-2); }
.detail-grid dd { margin: 0; color: var(--ink-2); }
.detail-grid dd.strong { font-weight: 600; color: var(--ink); }

.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 9px 16px;
  border-radius: 9px;
  background: rgba(16, 34, 58, .94);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 14px 34px -16px rgba(8, 20, 38, .8);
  animation: toastIn .2s ease-out;
  max-width: 80vw;
}
.toast.err { background: rgba(150, 42, 36, .96); }
.toast.ok { background: rgba(22, 92, 68, .96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   16. 汇报看板（报告 / PDF / PNG 共用）
   ========================================================================== */
.slide {
  position: relative;
  width: 1600px;
  height: 900px;
  padding: 26px 34px 24px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --sl-gold: #b0842c;
}

/* 顶部细金线 */
.slide::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, #0f2e57 0%, #1d4d88 44%, #d9b061 100%);
}

.sl-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6ebf3;
  flex: none;
}
.sl-kicker { font-size: 12px; letter-spacing: .18em; color: var(--sl-gold); font-weight: 600; }
.sl-title { margin-top: 6px; font-size: 31px; line-height: 1.2; color: var(--navy); letter-spacing: .015em; font-weight: 700; }
.sl-sub { margin-top: 6px; font-size: 13.5px; color: #5d7089; letter-spacing: .05em; }

.sl-head-meta { text-align: right; flex: none; padding-top: 4px; }
.sl-meta-label { font-size: 10.5px; color: #93a2b5; letter-spacing: .1em; }
.sl-meta-value { margin-top: 2px; font-size: 14px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.sl-meta-tag {
  display: inline-block; margin-top: 7px;
  padding: 2px 9px; border-radius: 20px;
  background: #f4f7fc; border: 1px solid #e2e9f4;
  font-size: 10.5px; color: #6c7f97; letter-spacing: .04em;
}

/* 统计条 */
.sl-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; flex: none; }
.sl-stat {
  position: relative;
  padding: 10px 13px 9px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcff, #f6f9fd);
  border: 1px solid #e7edf6;
  overflow: hidden;
}
.sl-stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #1d4d88; opacity: .8; }
.sl-stat.k-hw::after { background: var(--hw); }
.sl-stat.k-tech::after { background: var(--tech); }
.sl-stat.k-sw::after { background: var(--sw); }
.sl-stat.k-gold::after { background: var(--sl-gold); }
.sl-stat-label { font-size: 11px; color: #71839a; letter-spacing: .02em; }
.sl-stat-value { margin-top: 3px; font-size: 25px; line-height: 1.12; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sl-stat-value span { font-size: 11.5px; font-weight: 600; color: #7b8ca1; margin-left: 2px; letter-spacing: 0; }
.sl-stat-note { margin-top: 2px; font-size: 10px; color: #95a4b7; }

/* 三大板块 */
.sl-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; flex: 1; min-height: 0; }
.sl-board {
  display: flex; flex-direction: column;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.sl-board-head { display: flex; align-items: center; gap: 8px; padding: 10px 13px 7px; }
.sl-board-head .sl-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.sl-board-head h2 { font-size: 14.5px; color: var(--ink); letter-spacing: .01em; flex: 1; font-weight: 700; }
.sl-board-count { font-size: 10.5px; color: #6d7f96; background: #f2f6fb; border-radius: 20px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.sl-board-desc { padding: 0 13px 8px; font-size: 10.5px; color: #93a2b5; line-height: 1.45; border-bottom: 1px dashed #e9eff7; }
.sl-list { padding: 5px 7px 7px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sl-item { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; flex: 1; min-height: 0; }
.sl-item + .sl-item { box-shadow: inset 0 1px 0 #f1f5fa; }
.sl-item .nm { flex: 1; min-width: 0; font-size: 11.5px; color: #22344c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-item .nm b { color: var(--sl-gold); font-weight: 700; margin-right: 3px; }
.sl-item .mt { font-size: 10.5px; color: #4a5e78; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-item .mt.pending { color: #ab7a24; }
.sl-board-more { padding: 0 13px 9px; font-size: 10px; color: #93a2b5; }

/* 重点协调事项表 */
.sl-hl { margin-top: 12px; flex: none; }
.sl-sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.sl-sec-head h2 { font-size: 14.5px; color: var(--navy); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.sl-sec-head h2::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #d9b061, #b0842c); }
.sl-sec-head .sl-sec-sub { font-size: 10.5px; color: #95a4b7; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

table.sl-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
table.sl-table th {
  background: #f6f9fd; color: #64788f; font-weight: 600; font-size: 10.5px; letter-spacing: .04em;
  text-align: left; padding: 6px 8px; border-top: 1px solid #e7edf6; border-bottom: 1px solid #e7edf6;
}
table.sl-table td { padding: 6px 8px; border-bottom: 1px solid #eef3f9; vertical-align: middle; line-height: 1.4; }
table.sl-table tr:last-child td { border-bottom: 1px solid #e7edf6; }
table.sl-table .c-no { width: 42px; text-align: center; }
table.sl-table .c-name { width: 20%; }
table.sl-table .c-req { width: 30%; }
table.sl-table .c-dept { width: 13%; }
table.sl-table .c-eff { width: 15%; }
table.sl-table .c-money { width: 10%; text-align: right; }
table.sl-table .c-status { width: 9%; text-align: center; }
table.sl-table td.c-name { font-weight: 600; color: var(--ink); font-size: 11.5px; }
table.sl-table td.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.sl-table td.c-money { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
table.sl-table td.c-money.pending { color: #ab7a24; font-weight: 500; }
table.sl-table td.c-status { text-align: center; }
.sl-no {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px;
  border-radius: 4px; background: #fbf3e2; color: var(--sl-gold);
  font-size: 10px; font-weight: 700; text-align: center;
}

/* 建设价值 */
.sl-value {
  margin-top: 12px;
  display: flex; gap: 12px; align-items: stretch;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(100deg, #fbfaf5, #f8fafd 62%);
  border: 1px solid #ebe5d6;
  flex: none;
}
.sl-value .lbl {
  flex: none; width: 64px;
  font-size: 10px; font-weight: 700; color: var(--sl-gold);
  line-height: 1.5; letter-spacing: .04em;
  border-right: 1px solid #eadfc8; padding-right: 10px;
  display: flex; align-items: center;
}
.sl-value p { flex: 1; font-size: 11px; line-height: 1.75; color: #3c4e66; text-align: justify; }

/* ---------- 第二页 ---------- */
.sl2-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.sl2-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sl2-block { border: 1px solid #e5ebf4; border-radius: 11px; overflow: hidden; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sl2-block-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f8fafd; border-bottom: 1px solid #e9eff7; }
.sl2-block-head .sl-dot { width: 7px; height: 7px; border-radius: 2px; }
.sl2-block-head h3 { font-size: 12.5px; color: var(--ink); font-weight: 700; flex: 1; }
.sl2-block-head .cnt { font-size: 10px; color: #7c8da2; font-variant-numeric: tabular-nums; }
.sl2-rows { padding: 3px 8px 5px; flex: 1; min-height: 0; }
.sl2-row { display: flex; align-items: center; gap: 8px; padding: 3.5px 4px; font-size: 11px; }
.sl2-row + .sl2-row { box-shadow: inset 0 1px 0 #f3f7fb; }
.sl2-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #24384f; }
.sl2-row .mt { width: 82px; text-align: right; color: #2f4a68; font-variant-numeric: tabular-nums; font-weight: 600; }
.sl2-row .mt.pending { color: #ab7a24; font-weight: 500; }
.sl2-row .st { width: 62px; text-align: right; font-size: 9.5px; color: #7e8fa4; }
.sl2-row .st.done { color: #1a7f5a; }
.sl2-row .st.mid { color: #a5711d; }

.sl2-right { display: flex; flex-direction: column; gap: 11px; min-height: 0; }
.sl2-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sl2-kpi { padding: 9px 11px; border-radius: 9px; background: #f8fafd; border: 1px solid #e8eef7; }
.sl2-kpi .k { font-size: 10px; color: #7b8ca1; }
.sl2-kpi .v { margin-top: 2px; font-size: 19px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sl2-kpi .v small { font-size: 10px; font-weight: 500; color: #7b8ca1; margin-left: 2px; }
.sl2-kpi.total { background: linear-gradient(135deg, #fdf8ec, #fbf2e0); border-color: #f0e2c4; }
.sl2-kpi.total .v { color: #8d6820; }

.sl2-panel { border: 1px solid #e5ebf4; border-radius: 11px; overflow: hidden; }
.sl2-panel-head { padding: 7px 11px; background: #f8fafd; border-bottom: 1px solid #e9eff7; font-size: 11px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.sl2-panel-head em { font-style: normal; font-size: 9.5px; color: #93a2b5; font-weight: 400; }
.sl2-panel-body { padding: 9px 11px; }

.sl-bars { display: grid; gap: 7px; }
.sl-bar-row { display: grid; grid-template-columns: 54px 1fr 56px; gap: 7px; align-items: center; font-size: 10px; }
.sl-bar-row .bl { color: #5d7089; }
.sl-bar-track { height: 8px; border-radius: 5px; background: #eef3fa; overflow: hidden; display: flex; }
.sl-bar-track i { display: block; height: 100%; }
.sl-bar-row .bv { text-align: right; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.sl-legend { display: flex; gap: 12px; margin-top: 7px; font-size: 9px; color: #8c9caf; }
.sl-legend span { display: inline-flex; align-items: center; gap: 4px; }
.sl-legend i { width: 7px; height: 7px; border-radius: 2px; }

.sl-pending-list { display: grid; gap: 0; }
.sl-pending-item { display: flex; align-items: center; gap: 6px; padding: 3.5px 0; font-size: 10.5px; }
.sl-pending-item + .sl-pending-item { border-top: 1px dashed #eef3f9; }
.sl-pending-item .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33475f; }
.sl-pending-item .pd { font-size: 9.5px; color: #93a2b5; white-space: nowrap; }

.sl-foot { flex: none; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e8eef6; font-size: 10px; color: #8b9aad; line-height: 1.6; display: flex; justify-content: space-between; gap: 20px; }
.sl-foot b { color: #6a7c92; }

/* ==========================================================================
   17. 汇报模式全屏
   ========================================================================== */
.report-root {
  position: fixed; inset: 0; z-index: 400;
  display: none;
  background: radial-gradient(1400px 700px at 50% 0%, #f6f8fc 0%, #e9eef6 100%);
}
.report-root.open { display: block; }

.rp-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid #e2e8f1;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.rp-brand { display: flex; align-items: baseline; gap: 10px; }
.rp-kicker { font-size: 10.5px; letter-spacing: .18em; color: var(--gold); font-weight: 700; }
.rp-name { font-size: 12.5px; color: var(--ink-2); }
.rp-ctrl { display: flex; align-items: center; gap: 6px; }
.rp-btn {
  height: 26px; min-width: 26px; padding: 0 8px;
  border: 1px solid #dde5f0; border-radius: 6px;
  background: #fff; color: var(--ink-2); font-size: 12px; cursor: pointer;
}
.rp-btn:hover { border-color: #b9c9df; color: var(--navy); }
.rp-exit { font-size: 11.5px; padding: 0 10px; }
.rp-page { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 4px; }
.rp-sep { width: 1px; height: 16px; background: #e0e7f1; margin: 0 4px; }

.stage-wrap { position: absolute; inset: 46px 0 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.stage-scaler { position: relative; flex: none; }
.stage { position: absolute; top: 0; left: 0; width: 1600px; height: 900px; transform-origin: top left; box-shadow: 0 30px 70px -40px rgba(15, 46, 87, .55); }
.stage .slide { box-shadow: 0 0 0 1px #e4eaf3; }

.rp-hint {
  position: absolute; left: 0; right: 0; bottom: 8px;
  text-align: center;
  font-size: 10.5px; color: #93a2b5;
  letter-spacing: .04em;
  z-index: 2;
}

/* 无控制条的纯净舞台（PNG / PDF 使用） */
#shotRoot { position: fixed; left: -20000px; top: 0; width: 1600px; height: auto; }
#shotRoot .shot-item { width: 1600px; height: 900px; }
#printRoot { display: none; }

/* ==========================================================================
   18. 打印 / PDF
   ========================================================================== */
@media print {
  html, body { background: #fff !important; }
  body.printing #app,
  body.printing .report-root,
  body.printing .modal-backdrop,
  body.printing .toast-wrap,
  body.printing #shotRoot { display: none !important; }
  body.printing #printRoot { display: block !important; }

  .print-page {
    position: relative;
    overflow: hidden;
    page-break-after: always;
    break-after: page;
  }
  .print-page:last-child { page-break-after: auto; break-after: auto; }
  .print-page .stage { position: absolute; top: 0; left: 0; }
  .print-page .slide { box-shadow: none !important; }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ---------- 19. 自适应（管理端） ---------- */
@media (max-width: 1280px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .export-grid { grid-template-columns: minmax(0, 1fr); }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  .nav { overflow-x: auto; }
  .boards-grid { grid-template-columns: minmax(0, 1fr); }
  .hl-list { grid-template-columns: minmax(0, 1fr); }
  .kpi-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .view { padding: 16px 14px 40px; }
  .topbar { height: auto; flex-wrap: wrap; padding: 9px 14px 0; gap: 8px; }
  .brand { flex: 1; min-width: 0; }
  .brand-text em, .sync-dot { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { height: 30px; padding: 0 10px; font-size: 12px; }
  .nav { order: 3; flex-basis: 100%; gap: 0; margin: 0 -6px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 12.5px; }
  .nav a.active::after { left: 10px; right: 10px; bottom: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { flex-direction: column; padding: 20px; }
  .hero h1 { font-size: 21px; }
  .hero-side { align-items: flex-start; text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .kpi-row { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
}

/* ==========================================================================
   V1.2 三轴模型与看板重构
   ========================================================================== */

/* ---------- 金额口径标签 ---------- */
.tag-src-declared { background: #eaf1fd; color: #1d4d88; font-weight: 600; }
.tag-src-suggest { background: #f4f1ea; color: #8a7136; }
.tag-b-pending { background: #f5f7fa; color: #6b7c92; border: 1px dashed #d5dde8; }
.tag-b-proposed { background: #fbf3e2; color: #8d6820; }
.tag-b-confirmed { background: #e9f6f0; color: #1a7f5a; }
.tag-b-review { background: #fdecea; color: #b3352f; }
.tag-b-none { background: #eef1f6; color: #5b6b80; }
.tag-b-coord { background: #e6f6f3; color: #0d8a7c; }
.tag-p-idle { background: #f1f4f9; color: #7c8da2; }
.tag-p-mid { background: #fdf3e3; color: #a5711d; }
.tag-p-done { background: #e9f6f0; color: #1a7f5a; }

/* ---------- 首屏经费条 ---------- */
.headline {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.hl-main {
  flex: none; width: 320px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #fdfaf2, #fbf6ea);
  border-right: 1px solid #f0e6d2;
}
.hl-label { font-size: 11.5px; color: #8a7136; letter-spacing: .04em; }
.hl-value { margin-top: 2px; font-size: 34px; line-height: 1.1; font-weight: 700; color: #8d6820; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hl-value span { font-size: 12px; font-weight: 500; color: #a58a52; margin-left: 4px; letter-spacing: 0; }
.hl-note { margin-top: 4px; font-size: 11.5px; color: #8a7136; }
.hl-note b { color: #b3352f; }

.hl-split { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hl-cell { padding: 14px 16px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; }
.hl-cell:last-child { border-right: 0; }
.hl-cell span { font-size: 11.5px; color: var(--muted); }
.hl-cell b { margin-top: 3px; font-size: 24px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hl-cell.warn b { color: #ab7a24; }

/* ---------- 已提出方向卡 ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dir-card {
  text-align: left; cursor: pointer;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow: var(--shadow-sm);
  transition: .16s;
  font-family: inherit;
}
.dir-card:hover { border-color: #cfdcec; box-shadow: var(--shadow); transform: translateY(-1px); }
.dir-card.hl { border-color: #e8dfc9; background: linear-gradient(180deg, #fffdf8, #fbf7ec); }
.dir-top { display: flex; align-items: center; gap: 6px; }
.dir-board { font-size: 10.5px; padding: 1px 7px; border-radius: 4px; background: #f2f6fb; color: #6d7f96; }
.dir-board.b-hw { background: var(--hw-soft); color: var(--hw); }
.dir-board.b-tech { background: var(--tech-soft); color: var(--tech); }
.dir-board.b-sw { background: var(--sw-soft); color: var(--sw); }
.dir-star { font-size: 10px; color: var(--gold); border: 1px solid #eadfc8; border-radius: 4px; padding: 0 5px; }
.dir-name { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.dir-meta { margin-top: 6px; font-size: 11.5px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.dir-meta i { width: 3px; height: 3px; border-radius: 50%; background: #c9d3e0; }
.dir-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; }
.dir-amt { font-size: 12px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- 重点协调卡 ---------- */
.key-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.key-card {
  padding: 15px 17px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: .16s;
}
.key-card:hover { box-shadow: var(--shadow); border-color: #d8e1ee; }
.key-head { display: flex; align-items: center; gap: 8px; }
.key-name { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.key-grid { margin-top: 10px; display: grid; gap: 6px; }
.key-line { display: flex; gap: 8px; font-size: 12px; line-height: 1.6; }
.key-line .k { flex: none; width: 70px; color: var(--muted-2); }
.key-line .v { flex: 1; min-width: 0; color: var(--ink-2); }
.key-line .v.empty { color: #b0bccb; }
.key-foot { margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 6px; }
.key-amt { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.key-amt.pend { color: #a8761f; font-weight: 500; }

/* ---------- 预算状态条 ---------- */
.status-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #f1f4f9; }
.status-bar.tall { height: 18px; border-radius: 9px; }
.status-bar i { display: block; height: 100%; }
.status-legend { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
.status-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.status-legend b { color: var(--ink-2); }

.status-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.st-row { display: grid; grid-template-columns: 1.2fr .8fr 1.1fr .9fr; gap: 8px; padding: 7px 12px; font-size: 11.5px; border-bottom: 1px solid var(--line-2); }
.st-row:last-child { border-bottom: 0; }
.st-row span:nth-child(2) { text-align: right; }
.st-row span:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.st-row span:nth-child(4) { text-align: right; }
.st-head { background: #f7f9fc; color: var(--muted); font-weight: 600; }
.st-row .ok { color: var(--ok); }
.st-row .no { color: var(--muted-2); }

/* ---------- 台账增强 ---------- */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--navy); }
.sort-ico { display: inline-block; margin-left: 4px; color: #b9c5d5; font-size: 10px; }
.sort-ico.on { color: var(--navy); }
.dim { color: #b6c2d3; }
.row-review td { background: #fffaf7; }
.basis-cell { max-width: 230px; font-size: 11px; color: var(--muted); line-height: 1.5; white-space: normal; word-break: break-word; }
.tbl-ledger tbody td { vertical-align: middle; }

/* ---------- 表单：项目多选 ---------- */
.chk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.chk input { width: auto; }

/* ---------- 项目设置 ---------- */
.proj-list { display: grid; gap: 6px; }
.proj-row { display: flex; align-items: center; gap: 8px; }
.proj-row input[type="text"] { flex: 1; min-height: 30px; font-size: 12.5px; }
.proj-add { display: flex; gap: 8px; margin-top: 10px; }
.proj-add input { flex: 1; min-height: 30px; font-size: 12.5px; }

/* ---------- 汇报看板：V1.2 ---------- */
.sl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; flex: none; }
.sl-kpi { padding: 10px 14px; border-radius: 10px; border: 1px solid #e7edf6; background: linear-gradient(180deg, #fbfcff, #f6f9fd); }
.sl-kpi.gold { background: linear-gradient(135deg, #fdf8ec, #fbf2e0); border-color: #f0e2c4; }
.sl-kpi-k { font-size: 10.5px; color: #7b8ca1; }
.sl-kpi-v { margin-top: 2px; font-size: 27px; font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sl-kpi.gold .sl-kpi-v { color: #8d6820; }
.sl-kpi-v span { font-size: 11px; font-weight: 600; color: #7b8ca1; margin-left: 3px; letter-spacing: 0; }
.sl-kpi-n { margin-top: 2px; font-size: 10px; color: #95a4b7; }

.sl-dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; flex: none; }
.sl-dir { padding: 9px 12px; border-radius: 9px; border: 1px solid #e5ebf4; background: #fff; }
.sl-dir.hl { border-color: #eadfc8; background: #fffdf8; }
.sl-dir-top { display: flex; align-items: center; gap: 6px; }
.sl-dir-board { font-size: 9.5px; padding: 0 5px; border-radius: 3px; background: #f2f6fb; color: #6d7f96; }
.sl-dir-name { font-size: 12.5px; font-weight: 600; color: #1c3049; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-dir-meta { margin-top: 4px; display: flex; align-items: center; gap: 5px; font-size: 10px; color: #8b9aad; }
.sl-dir-meta i { width: 2px; height: 2px; border-radius: 50%; background: #c9d3e0; }
.sl-dir-meta .ok { color: #0d8a7c; }
.sl-dir-meta .gold { color: #a8761f; font-weight: 600; }
.sl-dir-meta .pend { color: #93a2b5; }
.sl-dir-proj { margin-top: 3px; font-size: 9.5px; color: #a3b0c1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-empty { padding: 14px; text-align: center; color: #93a2b5; font-size: 11px; }
.sl-more { padding: 6px 2px 0; font-size: 10px; color: #93a2b5; }

table.sl-table td .nm { font-size: 11px; font-weight: 600; color: #14263c; }
table.sl-table td .sub { font-size: 9.5px; color: #93a2b5; margin-top: 1px; }

@media (max-width: 1280px) {
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .headline { flex-direction: column; }
  .hl-main { width: auto; border-right: 0; border-bottom: 1px solid #f0e6d2; }
  .hl-split { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .key-list { grid-template-columns: minmax(0, 1fr); }
  .dir-grid { grid-template-columns: minmax(0, 1fr); }
  .hl-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   V1.3 线上模式：登录、账号、审核
   ========================================================================== */
[hidden] { display: none !important; }

.login-wrap {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 15% 0%, #eaf1fb 0%, rgba(234, 241, 251, 0) 60%),
    radial-gradient(700px 500px at 100% 100%, #f7f1e4 0%, rgba(247, 241, 228, 0) 55%),
    #f6f8fc;
}
.login-card {
  width: 100%; max-width: 380px;
  padding: 30px 30px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(20, 45, 80, .12);
}
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.login-brand .brand-mark { width: 34px; height: 34px; }
.login-card h1 { margin: 18px 0 6px; font-size: 21px; letter-spacing: -.01em; color: var(--navy); }
.login-sub { margin: 0 0 20px; font-size: 12px; color: var(--muted-2); line-height: 1.6; }
.login-field { display: block; margin-bottom: 12px; }
.login-field span { display: block; margin-bottom: 5px; font-size: 12px; color: var(--muted); }
.login-field input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--ink);
  background: #fbfcfe;
}
.login-field input:focus { outline: none; border-color: #9db9dd; box-shadow: 0 0 0 3px rgba(37, 99, 235, .09); }
.login-err { min-height: 18px; font-size: 12px; color: #b3352f; margin: 2px 0 8px; }
.login-submit { width: 100%; height: 42px; font-size: 14px; }
.login-hint { margin: 14px 0 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.7; }
.login-back { display: inline-block; margin-top: 10px; font-size: 11.5px; color: var(--muted-2); text-decoration: none; }
.login-back:hover { color: var(--navy-3); }

.whoami { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-right: 4px; }
.whoami b { color: var(--ink-2); font-weight: 600; }
.whoami em { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; background: #eef3fb; color: #3d6ba5; }
.whoami .btn { height: 26px; padding: 0 8px; font-size: 11.5px; }

.tag-rv-ok { background: #e9f6f0; color: #1a7f5a; }
.tag-rv-no { background: #fdecea; color: #b3352f; }
.tag-rv-wait { background: #fbf3e2; color: #8d6820; }

.review-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 10px 16px;
  border: 1px dashed #e6cf9f; border-radius: 11px;
  background: linear-gradient(90deg, #fdf8ec, #fffdf8);
  font-size: 12.5px; color: #8a7136;
}
.review-banner b { color: #8d6820; }

.user-list { display: grid; gap: 4px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.user-row:last-child { border-bottom: 0; }
.user-main { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; }
.user-main b { color: var(--ink); font-weight: 600; }
.user-main span { color: var(--muted-2); font-size: 11.5px; }
.user-main em { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; background: #f1f5fa; color: #6d7f96; }
.user-main em.is-admin { background: #fbf3e2; color: #8d6820; }
.user-main em.is-off { background: #fdecea; color: #b3352f; }
.user-tools { display: flex; gap: 5px; flex: none; }
.user-add { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; margin-top: 12px; }
.user-add input { height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-family: inherit; }
.site-foot .icp { color: var(--muted-2); text-decoration: none; }
.site-foot .icp:hover { color: var(--navy-3); }

@media (max-width: 760px) {
  .user-add { grid-template-columns: 1fr 1fr; }
  .whoami b, .whoami em { display: none; }
}
