/* ============================================================
   村级村务管理系统 · 政府风格响应式样式
   ============================================================ */

:root {
  --red-900: #7d1010;
  --red-800: #941616;
  --red-700: #b01c1c;
  --red-600: #c62828;
  --red-50: #fdf1f1;
  --gold-600: #b58a1d;
  --gold-500: #c9a227;
  --gold-400: #d9b64a;
  --gold-50: #fbf6e7;
  --ink-900: #1c2430;
  --ink-700: #3a4452;
  --ink-500: #6b7685;
  --ink-400: #909aa8;
  --line: #e4e8ee;
  --bg: #f3f5f8;
  --white: #ffffff;
  --green: #1e7d4f;
  --green-50: #eaf6ef;
  --blue: #1b5e9e;
  --blue-50: #eaf2fb;
  --amber: #a96a00;
  --amber-50: #fdf4e3;
  --gray-50: #f1f3f6;
  --shadow-sm: 0 1px 2px rgba(20, 30, 45, .06);
  --shadow-md: 0 6px 18px rgba(20, 30, 45, .08);
  --shadow-lg: 0 18px 48px rgba(20, 30, 45, .18);
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar-w: 236px;
  --topbar-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-700); text-decoration: none; }
a:hover { color: var(--red-600); }

img { max-width: 100%; }

.v-icon { width: 18px; height: 18px; flex: none; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: linear-gradient(100deg, var(--red-900) 0%, var(--red-800) 48%, #a51a1a 100%);
  color: #fff;
  z-index: 60;
  border-bottom: 3px solid var(--gold-500);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-emblem {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #f7df9c 0%, #d9b64a 46%, #b58a1d 100%);
  color: var(--red-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 2px 6px rgba(0, 0, 0, .28);
  flex: none;
  letter-spacing: 0;
}

.brand-text { min-width: 0; }
.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.brand-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, .72);
  letter-spacing: 2px;
  line-height: 1.3;
}

.topbar .spacer { flex: 1; }

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
}

.topbar-date { white-space: nowrap; }

.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle:hover { background: rgba(255, 255, 255, .16); }

.user-area { position: relative; }

.user-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  border-radius: 22px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.user-trigger:hover { background: rgba(255, 255, 255, .16); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3d98e, var(--gold-500));
  color: var(--red-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: 11px; color: rgba(255, 255, 255, .68); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 6px;
  color: var(--ink-700);
  display: none;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border-radius: 5px;
  color: var(--ink-700);
  font-size: 13px;
}
.user-dropdown a:hover { background: var(--red-50); color: var(--red-700); }
.user-dropdown .divider { height: 1px; background: var(--line); margin: 5px 4px; }

/* ---------------- 侧栏 ---------------- */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 14px 10px 24px;
  z-index: 55;
  scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #d9dee6; border-radius: 3px; }

.nav-group { margin-bottom: 12px; }
.nav-title {
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  margin-bottom: 2px;
  border-radius: 7px;
  color: var(--ink-700);
  font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: background .16s, color .16s;
}
.nav-item .v-icon { width: 17px; height: 17px; color: var(--ink-400); }
.nav-item:hover { background: #f7f8fa; color: var(--red-700); }
.nav-item:hover .v-icon { color: var(--red-700); }
.nav-item.active {
  background: var(--red-50);
  color: var(--red-800);
  border-left-color: var(--red-700);
  font-weight: 700;
}
.nav-item.active .v-icon { color: var(--red-700); }

.sidebar-foot {
  margin-top: 15px;
  padding: 12px 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--ink-400);
  line-height: 1.7;
}

.sidebar-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 32, .45);
  z-index: 50;
}.sidebar-mask.show { display: block; }

/* ---------------- 主体 ---------------- */
.main {
  margin-left: var(--sidebar-w);
  padding: calc(var(--topbar-h) + 22px) 24px 30px;
  min-height: 100vh;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-title {
  margin: 0;
  font-size: 21px;
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.page-title::before {
  content: "";
  width: 4px; height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--red-700), var(--gold-500));
}
.page-sub { margin: 4px 0 0 13px; color: var(--ink-500); font-size: 12.5px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  display: flex; align-items: center; gap: 8px;
}
.card-title small { color: var(--ink-400); font-weight: 400; font-size: 12px; margin-left: 6px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 14px; }

