/* ============================================================
 * pages.css - 页面专用样式
 * ============================================================ */
.module-page { max-width: 1500px; }
.page-head { margin-bottom: 20px; }
.page-head h2 { font-size: 21px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.page-desc { font-size: 13px; color: var(--text-2); }

/* 面板 */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.panel-head h3 { font-size: 14px; font-weight: 600; color: var(--text); }
.panel-body { padding: 18px; }

/* 驾驶舱 */
.dash-welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-welcome h1 { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.dash-welcome p { font-size: 13px; color: var(--text-2); }
.dash-date-badge { display: flex; align-items: baseline; gap: 4px; background: var(--primary-light); color: var(--primary); padding: 10px 18px; border-radius: 12px; }
.db-day { font-size: 30px; font-weight: 600; }
.db-mon { font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-left: 3px solid var(--sc, var(--primary)); transition: .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--sc, var(--primary)); opacity: .12; display: flex; align-items: center; justify-content: center; font-size: 22px; position: relative; }
.stat-ico::after { content: ''; }
.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.stat-num { font-size: 26px; font-weight: 600; color: var(--text); line-height: 1.1; }
.stat-num small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 5px; }

.dash-main { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.dash-col { min-width: 0; }

/* 环形图 */
.donut-wrap { display: flex; align-items: center; gap: 36px; justify-content: center; padding: 10px 0; }
.donut { width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.donut-hole { width: 100px; height: 100px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-hole b { font-size: 26px; color: var(--text); }
.donut-hole span { font-size: 11px; color: var(--text-3); }
.legend { display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--text-2); }
.legend b { color: var(--text); }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }

/* 条形图 */
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.bar-label { width: 60px; flex-shrink: 0; color: var(--text-2); text-align: right; }
.bar-track { flex: 1; height: 18px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width .5s; }
.bar-val { width: 50px; flex-shrink: 0; color: var(--text); font-weight: 500; }

/* 待办 */
.todo-mini { display: flex; flex-direction: column; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.todo-item:last-child { border-bottom: none; }
.todo-item input { accent-color: var(--primary); width: 15px; height: 15px; }
.todo-item span { flex: 1; }
.todo-item em { font-style: normal; font-size: 11px; color: var(--text-3); }
.todo-full { display: flex; flex-direction: column; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.todo-row input { accent-color: var(--primary); width: 16px; height: 16px; }
.todo-row span { flex: 1; }
.todo-row span.done { text-decoration: line-through; color: var(--text-3); }
.todo-row em { font-style: normal; font-size: 12px; color: var(--text-3); }

/* 动态 feed */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; }
.feed-title { font-size: 13px; color: var(--text); font-weight: 500; }
.feed-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 10px; cursor: pointer; font-size: 12.5px; color: var(--text-2); transition: .15s; }
.quick-item:hover { background: var(--surface-2); color: var(--primary); transform: translateY(-2px); }
.quick-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }

/* 标签页 */
.tabs-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab-btn { padding: 10px 18px; border: none; background: transparent; color: var(--text-2); font-size: 13.5px; white-space: nowrap; position: relative; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); font-weight: 500; }
.tab-btn.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
.tab-content { min-height: 200px; }

/* 财务 */
.finance-banner { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; }
.finance-banner h3 { font-size: 18px; margin-bottom: 8px; }
.finance-banner p { font-size: 12.5px; opacity: .9; }
.voucher-view { font-size: 13px; }
.v-meta { margin-bottom: 14px; color: var(--text-2); }
.v-table { width: 100%; border-collapse: collapse; }
.v-table th, .v-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; font-size: 12.5px; }
.v-table th { background: var(--surface-2); color: var(--text-2); font-weight: 500; }
.v-table td small { color: var(--text-3); }
.v-total { font-weight: 600; background: var(--surface-2); }
.v-foot { margin-top: 14px; color: var(--text-2); font-size: 12.5px; }

