@charset "utf-8";
/* ==========================================================================
   法治之家 · 社团网站（v3 · 政务版式）
   仅借鉴政务网站的版式、配色与信息层级，不代表任何国家机关。
   ========================================================================== */

:root {
  --red: #a8141b;
  --red-d: #7d0e13;
  --red-l: #c8323a;
  --gold: #c9a227;
  --gold-d: #a8851b;
  --ink: #1b1b1b;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --line-2: #eeeeee;
  --bg: #f5f5f5;
  --white: #fff;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, "STSong", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 15px/1.75 var(--sans);
  color: var(--ink);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 99;
  background: var(--red); color: #fff; padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--red-d);
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px;
  line-height: 34px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .links { display: flex; gap: 18px; }

/* ---------- 站头 ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line-2); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .emblem { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  display: block; object-fit: contain; }
.brand h1 {
  font: 800 27px/1.15 var(--serif);
  letter-spacing: .06em;
  color: var(--red);
}
.brand .sub {
  font-size: 11.5px; letter-spacing: .22em; color: var(--muted); margin-top: 5px;
}
.searchbox { display: flex; border: 1px solid var(--line); background: #fff; }
.searchbox input {
  border: 0; height: 40px; padding: 0 14px; width: 210px; outline: none; font-size: 14px;
}
.searchbox input::placeholder { color: #a8a8a8; }
.searchbox button {
  border: 0; background: var(--red); color: #fff; width: 66px; height: 38px;
  cursor: pointer; font-size: 14px; margin: 1px;
}
.searchbox button:hover { background: var(--red-d); }

/* ---------- 主导航 ---------- */
.nav { background: var(--red); position: relative; }
.nav .wrap { display: flex; }
.nav a {
  display: block; padding: 0 26px; line-height: 48px; font-size: 15.5px;
  color: rgba(255, 255, 255, .95); white-space: nowrap;
}
.nav a:hover { background: var(--red-d); color: #fff; }
.nav a[aria-current="page"] {
  background: var(--red-d); color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.nav .spacer { flex: 1; }
.nav a.utility { font-size: 14px; opacity: .92; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 140% at 82% 10%, rgba(255, 255, 255, .10), transparent 58%),
    linear-gradient(104deg, #6f0c11 0%, #8f1117 46%, #a8141b 78%, #7d0e13 100%);
}
.hero .pattern {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 460px; opacity: .13; pointer-events: none;
}
.hero .inner { position: relative; padding: 62px 0 104px; max-width: 660px; }
.hero .kicker {
  font-size: 12px; letter-spacing: .34em; color: #f2d79c; margin-bottom: 16px;
}
.hero h2 {
  font: 800 clamp(27px, 4.2vw, 44px)/1.3 var(--serif);
  letter-spacing: .02em;
}
.hero p {
  color: rgba(255, 255, 255, .87); font-size: 15.5px; max-width: 54ch;
  margin: 18px 0 30px;
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .stamp {
  position: absolute; right: 0; bottom: 92px; width: 150px; text-align: center;
  border: 1px solid rgba(242, 215, 156, .55); color: #f2d79c;
  padding: 14px 10px; font-size: 12px; letter-spacing: .2em;
  transform: rotate(-4deg);
}
.hero .stamp b { display: block; font: 800 30px/1.1 var(--serif); letter-spacing: .02em; margin-bottom: 6px; }

/* ---------- 快捷服务 ---------- */
.quick {
  position: relative; z-index: 2; margin-top: -58px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--line-2); border: 1px solid var(--line-2); gap: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
}
.quick a {
  background: #fff; padding: 22px 20px; display: flex; align-items: center; gap: 14px;
  border-top: 3px solid transparent; transition: border-color .2s, background .2s;
}
.quick a:hover { border-top-color: var(--red); background: #fffafa; }
.quick .ico { width: 36px; height: 36px; flex-shrink: 0; color: var(--red); }
.quick b { display: block; font-size: 16px; font-weight: 600; }
.quick span { font-size: 12.5px; color: var(--muted); }

/* ---------- 区块通用 ---------- */
.section { padding: 46px 0; }
.section-gray { background: var(--bg); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  border-bottom: 2px solid var(--red); padding-bottom: 10px; margin-bottom: 24px;
}
.sec-head h2 {
  position: relative; padding-left: 14px;
  font: 800 22px/1.25 var(--serif); letter-spacing: .03em;
}
.sec-head h2::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; background: var(--red);
}
.sec-head .more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sec-head .more:hover { color: var(--red); }

.cols-3 { display: grid; grid-template-columns: 1.05fr 1.35fr .92fr; gap: 34px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }

/* ---------- 通知公告 ---------- */
.newslist li { border-bottom: 1px dashed var(--line); }
.newslist li:last-child { border-bottom: 0; }
.newslist a { display: flex; gap: 14px; padding: 13px 0; align-items: flex-start; }
.newslist a:hover .t { color: var(--red); }
.datebox {
  width: 58px; flex-shrink: 0; border: 1px solid var(--line);
  background: #fcfcfc; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 5px 0 4px;
}
.datebox .d { display: block; font: 800 19px/1.25 var(--serif); color: var(--red); }
.datebox .m { display: block; font-size: 11px; color: var(--muted); }
.newslist .t { font-size: 14.5px; line-height: 1.6; }
.newslist .cat { display: block; font-size: 11.5px; color: var(--gold-d); margin-top: 3px; }

/* ---------- 要闻 ---------- */
.leadnews .photo {
  aspect-ratio: 16 / 9; border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 20% 10%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(120deg, #7d0e13, #a8141b 60%, #6f0c11);
  position: relative; overflow: hidden; display: grid; place-content: center;
}
.leadnews .photo svg { width: 46%; opacity: .32; color: #fff; }
.leadnews .photo .cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 12.5px;
  padding: 7px 12px; letter-spacing: .04em;
}
.leadnews h3 { font: 800 19px/1.5 var(--serif); margin: 14px 0 8px; }
.leadnews p { font-size: 14px; color: #4a4a4a; }

/* ---------- 服务/指南列表 ---------- */
.servlist li { border-bottom: 1px solid var(--line-2); }
.servlist a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 2px; font-size: 14.5px;
}
.servlist a:hover { color: var(--red); }
.servlist .arrow { color: var(--red); font-size: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: #fff; padding: 22px 20px; }
.steps .n {
  font: 800 15px/1 var(--serif); color: #fff; background: var(--red);
  width: 26px; height: 26px; display: grid; place-content: center; margin-bottom: 12px;
}
.steps b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.steps p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th, .table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: middle; }
.table th { background: #f0f0f0; font-weight: 600; font-size: 13.5px; color: #333; white-space: nowrap; }
.table tbody tr:hover td { background: #fdf7f7; }
.table td.num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.table .tlink { color: var(--ink); }
.table .tlink:hover { color: var(--red); }

.tag {
  display: inline-block; font-size: 11.5px; line-height: 1.7; padding: 0 8px;
  border: 1px solid; border-radius: 2px; white-space: nowrap;
}
.tag-red { border-color: var(--red-l); color: var(--red); background: #fdf3f3; }
.tag-gold { border-color: var(--gold); color: var(--gold-d); background: #fdf9ec; }
.tag-gray { border-color: #c8c8c8; color: #777; background: #fafafa; }
.tag-green { border-color: #4f8a5b; color: #3f6f49; background: #f3f8f4; }

.status { font-weight: 600; font-size: 13px; }
.status-open { color: var(--red); }
.status-soon { color: var(--gold-d); }
.status-done { color: #8a8a8a; }

/* ---------- 工具条（列表页筛选） ---------- */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-2); margin-bottom: 20px;
}
.toolbar label { font-size: 13.5px; color: #555; }
.toolbar select, .toolbar input[type="search"] {
  border: 1px solid #cfcfcf; background: #fff; padding: 7px 10px; font-size: 14px;
  height: 36px; outline: none;
}
.toolbar input[type="search"] { flex: 1; min-width: 180px; }
.toolbar select:focus, .toolbar input:focus { border-color: var(--red); }
.toolbar .count { margin-left: auto; font-size: 13px; color: var(--muted); }

/* ---------- 详情展开 ---------- */
.detail {
  border: 1px solid var(--line); border-top: 3px solid var(--red);
  padding: 26px 28px; background: #fff; margin-bottom: 22px;
}
.detail:empty { display: none; }
.detail h3 { font: 800 21px/1.5 var(--serif); margin-bottom: 10px; }
.detail .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.detail p { font-size: 14.5px; margin-bottom: 12px; color: #333; }
.detail .close {
  float: right; border: 1px solid var(--line); background: #fff; cursor: pointer;
  padding: 4px 10px; font-size: 12.5px; color: var(--muted);
}
.detail .close:hover { border-color: var(--red); color: var(--red); }

/* ---------- 表单 ---------- */
.form-card { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 28px 30px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: #444; margin-bottom: 7px; }
.field label .req { color: var(--red); margin-left: 3px; }
.field input, .field select, .field textarea {
  border: 1px solid #cfcfcf; padding: 10px 12px; font-size: 14.5px; background: #fff;
  outline: none; width: 100%;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 2px rgba(168, 20, 27, .1);
}
.field .err { color: var(--red); font-size: 12.5px; margin-top: 5px; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #555; }
.agree input { width: 16px; height: 16px; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-gold { background: var(--gold); color: #3b2a05; }
.btn-gold:hover { background: #b8931f; }
.btn-ghost { background: #fff; border-color: #c4c4c4; color: #333; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---------- 提示 ---------- */
.notice-bar {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fdf7e8; border: 1px solid #ecdcae; color: #6b5518;
  padding: 12px 16px; font-size: 13.5px;
}
.notice-bar svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--gold-d); }
.success-panel { border: 1px solid #cfe3d2; background: #f4faf5; padding: 24px 26px; }
.success-panel h3 { font: 800 19px/1.4 var(--serif); color: #2f6b3c; margin-bottom: 8px; }

/* ---------- 页面头部（内页） ---------- */
.pagehead {
  background: linear-gradient(100deg, #7d0e13, #a8141b 62%, #8f1117);
  color: #fff; padding: 30px 0;
}
.pagehead .crumb { font-size: 12.5px; color: rgba(255, 255, 255, .75); margin-bottom: 8px; }
.pagehead .crumb a:hover { color: #fff; text-decoration: underline; }
.pagehead h2 { font: 800 26px/1.3 var(--serif); letter-spacing: .04em; }
.pagehead p { font-size: 14px; color: rgba(255, 255, 255, .82); margin-top: 8px; max-width: 70ch; }

/* ---------- 概况页 ---------- */
.prose p { font-size: 15px; line-height: 1.95; margin-bottom: 16px; color: #2f2f2f; }
.prose p.lead { font-size: 16.5px; color: #1f1f1f; }
.prose .quote {
  border-left: 3px solid var(--red); background: #faf7f2;
  padding: 14px 18px; color: #4a4a4a; font-size: 14.5px;
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: #fff; padding: 16px 18px; }
.facts dt { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.facts dd { font: 800 22px/1.2 var(--serif); color: var(--red); }

/* ---------- 资料下载 ---------- */
.filelist li { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line-2); }
.filelist .fico { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; }
.filelist .fname { font-size: 14.5px; }
.filelist .fname:hover { color: var(--red); }
.filelist .fmeta { font-size: 12.5px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ---------- 页脚 ---------- */
.footer { background: #262626; color: #bdbdbd; margin-top: 10px; }
.footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; padding: 40px 0 30px; }
.footer h3 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer .about { font-size: 13px; line-height: 1.9; color: #a8a8a8; max-width: 34ch; }
.footer .about .mark { color: #fff; font: 800 17px/1.4 var(--serif); letter-spacing: .06em; margin-bottom: 8px; }
.footer a { color: #bdbdbd; font-size: 13.5px; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .bottom {
  border-top: 1px solid #3a3a3a; padding: 16px 0;
  font-size: 12.5px; color: #8f8f8f; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.footer .bottom .disclaimer { color: #8f8f8f; }

/* ---------- 工作台 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 18px 20px; background: #fff; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font: 800 26px/1.2 var(--serif); color: var(--red); margin-top: 6px; }
.admin-block { border: 1px solid var(--line); background: #fff; margin-bottom: 26px; }
.admin-block > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: #f7f7f7; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.admin-block > header h3 { font: 700 16px/1.4 var(--sans); }
.admin-block .body { padding: 18px; }
.admin-block .body > .table-wrap + .empty { margin-top: 12px; }
.empty { font-size: 13.5px; color: var(--muted); padding: 18px 0; text-align: center; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 26px; width: 42px; height: 42px;
  display: grid; place-content: center; background: var(--red); color: #fff;
  border: 0; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 20; font-size: 16px;
}
.to-top.show { opacity: .92; pointer-events: auto; }
.to-top:hover { background: var(--red-d); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .cols-3 > :last-child { grid-column: 1 / -1; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav a { padding: 0 16px; font-size: 14.5px; line-height: 44px; }
  .nav .spacer { display: none; }
  .brand h1 { font-size: 23px; }
  .quick { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .hero .inner { padding: 46px 0 80px; }
  .hero .stamp { display: none; }
  .hero .pattern { width: 320px; right: -120px; }
  .cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 34px 0; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .nav .wrap { flex-wrap: wrap; overflow: visible; }
  .nav a { padding: 0 14px; font-size: 14px; line-height: 40px; }
  .nav a.utility { margin-left: auto; }
  .topbar .links { display: none; }
  .masthead .wrap { gap: 12px; }
  .searchbox { width: 100%; }
  .searchbox input { flex: 1; width: auto; }
  .cols-3 { grid-template-columns: 1fr; gap: 26px; }
  .cols-3 > :last-child { grid-column: auto; }
  .quick { grid-template-columns: 1fr; margin-top: 0; box-shadow: none; }
  .hero .inner { padding: 34px 0 40px; }
  .footer .cols { grid-template-columns: 1fr; gap: 22px; padding: 30px 0 20px; }
  .sec-head h2 { font-size: 19px; }
  .pagehead h2 { font-size: 21px; }
  .form-card { padding: 20px; }
  .detail { padding: 20px; }
  .facts { grid-template-columns: 1fr; }
  .table th, .table td { padding: 9px 10px; font-size: 13px; }
  .admin-block .table { min-width: 720px; }
  .admin-block .body { padding: 14px; }
  .admin-block > header { padding: 12px 14px; }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar, .nav, .quick, .to-top, .footer, .pagehead, .toolbar, .searchbox { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .table th { background: #eee; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 线上活动平台 ---------- */
[hidden] { display: none !important; }
.platform {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-bottom: 28px;
}
.platform-card {
  background: #fff; padding: 16px 18px 18px; border-top: 3px solid transparent;
  display: block; transition: background .18s, border-color .18s;
}
.platform-card:hover { background: #fffafa; border-top-color: var(--red-l); }
.platform-card[aria-current="page"] { border-top-color: var(--red); background: #fffafa; }
.platform-card .pc-k { display: block; font: 800 16px/1.4 var(--serif); color: var(--ink); }
.platform-card .pc-d { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.evgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.evcard {
  border: 1px solid var(--line); border-top: 3px solid var(--red);
  background: #fff; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px;
}
.evcard.ended { border-top-color: #c8c8c8; }
.evcard .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.evcard h3 { font: 800 17px/1.5 var(--serif); }
.evcard .meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--muted); }
.evcard p { font-size: 13.5px; color: #4a4a4a; line-height: 1.8; }
.evcard .foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px;
}
.evcard .join-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.signform { display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.signform .field label { font-size: 12.5px; }
.signform .field input, .signform .field textarea { padding: 8px 10px; font-size: 13.5px; }

.topiclist li { border-bottom: 1px dashed var(--line); }
.topiclist li:last-child { border-bottom: 0; }
.topiclist a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.topiclist a:hover .tt { color: var(--red); }
.topiclist .tt { display: block; font-size: 14.5px; line-height: 1.55; }
.topiclist .tm { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.topiclist .tr { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.replies { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 14px; }
.reply { padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.reply:last-of-type { border-bottom: 0; }
.reply .rh { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.reply .rb { font-size: 14px; color: #333; line-height: 1.8; }

.rules { list-style: decimal; padding-left: 22px; font-size: 13.5px; color: #4a4a4a; line-height: 2; }

.polllist { display: grid; gap: 20px; }
.poll { border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; padding: 22px 24px; }
.poll-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.poll-head h3 { font: 800 18px/1.5 var(--serif); }
.poll .pdesc { font-size: 13.5px; color: #4a4a4a; line-height: 1.8; margin: 6px 0 14px; }
.opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px dashed var(--line-2); font-size: 14.5px; cursor: pointer;
}
.opt input { width: 16px; height: 16px; accent-color: var(--red); }
.opt:hover { color: var(--red); }
.poll-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.pbar-row { margin-bottom: 12px; }
.pbar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 5px; color: #444; }
.pbar-top b { font-weight: 600; color: #333; font-variant-numeric: tabular-nums; }
.pbar-track { height: 8px; background: #eee; border: 1px solid var(--line-2); }
.pbar-fill { height: 100%; background: var(--red); }
.pbar-row.mine .pbar-fill { background: var(--gold); }
.pbar-row.mine .pbar-top { color: var(--red); }

@media (max-width: 860px) {
  .platform { grid-template-columns: 1fr; }
  .evgrid { grid-template-columns: 1fr; }
  .poll { padding: 18px 16px; }
  .poll-head { flex-direction: column; gap: 6px; }
  .evcard .foot { flex-direction: column; align-items: flex-start; }
  .topiclist .tr { display: none; }
}

/* 表单里的按钮按内容宽度，避免红条拉满 */
.field > .btn { align-self: flex-start; }

/* 空列表占位 */
.newslist .empty { padding: 26px 0; color: #6b6b6b; font-size: 14px; }
.table td.empty-cell { text-align: center; color: #6b6b6b; padding: 28px 12px; }

@media (max-width: 640px) {
  .brand .emblem { width: 46px; height: 46px; }
}

/* ---------- 公告配图 ---------- */
.newslist .thumb {
  display: block; width: 72px; height: 54px; flex-shrink: 0;
  border: 1px solid var(--line); overflow: hidden; background: #f0f0f0;
}
.newslist .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.newslist li a { align-items: center; }
#noticeDetail .notice-photo {
  margin: 0 0 18px; border: 1px solid var(--line); background: #f5f5f5;
}
#noticeDetail .notice-photo { text-align: center; }
#noticeDetail .notice-photo img {
  display: inline-block; max-width: 100%; max-height: 520px; width: auto; height: auto;
}
@media (max-width: 640px) {
  .newslist .thumb { width: 56px; height: 42px; }
  #noticeDetail .notice-photo img { max-height: 320px; }
}

/* ---------- 工作台配图选择 ---------- */
.imgpick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.imgpick input[type="file"] {
  font-size: 13px; border: 1px dashed var(--line); padding: 8px 10px; background: #fbfbfb; max-width: 100%;
}
.imgnote { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.imgprev { margin-top: 12px; border: 1px solid var(--line); background: #f5f5f5; padding: 8px; display: inline-block; }
.imgprev img { display: block; max-width: 260px; max-height: 180px; object-fit: contain; }
.tagimg {
  display: inline-block; margin-left: 8px; padding: 1px 6px; font-size: 11.5px;
  color: #7d0e13; border: 1px solid #e0b9bb; background: #fdf3f3;
}

/* ---------- 案件资源库 ---------- */
.libwrap { display: grid; gap: 28px; }
.libempty {
  border: 1px solid var(--line); background: #fbfbfb; color: #6b6b6b;
  padding: 26px 20px; text-align: center; font-size: 14px;
}
.libgroup-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px; border-bottom: 2px solid var(--red); margin-bottom: 4px;
}
.libgroup-head h3 { font: 700 17px/1.4 var(--serif); color: var(--ink); }
.libgroup-head .n { font-size: 12.5px; color: var(--muted); }
.filelist .fext {
  width: 40px; text-align: center; flex-shrink: 0;
  font: 700 11px/22px ui-monospace, Consolas, monospace; letter-spacing: .04em;
  color: #7d0e13; background: #fdf3f3; border: 1px solid #e0b9bb;
}
.filelist .fname { flex: 1; min-width: 0; word-break: break-all; }
.filelist .fdl {
  font-size: 13px; color: var(--red); border: 1px solid currentColor;
  padding: 3px 10px; white-space: nowrap;
}
.filelist .fdl:hover { background: var(--red); color: #fff; }
.admin-block .libupload { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.admin-block .libupload .btn { cursor: pointer; }
.admin-block .libupload input[type="text"] { flex: 1; min-width: 220px; padding: 8px 10px; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .filelist .fext { width: 34px; }
  .filelist .fmeta { display: none; }
  .admin-block .libupload .btn { flex: 1; text-align: center; }
}

/* ---------- 站内检索页 ---------- */
.sbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sbar input {
  flex: 1 1 260px; min-width: 220px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; font-size: 14px;
}
.sbar input:focus { outline: 2px solid rgba(168,20,27,.18); border-color: var(--red); }
.scount { margin: 16px 0 6px; color: var(--muted); font-size: 13px; }
.sres { margin-top: 26px; }
.sres h3 {
  font: 700 16px/1.5 var(--serif); color: var(--ink);
  border-left: 4px solid var(--red); padding-left: 10px; margin-bottom: 6px;
}
.sres h3 span { font: 400 12.5px/1.5 var(--sans); color: var(--muted); margin-left: 8px; }
.sres ul { border-top: 1px solid var(--line); }
.sres li {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 11px 2px; border-bottom: 1px dashed var(--line);
}
.sres li > a { font-size: 14.5px; }
.sres li > a:hover { color: var(--red); text-decoration: underline; }
.sres .smeta { font-size: 12.5px; color: var(--muted); }
.sres em { color: var(--red); font-style: normal; background: rgba(168,20,27,.06); padding: 0 2px; }
.sres .stag {
  font-size: 11.5px; color: var(--red); border: 1px solid rgba(168,20,27,.35);
  padding: 1px 6px; background: #fff;
}
.sempty { padding: 34px 0; text-align: center; color: var(--muted); }

/* 活动配图 */
.actthumb {
  display: inline-block; width: 54px; height: 40px; margin-right: 10px;
  vertical-align: middle; border: 1px solid var(--line); overflow: hidden;
  background: #f2f2f2;
}
.actthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-photo { margin: 16px 0 18px; text-align: center; }
.act-photo img {
  max-width: 100%; max-height: 460px; width: auto; height: auto;
  border: 1px solid var(--line); background: #fff; padding: 4px;
}
@media (max-width: 640px) {
  .actthumb { width: 44px; height: 32px; margin-right: 8px; }
  .act-photo img { max-height: 280px; }
}

/* 表格里的操作按钮 */
.table .btn-sm { padding: 5px 12px; font-size: 12.5px; line-height: 1.5; }