/* ---------------- 统计卡片 ---------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  color: var(--ink-900);
  transition: box-shadow .18s, transform .18s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: inherit; }
.stat-card::after {
  content: "";
  position: absolute;
  right: -26px; top: -30px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--stat-bg, var(--red-50));
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.stat-label { font-size: 12.5px; color: var(--ink-500); }
.stat-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--stat-bg, var(--red-50));
  color: var(--stat-color, var(--red-700));
}
.stat-icon .v-icon { width: 19px; height: 19px; }
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
  position: relative; z-index: 1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-value small { font-size: 12px; font-weight: 400; color: var(--ink-400); margin-left: 4px; }
.stat-sub { font-size: 12px; color: var(--ink-500); position: relative; z-index: 1; }
.stat-card.tone-red { --stat-bg: var(--red-50); --stat-color: var(--red-700); }
.stat-card.tone-gold { --stat-bg: var(--gold-50); --stat-color: var(--gold-600); }
.stat-card.tone-green { --stat-bg: var(--green-50); --stat-color: var(--green); }
.stat-card.tone-blue { --stat-bg: var(--blue-50); --stat-color: var(--blue); }
.stat-card.tone-amber { --stat-bg: var(--amber-50); --stat-color: var(--amber); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s;
}
.btn:hover { border-color: #cdd4de; color: var(--ink-900); background: #fafbfc; }
.btn:active { transform: translateY(1px); }
.btn .v-icon { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--red-700), var(--red-800));
  border-color: var(--red-800);
  color: #fff;
  box-shadow: 0 2px 6px rgba(148, 22, 22, .18);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--red-600), var(--red-700)); border-color: var(--red-700); color: #fff; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  border-color: var(--gold-600);
  color: #4c3607;
}
.btn-gold:hover { color: #3a2905; background: linear-gradient(180deg, #e2c35f, var(--gold-500)); }
.btn-ghost-red { color: var(--red-700); border-color: #eccfcf; background: var(--red-50); }
.btn-ghost-red:hover { color: #fff; background: var(--red-700); border-color: var(--red-700); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.link-btn {
  border: 0; background: none; padding: 0;
  color: var(--red-700); cursor: pointer; font-family: inherit; font-size: 12.5px;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red-700); }

/* ---------------- 工具栏 / 搜索 ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fcfcfd;
  border-radius: var(--radius) var(--radius) 0 0;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-box { position: relative; }
.search-box .v-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--ink-400);
}
.input, .select, .textarea {
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-700);
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  min-height: 34px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .08);
}
.search-box .input { padding-left: 31px; width: 230px; }
.select { padding-right: 26px; }
.textarea { width: 100%; resize: vertical; min-height: 74px; line-height: 1.6; }

.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------------- 标签页 ---------------- */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--ink-500);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--red-700); }
.tab.active { color: var(--red-800); font-weight: 700; border-bottom-color: var(--red-700); }