/* 村情概况 */
.profile-slides { position: relative; height: 300px; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: #1e293b; }
.slides-track { position: relative; height: 100%; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s; display: flex; align-items: flex-end; }
.slide.active { opacity: 1; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%); }
.slide-caption { position: relative; z-index: 1; padding: 30px; color: #fff; }
.slide-caption h3 { font-size: 22px; margin-bottom: 8px; }
.slide-caption p { font-size: 13px; opacity: .9; max-width: 600px; }
.slide-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 6px; z-index: 2; }
.slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.slide-dot.active { background: #fff; width: 20px; border-radius: 4px; }
.kv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kv-item { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--surface-2); border-radius: 8px; }
.kv-k { font-size: 12px; color: var(--text-2); }
.kv-v { font-size: 15px; font-weight: 500; color: var(--text); }

/* 民情地图 */
.map-wrap { height: 400px; margin-bottom: 18px; }
.map-canvas { position: relative; width: 100%; height: 100%; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 20px 20px; }
.map-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--text-3); }
.map-center span { display: block; font-size: 16px; font-weight: 500; color: var(--text-2); }
.map-center small { font-size: 11px; }
.map-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.mn-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; box-shadow: 0 3px 10px rgba(37,99,235,.3); }
.map-node:hover .mn-dot { transform: scale(1.1); }
.mn-label { font-size: 12px; color: var(--text-2); background: var(--surface); padding: 2px 8px; border-radius: 10px; }

/* 关系查询 */
.rel-results { display: flex; flex-direction: column; gap: 14px; }
.rel-family { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rel-head { background: var(--surface-2); padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.rel-members { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; }
.rel-member { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface-2); border-radius: 6px; font-size: 13px; }
.rel-member b { color: var(--text); }
.rel-member span { color: var(--text-3); font-size: 12px; }

/* 办公工具 */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent; transition: .15s; }
.tool-card:hover, .tool-card.active { border-color: var(--primary); }
.tool-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tool-card h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.tool-card p { font-size: 11px; color: var(--text-3); line-height: 1.4; }
.tool-form { display: flex; gap: 10px; max-width: 500px; }
.tool-form input, .tool-form textarea { flex: 1; border: 1px solid var(--border); border-radius: 7px; padding: 8px 12px; outline: none; background: var(--surface); color: var(--text); }
.tool-form input:focus { border-color: var(--primary); }
.big-money { margin-top: 16px; font-size: 18px; color: var(--primary); font-weight: 500; }

