﻿/* ==============================
   常春村网上家园 - 主样式
   ============================== */

/* CSS Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1661ab;
  --primary-dark: #0f5b9e;
  --primary-light: #e8f0fb;
  --accent-warn: #f5a623;
  --accent-blue: #1661ab;
  --accent-purple: #7B1FA2;
  --success: #1e8b4a;
  --warning: #e38b1c;
  --danger: #cf3f56;
  --info: #1661ab;
  --text: #19273a;
  --text-secondary: #4a5568;
  --text-light: #7b8ba0;
  --bg: #eef2f7;
  --page-bg: #f5f7fb;
  --card-bg: #FFFFFF;
  --border: #f0f2f5;
  --radius: 18px;
  --shadow: 0 4px 10px rgba(0,0,0,0.03);
  --shadow-lg: 0 30px 50px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

/* ========== 全站外壳：桌面端居中 420px 手机卡片 ========== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; height: auto; }

/* 三层（顶栏 / 主体 / 页脚）拼成一张 420px 圆角卡片 */
body > header,
body > .home-hero,
body > main,
body > footer {
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
}
body > main { background: var(--page-bg); flex: 1; padding-bottom: 24px; }

.container { max-width: 100%; margin: 0 auto; padding: 0 18px; }

/* ==============================
   顶部导航
   ============================== */
