/* ============================================================
   羊平镇雕刻企业信用红黑榜监督平台 · 政务级样式
   主色：政务蓝 #0b3d91 / 中国红 #c8102e / 纯白
   ============================================================ */

:root {
  --gov-blue: #0b3d91;
  --gov-blue-2: #14509c;
  --gov-blue-deep: #082b66;
  --gov-blue-soft: #e8effa;
  --red: #c8102e;
  --red-soft: #fdecee;
  --gold: #c9a227;
  --gold-soft: #fdf6e3;
  --dark: #2b2b2b;
  --ink: #1f2329;
  --ink-2: #5c6670;
  --ink-3: #8a939d;
  --line: #e3e8ef;
  --bg: #f4f6f9;
  --white: #ffffff;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 34, 65, .06);
  --shadow: 0 2px 10px rgba(15, 34, 65, .08);
  --shadow-lg: 0 6px 24px rgba(15, 34, 65, .12);
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               "Source Han Sans SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gov-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─────────── 顶部政府栏 ─────────── */
.gov-header {
  background: linear-gradient(135deg, var(--gov-blue-deep) 0%, var(--gov-blue) 55%, var(--gov-blue-2) 100%);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.gov-header::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 46px),
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.10), transparent 46%);
  pointer-events: none;
}
.gov-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative; z-index: 1;
}
.gov-brand { display: flex; align-items: center; gap: 14px; }
.gov-emblem {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  font-size: 20px;
  color: var(--gold);
  flex: 0 0 auto;
  background: rgba(255,255,255,.06);
}
.gov-titles h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}
.gov-titles p {
  font-size: 12px;
  letter-spacing: 6px;
  color: rgba(255,255,255,.75);
  margin-top: 2px;
}
.gov-slogan {
  font-size: 13px;
  letter-spacing: 3px;
  color: #ffe9a8;
  border: 1px solid rgba(255,233,168,.45);
  border-radius: 999px;
  padding: 5px 16px;
  white-space: nowrap;
}

