/* ============================================================
   智慧村务管理系统 · 样式表
   设计基准：1440×900，浅色后台 + 深蓝导航，对齐镇村两级政务系统审美
   ============================================================ */

:root {
  --nav-bg: linear-gradient(180deg, #1d4269 0%, #173654 55%, #142e48 100%);
  --nav-text: #c9d9ea;
  --nav-active: #2f7cf6;

  --bg: #f2f5fa;
  --card: #ffffff;
  --line: #e6ecf5;
  --line-soft: #eff3f9;
  --text: #1c2a3a;
  --text-2: #55677e;
  --muted: #8494a8;

  --blue: #1f6fd0;
  --blue-2: #2f7cf6;
  --blue-soft: #eaf2ff;
  --ok: #0f9d58;
  --ok-soft: #e7f7ee;
  --warn: #c47b00;
  --warn-soft: #fff5e4;
  --danger: #d92d20;
  --danger-soft: #fdecea;
  --purple: #7a5af8;
  --purple-soft: #f0edff;

  --r: 12px;
  --shadow: 0 1px 2px rgba(19, 43, 76, .04), 0 1px 3px rgba(19, 43, 76, .03);
  --shadow-lg: 0 18px 48px rgba(16, 36, 64, .16);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }

/* ---------------- 布局 ---------------- */

.app { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; z-index: 40;
  flex: 0 0 224px; width: 224px; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--nav-bg);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-mark {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, #4f9dfb, #1f6fd0);
  color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(12, 40, 74, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { color: #fff; font-size: 15px; letter-spacing: .5px; }
.brand-text span { color: #9fb9d4; font-size: 11px; letter-spacing: .4px; }

.nav { flex: 1; overflow-y: auto; padding: 8px 0 12px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; margin: 1px 8px; padding: 0 10px;
  border-radius: 8px;
  color: var(--nav-text); font-size: 13px;
  cursor: pointer; user-select: none;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item svg { width: 16px; height: 16px; flex: none; opacity: .82; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.on {
  background: linear-gradient(90deg, rgba(79, 157, 251, .30), rgba(79, 157, 251, .10));
  color: #fff; font-weight: 600;
}
.nav-item.on::before {
  content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: #63b0ff;
}
.nav-item.on svg { opacity: 1; }

.nav-sep { height: 1px; margin: 7px 16px; background: rgba(255, 255, 255, .13); }

.sidebar-foot {
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; gap: 8px;
}
.foot-line { color: #8aa6c2; font-size: 11px; }
.btn-reset {
  height: 28px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #c9d9ea; font-size: 11.5px;
}
.btn-reset:hover { background: rgba(255, 255, 255, .13); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 56px; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: 14px; font-weight: 600; color: #22354b; letter-spacing: .2px; }
.top-actions { display: flex; align-items: center; gap: 14px; }

.search { position: relative; }
.search > svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.search input {
  width: 250px; height: 32px; padding: 0 10px 0 30px;
  border: 1px solid #dde6f2; border-radius: 8px;
  background: #f7f9fd; outline: none;
  transition: border-color .15s, background .15s;
}
.search input::placeholder { color: #9dabbd; }
.search input:focus { border-color: #a9c8f5; background: #fff; box-shadow: 0 0 0 3px rgba(47, 124, 246, .10); }
.search-pop {
  position: absolute; top: 38px; right: 0; width: 360px; max-height: 380px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
}
.search-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.search-row:hover { background: #f5f9ff; }
.search-row b { font-weight: 600; }
.search-row span { color: var(--muted); font-size: 11.5px; }

.year-chip {
  height: 28px; padding: 0 10px; display: grid; place-items: center;
  border-radius: 7px; background: var(--blue-soft); color: #1a5fbd;
  font-size: 12px; font-weight: 600;
}
/* 云服务状态 */
.cloud-chip {
  height: 28px; padding: 0 9px; display: flex; align-items: center; gap: 6px;
  border-radius: 7px; background: #f2f5f9; color: #5b6b7d;
  font-size: 12px; font-weight: 600; cursor: pointer; user-select: none;
  border: 1px solid #e3e9f1; transition: background .15s, color .15s;
}
.cloud-chip:hover { background: #e9eff7; }
.cloud-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #9aa8b8; flex: none;
}
.cloud-chip[data-state="connecting"] .cloud-dot,
.cloud-chip[data-state="syncing"] .cloud-dot { background: #2f7cf6; animation: cloudPulse 1s infinite; }
.cloud-chip[data-state="synced"] { background: #eaf7ef; color: #0b7a45; border-color: #cdebd8; }
.cloud-chip[data-state="synced"] .cloud-dot { background: #16a34a; }
.cloud-chip[data-state="error"] { background: #fdecec; color: #b42318; border-color: #f6d3d1; }
.cloud-chip[data-state="error"] .cloud-dot { background: #dc2626; }
.cloud-chip[data-state="offline"] { background: #fff6e6; color: #a2620a; border-color: #f4e0bd; }
.cloud-chip[data-state="offline"] .cloud-dot { background: #d99a1a; }
@keyframes cloudPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.user { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #3f8ff5, #1f6fd0); color: #fff;
  font-size: 13px; font-weight: 600;
}
.user-text { display: flex; flex-direction: column; line-height: 1.25; }
.user-text b { font-size: 12.5px; }
.user-text span { font-size: 11px; color: var(--muted); }

.content { padding: 16px 20px 60px; max-width: 1580px; width: 100%; }

/* ---------------- 通用组件 ---------------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: .3px; }
.page-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  height: 32px; padding: 0 13px; border-radius: 8px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #3d8bf7, #1f6fd0);
  color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(31, 111, 208, .22);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(1px); }
.btn-line {
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid #dbe4f0; background: #fff; color: #34465c;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-line:hover { border-color: #b9cfeb; color: var(--blue); background: #fbfdff; }
.btn-sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-text { background: none; border: 0; color: var(--blue); font-size: 12.5px; padding: 0 2px; }
.btn-text:hover { text-decoration: underline; }
.btn-danger-text { background: none; border: 0; color: var(--danger); font-size: 12.5px; padding: 0 2px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.card-head h2 { margin: 0; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-head .sub { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.card-body { padding: 16px; }
.card-body.tight { padding: 10px 12px; }

.grid { display: grid; gap: 12px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }

/* KPI */
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; }
.kpi .k-label { color: var(--text-2); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 25px; font-weight: 650; letter-spacing: -.4px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi .k-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi .k-sub { color: var(--muted); font-size: 11.5px; }
.kpi .k-sub b { color: var(--ok); font-weight: 600; }
.kpi .k-sub b.down { color: var(--danger); }
.kpi::after {
  content: ""; position: absolute; right: -34px; top: -34px;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(47, 124, 246, .06), rgba(47, 124, 246, 0) 70%);
}
.kpi.acc .k-value { color: #185fbe; }
.kpi.ok .k-value { color: var(--ok); }
.kpi.warn .k-value { color: #b26b00; }
.kpi.dang .k-value { color: var(--danger); }

/* 标签页 */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); padding: 0 2px; overflow-x: auto; }
.tabs::-webkit-scrollbar { height: 0; }
.tab {
  position: relative; padding: 10px 1px 9px;
  border: 0; background: none;
  color: var(--text-2); font-size: 13.5px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--blue); }
.tab.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* 表格 */
.tbl-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: #f6f9fe; color: #5a6e86;
  font-weight: 600; font-size: 12px;
  text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl tbody td { padding: 9px 12px; border-bottom: 1px solid #f1f5fb; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #f8fbff; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .nowrap { white-space: nowrap; }
.tbl .strong { font-weight: 600; }
.tbl .muted { color: var(--muted); }
.cell-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.tbl-click tbody tr { cursor: pointer; }

/* 徽标 / 标签 */
.chip {
  display: inline-flex; align-items: center; gap: 3px;
  height: 21px; padding: 0 7px; border-radius: 6px;
  font-size: 11.5px; line-height: 1; white-space: nowrap;
  background: #f1f4fa; color: #5a6e86;
}
.chip + .chip { margin-left: 4px; }
.chip.blue { background: var(--blue-soft); color: #1a5fbd; }
.chip.ok { background: var(--ok-soft); color: #0b7a45; }
.chip.warn { background: var(--warn-soft); color: #a06700; }
.chip.red { background: var(--danger-soft); color: #b42318; }
.chip.purple { background: var(--purple-soft); color: #5b3fce; }
.chip.paid { background: var(--ok-soft); color: #0b7a45; font-weight: 500; }
.chip.unpaid { background: #f2f5fa; color: #7d8da3; }
.chip.unpaid::before { content: "○"; font-size: 10px; opacity: .7; }
.chip.paid::before { content: "✓"; font-size: 10px; font-weight: 700; }
.chip-md { height: 24px; font-size: 12px; padding: 0 8px; }

.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { color: #0b7a45; }
.status.warn { color: #b26b00; }
.status.dang { color: var(--danger); }
.status.info { color: var(--blue); }
.status.idle { color: var(--muted); }

/* 进度条 */
.bar { height: 6px; border-radius: 99px; background: #edf1f8; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4ecb8d, #12b76a); transition: width .4s; }
.bar.blue > i { background: linear-gradient(90deg, #7eb6ff, #2f7cf6); }
.bar.warn > i { background: linear-gradient(90deg, #fdc26b, #f79009); }

/* 图表 */
.chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 158px; padding-top: 6px; }
.cbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.cbar b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: #2c3f56; }
.cbar i {
  display: block; width: 100%; max-width: 42px; min-height: 4px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #8fc0ff, #2f7cf6);
  transition: height .5s ease;
}
.cbar.gray i { background: linear-gradient(180deg, #d5dfec, #b9c8da); }
.cbar span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.legend .li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.legend .dot { width: 8px; height: 8px; border-radius: 2px; }
.legend b { font-variant-numeric: tabular-nums; color: #21374f; }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { position: relative; flex: none; }
.donut .donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.2; }
.donut .donut-center b { display: block; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.donut .donut-center span { font-size: 11px; color: var(--muted); }

/* 工具条 */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.toolbar .grow { flex: 1; }
.field { position: relative; display: inline-flex; align-items: center; }
.field > svg { position: absolute; left: 8px; color: #98a7ba; pointer-events: none; }
.input, .select {
  height: 30px; border: 1px solid #dde6f2; border-radius: 7px;
  background: #fff; padding: 0 9px; outline: none; font-size: 12.5px; min-width: 0;
}
.input:focus, .select:focus { border-color: #a9c8f5; box-shadow: 0 0 0 3px rgba(47, 124, 246, .10); }
.field .input { padding-left: 27px; width: 240px; }
.select { padding-right: 24px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238494a8' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; cursor: pointer; }

.seg { display: inline-flex; background: #f1f4fa; border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: none; height: 26px; padding: 0 11px; border-radius: 6px; font-size: 12.2px; color: var(--text-2); }
.seg button.on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 40, 70, .08); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; align-items: center; }
.pager button { min-width: 26px; height: 26px; border-radius: 6px; border: 1px solid #e2e9f3; background: #fff; font-size: 12px; color: #41546b; padding: 0 6px; }
.pager button.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .45; }

.empty { padding: 42px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.empty svg { display: block; margin: 0 auto 10px; opacity: .5; }

/* 列表 */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); }
.list-row:last-child { border-bottom: 0; }
.list-row .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-size: 12.8px; }
.list-row .s { font-size: 11.5px; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  display: flex; align-items: center; gap: 10px; cursor: pointer; background: #fff;
}
.quick-item:hover { border-color: #c5dbf7; background: #f9fcff; }
.quick-item .qi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.quick-item b { display: block; font-size: 12.8px; }
.quick-item span { font-size: 11.5px; color: var(--muted); }

/* 抽屉 */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16, 32, 54, .34);
  opacity: 0; transition: opacity .18s;
}
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: 620px; max-width: 94vw;
  background: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s cubic-bezier(.22, .8, .3, 1);
}
.drawer.show { transform: none; }
.drawer-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-head h2 { margin: 0; font-size: 16px; }
.drawer-head .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px 26px; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fcfdff; }
.close-x { width: 28px; height: 28px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 17px; line-height: 1; }
.close-x:hover { background: #f2f5fa; color: var(--text); }

.sec-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: #2b4058; margin: 18px 0 8px; }
.sec-title:first-child { margin-top: 0; }
.sec-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--blue); }

.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; font-size: 12.8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: #22364d; word-break: break-all; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 29, 48, .40);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .16s;
}
.modal-mask.show { opacity: 1; }
.modal {
  width: 520px; max-width: 100%; max-height: 88vh;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(8px) scale(.99); transition: transform .18s;
}
.modal-mask.show .modal { transform: none; }
.modal-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fbfcfe; }

.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; }
.form-row label .req { color: var(--danger); margin-left: 2px; }
.form-row .input, .form-row .select, .form-row textarea { width: 100%; }
.form-row textarea { border: 1px solid #dde6f2; border-radius: 8px; padding: 8px 10px; min-height: 74px; resize: vertical; outline: none; }
.form-row textarea:focus { border-color: #a9c8f5; box-shadow: 0 0 0 3px rgba(47, 124, 246, .10); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12.8px; color: var(--text); }

/* Toast */
.toast-root { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #16283d; color: #fff; font-size: 12.8px;
  padding: 9px 16px; border-radius: 9px;
  box-shadow: 0 10px 26px rgba(10, 26, 46, .25);
  display: flex; align-items: center; gap: 8px;
  animation: toast-in .22s ease;
}
.toast.ok { background: #0d7a45; }
.toast.err { background: #b42318; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 提示条 */
.notice {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 13px; border-radius: 10px;
  background: var(--warn-soft); border: 1px solid #ffe3b0; color: #8a5a00;
  font-size: 12.5px;
}
.notice.blue { background: var(--blue-soft); border-color: #cfe2ff; color: #14508f; }
.notice .grow { flex: 1; }

/* 收费页专用：成员缴费状态 */
.member-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 420px; }
.head-cell { display: flex; align-items: center; gap: 8px; }
.head-cell .ini {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: #eaf2ff; color: #1a5fbd;
}
.head-cell .nm { display: flex; flex-direction: column; line-height: 1.3; }
.head-cell .nm b { font-size: 12.8px; }
.head-cell .nm span { font-size: 11px; color: var(--muted); }

.summary-cards { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 12px; }
.sum-card { padding: 15px 17px; position: relative; }
.sum-card .lab { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12.5px; }
.sum-card .val { font-size: 27px; font-weight: 650; letter-spacing: -.5px; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.sum-card .val small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.sum-card .foot { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sum-card .foot b { color: var(--ok); }
.sum-card.paid { background: linear-gradient(180deg, #f7fdfa, #fff); }
.sum-card .bar { margin-top: 7px; }

/* 打印 */
#print-root { display: none; }
@media print {
  body > .app, #modal-root, #toast-root { display: none !important; }
  #print-root { display: block !important; padding: 0; }
  .print-sheet { width: 100%; padding: 24px 12px; font-family: "SimSun", "Songti SC", serif; color: #000; }
  .print-sheet h1 { text-align: center; font-size: 22px; letter-spacing: 8px; margin: 0 0 18px; }
  .print-sheet p { font-size: 15px; line-height: 2.4; text-indent: 2em; margin: 0; }
  .print-sheet .sign { margin-top: 42px; text-align: right; font-size: 14px; line-height: 2; }
  .print-sheet .no { font-size: 12px; color: #333; margin-bottom: 14px; }
}

/* 响应式 */
@media (max-width: 1280px) {
  .g-main { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .sidebar { flex-basis: 68px; width: 68px; }
  .brand-text, .nav-item span, .sidebar-foot .foot-line, .btn-reset { display: none; }
  .brand { justify-content: center; padding: 14px 0; }
  .nav-item { justify-content: center; padding: 0; margin: 1px 10px; }
  .nav-item.on::before { display: none; }
  .sidebar-foot { display: none; }
  .search input { width: 170px; }
}
@media (max-width: 860px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: 1fr; }
  .content { padding: 12px 12px 48px; }
  .topbar { padding: 0 12px; }
  .user-text, .year-chip { display: none; }
  .search input { width: 140px; }
}