/* ---------------- 表格 ---------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.data-table th {
  background: #f7f8fa;
  color: var(--ink-700);
  font-weight: 700;
  font-size: 12.5px;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}
.data-table th.num { text-align: right; }
.data-table td.num, .data-table td.align-right { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.align-left { text-align: left; }
.data-table tbody tr { cursor: pointer; transition: background .12s; }
.data-table tbody tr:nth-child(even) { background: #fbfcfd; }
.data-table tbody tr:hover { background: var(--red-50); }
.data-table tbody tr:active { background: #fbe9e9; }
.data-table td.cell-actions { white-space: nowrap; }
.data-table td.cell-actions .link-btn + .link-btn { margin-left: 9px; }
.data-table td.cell-text { white-space: normal; min-width: 160px; }

.th-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}
.th-link:hover { color: var(--red-700); }
.sort-icon { font-size: 10px; color: var(--ink-400); line-height: 1; }
.sort-icon .on { color: var(--red-700); }
.sort-icon span { display: block; }

.table-empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--ink-400);
}
.table-empty .v-icon { width: 42px; height: 42px; color: #cdd4de; margin-bottom: 8px; }
.table-empty p { margin: 0; font-size: 13px; }

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 12.5px;
}
.pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 30px; height: 30px;
  padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-700);
  font-size: 12.5px;
  background: #fff;
}
.pager a:hover { border-color: var(--red-600); color: var(--red-700); }
.pager .current { background: var(--red-700); border-color: var(--red-700); color: #fff; font-weight: 700; }
.pager .disabled { color: var(--ink-400); background: #f7f8fa; pointer-events: none; }
.pager .ellipsis { border: 0; background: none; color: var(--ink-400); }

/* ---------------- 徽章 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.6;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-red { background: var(--red-50); color: var(--red-700); border-color: #f0d2d2; }
.badge-green { background: var(--green-50); color: var(--green); border-color: #cfe8da; }
.badge-blue { background: var(--blue-50); color: var(--blue); border-color: #cfe0f2; }
.badge-amber { background: var(--amber-50); color: var(--amber); border-color: #f0dfba; }
.badge-gray { background: var(--gray-50); color: var(--ink-500); border-color: #e2e6ec; }
.badge-gold { background: var(--gold-50); color: var(--gold-600); border-color: #eddfae; }

/* ---------------- 表单 ---------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
}
.form-item { display: flex; flex-direction: column; gap: 5px; }
.form-item.full { grid-column: 1 / -1; }
.form-label {
  font-size: 12.5px;
  color: var(--ink-700);
  font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.form-label .req { color: var(--red-600); font-weight: 400; }
.form-hint { font-size: 11.5px; color: var(--ink-400); }
.form-item .input, .form-item .select { width: 100%; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.form-section-title {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  color: var(--red-800);
  border-left: 3px solid var(--red-700);
  padding-left: 8px;
  margin-top: 4px;
}

.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
  font-size: 13px;
  cursor: pointer;
  min-width: 170px;
}
.check-label:hover { border-color: #eccfcf; background: var(--red-50); }
.check-label input { accent-color: var(--red-700); width: 15px; height: 15px; }
.check-label small { display: block; color: var(--ink-400); font-size: 11px; }

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 32, .5);
  backdrop-filter: blur(2px);
}
.modal-dialog {
  position: relative;
  width: 620px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin: auto 0;
  animation: modal-in .22s ease;
  overflow: hidden;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-dialog.narrow { width: 440px; }
.modal-dialog.wide { width: 780px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fafbfc);
}
.modal-title {
  margin: 0; font-size: 15.5px; font-weight: 700; color: var(--ink-900);
  display: flex; align-items: center; gap: 8px;
}
.modal-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--red-700), var(--gold-500));
}
.modal-close {
  border: 0; background: none; cursor: pointer; color: var(--ink-400);
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.modal-close:hover { background: var(--gray-50); color: var(--ink-700); }
.modal-body { padding: 18px 20px 4px; max-height: calc(100vh - 220px); overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 9px;
  padding: 14px 20px; border-top: 1px solid var(--line);
  background: #fcfcfd;
}

/* ---------------- 提示 ---------------- */
.toast-wrap {
  position: fixed;
  top: 76px; right: 18px;
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  min-width: 200px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  animation: toast-in .2s ease;
  pointer-events: auto;
  border-left: 4px solid var(--red-700);
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red-600); }
.toast.info { border-left-color: var(--blue); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast.out { opacity: 0; transform: translateX(14px); transition: opacity .2s, transform .2s; }

/* ---------------- 占位与加载 ---------------- */
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-400);
}
.empty-state .v-icon { width: 40px; height: 40px; color: #cdd4de; }
.empty-state p { margin: 8px 0 0; font-size: 13px; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 登录页 ---------------- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(1200px 600px at 12% 8%, rgba(201, 162, 39, .18), transparent 60%),
    radial-gradient(900px 500px at 88% 92%, rgba(201, 162, 39, .14), transparent 60%),
    linear-gradient(135deg, #6e0d0d 0%, #8d1414 42%, #a51a1a 100%);
  position: relative;
  overflow: hidden;
}
.login-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 424px;
  align-items: center;
  gap: 48px;
}

.login-brand { color: #fff; }
.login-brand .emblem-lg {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #f9e5ae 0%, #d9b64a 48%, #b58a1d 100%);
  color: var(--red-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 8px 20px rgba(0, 0, 0, .3);
  margin-bottom: 22px;
}
.login-brand h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.login-brand .subtitle {
  margin: 12px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  letter-spacing: 5px;
}
.login-brand .gold-line {
  width: 74px; height: 3px;
  margin: 22px 0;
  background: linear-gradient(90deg, var(--gold-400), rgba(217, 182, 74, .1));
  border-radius: 2px;
}
.login-brand p.desc {
  max-width: 430px;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.9;
  margin: 0;
}
.login-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
}
.login-points li { display: flex; align-items: center; gap: 6px; }
.login-points .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-400);
}