/* 数据采集 */
.dataset-item { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.dataset-item b { font-size: 14px; color: var(--text); }
.dataset-item p { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ============================================================
 * 新增业务专用样式：医保养老催缴 / 民政救助 / 乡贤评选
 * ============================================================ */
/* 通用业务横幅（复用 finance-banner） */
.finance-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff;
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; box-shadow: var(--shadow-md); }
.finance-banner h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.finance-banner p { font-size: 12.5px; margin: 0; opacity: .92; }
.finance-banner b { font-size: 15px; }
.ss-banner { background: linear-gradient(120deg, #be185d, #ec4899); }
.relief-banner { background: linear-gradient(120deg, #1d4ed8, #3b82f6); }
.banner-badge { flex-shrink: 0; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.banner-badge.green { background: rgba(255,255,255,.22); }
/* 统计卡内部 */
.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 12.5px; color: var(--text-2); }
.stat-num { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-sub { font-size: 11px; color: var(--text-3); }
/* 缴费进度块 */
.progress-block { display: flex; flex-direction: column; gap: 8px; }
.progress-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.progress-head b { color: var(--text); }
.progress-track { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; border-radius: 7px; transition: width .5s; }
.progress-sub { font-size: 11.5px; color: var(--text-3); }
/* 条形图数值加宽，避免换行 */
.bar-val { width: auto; min-width: 92px; text-align: right; white-space: nowrap; }
/* 迷你表 / 小按钮 */
.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th { text-align: left; padding: 9px 10px; background: var(--surface-2); color: var(--text-2);
  font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mini-table td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.mini-table tr:last-child td { border-bottom: none; }
.truncate-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  padding: 4px 11px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: .15s; }
.mini-btn:hover { border-color: var(--primary); color: var(--primary); }
.mini-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.mini-btn.primary:hover { background: var(--primary-dark); }
.mini-btn.danger { color: #dc2626; }
.text-danger { color: #dc2626 !important; }
.text-success { color: #16a34a !important; }
.nowrap { white-space: nowrap; }
.alert-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px;
  background: #fef3c7; border: 1px solid #fde68a; color: #92400e; font-size: 13px; margin-bottom: 16px; }
.alert-ico { font-size: 18px; }
.panel-note { font-size: 11.5px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
/* 键值网格 */
.kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kv-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  background: var(--surface-2); border-radius: 8px; border: 1px solid var(--border); }
.kv-k { font-size: 11.5px; color: var(--text-3); }
.kv-v { font-size: 14px; color: var(--text); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.remind-form { display: flex; flex-direction: column; gap: 10px; }
/* 乡贤：活动横幅 */
.sage-banner { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 18px;
  background: linear-gradient(120deg, #7c3aed, #db2777); color: #fff; padding: 22px 26px; box-shadow: var(--shadow-md); }
.sage-banner::after { content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.08); }
.sage-banner-inner { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.sage-emblem { width: 58px; height: 58px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5);
  font-size: 30px; font-weight: 700; color: #fff; }
.sage-banner h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.sage-banner p { font-size: 12.5px; margin: 0; opacity: .9; }
.sage-result-banner { border-radius: var(--radius); margin-bottom: 18px; padding: 20px 24px;
  background: linear-gradient(120deg, #b45309, #f59e0b); color: #fff; }
.sage-result-banner h2 { font-size: 19px; margin: 0; color: #fff; }
/* 排行榜 */
.rank-row { display: flex; align-items: center; gap: 14px; padding: 11px 10px; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: none; }
.rank-num { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.rank-1 .rank-num { background: #fde68a; color: #b45309; }
.rank-2 .rank-num { background: #e2e8f0; color: #475569; }
.rank-3 .rank-num { background: #fed7aa; color: #c2410c; }
.rank-avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.rank-name { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text); }
.rank-cat { font-size: 11px; color: var(--text-3); margin-left: 6px; font-weight: 400; }
.rank-votes { font-size: 13px; color: var(--primary); font-weight: 600; white-space: nowrap; }
/* 乡贤卡片（公示结果） */
.sage-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sage-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: .15s; }
.sage-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sage-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sage-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.sage-card-name { font-size: 15px; font-weight: 700; color: var(--text); }
.sage-deeds { font-size: 12.5px; color: var(--text-2); line-height: 1.7; min-height: 62px; }
.sage-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); }
/* 评选流程 */
.sage-flow { display: flex; align-items: flex-start; gap: 0; justify-content: space-between; }
.flow-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.flow-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; position: relative; z-index: 1; }
.flow-text { font-size: 12px; color: var(--text-2); text-align: center; }
.sage-phase { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--primary-light); color: var(--primary); }
.phase-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin-right: 6px; }
/* 政策说明 */
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.policy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); }
.policy-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--surface-2); border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text); }
.policy-body { padding: 16px 18px; }
.policy-list { list-style: none; margin: 0; padding: 0; }
.policy-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.policy-row:last-child { border-bottom: none; }
.policy-row span:first-child { color: var(--text-2); }
.policy-row span:last-child { color: var(--text); font-weight: 500; text-align: right; }

/* ============================================================
 * 证明开具工作台
 * ============================================================ */
.cert-lib-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cert-lib-head h3 { font-size: 15px; margin: 0 0 4px; color: var(--text); }
.cert-lib-head p { font-size: 12px; color: var(--text-3); margin: 0; }
.cert-lib { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert-tpl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.cert-tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.cert-tpl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cert-tpl-ico { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; }
.cert-tpl-used { font-size: 11px; color: var(--text-3); background: var(--surface-2);
  padding: 3px 9px; border-radius: 12px; }
.cert-tpl-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cert-tpl-fields { font-size: 11.5px; color: var(--text-3); line-height: 1.6; min-height: 36px; flex: 1; }
.cert-tpl-actions { display: flex; gap: 8px; margin-top: 12px; }
.cert-tpl-actions .mini-btn { flex: 1; }
/* 开具布局 */
.cert-issue-layout { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.15fr); gap: 16px; align-items: start; }
.cert-form-side, .cert-preview-side { display: flex; flex-direction: column; gap: 14px; }
.form-select, .form-input { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); color: var(--text); font-size: 13px; font-family: inherit; outline: none; transition: .15s; }
.form-select:focus, .form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.cert-vsearch { margin-bottom: 6px; }
.villager-pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; }
.villager-pick { display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; background: var(--surface-2);
  cursor: pointer; text-align: left; transition: .12s; }
.villager-pick:hover { background: var(--primary-light); }
.villager-pick.active { border-color: var(--primary); background: var(--primary-light); }
.villager-pick b { font-size: 12.5px; color: var(--text); }
.villager-pick span { font-size: 11px; color: var(--text-3); }
.cert-field { display: flex; flex-direction: column; gap: 5px; }
.cert-field > span { font-size: 12px; color: var(--text-2); }
.form-span2 { grid-column: span 2; }
.cert-issue-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--border); }
.cert-issue-bar label { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
/* A4 纸张预览 */
.cert-paper { background: #fff; color: #000; border: 1px solid #d8d8d8; box-shadow: 0 3px 14px rgba(0,0,0,.1);
  min-height: 560px; padding: 52px 48px; font-family: 'SimSun', '宋体', serif; font-size: 16px; line-height: 2;
  box-sizing: border-box; }
.cert-paper p { margin: 0 0 6px; }
.cert-paper u { text-decoration: underline; }
/* 村级证明公文版式：文号 / 红头 / 红线 / 标题 / 正文 / 落款 / 核实电话 */
.cert-paper .gw-no { text-align: right !important; font-family: "FangSong", "仿宋", serif; font-size: 13px; color: #444; letter-spacing: 1px; margin-bottom: 10px; }
.cert-paper .gw-issuer { text-align: center !important; font-family: "SimSun", "宋体", serif; font-size: 22px; font-weight: 700; color: #c00000; letter-spacing: 6px; margin: 6px 0 2px; }
.cert-paper .gw-redline { height: 2px; background: #c00000; margin: 8px 0 22px; }
.cert-paper .gw-title { text-align: center !important; font-family: "SimSun", "宋体", serif; font-size: 26px !important; font-weight: 700; letter-spacing: 8px; margin: 0 0 26px; color: #000; }
.cert-paper .gw-body p { margin: 0 0 10px; text-indent: 2em; line-height: 2; }
.cert-paper .gw-sign { text-align: right !important; margin-top: 36px; padding-right: 12px; line-height: 2; }
.cert-paper .gw-foot { margin-top: 40px; }
.cert-paper .gw-foot-line { border-top: 1px solid #bbb; margin-bottom: 10px; }
.cert-paper .gw-tel { font-size: 13px; color: #333; text-align: left !important; }
.cert-paper .gw-note { font-size: 12px; color: #666; text-align: left !important; margin-top: 4px; }
.preview-paper { transform-origin: top center; }
.cert-preview-side .panel-body { background: var(--surface-2); padding: 18px; }
/* 开具成功/存档信息条 */
.issued-meta { display: flex; gap: 24px; font-size: 12px; color: var(--text-2); margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.modal-wide .cert-paper { min-height: 480px; }
/* 公文设置 */
.cert-doc-panel { max-width: 900px; }
.cert-doc-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.cert-doc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.cert-doc-form .form-input { min-width: 170px; }
.cert-doc-form .cd-note-label { flex: 1 1 260px; }
.cert-doc-hint { margin-top: 14px; padding: 10px 12px; background: var(--surface-2); border-left: 3px solid var(--primary); font-size: 12px; color: var(--text-2); line-height: 1.7; }
/* 字体设置 */
.cert-font-panel { max-width: 760px; }
.cert-font-form { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cert-font-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.cert-font-form .form-select { min-width: 180px; }
.cf-bold { flex-direction: row !important; align-items: center; gap: 8px !important; padding-bottom: 9px; }
.cf-bold input { width: 16px; height: 16px; accent-color: var(--primary); }
.cert-font-sample { margin-top: 20px; padding: 24px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; min-height: 90px; color: #000; }

.page-hint { color: var(--text-muted, #94a3b8); font-size: 12px; margin: 0 0 12px; }

/* ==================== 村务公告 ==================== */
.notice-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, #1d4ed8, #0e7490); color: #fff; border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 18px; }
.notice-banner h3 { font-size: 17px; margin: 0 0 6px; }
.notice-banner p { font-size: 12.5px; margin: 0; opacity: .92; }
.notice-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.notice-top-item { padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.notice-top-item:last-child, .notice-recent-item:last-child { border-bottom: 0; }
.notice-top-item:hover .notice-top-title, .notice-recent-item:hover .notice-recent-title { color: var(--primary); }
.notice-pin { display: inline-block; background: #dc2626; color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 4px; margin-right: 6px; }
.notice-top-title { font-size: 13.5px; color: var(--text); margin: 8px 0 5px; line-height: 1.5; }
.notice-top-meta { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-recent-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.notice-recent-title { font-size: 13px; color: var(--text); line-height: 1.5; margin-bottom: 5px; }
.notice-publish-panel { max-width: 960px; }
.notice-publish-bar { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.notice-view-title { font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.5; margin-bottom: 14px; }
.notice-view-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-3);
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.notice-view-body p { font-size: 14px; line-height: 2; color: var(--text); margin: 0 0 8px; text-indent: 2em; }
.notice-view-remark { margin-top: 18px; padding: 12px 14px; background: var(--surface-2); border-radius: 8px; font-size: 12px; color: var(--text-2); }

/* ==================== 信息速查 ==================== */
.qi-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.qi-toolbar .form-input { max-width: 560px; }
.qi-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.qi-cat { padding: 7px 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 18px;
  font-size: 12px; color: var(--text-2); cursor: pointer; transition: .15s; }
.qi-cat:hover { border-color: var(--primary); color: var(--primary); }
.qi-cat.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.qi-count { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.qi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qi-card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--border); cursor: pointer; display: flex; flex-direction: column; min-height: 168px; transition: .15s; }
.qi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.qi-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qi-cat-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.qi-hot { background: #fee2e2; color: #dc2626; font-size: 10px; padding: 2px 8px; border-radius: 4px; }
.qi-card h4 { font-size: 14px; color: var(--text); line-height: 1.5; margin: 0 0 8px; }
.qi-summary { font-size: 12px; color: var(--text-2); line-height: 1.6; margin: 0 0 14px; flex: 1; }
.qi-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-3);
  padding-top: 12px; border-top: 1px solid var(--border); }
.qi-more { color: var(--primary); }
.qi-view-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qi-view-title { font-size: 19px; color: var(--text); margin: 0 0 10px; }
.qi-view-summary { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0 0 18px;
  padding: 12px 14px; background: var(--surface-2); border-radius: 8px; }
.qi-view-body p { font-size: 13.5px; line-height: 1.9; color: var(--text); margin: 0 0 5px; }
.qi-view-contact { margin-top: 20px; padding: 14px; border-left: 3px solid var(--primary); background: var(--surface-2);
  border-radius: 0 8px 8px 0; font-size: 13px; color: var(--text); }
.qi-view-updated { margin-top: 12px; font-size: 11px; color: var(--text-3); text-align: right; }

/* ==================== 办公工具扩展 ==================== */
.tool-tip { font-size: 12px; color: var(--text-3); margin: 12px 0 4px; }
.ph-list { display: flex; flex-direction: column; gap: 8px; }
.ph-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.ph-row.ok { background: #f0fdf4; }
.ph-row.bad { background: #fef2f2; }
.ph-num { color: var(--text); font-weight: 500; min-width: 130px; }
.ph-type { color: var(--text-2); flex: 1; }
.ph-flag { font-size: 12px; }
.ph-row.ok .ph-flag { color: #16a34a; }
.ph-row.bad .ph-flag { color: #dc2626; }
.ct-result { font-size: 13px; }
.gr-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.gr-group { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--surface); }
.gr-group-title { font-size: 13px; font-weight: 500; color: var(--primary); margin-bottom: 10px; }
.gr-names { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-name { background: var(--surface-2); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--text); }

@media (max-width: 1400px) {
  .cert-lib { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
  .stat-grid, .stat-grid.four { grid-template-columns: repeat(2, 1fr); }
  .quick-grid, .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .qi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-main { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .stat-grid, .stat-grid.four, .stat-grid.three { grid-template-columns: 1fr 1fr; }
  .quick-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-welcome h1 { font-size: 18px; }
  .cert-lib { grid-template-columns: repeat(2, 1fr); }
  .cert-issue-layout { grid-template-columns: 1fr; }
  .cert-paper { padding: 28px 22px; min-height: 420px; }
  .notice-two-col, .qi-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 14px 12px; }
}