/* ─────────── 布局 ─────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* ─────────── 顶部视觉区 ─────────── */
.hero {
  margin: 22px 0 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gov-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-inner { padding: 30px 24px 26px; text-align: center; }
.hero-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--gov-blue-deep);
  letter-spacing: 2px;
}
.hero-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.search-box {
  display: flex;
  max-width: 620px;
  margin: 22px auto 0;
  border: 2px solid var(--gov-blue);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  background: transparent;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box button {
  border: 0;
  padding: 0 30px;
  background: var(--gov-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.search-box button:hover { background: var(--gov-blue-2); }
.search-tip { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.search-tip b { color: var(--red); }

/* ─────────── 双榜 ─────────── */
.boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.board {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.board-red { border-top: 4px solid var(--red); }
.board-black { border-top: 4px solid #3a3a3a; }

.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}
.board-title { display: flex; gap: 12px; }
.board-mark {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.board-mark-red { background: linear-gradient(135deg, var(--red), #a00d25); }
.board-mark-black { background: linear-gradient(135deg, #333, #1a1a1a); }
.board-title h3 { font-size: 17px; color: var(--ink); }
.board-title p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.board-count {
  font-size: 12px;
  color: var(--ink-2);
  background: var(--gov-blue-soft);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.board-list { list-style: none; }
.board-list li { border-bottom: 1px solid var(--line); }
.board-list li:last-child { border-bottom: 0; }
.board-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  color: var(--ink);
  transition: background .18s;
}
.board-list a:hover { background: #f7f9fc; text-decoration: none; }

.rank {
  width: 24px; height: 24px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--ink-3);
}
.rank-1 { background: linear-gradient(135deg, #e0b536, var(--gold)); }
.rank-2 { background: linear-gradient(135deg, #b9c3cf, #98a5b5); }
.rank-3 { background: linear-gradient(135deg, #cf9a6c, #b07b4f); }
.rank-dark { background: #4a4a4a; }

.board-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-meta {
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.stars { color: var(--gold); letter-spacing: 1px; margin-left: 4px; }
.board-reason {
  grid-column: 2 / 4;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-black .board-list a { grid-template-columns: 28px 1fr; }
.board-empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* ─────────── 通用面板 ─────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.panel-head h3 { font-size: 16px; color: var(--gov-blue-deep); }
.link-muted { font-size: 13px; color: var(--ink-2); }
.link-muted:hover { color: var(--gov-blue); }

/* 搜索结果 */
.search-results { padding: 6px 0; }
.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "main arrow" "sub arrow";
  align-items: center;
  gap: 2px 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background .18s;
}
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: #f7f9fc; text-decoration: none; }
.result-main { grid-area: main; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-sub { grid-area: sub; font-size: 12px; color: var(--ink-3); }
.result-name { font-size: 15px; font-weight: 600; }
.result-arrow { grid-area: arrow; color: var(--ink-3); font-size: 20px; }

/* 徽标 */
.badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 9px;
  border-radius: 3px;
  font-weight: 600;
  vertical-align: middle;
}
.badge-red { background: var(--red-soft); color: var(--red); border: 1px solid #f5c7ce; }
.badge-black { background: #f0f0f0; color: #333; border: 1px solid #dcdcdc; }
.badge-none { background: #f2f4f7; color: var(--ink-2); border: 1px solid var(--line); }
.badge-rating { background: var(--gov-blue-soft); color: var(--gov-blue); border: 1px solid #cfdcf3; }

/* ─────────── 监督说明 ─────────── */
.notice {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gov-blue);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.notice h4 {
  font-size: 15px;
  color: var(--gov-blue-deep);
  margin-bottom: 10px;
}
.notice ul { padding-left: 20px; }
.notice li { font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.notice li b { color: var(--red); }
.notice p { font-size: 13.5px; color: var(--ink-2); }
.notice-compact { margin-top: 0; }

/* ─────────── 面包屑 ─────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  margin: 20px 0 14px;
}
.breadcrumb a { color: var(--ink-2); }
.crumb-current { color: var(--ink); }

/* ─────────── 企业详情 ─────────── */
.ent-panel { padding: 24px; }
.ent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.ent-name { font-size: 23px; color: var(--gov-blue-deep); line-height: 1.4; }
.ent-badges { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.ent-stamp {
  flex: 0 0 auto;
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 4px;
  padding: 6px 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  transform: rotate(-3deg);
  opacity: .82;
  letter-spacing: 1px;
}

.ent-info { margin-top: 6px; }
.ent-info-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.ent-info-row:last-child { border-bottom: 0; }
.ent-info dt { color: var(--ink-3); font-size: 13.5px; }
.ent-info dd { font-size: 14.5px; color: var(--ink); word-break: break-word; }
.ent-info-black dd { color: var(--red); }
.info-extra { font-size: 12.5px; color: var(--ink-2); margin-left: 8px; }

.ent-actions { margin-top: 22px; text-align: center; }
.action-tip { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* ─────────── 按钮 ─────────── */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  padding: 11px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  text-align: center;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gov-blue);
  color: #fff;
  border-color: var(--gov-blue);
}
.btn-primary:hover { background: var(--gov-blue-2); }
.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gov-blue); color: var(--gov-blue); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: #a80d26; }
.btn-black { background: #333; color: #fff; border-color: #333; }
.btn-black:hover { background: #1a1a1a; }
.btn-danger { background: #fff; color: var(--red); border-color: #f0c3ca; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; padding: 13px 26px; font-size: 16px; letter-spacing: 2px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-xs { padding: 4px 10px; font-size: 12.5px; border-radius: 3px; }
.btn-block-mobile { display: inline-block; min-width: 280px; padding: 14px 40px; font-size: 16px; letter-spacing: 2px; }

/* ─────────── 表单 ─────────── */
.form-panel { padding: 24px; }
.form-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.form-head h2 { font-size: 20px; color: var(--gov-blue-deep); }
.form-sub { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.form-sub b { color: var(--ink); }

.form-body .field, .field { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.req { color: var(--red); font-style: normal; }
.opt { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }

input[type="text"], input[type="tel"], input[type="password"], input[type="number"],
select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6dde7;
  border-radius: 4px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, .1);
}
textarea { resize: vertical; line-height: 1.7; min-height: 120px; }

.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d6dde7;
  border-radius: 4px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: all .18s;
}
.radio-item:hover { border-color: var(--gov-blue); }
.radio-item input[type="radio"] { accent-color: var(--gov-blue); width: 15px; height: 15px; }
.radio-item input[type="radio"]:checked + span { color: var(--gov-blue); font-weight: 600; }
.radio-item:has(input:checked) {
  border-color: var(--gov-blue);
  background: var(--gov-blue-soft);
}

.privacy-box {
  background: var(--gold-soft);
  border: 1px solid #f0e2b8;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 6px 0 22px;
}
.privacy-box strong {
  display: block;
  font-size: 13.5px;
  color: #8a6d13;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.privacy-box p { font-size: 12.8px; color: #7a6420; line-height: 1.7; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─────────── 提交成功 ─────────── */
.success-panel, .error-panel {
  max-width: 640px;
  margin: 48px auto;
  padding: 48px 28px;
  text-align: center;
}
.success-icon {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e8e3e, #157a34);
  color: #fff;
  font-size: 38px;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(30, 142, 62, .3);
}
.success-title { font-size: 24px; color: var(--ink); }
.success-text { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.success-sub { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }
.success-actions { margin-top: 28px; }

.error-code {
  font-size: 56px;
  font-weight: 700;
  color: var(--gov-blue);
  letter-spacing: 4px;
  line-height: 1;
}
.error-title { margin-top: 14px; font-size: 20px; color: var(--ink); }
.error-text { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ─────────── 提示条 ─────────── */
.flash-wrap { margin-top: 16px; }
.flash {
  border-radius: 4px;
  padding: 11px 16px;
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid;
}
.flash-error { background: var(--red-soft); border-color: #f5c7ce; color: #a00d25; }
.flash-success { background: #eaf7ee; border-color: #bfe3c9; color: #1e7a37; }
.flash-info { background: var(--gov-blue-soft); border-color: #cfdcf3; color: var(--gov-blue); }

/* ─────────── 空状态 ─────────── */
.empty-state { padding: 44px 20px; text-align: center; }
.empty-state p { font-size: 15px; color: var(--ink-2); }
.empty-hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* ─────────── 页脚 ─────────── */
.gov-footer {
  background: var(--gov-blue-deep);
  color: rgba(255, 255, 255, .7);
  margin-top: 10px;
}
.gov-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px;
  text-align: center;
  font-size: 12.5px;
  line-height: 2;
}
.footer-line-1 { color: rgba(255, 255, 255, .84); }
.footer-line-2 { color: rgba(255, 255, 255, .58); font-size: 12px; }
.footer-line-3 { color: rgba(255, 255, 255, .45); font-size: 11.5px; }

/* ============================================================
   管理端
   ============================================================ */
.admin-body { background: #f0f3f7; }

.admin-topbar {
  background: linear-gradient(135deg, var(--gov-blue-deep), var(--gov-blue));
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 30;
  border-bottom: 3px solid var(--gold);
}
.admin-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  flex-wrap: wrap;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.admin-brand em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.7); font-size: 13px; }
.admin-emblem { color: var(--gold); font-size: 18px; }

.admin-topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-topnav a {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 4px;
  transition: background .18s, color .18s;
}
.admin-topnav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.admin-topnav a.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.admin-topnav a.nav-logout { color: #ffd2d2; }
.admin-topnav a.nav-logout:hover { background: rgba(200,16,46,.35); }

.admin-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-page-head h2 { font-size: 21px; color: var(--gov-blue-deep); }
.page-sub { font-size: 13px; color: var(--ink-3); }

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gov-blue);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-sm);
}
.stat-red { border-top-color: var(--red); }
.stat-black { border-top-color: #3a3a3a; }
.stat-blue { border-top-color: var(--gov-blue-2); }
.stat-warn { border-top-color: var(--gold); }
.stat-label { font-size: 13px; color: var(--ink-2); }
.stat-value { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 4px 0 2px; }
.stat-red .stat-value { color: var(--red); }
.stat-black .stat-value { color: #333; }
.stat-warn .stat-value { color: #a8841a; }
.stat-foot { font-size: 12px; color: var(--ink-3); }

/* 管理面板 */
.admin-panel { padding: 18px 20px 20px; }
.section-title { font-size: 16px; color: var(--gov-blue-deep); margin-bottom: 6px; }
.section-hint { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.form-admin { max-width: 860px; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.filter-bar input[type="text"] { flex: 1; min-width: 200px; max-width: 340px; }
.filter-bar select { width: auto; min-width: 140px; }

/* 数据表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  background: #f7f9fc;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}
.data-table tbody tr:hover { background: #fafbfd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.cell-ellipsis {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-content { max-width: 380px; word-break: break-word; }
.row-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-actions, .cell-actions { width: 1%; white-space: nowrap; }
.cell-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cell-status { min-width: 130px; }
.status-form { margin-top: 6px; }
.status-form select { width: auto; font-size: 12.5px; padding: 4px 8px; }
.inline-form { display: inline-block; }
.table-foot { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }

/* 标签 */
.type-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.type-praise { background: #eaf7ee; color: #1e7a37; }
.type-suggestion { background: var(--gov-blue-soft); color: var(--gov-blue); }
.type-complaint { background: var(--gold-soft); color: #8a6d13; }
.type-report { background: var(--red-soft); color: #a00d25; }

.status-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.status-pending { background: var(--red-soft); color: #a00d25; }
.status-processing { background: var(--gold-soft); color: #8a6d13; }
.status-closed { background: #eef1f4; color: var(--ink-2); }

/* 登录页 */
.login-wrap { display: grid; place-items: center; min-height: 62vh; }
.login-panel { width: 100%; max-width: 420px; padding: 34px 30px 26px; }
.login-brand { text-align: center; margin-bottom: 26px; }
.login-emblem {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gov-blue-deep), var(--gov-blue-2));
  color: var(--gold);
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(11, 61, 145, .25);
}
.login-brand h2 { font-size: 19px; color: var(--gov-blue-deep); }
.login-brand p { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.login-tip {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.admin-footer {
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  background: #eaeef4;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .boards { grid-template-columns: 1fr; }
  .gov-slogan { display: none; }
  .gov-titles h1 { font-size: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px 36px; }

  .gov-header-inner { padding: 12px 14px; }
  .gov-emblem { width: 38px; height: 38px; font-size: 17px; }
  .gov-titles h1 { font-size: 16px; letter-spacing: 0; }
  .gov-titles p { font-size: 10px; letter-spacing: 4px; }

  .hero-inner { padding: 22px 16px 20px; }
  .hero-title { font-size: 20px; }
  .hero-sub { font-size: 12px; line-height: 1.7; }

  .search-box { flex-direction: column; border-width: 1px; }
  .search-box button { padding: 11px 0; letter-spacing: 2px; }

  .board-head { padding: 14px 16px; }
  .board-list a { padding: 12px 16px; }
  .board-name { font-size: 14px; }
  .board-reason { white-space: normal; }

  .ent-panel { padding: 18px 16px; }
  .ent-name { font-size: 19px; }
  .ent-head { flex-direction: column; gap: 14px; }
  .ent-stamp { align-self: flex-start; }
  .ent-info-row { grid-template-columns: 96px 1fr; gap: 10px; padding: 11px 0; }
  .ent-info dt { font-size: 13px; }

  .btn-block-mobile { min-width: 100%; width: 100%; }

  .form-panel { padding: 18px 16px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .radio-group { flex-direction: column; }
  .radio-item { width: 100%; }

  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }

  .success-panel, .error-panel { margin: 24px 0; padding: 36px 18px; }

  .notice { padding: 16px 16px; }

  /* 管理端 */
  .admin-topbar-inner { padding: 8px 14px; min-height: auto; }
  .admin-brand { font-size: 14px; }
  .admin-topnav { gap: 2px; }
  .admin-topnav a { font-size: 13px; padding: 6px 10px; }
  .admin-main { padding: 16px 12px 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 24px; }
  .admin-panel { padding: 14px; }
  .filter-bar input[type="text"] { max-width: none; }
  .data-table { min-width: 620px; }
  .cell-actions { flex-direction: column; align-items: flex-start; }
  .login-panel { padding: 26px 20px; }
}
