:root {
  --brand: #1a5fb4;
  --brand-dark: #12457f;
  --brand-soft: #eaf2fd;
  --brand-line: #cfe0f7;
  --ink: #1b2230;
  --ink-2: #48536b;
  --muted: #7b869c;
  --line: #e3e8f1;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ok: #12795a;
  --ok-soft: #e6f5ef;
  --warn: #a8660a;
  --warn-soft: #fdf3e2;
  --danger: #b83a33;
  --danger-soft: #fdecea;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 60, .04), 0 6px 20px rgba(20, 32, 60, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 顶栏 ---------- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.topbar-in {
  max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 64px;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 600;
}
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .5px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 7px; color: var(--ink-2); font-size: 14px; white-space: nowrap;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--ink-2);
  background: #fff;
}
.user-chip .avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}

/* ---------- 布局 ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.page-narrow { max-width: 940px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.two-col > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.card-head h2 { font-size: 16px; }
.card-head .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.sec-title { font-size: 16px; margin-bottom: 4px; }
.sec-desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; border-radius: 9px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 6px; }
.btn-line { background: #fff; color: var(--brand); border-color: var(--brand-line); }
.btn-line:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #f4f6fa; color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c8c5; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-text { background: none; border: 0; color: var(--brand); padding: 0 4px; height: auto; cursor: pointer; font-size: 13px; }
.btn-text:hover { color: var(--brand-dark); text-decoration: underline; }
.btn-text.danger { color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-size: inherit; }

/* ---------- 首页 ---------- */
.hero {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.hero-band {
  background: linear-gradient(120deg, #16447f 0%, #1a5fb4 55%, #2a76cf 100%);
  color: #fff; padding: 30px 32px 26px; position: relative; overflow: hidden;
}
.hero-band:after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border-radius: 50%; border: 40px solid rgba(255, 255, 255, .07);
}
.hero-band .eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  background: rgba(255, 255, 255, .16); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.hero-band h1 { font-size: 25px; letter-spacing: .5px; margin-bottom: 8px; }
.hero-band .lead { color: rgba(255, 255, 255, .86); font-size: 13.5px; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-actions .btn { background: #fff; color: var(--brand-dark); }
.hero-actions .btn:hover { background: #eef4ff; }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-body { padding: 18px 22px 22px; }

.nodes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.node {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fbfcfe;
}
.node .name { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.node .dot { width: 6px; height: 6px; border-radius: 50%; background: #c6cedd; }
.node .val { font-size: 12px; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.node.on { background: var(--brand-soft); border-color: var(--brand-line); }
.node.on .dot { background: var(--brand); }
.node.on .name { color: var(--brand-dark); }
.node.done { opacity: .72; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
}
.stat .label { color: var(--muted); font-size: 12.5px; }
.stat .num { font-size: 26px; font-weight: 600; color: var(--brand-dark); font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat .num small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }

.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li {
  display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.notice-list li:last-child { border-bottom: 0; }
.notice-list .t {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 13.5px;
}
.notice-list .t:hover { color: var(--brand); }
.notice-list .d { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dot-mark { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-line); margin-top: 8px; flex: none; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 9px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
table.data th {
  background: #f7f9fd; color: var(--ink-2); font-weight: 500; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 12px; border-bottom: 1px solid #eef1f7; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcff; }
table.data .num { font-variant-numeric: tabular-nums; text-align: center; }
table.data .strong { font-weight: 500; }
table.data .sub { color: var(--muted); font-size: 12px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field > label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #d7dfeb; border-radius: 8px; padding: 8px 11px;
  font-size: 13.5px; color: var(--ink); background: #fff; outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 95, 180, .1); }
.input:disabled { background: #f5f7fa; color: var(--muted); }
.textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span3 { grid-column: span 3; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hint-err { color: var(--danger); }
.hint-ok { color: var(--ok); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--brand); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 5px; font-size: 12px; background: #f0f3f8; color: var(--ink-2); white-space: nowrap;
}
.tag.blue { background: var(--brand-soft); color: var(--brand-dark); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.gray { background: #f1f3f7; color: var(--muted); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; gap: 0; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; }
.step {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; cursor: pointer;
  color: var(--muted); font-size: 13px; white-space: nowrap; border: 0; background: none;
  border-bottom: 2px solid transparent;
}
.step .n {
  width: 20px; height: 20px; border-radius: 50%; background: #eef1f6; color: var(--muted);
  display: grid; place-items: center; font-size: 11.5px; flex: none;
}
.step.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.step.active .n { background: var(--brand); color: #fff; }
.step.done .n { background: var(--ok-soft); color: var(--ok); }
.step.done { color: var(--ink-2); }

/* ---------- 时间轴 ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.timeline li { position: relative; padding: 0 0 14px 18px; border-left: 1px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .dot2 {
  position: absolute; left: -4.5px; top: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: #cbd4e4; border: 1.5px solid #fff;
}
.timeline li.on .dot2 { background: var(--brand); }
.timeline li.done .dot2 { background: var(--ok); }
.timeline .what { font-size: 13px; color: var(--ink); }
.timeline .when { font-size: 12px; color: var(--muted); }

/* ---------- 材料 ---------- */
.file-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.file-card { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fbfcfe; }
.file-card .k { font-size: 13px; font-weight: 500; }
.file-card .k .req { color: var(--danger); }
.file-card .d { font-size: 11.5px; color: var(--muted); margin: 2px 0 8px; }
.file-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 6px; }
.file-item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb {
  width: 100%; height: 96px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; margin-bottom: 8px; display: block;
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 12px; width: 100%; max-width: 520px; max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(10, 20, 40, .22);
}
.modal.wide { max-width: 760px; }
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-size: 15.5px; }
.modal-body { padding: 20px; overflow: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.x-btn { background: none; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 2px; }
.x-btn:hover { color: var(--ink); }

/* ---------- 提示 ---------- */
.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast {
  background: #1f2937; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); animation: tin .2s ease-out;
}
.toast.ok { background: #12795a; }
.toast.err { background: #b83a33; }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }

.empty { text-align: center; color: var(--muted); padding: 44px 10px; font-size: 13.5px; }
.empty .big { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }

.notice-box {
  background: var(--warn-soft); border: 1px solid #f3e2c4; color: #7a4d05; border-radius: 8px;
  padding: 10px 13px; font-size: 12.5px; line-height: 1.75;
}
.notice-box.info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
.notice-box.err { background: var(--danger-soft); border-color: #f2cdc9; color: #8f2b25; }

/* ---------- 详情列表 ---------- */
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); }

/* ---------- 公告正文 ---------- */
.article h3 { font-size: 15px; margin: 20px 0 8px; color: var(--ink); }
.article p { margin: 0 0 10px; }
.article strong { color: var(--ink); }
.article ul, .article ol { padding-left: 20px; }

/* ---------- 打印页 ---------- */
.print-frame { width: 100%; height: calc(100vh - 120px); border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .nodes { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .file-grid { grid-template-columns: 1fr 1fr; }
  .hero-band h1 { font-size: 20px; }
}
@media (max-width: 640px) {
  .topbar-in { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .nav a { padding: 7px 10px; font-size: 13px; }
  .page { padding: 14px 12px 48px; }
  .nodes { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .file-grid { grid-template-columns: 1fr; }
  .hero-band { padding: 22px 20px; }
  .card { padding: 15px; }
}