.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 30px 26px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .3);
  border-top: 4px solid var(--gold-500);
}
.login-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: 1px;
}
.login-card .login-tip { margin: 0 0 22px; font-size: 12.5px; color: var(--ink-400); }

.login-field { margin-bottom: 15px; }
.login-field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-700);
  font-weight: 700;
  margin-bottom: 6px;
}
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-wrap .v-icon {
  position: absolute; left: 12px;
  width: 17px; height: 17px; color: var(--ink-400);
}
.login-input-wrap .input {
  width: 100%;
  height: 44px;
  padding-left: 38px;
  font-size: 14px;
  border-radius: 8px;
  background: #fbfcfd;
}
.captcha-row { display: flex; gap: 10px; }
.captcha-row .input { flex: 1; min-width: 0; }
.captcha-img {
  width: 118px; height: 44px;
  border-radius: 8px;
  border: 1px solid #d8dee7;
  cursor: pointer;
  object-fit: cover;
  flex: none;
  background: #f7f9fc;
}
.login-submit {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: 3px;
  border-radius: 8px;
}
.login-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-400);
  line-height: 1.8;
  text-align: center;
}
.login-notice {
  margin: 0 0 16px;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--gold-50);
  border: 1px solid #eddfae;
  color: #7a5a10;
  font-size: 12px;
  line-height: 1.7;
}
.login-alert {
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--red-50);
  border: 1px solid #f0d2d2;
  color: var(--red-700);
  font-size: 12.5px;
}
.login-copyright {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: 11.5px;
  padding: 0 20px 24px;
}
.login-page-inner { display: flex; flex-direction: column; min-height: 100vh; width: 100%; }
.login-page-inner .login-wrap { flex: 1; }

/* ---------------- 工作台 ---------------- */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.chart-box { position: relative; width: 100%; height: 260px; }
.chart-box.small { height: 210px; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.list-plain li:last-child { border-bottom: 0; }
.list-plain .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red-600);
  margin-top: 8px; flex: none;
}
.list-plain .grow { flex: 1; min-width: 0; }
.list-plain .t {
  display: block;
  color: var(--ink-700);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-plain .m { font-size: 11.5px; color: var(--ink-400); }
.list-plain .time { font-size: 11.5px; color: var(--ink-400); white-space: nowrap; }
.list-plain li:hover .t { color: var(--red-700); }

.village-banner {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #7d1010, #a51a1a 55%, #b8860b 160%);
  color: #fff;
  overflow: hidden;
  margin-bottom: 16px;
}
.village-banner::after {
  content: "";
  position: absolute; right: -40px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, .06);
}
.village-banner h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: 1px; }
.village-banner p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.village-banner .meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .85);
}
.village-banner .meta strong { color: #fff; font-size: 18px; margin-right: 4px; }

/* ---------------- 村情页面 ---------------- */
.intro-text {
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-700);
  white-space: pre-line;
  margin: 0;
}
.honor-list { list-style: none; margin: 0; padding: 0; }
.honor-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.honor-list li:last-child { border-bottom: 0; }
.honor-year {
  width: 52px; flex: none;
  font-weight: 700; color: var(--gold-600);
  font-size: 13px;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 8px;
}
.honor-name { flex: 1; min-width: 0; }
.honor-name .t { display: block; color: var(--ink-900); font-weight: 700; font-size: 13.5px; }
.honor-name .m { font-size: 11.5px; color: var(--ink-400); }

