:root {
  --bg: #fafaf8;
  --card: #ffffff;
  --ink: #2c2c2a;
  --ink2: #5f5e5a;
  --ink3: #888780;
  --line: #e5e4df;
  --line2: #d3d1c7;
  --blue: #185fa5;
  --blue-bg: #e6f1fb;
  --blue-deep: #0c447c;
  --teal: #0f6e56;
  --teal-bg: #e1f5ee;
  --amber: #e8830c;
  --amber-bg: #faeeda;
  --red: #a32d2d;
  --red-bg: #fcebeb;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* ===== 头部 ===== */
.site-header {
  background: var(--blue-deep);
  color: #fff;
  padding: 28px 24px 24px;
}
.header-inner { max-width: 1060px; margin: 0 auto; }
.site-header h1 { font-size: 22px; font-weight: 500; letter-spacing: 1px; }
.site-header .subtitle { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.75); }

/* ===== 标签导航 ===== */
.tab-nav {
  max-width: 1060px; margin: 0 auto; padding: 14px 24px 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tab-btn {
  border: 1px solid var(--line2); background: var(--card);
  color: var(--ink2); padding: 8px 18px; border-radius: 999px;
  font-size: 13px; cursor: pointer; transition: all .15s;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

main { max-width: 1060px; margin: 0 auto; padding: 20px 24px 40px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 二级导航与子视图(制度下:时间线/事项/诊断) */
.sub-tab-nav {
  display: flex; gap: 6px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.sub-tab-btn {
  border: none; background: none; color: var(--ink2);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; cursor: pointer; transition: all .15s;
}
.sub-tab-btn:hover { color: var(--ink); }
.sub-tab-btn.active { background: none; color: var(--ink); font-weight: 600; }
.sub-view { display: none; }
.sub-view.active { display: block; }

.panel-head { margin-bottom: 14px; }
.panel-head h2 { font-size: 17px; font-weight: 500; color: var(--ink); }
.panel-head .hint { margin-top: 4px; font-size: 12.5px; color: var(--ink3); }

/* ===== 时间轴 ===== */
.timeline-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 8px; overflow-x: auto; }
.timeline { display: flex; align-items: flex-end; gap: 6px; min-width: 900px; }
.tl-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.tl-year { font-size: 12px; color: var(--ink2); font-weight: 500; margin-bottom: 6px; }
.tl-count { font-size: 11px; color: var(--ink3); margin-top: 4px; }
.tl-bar {
  width: 34px; border-radius: 6px 6px 2px 2px; cursor: pointer;
  background: var(--blue); opacity: .85; transition: opacity .15s;
}
.tl-bar:hover { opacity: 1; }
.tl-col.none .tl-bar { background: var(--line2); }
.tl-stack { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.tl-chip {
  font-size: 11px; color: var(--blue-deep); background: var(--blue-bg);
  border: 1px solid transparent; border-radius: 999px; padding: 3px 9px;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.tl-chip:hover { border-color: var(--blue); }
.tl-col.none .tl-chip { color: var(--ink2); background: #f1efec; }
.tl-chip.verb { color: var(--teal); background: var(--teal-bg); }

/* 制度详情卡 */
.inst-detail { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.inst-detail.hidden { display: none; }
.inst-detail .id-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.inst-detail h3 { font-size: 16px; font-weight: 500; }
.inst-detail .id-tag { font-size: 12px; color: var(--blue-deep); background: var(--blue-bg); padding: 2px 10px; border-radius: 999px; }
.inst-detail .id-date { font-size: 12px; color: var(--ink3); }
.inst-detail .id-summary { margin-top: 10px; font-size: 13.5px; color: var(--ink); }
.inst-detail .id-role-links { margin-top: 12px; font-size: 12.5px; color: var(--ink2); }
.inst-detail .id-full { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.inst-detail .id-full-title { font-size: 13px; font-weight: 500; color: var(--blue-deep); margin-bottom: 8px; }
.inst-detail .id-full-body { font-size: 13px; color: var(--ink); line-height: 1.75; white-space: pre-wrap; max-height: 480px; overflow-y: auto; }

/* ===== 角色条 ===== */
.role-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.role-card {
  flex: 1; min-width: 150px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: all .15s;
}
.role-card:hover { border-color: var(--teal); }
.role-card.active { border-color: var(--teal); background: var(--teal-bg); }
.role-card .rc-name { font-size: 14.5px; font-weight: 500; color: var(--teal); }
.role-card .rc-alias { margin-top: 2px; font-size: 11.5px; color: var(--ink3); }
.role-card .rc-count { margin-top: 6px; font-size: 12px; color: var(--ink2); }

/* 权责列表 */
.role-duties { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.matrix-head { margin-top: 26px; }
.role-duties .rd-head { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.role-duties .rd-sub { font-size: 12.5px; color: var(--ink3); margin-bottom: 14px; }
.duty-group { margin-bottom: 14px; }
.duty-group-title { font-size: 13px; font-weight: 500; color: var(--blue-deep); padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.duty-item { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.duty-item:last-child { border-bottom: none; }
.duty-clause { display: inline-block; font-size: 11.5px; color: var(--teal); background: var(--teal-bg); padding: 1px 8px; border-radius: 999px; margin-bottom: 4px; }
.duty-text { font-size: 13px; color: var(--ink); }

/* ===== 矩阵 ===== */
.matrix-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.matrix-table { border-collapse: collapse; width: 100%; min-width: 860px; }
.matrix-table th, .matrix-table td { border: 1px solid var(--line); padding: 8px 10px; font-size: 12.5px; text-align: left; vertical-align: top; }
.matrix-table thead th { background: var(--blue); color: #fff; font-weight: 500; white-space: nowrap; text-align: center; }
.matrix-table thead th:first-child { text-align: left; }
.matrix-table tbody th { background: #f7f6f2; color: var(--ink); font-weight: 500; white-space: nowrap; }
.matrix-table .mc-count { text-align: center; font-size: 13px; font-weight: 500; color: var(--blue); cursor: pointer; }
.matrix-table .mc-count:hover { text-decoration: underline; }
.matrix-table .mc-empty { text-align: center; color: var(--line2); }
.matrix-table td.mc-active { background: var(--amber-bg); }
.matrix-table td.mc-others { background: var(--teal-bg); }

/* ===== 项目 × 角色矩阵 ===== */
.proj-section { margin-bottom: 22px; }
.proj-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.proj-head h3 { font-size: 15px; font-weight: 500; color: var(--blue-deep); }
.proj-count { font-size: 12px; color: var(--ink3); }
.proj-table { min-width: 980px; }
.proj-table td.p-desc { font-size: 12px; color: var(--ink2); max-width: 260px; line-height: 1.5; }
.mc-total-row th, .mc-total-row td { background: var(--blue-bg); color: var(--blue-deep); font-weight: 500; }
.mc-total-row .mc-total { text-align: center; font-size: 13px; font-weight: 500; color: var(--blue-deep); }
.mc-total-row .mc-total:not(:empty) { cursor: default; }

/* ===== 制度诊断报告 ===== */
.diag-sec { margin-bottom: 26px; }
.diag-h { font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 8px; margin-bottom: 12px; }
.diag-conflict { background: var(--red-bg); color: var(--red); }
.diag-dup { background: var(--amber-bg); color: var(--amber); }
.diag-transfer { background: var(--blue-bg); color: var(--blue-deep); }
.diag-principle { font-size: 13px; color: var(--ink2); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; }
.diag-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.diag-card-conflict { border-left: 3px solid var(--red); }
.diag-card-dup { border-left: 3px solid var(--amber); }
.diag-card-transfer { border-left: 3px solid var(--blue); }
.diag-card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.diag-card-head b { font-size: 14px; font-weight: 500; }
.diag-no { font-size: 11px; color: #fff; background: var(--ink3); border-radius: 999px; padding: 1px 9px; flex-shrink: 0; }
.diag-card-conflict .diag-no { background: var(--red); }
.diag-card-dup .diag-no { background: var(--amber); }
.diag-card-transfer .diag-no { background: var(--blue); }
.diag-where { font-size: 12px; color: var(--ink3); margin-bottom: 5px; }
.diag-detail { font-size: 13px; color: var(--ink); line-height: 1.65; }
.diag-fix { margin-top: 6px; font-size: 13px; color: var(--teal); background: var(--teal-bg); border-radius: 6px; padding: 6px 10px; }
.diag-pri { margin-bottom: 16px; }
.diag-pri > b { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }
.diag-pri-a > b { color: var(--teal); }
.diag-pri-b > b { color: var(--blue-deep); }
.diag-pri-c > b { color: var(--red); }
.diag-guard { font-size: 13px; color: var(--red); background: var(--red-bg); border-radius: 8px; padding: 10px 14px; line-height: 1.6; }

/* ===== 月报 ===== */
.monthly-wrap { }
.my-year { margin-bottom: 26px; }
.my-year-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--blue); padding-bottom: 6px; }
.my-year-num { font-size: 16px; font-weight: 500; color: var(--blue-deep); }
.my-count { font-size: 12px; color: var(--ink3); }
.my-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.my-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all .15s; }
.my-card:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(24,95,165,.12); }
.my-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.my-month { font-size: 14px; font-weight: 500; color: var(--blue); }
.my-len { font-size: 11px; color: var(--ink3); }
.my-excerpt { font-size: 12px; color: var(--ink2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.monthly-full { font-size: 13.5px; color: var(--ink); line-height: 1.8; white-space: pre-wrap; max-height: 60vh; overflow-y: auto; }

/* ===== 月报项目统计 ===== */
.stats-head { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.stats-head h3 { font-size: 16px; font-weight: 500; color: var(--blue-deep); }
.stats-sub { margin-top: 6px; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.stats-date { margin-top: 4px; font-size: 12px; color: var(--ink3); }
.stats-note { font-size: 13px; color: var(--ink2); margin-bottom: 10px; }
.stats-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px; }
.stat-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stat-row:last-child { border-bottom: none; }
.stat-rank { width: 28px; text-align: center; font-size: 12px; font-weight: 500; color: var(--blue); flex-shrink: 0; }
.stat-name { width: 190px; font-size: 13.5px; color: var(--ink); flex-shrink: 0; }
.stat-cat { display: block; font-size: 11px; color: var(--ink3); margin-top: 1px; }
.stat-bar-wrap { flex: 1; background: #f1efec; border-radius: 999px; height: 14px; overflow: hidden; }
.stat-bar { height: 100%; background: var(--blue); border-radius: 999px; opacity: .8; }
.stat-count { width: 44px; text-align: right; font-size: 13px; font-weight: 500; color: var(--blue-deep); flex-shrink: 0; }

/* ===== 月报和人 ===== */
.person-note { font-size: 12.5px; color: var(--ink3); }

/* ===== 社区蓝图 ===== */
.bp-section-title { font-size: 14px; font-weight: 500; color: var(--blue-deep); margin: 18px 0 10px; padding-left: 10px; border-left: 3px solid var(--blue); }
.bp-arch-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.bp-arch-table th, .bp-arch-table td { border: 1px solid var(--line); padding: 10px 14px; font-size: 13px; vertical-align: top; }
.bp-arch-table thead th { background: var(--blue-bg); color: var(--blue-deep); font-weight: 500; }
.bp-arch-table th.bp-arch-dim { width: 110px; font-weight: 500; color: var(--blue); white-space: nowrap; background: #fafaf6; }
.bp-arch-table td.bp-arch-element { width: 280px; color: var(--ink); line-height: 1.6; }
.bp-arch-table td.bp-arch-concept { color: var(--ink2); line-height: 1.6; }
.blueprint-table { min-width: 760px; }
.blueprint-table thead th { text-align: center; }
.blueprint-table th.bp-cat { cursor: pointer; white-space: nowrap; user-select: none; }
.blueprint-table th.bp-cat:hover { background: var(--blue-bg); }
.bp-toggle { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--ink3); }
.bp-row td { text-align: center; font-size: 13px; }
.bp-cell { height: 56px; padding: 4px 6px; vertical-align: bottom; }
.bp-total { font-weight: 500; color: #fff; background: var(--amber); text-align: center; }
.bp-detail td { background: #faf9f5; padding: 14px 18px; }
.bp-detail-inner { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-issue { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12px; display: flex; align-items: baseline; gap: 10px; }
.bp-issue-name { font-weight: 500; color: var(--amber); }
.bp-issue-years { color: var(--ink2); }
.bp-issue-total { color: var(--blue-deep); font-weight: 500; }

/* ===== 团建 ===== */
.team-year { margin-bottom: 30px; }
.team-year-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; border-bottom: 2px solid var(--amber); padding-bottom: 5px; cursor: pointer; user-select: none; }
.team-year-head:hover .ty-num { color: var(--blue); }
.ty-toggle { font-size: 12px; color: var(--amber); width: 14px; }
.ty-num { font-size: 16px; font-weight: 500; color: var(--amber); }
.ty-count { font-size: 12px; color: var(--ink3); }
.team-note { font-size: 12.5px; color: var(--ink3); margin-bottom: 14px; }
.team-list { border-left: 2px solid var(--amber); margin-left: 6px; padding-left: 18px; }
.team-item { position: relative; padding: 0 0 18px 6px; }
.team-item::before {
  content: ""; position: absolute; left: -25px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); border: 2px solid #fff;
}
.team-date { font-size: 12px; color: var(--amber); font-weight: 500; margin-bottom: 2px; }
.team-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.team-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.team-summary { font-size: 13px; color: var(--ink2); line-height: 1.7; }

/* ===== 党建 ===== */
.party-year { margin-bottom: 30px; }
.party-year-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; border-bottom: 2px solid var(--red); padding-bottom: 5px; }
.py-num { font-size: 16px; font-weight: 500; color: var(--red); }
.py-count { font-size: 12px; color: var(--ink3); }
.party-year .team-list { border-left-color: var(--red); }
.party-year .team-item::before { background: var(--red); }
.party-year .team-date { color: var(--red); }

/* ===== 选举 ===== */
.elec-year { margin-bottom: 30px; }
.elec-year-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; border-bottom: 2px solid var(--teal); padding-bottom: 5px; }
.ey-num { font-size: 16px; font-weight: 500; color: var(--teal); }
.ey-count { font-size: 12px; color: var(--ink3); }
.elec-year .team-list { border-left-color: var(--teal); }
.elec-year .team-item::before { background: var(--teal); }
.elec-year .team-date { color: var(--teal); }
.person-table { min-width: 720px; }
.person-table thead th { cursor: pointer; user-select: none; }
.person-table thead th:hover { background: var(--blue-deep); }
.person-table thead th { line-height: 1.3; }
.p-year-total {
  display: block; font-size: 11px; font-weight: 400;
  color: var(--ink2); margin-top: 2px;
}
.matrix-table thead th .p-year-total { color: rgba(255,255,255,.85); }
.person-table thead th:first-child .p-year-total,
.person-table thead th[data-col='name'] .p-year-total { color: var(--ink3); }
.person-table th.p-name { white-space: nowrap; }
.person-table td { text-align: center; font-size: 13px; }
.person-table td.p-cell-val, .person-table td.p-cell-zero {
  height: 56px; padding: 4px 6px; vertical-align: bottom;
}
.person-table td.p-cell-val { color: var(--blue); font-weight: 500; }
.person-table td.p-cell-zero { color: var(--line2); }
.person-table td.p-total { font-weight: 500; color: var(--blue-deep); background: var(--blue-bg); }
.person-table th.p-name { font-weight: 500; }

/* 单元格内迷你柱状图:以 30 次为上限,30 及以上顶满 */
.p-mini-bar {
  display: block; width: 100%; height: 34px;
  background: #f1efec; border-radius: 3px;
  position: relative; overflow: hidden;
}
.p-mini-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--blue); border-radius: 3px 3px 0 0;
  opacity: .85;
}
.bp-fill {
  background: var(--amber) !important;
  opacity: .9;
}
.p-cell-zero .p-mini-bar { background: #f7f6f2; }
.p-mini-num { margin-top: 2px; font-size: 11px; line-height: 1; }
.p-cell-zero .p-mini-num { color: var(--line2); }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; background: rgba(20,20,20,.45); display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; z-index: 100; }
.modal.hidden { display: none; }
.modal-content { background: var(--card); border-radius: 14px; max-width: 720px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 24px 26px; position: relative; }
.modal-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 22px; color: var(--ink3); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.modal .m-sub { font-size: 12px; color: var(--ink3); margin-bottom: 14px; }
.modal .m-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.modal .m-item:last-child { border-bottom: none; }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid var(--line); padding: 18px 24px; text-align: center; font-size: 12px; color: var(--ink3); }

@media (max-width: 720px) {
  .role-card { min-width: 100%; }
  main { padding: 16px 14px 30px; }
  .tab-nav { padding: 12px 14px 0; }
  .site-header { padding: 20px 16px; }
}

/* ===== 随记 ===== */
.diary-editor { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.diary-input { width: 160px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; color: var(--ink); }
.diary-textarea { width: 100%; min-height: 90px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 1.7; resize: vertical; background: #fff; color: var(--ink); font-family: inherit; }
.diary-actions { display: flex; gap: 10px; }
.btn-small { border: none; background: var(--blue); color: #fff; padding: 7px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.btn-small:hover { opacity: .88; }
.btn-small.ghost { background: none; color: var(--blue); border: 1px solid var(--blue); }
.diary-list { display: flex; flex-direction: column; gap: 12px; }
.diary-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.diary-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.diary-item-date { font-size: 12.5px; font-weight: 500; color: var(--blue-deep); }
.diary-del { border: none; background: none; color: var(--ink3); font-size: 12px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.diary-del:hover { color: var(--red); background: rgba(163,45,45,.08); }
.diary-item-text { font-size: 13px; color: var(--ink2); line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.diary-empty { color: var(--ink3); font-size: 13px; padding: 20px 4px; }

/* ===== 事项 ===== */
.matters-toolbar { margin-bottom: 12px; }
.matters-grid { overflow-x: auto; }
.matters-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.matters-table th { background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; padding: 8px 10px; border: 1px solid var(--line); text-align: center; }
.matters-table td { border: 1px solid var(--line); padding: 6px; }
.matters-table .matters-rc { background: var(--card); color: var(--ink); font-size: 13px; font-weight: 500; text-align: center; width: 72px; white-space: nowrap; }
.matters-cell { width: 100%; min-width: 150px; height: 128px; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; line-height: 1.6; resize: vertical; background: #fff; color: var(--ink); font-family: inherit; }
.matters-cell:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 2px rgba(30,144,255,.12); }
.matters-cell:hover { border-color: var(--line2, #dcdcdc); }

/* ===== 备份/恢复 ===== */
.backup-card { display: flex; gap: 24px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.backup-block { flex: 1 1 300px; }
.backup-block h3 { font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 6px; }
.backup-block p { font-size: 12.5px; color: var(--ink2); line-height: 1.7; margin: 0 0 12px; }
.backup-divider { width: 1px; background: var(--line); }
.backup-file { font-size: 13px; color: var(--ink2); }
.backup-msg { margin-top: 10px; font-size: 13px; line-height: 1.6; }

/* ===== 社区(效傲江湖-社区同款) ===== */
.community-grid { overflow-x: auto; }
.community-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 560px; }
.community-th-name { width: 80px; padding: 6px 8px; text-align: center; font-weight: 600; font-size: 13px; color: #fff; background: var(--blue); border: 1px solid var(--line); }
.community-th { padding: 6px 4px; text-align: center; font-weight: 600; font-size: 13px; color: #fff; background: var(--blue); border: 1px solid var(--line); }
.community-td-name { width: 80px; padding: 4px 6px; text-align: center; font-weight: 600; font-size: 13px; border: 1px solid var(--line); background: var(--blue); color: #fff; }
.community-td { padding: 2px; border: 1px solid var(--line); vertical-align: top; }
.community-textarea { width: 100%; padding: 4px 6px; border: none; border-radius: 2px; font-size: 12px; line-height: 1.5; resize: none; overflow: hidden; outline: none; font-family: inherit; background: transparent; color: var(--ink); }
.community-textarea:focus { background: #fffde7; box-shadow: inset 0 0 0 1px var(--blue); }

/* ===== 人物·当选理事标记 ===== */
.p-elec-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #e60000; margin-left: 3px; vertical-align: 1px;
  box-shadow: 0 0 0 1.5px #fff;
}
.p-mini-num { position: relative; }
.p-cell-elected .p-mini-bar { background: rgba(230,0,0,.08); }
.p-person-table-wrap th[data-col='name'].p-filter-active { background: var(--blue-deep); box-shadow: inset 0 -3px 0 #e60000; }