.site-header {
  background: linear-gradient(135deg, #0f5b9e 0%, #1a7bc8 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 32px 32px 0 0;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.header-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.header-date {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 6px;
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
}
.brand-icon { font-size: 28px; flex-shrink: 0; }
.brand-text { min-width: 0; }
.brand-text h1 {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text small {
  font-size: 11px;
  opacity: 0.85;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航：统一折叠为汉堡菜单，避免 9 个栏目在窄栏内折行 */
.site-nav { position: static; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
  color: #fff;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.site-nav .nav-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-dark, #B36208);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  z-index: 990;
}
.site-nav.show .nav-list { display: flex; }
.nav-list {
  list-style: none;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-list a:hover, .nav-list a.active {
  background: rgba(255,255,255,0.2);
}

/* ==============================
   Hero 区域
   ============================== */
.hero-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content h1 {
  font-size: 32px;
  margin-bottom: 12px;
  position: relative;
}
.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
  position: relative;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}
.hero-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.3); color: white; }
.hero-btn.primary { background: white; color: var(--primary); }
.hero-btn.primary:hover { background: #f1f5f9; color: var(--primary-dark); }

/* ==============================
   通用区块
   ============================== */
.section { padding: 50px 20px; }
.section.alt { background: #f1f5f9; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-header h2 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2 i { color: var(--primary); }
.section-sub { color: var(--text-light); font-size: 14px; }
.more-link { color: var(--primary); font-size: 14px; font-weight: 500; }
.more-link:hover { text-decoration: underline; }

/* ==============================
   首页 Hero 欢迎区（含自动日期）
   ============================== */
.home-hero {
  background: linear-gradient(135deg, #0f5b9e 0%, #1a7bc8 100%);
  color: #fff;
  padding: 24px 20px 22px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.hero-top-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
}
.hero-date {
  font-size: 12px;
  opacity: 0.95;
  font-weight: 500;
  background: rgba(255,255,255,0.16);
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-title {
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0 2px;
  letter-spacing: 0.5px;
}
.hero-subtitle { font-size: 13px; opacity: 0.8; margin-bottom: 18px; }
.hero-buttons { display: flex; gap: 12px; }
.hero-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}
.hero-btn.btn-report {
  background: #f5a623;
  color: #1e1e1e;
  box-shadow: 0 8px 18px rgba(245,166,35,0.3);
}
.hero-btn.btn-guide {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}
.hero-btn:active { transform: scale(0.97); }

@media (max-width: 480px) {
  .home-hero { padding: 20px 16px 18px; }
  .hero-title { font-size: 22px; }
}

/* ==============================
   参考页通用区块（首页 + 二级页共用）
   ============================== */
.section { padding: 0 18px; margin-top: 22px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-title { font-size: 16px; font-weight: 700; color: var(--text); }
.section-more { font-size: 12px; color: var(--text-light); }
@media (max-width: 480px) {
  .section { padding: 0 14px; margin-top: 18px; }
}

/* 栏目速览 4 列 */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  text-align: center;
}
.quick-nav-item {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 13px 4px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}
.quick-nav-item:hover { transform: translateY(-2px); }
.quick-nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 7px;
  color: #1661ab;
  font-size: 19px;
}
.icon-bg1 { background: #e8f0fb; }
.icon-bg2 { background: #fef3e2; color: #e38b1c; }
.icon-bg3 { background: #e6f7ec; color: #1e8b4a; }
.icon-bg4 { background: #fce9ec; color: #cf3f56; }
.quick-nav-label { font-size: 12px; font-weight: 600; color: #2c3a4b; }

/* 常用功能 4 列 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  text-align: center;
}
.feature-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 13px 4px 11px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}
.feature-card:hover { transform: translateY(-2px); }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
  font-size: 22px;
}
.feature-label { font-size: 12.5px; font-weight: 600; color: #1f2937; }
.ficon-law { background: #fef3e2; color: #e38b1c; }
.ficon-appeal { background: #fce9ec; color: #cf3f56; }
.ficon-help { background: #e6f7ec; color: #1e8b4a; }
.ficon-talk { background: #e8f0fb; color: #1661ab; }

/* 通知公示 / 诉求公示 卡片 */
.info-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 15px 17px;
  box-shadow: var(--shadow);
}
.info-card + .info-card { margin-top: 12px; }
.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.info-card-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.info-card-more { font-size: 12px; color: var(--text-light); }
.info-list {
  list-style: none;
  font-size: 13px;
  color: var(--text-secondary);
}
.info-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  overflow: hidden;
}
.info-list li:last-child { border-bottom: none; }
.info-list li a { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.dot {
  width: 6px;
  height: 6px;
  background: #1e7bc9;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.dot-appeal { background: #e38b1c; }
.notice-tag {
  font-size: 10px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}
.notice-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-date { font-size: 11px; color: var(--text-light); flex-shrink: 0; }

/* 村委班子（横滑） */
.committee-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.committee-row::-webkit-scrollbar { display: none; }
.committee-member {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 88px;
  text-align: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.committee-member .member-avatar {
  width: 48px;
  height: 48px;
  background: #d9e6f5;
  border-radius: 50%;
  margin: 0 auto 8px;
  font-weight: 700;
  color: #1661ab;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.committee-member .member-name { font-size: 13px; font-weight: 600; }
.committee-member .member-role { font-size: 11px; color: var(--text-light); margin-top: 3px; }

/* 村委班子完整卡（committee.html） */
.member-full-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow);
}
.mfc-avatar {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.mfc-body { flex: 1; min-width: 0; }
.mfc-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mfc-head h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.mfc-role { font-size: 12px; color: var(--primary); font-weight: 600; }
.mfc-duty {
  font-size: 13px; color: var(--text-secondary); margin-top: 6px;
  line-height: 1.6;
}
.mfc-phone {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 6px 12px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 20px; font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.mfc-phone:hover { background: #d4e4f7; }

/* 诉求反馈标签（appeal-feedback.html） */
.pub-notice-feedback .pn-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  margin-right: 6px;
  vertical-align: middle;
}
.tag-feedback { background: #fce9ec; color: var(--danger); }

/* 页脚版权 */
.footer-copyright {
  display: block;
  text-align: center;
  font-size: 11px;
  opacity: 0.55;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ==============================
   常用功能入口（三合一，差异化边框色+呼吸动画）
   ============================== */
.quick-access { padding: 20px 16px 10px; }
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 4px;
}
.access-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.access-card:active { transform: scale(0.96); }
.access-card.fn-grid { border-color: #E3F0FF; background: #F8FBFF; }
.access-card.fn-law { border-color: #F3E5F5; background: #FDF8FE; }
.access-card.fn-report {
  border-color: #FFF3E0;
  background: #FFFBF6;
  animation: pulse-border 2s infinite;
}
.access-card.fn-assist { border-color: #E8F5E9; background: #F2FBF3; }
@keyframes pulse-border {
  0%, 100% { border-color: #FFF3E0; }
  50% { border-color: #FF9800; }
}
.access-icon {
  font-size: 32px;
  margin-bottom: 6px;
  color: inherit;
}
.access-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.access-card p { font-size: 11px; color: var(--text-light); }
.access-link {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 4px;
}
.access-card.fn-grid .access-link { background: #E3F0FF; color: #1a73e8; }
.access-card.fn-law .access-link { background: #F3E5F5; color: #7B1FA2; }
.access-card.fn-report .access-link {
  background: #FFF3E0;
  color: #E65100;
  animation: blink 1.5s infinite;
}
.access-card.fn-assist .access-link { background: #E8F5E9; color: #2E7D32; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@media (max-width: 500px) {
  .access-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; }
  .access-icon { font-size: 26px; }
  .access-card h3 { font-size: 12px; }
  .access-card p { font-size: 10px; }
}

/* ==============================
   村委成员
   ============================== */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.member-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.2s;
}
.member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.member-avatar {
  font-size: 44px;
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-info h4 { font-size: 16px; margin-bottom: 4px; }
.member-role {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
}
.member-duty { font-size: 13px; color: var(--text-light); margin-bottom: 6px; line-height: 1.5; }
.member-phone {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ==============================
   两栏布局（通知+诉求）
   ============================== */
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}

/* 通知列表 */
.notice-list { list-style: none; }
.notice-list li {
  border-bottom: 1px solid var(--border);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  transition: color 0.2s;
}
.notice-tag {
  background: #eff6ff;
  color: var(--primary);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.notice-title {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-date { font-size: 12px; color: var(--text-light); flex-shrink: 0; }

/* 诉求公示自动同步方案 */
.appeal-preview {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.appeal-stat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-item {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.stat-item.done { background: #dcfce7; }
.stat-item.doing { background: #fef3c7; }
.stat-item.rate { background: #dbeafe; }
.stat-item strong {
  display: block;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 2px;
}
.stat-item span { font-size: 12px; color: var(--text-light); }
.appeal-tip {
  background: #fef3c7;
  border-left: 3px solid var(--warning);
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #92400e;
}
.appeal-tip a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ==============================
   更多服务模块
   ============================== */
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.more-item {
  background: white;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.more-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.more-item i { font-size: 28px; color: var(--primary); }
.more-item strong { display: block; font-size: 14px; }
.more-item small { font-size: 12px; color: var(--text-light); }

/* ==============================
   村委信息卡（首页专属）
   ============================== */
.home-village-card {
  max-width: 640px;
  margin: 12px auto;
  padding: 0 4px;
}
.village-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid var(--primary);
}
.village-icon { font-size: 40px; flex-shrink: 0; }
.village-info { flex: 1; min-width: 0; }
.village-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.village-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.village-hours {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  padding: 6px 10px;
  background: #FFF9F3;
  border-radius: 8px;
  line-height: 1.5;
}

/* ==============================
   首页卡片区块（通用）
   ============================== */
.home-section {
  max-width: 640px;
  margin: 12px auto;
  padding: 0 4px;
}
.home-section-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.home-section-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 16px;
}
.home-section-icon { font-size: 20px; }
.home-section-badge {
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: auto;
}
.home-section-link {
  font-size: 12px;
  color: var(--info);
  text-decoration: none;
  margin-left: auto;
  font-weight: 500;
}
.home-section-link:hover { text-decoration: underline; }

/* ==============================
   首页紧急联系（3列等分）
   ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.contact-item {
  background: var(--card-bg);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-item:active { background: #fafafa; }
.contact-icon { font-size: 24px; display: block; margin-bottom: 4px; }
.contact-name { font-size: 12px; font-weight: 600; color: var(--text); }
.contact-phone { font-size: 11px; color: var(--primary); margin-top: 2px; font-weight: 500; }

/* ==============================
   悬浮诉求按钮
   ============================== */
.report-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
}
.report-fab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF6F00, #FF8F00);
  color: #fff;
  padding: 14px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(255, 111, 0, 0.35);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: float-btn 2s ease-in-out infinite;
}
@keyframes float-btn {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 111, 0, 0.35); }
  50% { box-shadow: 0 8px 30px rgba(255, 111, 0, 0.5); }
}
.report-fab-btn:active { transform: scale(0.94); }
@media (max-width: 500px) {
  .report-fab-btn { padding: 12px 18px; font-size: 14px; }
}

/* ==============================
   页脚
   ============================== */
.site-footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 28px 20px 18px;
  margin-top: auto;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 32px 32px;
}
.footer-inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-inner h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-inner h4 i { color: var(--primary); }
.footer-contact p { font-size: 13px; margin-bottom: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-about p { font-size: 13px; margin-bottom: 8px; }
.footer-about small { opacity: 0.6; }

/* ==============================
   紧急联系浮窗
   ============================== */
.emergency-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}
.emergency-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.2s;
}
.emergency-btn:hover { transform: scale(1.05); }
.emergency-btn span { font-size: 11px; font-weight: 600; }
.emergency-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 260px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: none;
}
.emergency-panel.show { display: block; }
.emergency-panel h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  margin-bottom: 12px;
  font-size: 14px;
}
.em-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  align-items: center;
}
.em-item:hover { background: #f1f5f9; color: inherit; }
.em-item i {
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.em-item.police i { background: #3b82f6; }
.em-item.medical i { background: #ef4444; }
.em-item.fire i { background: #f97316; }
.em-item.gov i { background: #8b5cf6; }
.em-item.village i { background: #22c55e; }
.em-item strong { display: block; font-size: 13px; }
.em-item small { font-size: 12px; color: var(--text-light); }

/* ==============================
   通用页面 Hero
   ============================== */
.page-hero {
  background: linear-gradient(135deg, #0f5b9e 0%, #1a7bc8 100%);
  color: white;
  padding: 22px 18px 20px;
  border-radius: 0 0 28px 28px;
}
.page-hero .container { max-width: 100%; margin: 0 auto; }
.breadcrumb {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.breadcrumb a { color: white; }
.breadcrumb a:hover { text-decoration: underline; color: white; }
.page-hero h1 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.page-desc { opacity: 0.9; font-size: 12.5px; }

/* ==============================
   文章页面
   ============================== */
.post-content { padding: 40px 20px; }
.post-content .container { max-width: 800px; margin: 0 auto; }
.post-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}
.article-body {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 15px;
}
.article-body h2, .article-body h3 {
  margin: 24px 0 12px;
  color: var(--text);
}
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}
.article-body th { background: #f1f5f9; }
.article-footer { margin-top: 24px; text-align: center; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.btn-back:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ==============================
   通知列表（完整页）
   ============================== */
.notice-full { padding: 30px 20px 50px; }
.notice-list-full { max-width: 900px; margin: 0 auto; }
.notice-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.notice-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.notice-item a {
  display: flex;
  gap: 20px;
  padding: 22px;
  align-items: center;
}
.notice-date-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  min-width: 60px;
}
.notice-date-box strong { display: block; font-size: 24px; }
.notice-date-box span { font-size: 11px; opacity: 0.9; }
.notice-info { flex: 1; }
.notice-info h3 { font-size: 17px; margin-bottom: 6px; }
.notice-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag {
  background: #eff6ff;
  color: var(--primary);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 50px;
}
.tag.mini { background: #f1f5f9; color: var(--text-light); }
.notice-arrow {
  color: var(--text-light);
  font-size: 16px;
}

/* ==============================
   办事指南
   ============================== */
.guides-full { padding: 40px 20px; }
.guides-full .container { max-width: 1100px; margin: 0 auto; }
.guide-category { margin-bottom: 36px; }
.cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--primary);
}
.cat-icon { font-size: 26px; }
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.guide-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.guide-card h3 {
  padding: 16px 20px;
  background: #eff6ff;
  font-size: 15px;
  color: var(--primary-dark);
}
.guide-card h3 i { margin-right: 6px; }
.guide-body { padding: 16px 20px; }
.guide-body h4 {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.step-list {
  list-style: none;
  counter-reset: step;
  margin-bottom: 14px;
}
.step-list li {
  counter-increment: step;
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 14px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  background: var(--primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-info {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.guide-info span { display: flex; align-items: center; gap: 4px; }

/* ==============================
   网格管理页
   ============================== */
.grid-full { padding: 40px 20px; }
.grid-full .container { max-width: 1100px; margin: 0 auto; }
.grid-intro {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.intro-item {
  text-align: center;
  padding: 16px 24px;
}
.intro-item strong {
  display: block;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 4px;
}
.intro-item span { font-size: 13px; color: var(--text-light); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.grid-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--gcolor, var(--primary));
}
.grid-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--gcolor), color-mix(in srgb, var(--gcolor) 70%, black));
  color: white;
}
.grid-header h3 { font-size: 18px; margin-bottom: 4px; }
.grid-scope { font-size: 13px; opacity: 0.9; }
.grid-body { padding: 16px 20px; }
.grid-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.grid-row i { color: var(--gcolor); }
.grid-worker {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}
.worker-label { font-size: 12px; color: var(--text-light); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.worker-info strong { display: block; font-size: 15px; margin-bottom: 2px; }
.worker-info a { font-size: 13px; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }

/* 网格员职责 */
.grid-work h2 {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.grid-work h2 i { color: var(--primary); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.work-item {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
}
.work-item i { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.work-item h4 { font-size: 14px; margin-bottom: 4px; }
.work-item p { font-size: 12px; color: var(--text-light); }

/* --- 网格统计栏 --- */
.grid-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #f0f7ff, #e6f4ea);
  border-radius: var(--radius);
}
.gs-item {
  text-align: center;
  padding: 8px 4px;
}
.gs-item strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.gs-item span {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
  display: block;
}
@media (max-width: 600px) {
  .grid-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* --- 网格卡片增强 --- */
.grid-worker .worker-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.worker-avatar {
  font-size: 22px;
  line-height: 1;
}
.grid-stats-mini {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
}
.grid-stats-mini span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.grid-stats-mini i {
  color: var(--gcolor);
  font-size: 12px;
}
.grid-highlight {
  margin-top: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fefce8, #fef3c7);
  border-radius: 8px;
  font-size: 13px;
  color: #854d0e;
  border-left: 3px solid #eab308;
  line-height: 1.5;
}
.grid-highlight i { color: #eab308; margin-right: 4px; }

/* --- 村情概况页：网格动态 / 荣誉 / 设施 --- */
.grid-event {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.grid-event:last-child { border-bottom: none; }
.ge-tag {
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}
.ge-text { flex: 1; min-width: 0; color: var(--text-secondary); line-height: 1.6; }
.ge-text strong { color: var(--text); }
.ge-date { flex-shrink: 0; font-size: 11px; color: var(--text-light); }

.honor-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.honor-row:last-child { border-bottom: none; }
.honor-year {
  flex-shrink: 0;
  width: 54px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.honor-year small { display: block; font-size: 11px; font-weight: 400; color: var(--text-light); margin-top: 2px; }
.honor-main { flex: 1; min-width: 0; }
.honor-main strong { display: block; font-size: 14px; color: var(--text); }
.honor-main span { display: block; font-size: 12px; color: var(--text-light); margin-top: 2px; }
.honor-icon { font-size: 22px; flex-shrink: 0; }

.militia-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--primary-light);
  border-radius: 10px;
  margin-bottom: 8px;
}
.militia-item:last-child { margin-bottom: 0; }
.militia-item .m-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.militia-item .m-info { flex: 1; min-width: 0; }
.militia-item .m-info strong { font-size: 14px; color: var(--primary); display: block; }
.militia-item .m-info p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* --- 网格动态 --- */
.grid-events {
  margin-top: 40px;
}
.grid-events h2 {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.grid-events h2 i { color: var(--primary); }
.ge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ge-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.ge-item:hover { transform: translateX(3px); }
.ge-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ge-body { flex: 1; min-width: 0; }
.ge-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ge-meta strong { font-size: 14px; color: #1f2937; }
.ge-type {
  font-size: 12px;
  padding: 2px 8px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 20px;
  font-weight: 600;
}
.ge-date { font-size: 12px; color: #9ca3af; margin-left: auto; }
.ge-body p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
.ge-tip {
  margin-top: 16px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* ==============================
   民生诉求页
   ============================== */
.appeal-hero { background: linear-gradient(135deg, #dc2626, #ef4444); }
.appeal-section { padding: 40px 20px; }
.appeal-section .container { max-width: 1100px; margin: 0 auto; }

.flow-steps {
  position: relative;
  padding-left: 10px;
}
.flow-step {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}
.flow-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  z-index: 2;
}
.flow-content h4 { font-size: 15px; margin-bottom: 2px; }
.flow-content p { font-size: 13px; color: var(--text-light); }

.action-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.big-btn {
  display: flex;
  gap: 16px;
  align-items: center;
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.big-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; border-color: var(--primary); }
.big-btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4); }
.big-btn.primary:hover { color: white; transform: translateY(-3px); }
.big-btn i { font-size: 42px; }
.big-btn strong { display: block; font-size: 18px; margin-bottom: 4px; }
.big-btn small { font-size: 13px; opacity: 0.9; }

.appeal-types { margin-bottom: 24px; }
.appeal-types h3 { font-size: 16px; margin-bottom: 14px; color: var(--text); }
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.type-item {
  background: white;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.type-item i { font-size: 24px; color: var(--primary); }

.tips-box {
  background: #fef3c7;
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--warning);
}
.tips-box h4 { color: #92400e; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.tips-box ul { padding-left: 18px; }
.tips-box li { color: #78350f; font-size: 14px; margin-bottom: 6px; }

/* ==============================
   三务公开页
   ============================== */
.public-full { padding: 40px 20px; }
.public-full .container { max-width: 1000px; margin: 0 auto; }
.public-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: white;
  padding: 6px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--primary);
  color: white;
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.pub-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
}
.pub-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pub-card h3 i { color: var(--primary); }
.pub-info p { margin-bottom: 8px; font-size: 14px; }
.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pub-table th, .pub-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.pub-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text);
}
.pub-table tr:last-child td { border-bottom: none; }
.pub-table .total { background: #eff6ff; font-weight: 700; color: var(--primary); }
.pub-list { list-style: none; }
.pub-list li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--border);
}
.pub-list li:last-child { border-bottom: none; }

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fin-item {
  text-align: center;
  padding: 18px 10px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 110px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.fin-item strong {
  font-size: 12px; font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.5px;
}
.fin-item > span {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
.fin-item .fin-num {
  font-size: 20px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.fin-item .fin-currency {
  font-size: 12px; font-weight: 600;
  opacity: 0.8;
  margin-right: 2px;
}
.fin-item.income { background: #dcfce7; color: #15803d; }
.fin-item.expense { background: #fee2e2; color: #b91c1c; }
.fin-item.balance { background: #dbeafe; color: #1d4ed8; }
.finance-tip {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
.finance-tip i { color: var(--primary); flex-shrink: 0; }

/* ==============================
   法治服务页
   ============================== */
.legal-full { padding: 40px 20px; }
.legal-full .container { max-width: 1000px; margin: 0 auto; }
.legal-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 20px;
}
.rule-header, .legal-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 18px;
}
.legal-card h2 i { color: var(--primary); }
.lawyer-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 12px;
  padding: 22px;
}
.lawyer-avatar {
  font-size: 48px;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lawyer-detail h3 { font-size: 18px; margin-bottom: 4px; }
.lawyer-title { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.lawyer-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.lawyer-meta span { display: flex; align-items: center; gap: 4px; color: var(--text-light); }
.legal-service-tip {
  margin-top: 14px;
  background: #fef3c7;
  border-left: 3px solid var(--warning);
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #92400e;
}

.law-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.law-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s;
}
.law-item:hover { background: #eff6ff; color: inherit; }
.law-item i { font-size: 22px; color: var(--primary); }
.law-item strong { display: block; font-size: 14px; }
.law-item small { font-size: 12px; color: var(--text-light); }

.case-list { display: flex; flex-direction: column; gap: 12px; }
.case-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}
.case-item h4 { font-size: 15px; margin-bottom: 6px; }
.case-item p { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.case-tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
}

.legal-steps { display: flex; flex-direction: column; gap: 14px; }
.l-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.l-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.l-step h4 { font-size: 15px; margin-bottom: 4px; }
.l-step p { font-size: 13px; color: var(--text-light); }

/* ==============================
   村规民约页
   ============================== */
.rules-full { padding: 40px 20px; }
.rules-full .container { max-width: 1000px; margin: 0 auto; }
.rule-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 20px;
}
.points-desc {
  background: #fef3c7;
  border-left: 4px solid var(--warning);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 20px;
}
.points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.points-col h4 {
  margin-bottom: 10px;
  font-size: 15px;
}
.points-col.plus h4 { color: var(--success); }
.points-col.minus h4 { color: var(--danger); }
.points-col table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.points-col th, .points-col td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.points-col th { background: #f8fafc; font-weight: 500; }
.points-col td:last-child { text-align: right; font-weight: 600; }
.points-col.plus td:last-child { color: var(--success); }
.points-col.minus td:last-child { color: var(--danger); }

.points-apply {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.points-apply h4 { margin-bottom: 6px; }
.points-apply p { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }

.custom-list { display: flex; flex-direction: column; gap: 14px; }
.custom-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
}
.cus-no {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.custom-item h4 { font-size: 15px; margin-bottom: 4px; }
.custom-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

.full-rule .rule-doc h3 {
  color: var(--primary);
  margin: 18px 0 10px;
  font-size: 15px;
}
.full-rule .rule-doc p { font-size: 14px; margin-bottom: 8px; line-height: 1.8; }
.rule-date {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* ==============================
   线上议事页
   ============================== */
.meeting-full { padding: 40px 20px; }
.meeting-full .container { max-width: 1000px; margin: 0 auto; }
.meeting-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 20px;
}
.meeting-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 18px;
}
.meeting-card h2 i { color: var(--primary); }
.card-desc { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }

.topic-item {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.topic-item.active { border-color: var(--primary); background: #f8fafc; }
.topic-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.topic-tag {
  background: var(--primary);
  color: white;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}
.topic-header h3 { font-size: 17px; }
.topic-desc { font-size: 14px; color: var(--text-light); margin-bottom: 12px; line-height: 1.7; }
.topic-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.topic-meta i { margin-right: 4px; }
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.vote-btn:hover { background: var(--primary-dark); color: white; }

.say-big-btn {
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, var(--success), #15803d);
  color: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  transition: transform 0.2s;
}
.say-big-btn:hover { transform: translateY(-2px); color: white; }
.say-big-btn i { font-size: 42px; }
.say-big-btn strong { display: block; font-size: 18px; margin-bottom: 4px; }
.say-big-btn small { font-size: 13px; opacity: 0.9; }

.say-list h4 { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.say-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.say-item:last-child { border-bottom: none; }
.say-avatar {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.say-text { font-size: 14px; margin-bottom: 4px; }
.say-meta { font-size: 12px; color: var(--text-light); }
.say-meta strong { color: var(--success); }

.decision-list { display: flex; flex-direction: column; gap: 14px; }
.decision-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
}
.dec-result {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  height: fit-content;
}
.dec-result.pass { background: #dcfce7; color: var(--success); }
.dec-result.fail { background: #fee2e2; color: var(--danger); }
.decision-item h4 { font-size: 15px; margin-bottom: 4px; }
.decision-item p { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.decision-item span { font-size: 12px; color: var(--text-light); }

.siyi-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.siyi-step {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.siyi-step .step-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.siyi-step h4 { font-size: 14px; margin-bottom: 2px; }
.siyi-step p { font-size: 12px; color: var(--text-light); }
.siyi-note { text-align: center; font-size: 13px; color: var(--text-light); font-style: italic; }

/* ==============================
   帮办代办页
   ============================== */
.assist-full { padding: 40px 20px; }
.assist-full .container { max-width: 1000px; margin: 0 auto; }
.assist-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 20px;
}
.assist-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 18px;
}
.assist-card h2 i { color: var(--primary); }

.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.target-item {
  text-align: center;
  padding: 20px 14px;
  background: #f8fafc;
  border-radius: 10px;
}
.target-item i { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.target-item h4 { font-size: 14px; margin-bottom: 4px; }
.target-item p { font-size: 12px; color: var(--text-light); }

.assist-table { overflow-x: auto; }
.assist-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.assist-table th, .assist-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.assist-table th { background: #f8fafc; font-weight: 600; }
.cat-cell {
  background: #eff6ff;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: center;
  vertical-align: middle !important;
}

.apply-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.apply-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
}
.app-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.apply-step h4 { font-size: 15px; margin-bottom: 4px; }
.apply-step p { font-size: 13px; color: var(--text-light); }
.apply-cta {
  background: #dcfce7;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}
.apply-cta p { font-size: 14px; margin-bottom: 4px; color: #166534; }

.assist-tips {
  background: #fef3c7;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid #fcd34d;
}
.assist-tips h4 {
  color: #92400e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.assist-tips ul { padding-left: 18px; }
.assist-tips li { color: #78350f; font-size: 14px; margin-bottom: 6px; }

.inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}
.inline-btn:hover { background: var(--primary-dark); color: white; }

/* 公告列表摘要 */
.notice-excerpt {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.6;
}
.empty-tip {
  text-align: center;
  color: var(--text-light);
  padding: 40px 0;
  font-size: 14px;
}

/* ==============================
   响应式
   ============================== */

/* =========================================================
   通用移动端修复（≤ 768px：iPhone 标准宽度 + 大部分安卓）
   之前 @media (max-width: 960px) 只覆盖平板，手机实际走 768px
   ========================================================= */
@media (max-width: 768px) {

  /* --- 导航栏（基础样式已折叠为汉堡菜单，此处仅微调间距） --- */
  .site-header { position: relative; }
  .header-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .nav-toggle { width: 34px; height: 34px; font-size: 17px; }

  .brand-text h1 { font-size: 15px; }
  .brand-text small { display: none; }

  /* --- 三栏/多栏 → 单列 --- */
  .access-grid,
  .two-col,
  .points-grid,
  .finance-summary,
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .siyi-flow { grid-template-columns: repeat(2, 1fr); }

  /* --- Hero 区 --- */
  .hero-section { padding: 36px 20px; }
  .hero-content h1 { font-size: 22px; line-height: 1.4; }
  .hero-content p { font-size: 14px; }

  /* --- 页头 --- */
  .page-hero h1 { font-size: 20px; }
  .page-hero { padding: 32px 20px; }

  /* --- 三务公开 Tab：缩小间距 --- */
  .public-tabs { gap: 4px; padding: 4px; border-radius: 10px; }
  .tab-btn { padding: 10px 8px; font-size: 13px; }

  /* --- 表格横向滚动兜底 ---
     手机上列太多挤不下，强制横向滑动 */
  .pub-card, .assist-card { overflow-x: auto; }
  .pub-table, .assist-table table {
    min-width: 560px;
    border-collapse: collapse;
  }
  .pub-table th, .pub-table td,
  .assist-table th, .assist-table td {
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* --- 网格卡片 --- */
  .grid-cards { grid-template-columns: 1fr; }
  .target-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* --- 动作按钮 --- */
  .action-buttons { grid-template-columns: 1fr; }
  .big-btn { padding: 20px; }
  .big-btn i { font-size: 36px; }

  /* --- 其他组件 --- */
  .lawyer-card { flex-direction: column; text-align: center; }
  .lawyer-meta { justify-content: center; }

  .member-card { padding: 14px; }
  .member-avatar { width: 48px; height: 48px; font-size: 30px; }

  .article-body { padding: 18px; }
  .appeal-stat { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* --- 紧急按钮：加底部安全区 --- */
  .emergency-float {
    bottom: calc(env(safe-area-inset-bottom, 0) + 20px);
    right: calc(env(safe-area-inset-right, 0) + 16px);
  }
  .emergency-btn { width: 52px; height: 52px; }

  /* --- 更多服务 --- */
  .more-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* --- 公告列表 --- */
  .notice-item a { gap: 14px; padding: 16px; flex-wrap: wrap; }
  .notice-date-box { min-width: 54px; padding: 8px 10px; }
  .notice-date-box strong { font-size: 20px; }
  .notice-arrow { display: none; }
}

/* 超窄屏（≤ 400px）进一步收紧 */
@media (max-width: 400px) {
  .siyi-flow { grid-template-columns: 1fr; }
  .target-grid { grid-template-columns: 1fr !important; }
  .more-grid { grid-template-columns: 1fr; }
  .tab-btn { font-size: 12px; padding: 8px 6px; }
  .stat-item strong { font-size: 20px; }
}

/* =========================================================
   参考页风格统一（420px 手机卡片内）
   二级页容器收窄、表格自适应、移动端取消圆角与留白
   ========================================================= */
.public-full, .legal-full, .guides-full, .assist-full,
.meeting-full, .notice-full, .appeal-section, .section-block {
  padding: 18px 16px 30px;
}
.public-full .container, .legal-full .container, .guides-full .container,
.assist-full .container, .meeting-full .container, .notice-full .container,
.appeal-section .container, .section-block .container {
  max-width: 100%;
  padding: 0;
}
.post-content { padding: 20px 16px 28px; }
.post-content .container { max-width: 100%; }

/* 二级页 Tab 收紧 */
.public-tabs { gap: 4px; padding: 5px; border-radius: 14px; margin-bottom: 16px; top: 52px; }
.tab-btn { padding: 10px 6px; font-size: 13px; border-radius: 10px; }

/* ===== Markdown 图片（通知正文里的插图） ===== */
.md-img {
  display: block;
  max-width: 100%;
  margin: 12px auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  cursor: zoom-in;
}
.notice-figure {
  text-align: center;
  margin: 14px 0;
}
.notice-figure figcaption {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* ===== 海报墙（手机竖版海报，完整显示不裁剪） ===== */
.poster-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1661ab;
  margin-bottom: 14px;
  padding-left: 4px;
}
.poster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.poster-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor: zoom-in;
  transition: transform .15s, box-shadow .15s;
  margin: 0;
}
.poster-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.poster-card img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}
.poster-card figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
  text-align: center;
  background: #fafbfc;
}
.poster-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  gap: 8px;
}
.poster-placeholder i { font-size: 32px; opacity: .4; }
.poster-placeholder span { font-size: 12px; }

/* ===== 海报放大灯箱 ===== */
.poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: posterLbFade .18s ease-out;
}
@keyframes posterLbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.poster-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
}
.poster-lightbox .poster-lb-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.poster-lightbox .poster-lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.poster-lightbox .poster-lb-close:hover {
  background: rgba(255,255,255,.3);
}
body.poster-lb-open { overflow: hidden; }

/* 卡片统一圆角与间距 */
.pub-card, .legal-card, .case-card, .lawyer-card, .legal-section-card,
.section-card, .guide-card, .assist-card, .meeting-card, .big-btn,
.apply-cta, .assist-tips {
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

/* 表格自适应 420 列宽 */
.pub-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.pub-table th, .pub-table td {
  padding: 8px 6px;
  font-size: 12px;
  white-space: normal !important;
  word-break: break-word;
}
.pub-table th:first-child, .pub-table td:first-child { width: 30%; }

@media (max-width: 768px) {
  .page-hero { padding: 20px 16px 18px; }
  .pub-card, .assist-card { overflow-x: visible; }
}

@media (max-width: 480px) {
  body { padding: 0; background: var(--page-bg); }
  body > header,
  body > .home-hero,
  body > main,
  body > footer { max-width: 100%; }
  .site-header { border-radius: 0; }
  .home-hero, .page-hero { border-radius: 0 0 20px 20px; }
  .site-footer { border-radius: 0; }
}

/* =========================================================
   公示公告（事项公示 + 诉求反馈）
   ========================================================= */
.pub-notice-tip {
  font-size: 12px;
  color: #8a6a2a;
  background: #fff7e6;
  border-left: 3px solid var(--accent-warn);
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.pub-notice {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 15px 17px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.pub-group { margin-bottom: 18px; }
.pub-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 2px 10px;
}
.pub-group-title i { color: var(--primary); font-size: 13px; }
.pub-group-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 20px;
  padding: 1px 7px;
}
.pub-notice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.pub-notice-head h3 {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.pn-date { font-size: 11px; color: var(--text-light); flex-shrink: 0; margin-top: 2px; }
.pn-summary { font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; }
.pn-foot {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-light);
}