.cadre-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cadre-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfdfe;
}
.cadre-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(180deg, var(--red-50), #f7dede);
  color: var(--red-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex: none;
  border: 1px solid #efd3d3;
}
.cadre-item .name { font-weight: 700; color: var(--ink-900); font-size: 13.5px; }
.cadre-item .pos { color: var(--red-700); font-size: 12px; }
.cadre-item .phone { color: var(--ink-400); font-size: 11.5px; }

/* ---------------- 报表 ---------------- */
.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.report-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.report-card:hover { border-color: #e6c7c7; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.report-card .rc-head { display: flex; align-items: center; gap: 9px; }
.report-card .rc-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--red-50); color: var(--red-700);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.report-card h3 { margin: 0; font-size: 13.5px; color: var(--ink-900); }
.report-card p { margin: 0; font-size: 11.5px; color: var(--ink-400); min-height: 34px; line-height: 1.7; }
.report-card .rc-actions { display: flex; gap: 8px; margin-top: 2px; }
.report-card .rc-actions .btn { flex: 1; }
.report-block { margin-bottom: 18px; }
.report-block:last-child { margin-bottom: 0; }
.report-meta { color: var(--ink-400); font-size: 11.5px; }
.report-summary {
  padding: 12px 14px;
  background: #fbfaf6;
  border: 1px solid #efe7cf;
  border-radius: 8px;
  font-size: 12.5px;
  color: #6b5510;
  line-height: 1.9;
  margin-bottom: 14px;
}
.report-summary ol { margin: 0; padding-left: 18px; }
.report-table { min-width: 480px; }
.report-table th, .report-table td { padding: 8px 12px; }
.report-table-title {
  font-size: 13px; font-weight: 700; color: var(--ink-900);
  margin: 16px 0 8px; padding-left: 8px;
  border-left: 3px solid var(--gold-500);
}

/* ---------------- 系统设置 ---------------- */
.settings-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setting-link {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-700);
  transition: border-color .16s, box-shadow .16s;
}
.setting-link:hover { border-color: #e6c7c7; box-shadow: var(--shadow-sm); color: var(--ink-900); }
.setting-link .sl-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--red-50); color: var(--red-700);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.setting-link .sl-title { font-weight: 700; font-size: 13.5px; display: block; }
.setting-link .sl-desc { font-size: 11.5px; color: var(--ink-400); display: block; }
.setting-link .sl-arrow { margin-left: auto; color: var(--ink-400); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.info-row {
  display: flex; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.info-row .k { color: var(--ink-500); width: 110px; flex: none; }
.info-row .v { color: var(--ink-900); word-break: break-all; }

.license-box {
  display: flex; align-items: center; gap: 18px;
  padding: 18px;
  border: 1px solid #eddfae;
  background: linear-gradient(120deg, #fdfaf0, #fffdf7);
  border-radius: 10px;
  flex-wrap: wrap;
}
.license-seal {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--gold-500);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; text-align: center; line-height: 1.4;
  flex: none;
  background: #fffdf7;
}
.license-meta { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--ink-500); line-height: 1.9; }
.license-meta strong { color: var(--ink-900); }

/* ---------------- 关于 ---------------- */
.about-hero {
  text-align: center;
  padding: 30px 20px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fcfaf5);
}
.about-hero .emblem-lg {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 16px;
  background: radial-gradient(circle at 50% 40%, #f9e5ae, #d9b64a 48%, #b58a1d 100%);
  color: var(--red-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 8px 20px rgba(120, 16, 16, .18);
}
.about-hero h2 { margin: 0 0 6px; font-size: 22px; color: var(--ink-900); letter-spacing: 1px; }
.about-hero p { margin: 0; font-size: 12.5px; color: var(--ink-400); }
.wechat-card {
  display: flex; align-items: center; gap: 18px;
  padding: 20px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--red-800), #a51a1a 70%, #b8860b 160%);
  color: #fff;
  flex-wrap: wrap;
}
.wechat-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); flex: none;
}
.wechat-card h3 { margin: 0 0 3px; font-size: 15px; }
.wechat-card p { margin: 0; font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.wechat-id {
  margin-left: auto;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f7dfa5;
  user-select: all;
}

/* ---------------- 403 / 错误 ---------------- */
.error-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% 0%, #fdf3f3, transparent 70%),
    var(--bg);
}
.error-card {
  width: 460px; max-width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 38px 26px;
  box-shadow: var(--shadow-md);
}
.error-code {
  font-size: 54px; font-weight: 700; line-height: 1;
  color: var(--red-700);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.error-card h1 { margin: 0 0 8px; font-size: 17px; color: var(--ink-900); }
.error-card p { margin: 0 0 20px; font-size: 13px; color: var(--ink-500); line-height: 1.8; }
.error-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 杂项 ---------------- */
.muted { color: var(--ink-400); font-size: 12px; }
.text-red { color: var(--red-700); }
.text-green { color: var(--green); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.hidden { display: none !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  .menu-toggle { display: flex; }
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar-date { display: none; }
  .brand-sub { display: none; }
  .sidebar {
    transform: translateX(-102%);
    transition: transform .24s ease;
    box-shadow: var(--shadow-lg);
    width: 252px;
    z-index: 56;
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: calc(var(--topbar-h) + 18px) 16px 26px; }
  .login-wrap { grid-template-columns: 1fr; gap: 26px; padding: 28px 18px; max-width: 560px; }
  .login-brand { text-align: center; }
  .login-brand .emblem-lg { margin: 0 auto 16px; }
  .login-brand p.desc { margin: 0 auto; }
  .login-points { justify-content: center; }
  .login-brand h1 { font-size: 26px; }
  .login-card { padding: 26px 22px 22px; }
}

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .grid-3 { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .settings-list { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .cadre-list { grid-template-columns: 1fr; }
  .page-title { font-size: 18px; }
  .card-body { padding: 14px; }
  .toolbar { padding: 10px 12px; }
  .search-form { width: 100%; }
  .search-box { flex: 1; min-width: 0; }
  .search-box .input { width: 100%; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn { flex: 1; }
  .table-foot { padding: 10px 12px; }
  .main { padding-left: 12px; padding-right: 12px; }
  .brand-title { font-size: 14px; }
  .user-role { display: none; }
  .user-name { max-width: 70px; }
  .login-brand p.desc { display: none; }
  .login-points { margin-top: 16px; gap: 12px; }
  .wechat-id { margin-left: 0; width: 100%; }
  .modal { padding: 14px 10px; }
  .modal-dialog { width: 100%; }
  .modal-body { padding: 16px 16px 4px; }
  .modal-head { padding: 13px 16px; }
  .toast-wrap { left: 12px; right: 12px; top: 70px; }
  .toast { max-width: none; }
  .village-banner { padding: 18px; }
  .village-banner h2 { font-size: 18px; }
  .hidden-mobile { display: none !important; }
}

@media (max-width: 420px) {
  .captcha-img { width: 100px; }
  .login-brand h1 { font-size: 22px; }
  .login-card h2 { font-size: 18px; }
  .stat-value { font-size: 23px; }
}

/* 打印 */
@media print {
  .topbar, .sidebar, .toolbar-actions, .table-foot, .head-actions, .tabs, .cell-actions { display: none !important; }
  .main { margin: 0; padding: 0; }
  .card { border: 0; box-shadow: none; }
  .data-table { min-width: 0; font-size: 12px; }
}
