/* 桥市生活网 · 大石桥同城生活服务 —— 全站样式 */

:root {
  --brand: #b8232f;
  --brand-dark: #8f1a24;
  --brand-soft: #fdf3f3;
  --ink: #1f2328;
  --ink-2: #4a5058;
  --ink-3: #8a929c;
  --line: #e6e9ed;
  --bg: #f4f5f7;
  --card: #ffffff;
  --link: #1b4b8f;
  --ok: #1a7f4b;
  --err: #c0392b;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }

/* tap-highlight 透明 + touch-action 去掉点击高亮与 300ms 延迟，套壳 APP 里手感接近原生 */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.75 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--brand); }
a, button, input, select, textarea { touch-action: manipulation; }

/* 电话号码统一由模板函数 tel 渲染成 <a class="tel" href="tel:...">（见 internal/web/tel.go）。
   默认继承周围文字的颜色与字号——变成链接不该改变原有观感，
   只在悬停时加下划线提示「这里可以点」。各页面需要强调时按父级选择器覆盖。 */
.tel { color: inherit; text-decoration: none; }
.tel:hover { color: var(--brand); text-decoration: underline; }

/* 触屏设备没有 hover 状态，必须让号码自带「可拨」的视觉提示，
   否则用户不会知道这里能点——何况本站已关掉 format-detection，
   浏览器也不会把号码自动识别成电话。
   桌面端刻意不强调：PC 上点 tel: 一般不会触发任何动作，强调了反而误导。 */
@media (hover: none) {
  .tel {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; }

.wrap { width: 1180px; max-width: calc(100% - 32px); margin: 0 auto; }

.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.req { color: var(--brand); }

/* ---------- 顶栏 ---------- */
.topbar {
  background: #2c3138;
  color: #cfd5dc;
  font-size: 13px;
  line-height: 34px;
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; }
.topbar-right a { color: #cfd5dc; margin-left: 16px; }
.topbar-right a:hover { color: #fff; }
.topbar-right .js-today { margin-right: 4px; }

/* ---------- 报头 ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 56px; height: 56px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 3px 10px rgba(184, 35, 47, .28);
}
.logo-text h1 { font-size: 30px; letter-spacing: 3px; color: var(--ink); }
.logo-text p {
  margin: 2px 0 0;
  font-size: 13px; color: var(--ink-3); letter-spacing: 1px;
}
.masthead-side { flex: 0 1 460px; }

.search { display: flex; }
.search input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 2px solid var(--brand);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  outline: none;
  background: #fff;
}
.search input:focus { background: #fffdf7; }
.search button {
  width: 92px; height: 40px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 15px; font-weight: 700;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  letter-spacing: 2px;
}
.search button:hover { background: var(--brand-dark); }
.hotwords { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.hotwords a { margin-right: 12px; color: var(--ink-2); }

/* ---------- 主导航 ---------- */
.mainnav { background: var(--brand); box-shadow: var(--shadow); }
.mainnav-in { display: flex; flex-wrap: nowrap; }
.mainnav-in > a,
.mainnav-in .nav-sub > a {
  display: block;
  padding: 0 24px;
  line-height: 46px;
  color: #ffe9ea;
  font-size: 16px;
  position: relative;
  transition: background .15s;
  white-space: nowrap;
}
.mainnav-in > a:hover,
.mainnav-in .nav-sub > a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mainnav-in > a.active,
.mainnav-in .nav-sub > a.active { background: var(--brand-dark); color: #fff; font-weight: 700; }

/* 分类信息下拉 */
.nav-sub { position: relative; }
.nav-sub .caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px; margin-bottom: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}
.nav-sub .sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 132px;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-top: 2px solid var(--brand);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 18px rgba(31, 38, 49, .16);
  z-index: 60;
  padding: 4px 0;
}
.nav-sub .sub a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.nav-sub .sub a:hover { background: #f6ede3; color: var(--brand-dark); }
.nav-sub .sub a.active { color: var(--brand); font-weight: 700; background: #faf5ee; }
.nav-sub:hover .sub { display: block; }
.nav-sub.open > a { background: var(--brand-dark); color: #fff; }

/* 手机版应用栏与抽屉导航：默认不参与桌面布局，仅 ≤700px 由下方媒体查询启用。
   桌面端导航保持原来的红色横条，一行不受影响。 */
.mtop, .nav-head, .nav-member, .nav-mask { display: none; }

/* ---------- 主体布局 ---------- */
.main { padding: 20px 0 40px; }

.crumb {
  font-size: 13px; color: var(--ink-3);
  padding: 4px 0 12px;
}
.crumb a { color: var(--ink-2); }
.crumb span { margin: 0 6px; }

.layout { display: flex; gap: 20px; align-items: flex-start; }
.col-main { flex: 1 1 auto; min-width: 0; }
.col-side { flex: 0 0 320px; }

/* ---------- 头条区 ---------- */
.hero { display: flex; gap: 20px; margin-bottom: 20px; align-items: stretch; }
.hero-main {
  flex: 1 1 auto;
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--brand);
  display: block;
  min-width: 0;
}
.hero-main:hover h2 { color: var(--brand); }
.hero-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.hero-main h2 { font-size: 25px; color: var(--ink); margin-bottom: 12px; }
.hero-main p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.hero-meta { font-size: 13px; color: var(--ink-3); }
.hero-meta span { margin-right: 16px; }

.hero-side {
  flex: 0 0 340px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.side-head {
  font-size: 15px; font-weight: 700;
  border-left: 4px solid var(--brand);
  padding-left: 9px;
  margin-bottom: 10px;
}

/* ---------- 列表 ---------- */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.mini-list li:last-child { border-bottom: none; }
.mini-list a {
  flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink);
}
.mini-list a:hover { color: var(--brand); }
.mini-list time { font-size: 12px; color: var(--ink-3); flex: 0 0 auto; }
.dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #fcfcfd;
}
.card-head h3 { font-size: 17px; display: flex; align-items: center; }
.card-head .bar {
  display: inline-block;
  width: 4px; height: 17px;
  background: var(--brand);
  margin-right: 9px;
  border-radius: 2px;
}
.card-head .more { font-size: 13px; color: var(--ink-3); }
.card-head .more:hover { color: var(--brand); }
.card-head .count { font-size: 13px; color: var(--ink-3); }
.card-body { padding: 6px 18px 16px; }

/* 新闻列表 */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.news-list li:last-child { border-bottom: none; }
.news-list a {
  flex: 1;
  color: var(--ink);
  font-size: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-list a:hover { color: var(--brand); }
.news-list time { font-size: 13px; color: var(--ink-3); flex: 0 0 auto; }

.news-list.lg li { display: block; padding: 15px 0; }
.news-list.lg a { display: block; font-size: 17px; white-space: normal; font-weight: 600; }
.news-list.lg .excerpt {
  margin: 7px 0 9px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}
.meta-row { font-size: 13px; color: var(--ink-3); }
.meta-row span { margin-right: 14px; }

.tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 3px;
  margin-right: 8px;
  flex: 0 0 auto;
}

/* 分类信息 */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list a { color: var(--ink); font-size: 14px; }
.info-list a:hover { color: var(--brand); }
.info-sub { margin-top: 5px; font-size: 13px; display: flex; justify-content: space-between; }
.price { color: var(--brand); font-weight: 700; }

.kind {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 3px;
  background: #eef1f5;
  color: var(--ink-2);
}
.kind-house { background: #e8f1fd; color: #1b4b8f; }
.kind-job { background: #e9f6ee; color: #1a7f4b; }
.kind-second { background: #fdf2e4; color: #a9660c; }
.kind-biz { background: #f3ecfb; color: #6b3fa0; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; }
.quick-grid a {
  display: block;
  padding: 10px 12px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
}
.quick-grid a:hover {
  background: var(--brand-soft);
  border-color: #f0c9cc;
  color: var(--brand);
}

/* 栏目导航 */
.cat-list { list-style: none; margin: 0; padding: 6px 0 0; }
.cat-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: var(--ink-2); font-size: 14px; }
.cat-list a:hover { color: var(--brand); }

/* 留言 */
.msg-list { list-style: none; margin: 0; padding: 4px 0 0; }
.msg-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.msg-list li:last-child { border-bottom: none; }
.msg-text { margin: 0; font-size: 14px; color: var(--ink-2); }
.msg-meta { margin-top: 5px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; }

.msg-board { list-style: none; margin: 0; padding: 0; }
.msg-board li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.msg-board li:last-child { border-bottom: none; }
.msg-head { display: flex; justify-content: space-between; font-size: 13px; }
.msg-head .nick { font-weight: 700; color: var(--ink); }
.msg-head time { color: var(--ink-3); }
.msg-body { margin: 7px 0 0; color: var(--ink-2); }
.msg-reply {
  margin-top: 9px;
  padding: 10px 12px;
  background: #f6f8fa;
  border-left: 3px solid var(--brand);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.reply-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
  margin-right: 8px;
}

.rule-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.rule-list li { margin: 7px 0; }

/* 表单 */
.msg-form { padding-top: 10px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-row input[type=text],
.form-row input[type=password],
.form-row input[type=email],
.form-row input[type=tel],
.form-row input[type=number],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cfd5dc;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(184, 35, 47, .1);
}
.form-row textarea { resize: vertical; line-height: 1.7; }
.btn-row { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid #cfd5dc;
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.sm { padding: 5px 13px; font-size: 13px; }
.btn.danger { background: #c0392b; }
.btn.danger:hover { background: #a33024; }

.alert {
  padding: 11px 15px;
  border-radius: 5px;
  margin-bottom: 14px;
  font-size: 14px;
}
.alert.ok { background: #eaf7ef; color: #14663c; border: 1px solid #c2e6d2; }
.alert.err { background: #fdecea; color: #a33024; border: 1px solid #f5c6c0; }

/* ---------- 文章页 ---------- */
.article { padding: 26px 32px 20px; }
.art-title { font-size: 28px; line-height: 1.5; margin-bottom: 14px; }
.art-meta {
  font-size: 13px; color: var(--ink-3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.art-meta span { margin-right: 16px; }
.art-abstract {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: #f7f8fa;
  border-left: 3px solid var(--brand);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.art-body { padding: 18px 0 8px; font-size: 16px; line-height: 2; color: #262b31; }
.art-body p { margin: 0 0 18px; text-indent: 2em; }
.art-body h3 {
  font-size: 17px;
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--brand);
}
.art-body img { max-width: 100%; height: auto; border-radius: 4px; }
.art-foot {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.adj-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.adj-nav a, .adj-nav .dis {
  flex: 1;
  padding: 11px 15px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adj-nav .dis { color: var(--ink-3); }
.adj-nav a:last-child { text-align: right; }

/* 键值表 */
.kv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}
.kv-table th {
  width: 130px;
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  background: #f7f8fa;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.kv-table td { padding: 10px 14px; border: 1px solid var(--line); }
.kv-table td.hl { color: var(--brand); font-weight: 700; }

/* ---------- 分类信息卡片 ---------- */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 12px; }
.info-card {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  transition: all .15s;
}
.info-card:hover {
  border-color: #f0c9cc;
  box-shadow: 0 3px 10px rgba(184, 35, 47, .09);
  transform: translateY(-1px);
}
.info-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.info-time { font-size: 12px; color: var(--ink-3); }
.info-card h4 { font-size: 16px; color: var(--ink); margin-bottom: 7px; }
.info-card .excerpt { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.info-card-foot { display: flex; justify-content: space-between; align-items: baseline; }

/* ---------- 便民服务表 ---------- */
.svc-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.svc-table th {
  text-align: left;
  padding: 9px 12px;
  background: #f7f8fa;
  border-bottom: 2px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.svc-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.svc-table tr:last-child td { border-bottom: none; }
.svc-table tr:hover td { background: #fcfcfd; }
.svc-name { font-weight: 600; color: var(--ink); }
.svc-phone { color: var(--brand); font-weight: 700; font-family: Consolas, Monaco, monospace; }
.tip { margin: 8px 0 0; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  color: var(--ink-2);
}
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
.tabs a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
/* 页签上的条数角标：有内容时才由模板输出，视觉上保持低调 */
.tabs .tab-n {
  font-style: normal;
  font-size: 12px;
  margin-left: 5px;
  color: var(--ink-3);
}
.tabs a.active .tab-n { color: rgba(255, 255, 255, .82); }

/* ---------- 分页 ---------- */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.pager a {
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink-2);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .dis {
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #c3c9d1;
}
.pageno { color: var(--ink-3); font-size: 13px; }

.empty { text-align: center; color: var(--ink-3); padding: 40px 0; margin: 0; }

/* ---------- 页脚 ---------- */
.footer { background: #2c3138; color: #a6aeb8; margin-top: 20px; }
.footer-in {
  display: flex; gap: 40px;
  padding: 30px 0 24px;
}
.footer-col { flex: 1; }
.footer-col h4 { color: #e8ebef; font-size: 15px; margin-bottom: 10px; }
.footer-col p { margin: 6px 0; font-size: 13px; line-height: 1.8; }
.footer-col a { color: #a6aeb8; }
.footer-col a:hover { color: #fff; }
.footer-col .muted { color: #7e8792; }
/* 底栏分类信息：由类目表分组生成，每行「左名 · 右名」，
   与原来手写的三行两列视觉一致；圆点只在同一行内的两项之间出现。 */
.footer-col .f-tags a + a::before { content: "·"; color: #5c646e; margin: 0 6px; }
.copyright {
  background: #23272d;
  padding: 14px 0;
  font-size: 12px;
  color: #767e88;
  line-height: 1.9;
}
.copyright p { margin: 0; }

/* ---------- 错误页 ---------- */
.err-page {
  text-align: center;
  padding: 90px 20px;
}
.err-page .code {
  font-size: 76px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: 4px;
}
.err-page .msg { font-size: 17px; color: var(--ink-2); margin: 20px 0 26px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .layout, .hero { flex-direction: column; }
  .col-side, .hero-side { flex: 1 1 auto; width: 100%; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-in { flex-direction: column; gap: 20px; }
}
@media (max-width: 640px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .masthead-side { flex: 1 1 auto; width: 100%; }
  .logo-text h1 { font-size: 24px; }
  .mainnav-in { flex-wrap: wrap; }
  .mainnav-in > a,
  .mainnav-in .nav-sub > a { padding: 0 13px; font-size: 15px; line-height: 42px; }
  .hero-main { padding: 18px; }
  .hero-main h2 { font-size: 20px; }
  .article { padding: 18px; }
  .art-title { font-size: 21px; }
  .art-body { font-size: 15px; }
  .topbar-left { display: none; }
  .topbar-in { justify-content: flex-end; }
  .adj-nav { flex-direction: column; }
  .adj-nav a:last-child { text-align: left; }
}

/* ============================================================
   门户扩建板块样式（需求 / 交友 / 问答 / 电话簿 / 图库 / 活动 / 会员）
   ============================================================ */

/* ---------- 页面骨架与通用面板 ---------- */
.page-body { padding: 20px 0 44px; }
.narrow-wrap { max-width: 780px; margin: 0 auto; padding: 20px 0 44px; }
.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 17px; }
.panel-head h3 { font-size: 16px; }
.panel-note { font-size: 13px; color: var(--ink-3); padding: 10px 18px 14px; margin: 0; line-height: 1.75; }
.panel-note b { color: var(--brand); }
.link { color: var(--link); font-size: 14px; }
.link:hover { color: var(--brand); }
.sec-title {
  font-size: 19px; margin: 26px 0 14px; padding-left: 10px;
  border-left: 4px solid var(--brand); line-height: 1.3;
}
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.col-stack { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-grid.compact { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .stat-grid.compact { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-top: 3px solid var(--brand); }
.stat.ok { border-top-color: var(--ok); }
.stat.warn { border-top-color: #d8930f; }
.stat-num { font-size: 25px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat.ok .stat-num { color: var(--ok); }
.stat.warn .stat-num { color: #d8930f; }
.stat-label { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: #f8f9fb; font-size: 13px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 10px; font-size: 12px; background: #eef0f3; color: var(--ink-2); }
.pill.active { background: #eaf7ef; color: var(--ok); }
.pill.pending { background: #fdf3e0; color: #b26a00; }
.pill.rejected { background: #fdecea; color: var(--err); }
.tag.hot { background: #fdf1e3; color: #b26a00; }
.hint, .form-hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.block { display: block; width: 100%; text-align: center; }
.info-box { background: #f0f6fd; border: 1px solid #d4e4f6; color: #1d5fae; }
.warn-box { background: #fdf6e7; border: 1px solid #f0dfb8; color: #8a6116; }
.notice-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; font-size: 14px; line-height: 1.8; }
.empty-box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: 14px;
}
.empty-title { font-size: 16px; color: var(--ink-2); font-weight: 600; margin: 0 0 8px; }
.tip-list { margin: 8px 18px 14px; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.tip-list b { color: var(--brand); }

/* ---------- 类型页签与行内搜索 ---------- */
.kind-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.kind-tabs a {
  display: inline-block; padding: 7px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  font-size: 14px; color: var(--ink-2); transition: all .12s;
}
.kind-tabs a em { font-style: normal; color: var(--ink-3); font-size: 12px; margin-left: 3px; }
.kind-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.kind-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.kind-tabs a.on em { color: #ffd9db; }
.inline-search { display: inline-flex; margin-left: auto; }
.inline-search input[type=text] {
  padding: 7px 12px; border: 1px solid var(--line); border-right: none;
  border-radius: 5px 0 0 5px; font-size: 13px; width: 190px; outline: none; font-family: inherit;
}
.inline-search input[type=text]:focus { border-color: var(--brand); }
.inline-search button {
  padding: 7px 14px; background: var(--brand); color: #fff; border: none;
  border-radius: 0 5px 5px 0; font-size: 13px; cursor: pointer; font-family: inherit;
}
.inline-search button:hover { background: var(--brand-dark); }

/* ---------- 需求信息 ---------- */
.demand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 20px; }
.demand-card {
  display: block; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 15px 17px;
  transition: transform .12s, box-shadow .12s;
}
.demand-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 38, 49, .12); }
.dc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dc-kind { font-size: 12px; padding: 2px 8px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
/* 求助/供应两种标签的配色：按标签自身类名生效，卡片版与列表版通用。
   原先只写了 .demand-card.seek/.offer 前缀，导致首页列表里的标签没有底色，
   变成"有内边距却没背景"的悬空文字，与旁边的标题、日期挤在一起显得字号不协调。
   底色取比 --brand-soft 略深一档的实色，白卡片上才立得住。 */
.dc-kind.seek { background: #fbe9ea; color: #a81f2a; }
.dc-kind.offer { background: #e7f4ec; color: #16713f; }
.demand-card.seek .dc-kind { background: #fbe9ea; color: #a81f2a; }
.demand-card.offer .dc-kind { background: #e7f4ec; color: #16713f; }
.dc-cat { font-size: 12px; color: var(--ink-3); }
.demand-card h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.demand-card:hover h3 { color: var(--brand); }
.dc-detail { font-size: 13px; color: var(--ink-2); line-height: 1.65; margin: 0 0 10px; }
.dc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-3);
  border-top: 1px dashed var(--line); padding-top: 9px;
}
.dc-nick { color: var(--ink-2); flex: 0 0 auto; }
.dc-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------- 首页 mini 列表：统一行节奏 ----------
   .demand-mini / .gov-mini / .qa-mini 是自定义类名，没有继承 .mini-list 那套
   「上下内边距 + 虚线分隔 + 14px 基准」。结果字直接以 body 的 15px 贴着卡片头排下来，
   行与行毫无间隔，一坨挤在一起——这正是首页这几个模块看着"没做样式"的原因。
   这里把三者拉到与 .mini-list 同一套行节奏上。 */
.demand-mini,
.gov-mini,
.qa-mini { list-style: none; margin: 0; padding: 0; }
.demand-mini > li,
.gov-mini > li,
.qa-mini > li {
  display: flex; align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.demand-mini > li:last-child,
.gov-mini > li:last-child,
.qa-mini > li:last-child { border-bottom: none; }

/* 需求列表：标签定宽成列、标题占满并单行截断、日期弱化。
   字号层级固定为「标签 12 / 标题 14 / 日期 12」，标题统一用正文色 --ink，
   不再用链接蓝——否则一屏四条蓝字，与左侧新闻列表的深灰标题格格不入。 */
.demand-mini > li { gap: 10px; }
.demand-mini .dc-kind {
  flex: 0 0 auto; width: 58px; padding: 2px 0;
  font-size: 12px; line-height: 18px; text-align: center;
}
.demand-mini > li > a {
  flex: 1; min-width: 0;
  font-size: 14px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demand-mini > li > a:hover { color: var(--brand); }
.demand-mini time { flex: 0 0 auto; font-size: 12px; color: var(--ink-3); }

/* ---------- 相亲交友 ---------- */
.dating-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-bottom: 20px; }
.dating-card {
  display: flex; gap: 14px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 17px; border-top: 3px solid #b8bfc9;
}
.dating-card.male { border-top-color: #3f7cc1; }
.dating-card.female { border-top-color: #d4537e; }
.dg-avatar {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: #fff; background: #b8bfc9;
}
.dating-card.male .dg-avatar, .dm-avatar.male { background: #3f7cc1; }
.dating-card.female .dg-avatar, .dm-avatar.female { background: #d4537e; }
.dm-avatar {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.dg-body { flex: 1; min-width: 0; }
.dg-body h3 { margin: 0 0 3px; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.dg-gender { font-size: 11px; padding: 0 8px; border-radius: 9px; font-weight: 400; line-height: 1.7; }
.dg-gender.male { background: #eaf2fb; color: #3f7cc1; }
.dg-gender.female { background: #fceef3; color: #d4537e; }
.dg-base { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; }
.dg-list { list-style: none; margin: 0 0 9px; padding: 0; }
.dg-list li { font-size: 13px; color: var(--ink-2); line-height: 1.75; display: flex; gap: 8px; }
.dg-list li span { flex: 0 0 32px; color: var(--ink-3); }
.dg-intro { font-size: 13px; color: var(--ink-2); background: #f8f9fb; border-radius: 5px; padding: 8px 11px; line-height: 1.65; margin: 0 0 9px; }
.dg-contact { font-size: 13px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 9px; }
.dg-contact b { color: var(--brand); }
.dating-mini { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.dating-mini b { font-size: 13px; color: var(--ink); font-weight: 600; }
.dating-mini .dm-avatar { flex: 0 0 26px; width: 26px; height: 26px; font-size: 11px; }

/* ---------- 本地问答 ---------- */
.qa-list { margin-bottom: 20px; }
.qa-item {
  display: block; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 15px 18px; margin-bottom: 12px;
}
.qa-item:hover h3 { color: var(--brand); }
.qa-q { display: flex; gap: 11px; align-items: flex-start; }
.qa-q h3 { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.qa-mark {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 5px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.qa-mark.ans { background: var(--ok); }
.qa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.qa-meta .tag { margin-right: 0; }
.qa-a { display: flex; gap: 11px; align-items: flex-start; margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); }
.qa-a p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.qa-mini li { display: flex; justify-content: space-between; gap: 10px; }
.qa-detail-q { display: flex; gap: 12px; align-items: flex-start; padding: 18px; }
.qa-detail-q h1 { margin: 0 0 6px; font-size: 20px; line-height: 1.5; color: var(--ink); }
.qa-detail-body { padding: 0 18px 6px 54px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.qa-detail-a { display: flex; gap: 12px; align-items: flex-start; margin: 14px 18px 18px; background: #f2f8f3; border-radius: 6px; padding: 14px 16px; }
.qa-a-head { font-size: 13px; color: var(--ok); font-weight: 600; margin-bottom: 6px; }

/* ---------- 服务电话簿 ---------- */
.gov-group .panel-head h3 { font-size: 16px; }
.gov-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2px 26px; padding: 8px 18px 16px; }
.gov-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 11px 2px; border-bottom: 1px dashed var(--line);
}
.gi-main { min-width: 0; }
.gi-main h4 { margin: 0 0 3px; font-size: 14px; color: var(--ink); }
.gi-addr, .gi-note { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.gi-phone { flex: 0 0 auto; text-align: right; }
.gi-phone span { display: block; font-size: 11px; color: var(--ink-3); }
.gi-phone b { font-size: 16px; color: var(--brand); font-family: Consolas, Monaco, monospace; letter-spacing: .5px; }
/* 首页「生活服务电话」：名称改用正文色（原来一屏 8 条链接蓝，扎眼），
   号码用等宽字体 + tabular-nums，位数不同的号码右边缘也能对齐。
   原先名称后跟一个蓝色"↗"外链箭头，名称长短不一时箭头跟着乱飘，
   在中间拉出一串散落的符号；站内其它列表都没有这种标记，一并去掉。 */
.gov-mini > li { gap: 12px; }
/* 名称：有条目网址时是外链，没有时降级为纯文本（原先后台录的 url 全是空串，
   每条名称都成了空 href，点一下只是刷新当前页）。用同一套样式，两种形态看不出差别。 */
.gov-mini .gm-name {
  flex: 1; min-width: 0;
  font-size: 14px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gov-mini a.gm-name:hover { color: var(--brand); }
/* 号码做成 tel: 链接，手机上点一下直接拨号。这里覆盖 .tel 的默认继承，
   让它保持红色加粗等宽——一串 8 条号码要一眼看出是号码。 */
.gov-mini li > .tel {
  flex: 0 0 auto; font-size: 14px; font-weight: 700;
  color: var(--brand); white-space: nowrap;
  font-family: Consolas, Monaco, "Courier New", monospace;
  letter-spacing: .4px; font-variant-numeric: tabular-nums;
}

/* ---------- 图说大石桥 ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 20px; }
.photo-item { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.photo-item img { width: 100%; height: 180px; object-fit: cover; display: block; background: #eceff2; }
.photo-item figcaption { padding: 11px 14px 13px; }
.photo-item h3 { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.photo-item p { margin: 0 0 5px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.ph-author { font-size: 12px; color: var(--ink-3); }
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.ps-item {
  flex: 0 0 110px; text-decoration: none;
  display: flex; flex-direction: column; gap: 5px;
}
.ps-item img { width: 110px; height: 74px; object-fit: cover; border-radius: 5px; display: block; }
.ps-item span { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-item:hover span { color: var(--brand); }
.pg, .pg-info { font-size: 13px; }
.pg { display: inline-block; padding: 5px 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); background: var(--card); }
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.off { color: #c3c9d1; background: transparent; }
.pg-info { color: var(--ink-3); margin: 0 10px; }

/* ---------- 同城活动 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card-grid > a {
  display: block; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .12s, box-shadow .12s;
}
.card-grid > a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 38, 49, .12); }
.ic-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.ic-cover.ph { color: rgba(255, 255, 255, .85); font-size: 26px; font-weight: 700; letter-spacing: 3px; }
.ic-body { padding: 13px 16px 15px; }
.ic-tags { margin-bottom: 7px; }
.ic-tags .tag { margin-right: 6px; }
.ic-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.card-grid > a:hover h3 { color: var(--brand); }
.ic-sum { margin: 0 0 9px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.ic-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-3); }
.activity-mini { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.activity-mini b { font-size: 13px; color: var(--ink); }
.am-date { float: right; font-size: 12px; color: var(--ink-3); }
.am-body { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 活动详情 ---------- */
.detail-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .detail-wrap { grid-template-columns: 1fr; } }
.dt-head h1 { margin: 10px 0 6px; font-size: 22px; line-height: 1.45; color: var(--ink); }
.dt-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-3); }
.dt-cover { width: 100%; border-radius: 6px; margin: 14px 0 4px; display: block; }
.dt-lead { font-size: 15px; color: var(--ink-2); line-height: 1.8; padding: 0 18px; margin: 12px 0 0; font-weight: 600; }
.dt-body { padding: 6px 18px 10px; font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.dt-tip {
  margin: 8px 18px 18px; padding: 10px 14px;
  background: #fdf6e7; border: 1px solid #f0dfb8; border-radius: 5px;
  font-size: 13px; color: #8a6116; line-height: 1.7;
}
.dt-actions { display: flex; gap: 10px; padding: 0 18px 18px; }

/* ---------- 会员中心 / 登录注册 ---------- */
.member-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.mh-avatar {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mh-info { flex: 1; min-width: 0; }
.mh-info h2 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.mh-actions { display: flex; gap: 9px; flex-wrap: wrap; }
/* 注册 / 登录页：左表单卡 + 右说明卡，两列定宽后整体居中，避免右侧被 1fr 撑得过宽 */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 330px); gap: 26px; justify-content: center; align-items: start; padding: 30px 0 44px; }
@media (max-width: 880px) { .auth-wrap { grid-template-columns: minmax(0, 460px); } }
.auth-card { max-width: 100%; }
.auth-head { padding: 22px 22px 4px; }
.auth-head h2 { margin: 0 0 5px; font-size: 20px; color: var(--ink); }
.auth-head p { margin: 0; font-size: 13px; color: var(--ink-3); }
/* 表单统一由 .form 提供左右内边距，使输入框与标题、页脚同缩进（原先输入框宽度=卡片宽度，直贴边缘） */
.auth-card .form { padding: 0 22px; }
.auth-card .form-actions { padding-left: 0; padding-right: 0; }
.auth-foot { padding: 0 22px 12px; font-size: 14px; color: var(--ink-2); }
.auth-note { margin: 0; padding: 12px 22px 18px; font-size: 12px; color: var(--ink-3); line-height: 1.7; border-top: 1px dashed var(--line); }
/* 右侧说明栏同样卡片化：原先无背景无边框，与左侧白卡并排显得"一边卡片一边裸文" */
.auth-side { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 22px; }
.auth-side h3 { margin: 0 0 12px; padding-bottom: 10px; font-size: 16px; border-bottom: 1px solid var(--line); }
.auth-side .feature-list { line-height: 1.95; }
.auth-side p { margin: 14px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 560px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.form-actions { padding: 4px 22px 20px; display: flex; gap: 10px; align-items: center; }
.radio-group { display: flex; gap: 18px; flex-wrap: wrap; }
.radio, .checkbox { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.radio input, .checkbox input { width: auto; }
.feature-list { margin: 0; padding: 0 0 0 2px; list-style: none; font-size: 14px; color: var(--ink-2); line-height: 2.1; }
.feature-list li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.card-cta { padding: 10px 18px 16px; border-top: 1px dashed var(--line); }
.kind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 18px 14px; }
@media (max-width: 560px) { .kind-grid { grid-template-columns: repeat(2, 1fr); } }
.kg-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none; transition: all .12s;
}
.kg-item b { font-size: 13px; color: var(--ink); }
.kg-item span { font-size: 12px; color: var(--ink-3); }
.kg-item:hover { border-color: var(--brand); }
.kg-item:hover b { color: var(--brand); }

/* ===== 新闻封面图（2026-10 真实新闻配图） ===== */
.hero-main.has-pic { display: flex; gap: 18px; align-items: center; }
.hero-pic {
  width: 340px; height: 212px; object-fit: cover;
  border-radius: 8px; flex: 0 0 auto; display: block; background: #eceff2;
}
.hero-txt { flex: 1; min-width: 0; }
.news-list.lg li { display: flex; gap: 14px; }
.news-list.lg li.has-thumb { align-items: flex-start; }
.nl-thumb { flex: 0 0 auto; display: block; }
.nl-thumb img {
  width: 168px; height: 105px; object-fit: cover;
  border-radius: 6px; display: block; background: #eceff2;
}
.nl-body { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .hero-main.has-pic { flex-direction: column; align-items: stretch; }
  .hero-pic { width: 100%; height: 180px; }
  .nl-thumb img { width: 120px; height: 78px; }
}

/* ===== 视觉对齐修复（2026-10-05） ===== */
/* 1) 电话簿格子：名称单行省略，号码右侧垂直居中，格子等高 */
.gov-item { align-items: center; }
.gi-main h4 {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 6px;
}
.gi-phone { text-align: right; }
.gi-phone b { white-space: nowrap; }
/* 2) 首页"生活服务电话"的弹性和省略已并入上方 .gov-mini 主样式区，此处不再重复 */
/* 3) 首页"分类信息"格子：两列、单行、名称与条数两端对齐 */
.kind-grid { grid-template-columns: repeat(2, 1fr); }
.kg-item {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; padding: 10px 12px; min-width: 0;
}
.kg-item b {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.kg-item span { flex: 0 0 auto; white-space: nowrap; }
/* 4) 图说大石桥：固定三列（3+2 布局），卡片等高、文字行数统一 */
.photo-grid { grid-template-columns: repeat(3, 1fr); }
.photo-item { display: flex; flex-direction: column; }
.photo-item figcaption {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px 13px;
}
.photo-item h3 {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-item p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0;
}
.photo-item .ph-author { margin-top: auto; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
/* 5) 首页头条配图放大一档，与文字区更协调 */
.hero-pic { width: 380px; height: 238px; }
@media (max-width: 900px) { .hero-pic { width: 100%; height: 190px; } }
/* 6) 新闻列表恢复纵向排版（缩略图方案已撤销，覆盖旧 flex 规则） */
.news-list.lg li { display: block; gap: 0; }
.news-list.lg li.has-thumb { display: block; }

/* ============================================================
   移动端适配（2026-10-05）—— 平板 900 / 大屏手机 640 / 小屏 480
   ============================================================ */

/* ---------- ≤1020px 导航横滑档 ----------
   10 个 nowrap 菜单项总宽约 970px，窗口再窄必然溢出；
   超出即整条导航横向滑动（手机门户标准做法），滚动条隐藏 */
@media (max-width: 1020px) {
  .mainnav-in {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mainnav-in::-webkit-scrollbar { display: none; }
}

/* ---------- ≤900px 平板 ---------- */
@media (max-width: 900px) {
  /* 窄屏下主布局改块级：纵向 flex 的行宽由内容 max-content 决定，
     nowrap 列表会把页面撑出横向滚动；块级布局宽度恒等于容器，彻底杜绝 */
  .layout, .hero { display: block; }
  .col-side { margin-top: 18px; }
  .hero-side { margin-top: 14px; }
  /* 主导航允许换行但不裁切 */
  .mainnav-in > a, .mainnav-in .nav-sub > a { padding: 0 16px; }
  /* 政务电话簿格子间距收窄 */
  .gov-list { gap: 2px 18px; padding: 8px 14px 14px; }
  /* 相亲/需求/活动卡片网格最小宽度放宽，避免窄屏留大空白 */
  .demand-grid, .dating-grid, .card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item img { height: 150px; }
}

/* ---------- ≤640px 大屏手机 ---------- */
@media (max-width: 640px) {
  /* 安全网：任何未来内容超宽也不产生页面横向滚动（导航横滑是独立容器，不受影响） */
  body { overflow-x: hidden; }

  /* 顶栏 / 报头 / 主导航在这一档的样式，已由下方「≤700px 手机版应用栏与抽屉导航」
     统一接管（≤640 必然也 ≤700）。这里不再重复，避免两处规则互相打架。 */

  /* 头条区 */
  .hero { gap: 14px; margin-bottom: 14px; }
  .hero-main { padding: 16px 16px 14px; }
  .hero-main h2 { font-size: 19px; margin-bottom: 8px; }
  .hero-main p { font-size: 14px; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-pic { width: 100%; height: 168px; }
  .hero-side { padding: 12px 14px; }

  /* 卡片与列表 */
  .card-body { padding: 4px 14px 14px; }
  .card-head { padding: 11px 14px; }
  .card-head h3 { font-size: 16px; }
  .card-head .bar { height: 15px; }
  .news-list a { font-size: 14px; }
  .news-list time { font-size: 12px; }
  .news-list.lg a { font-size: 16px; }
  .news-list.lg .excerpt { font-size: 13px; }
  .layout { gap: 14px; }
  .card { margin-bottom: 14px; }

  /* 文章页 */
  .article { padding: 16px 14px 14px; }
  .art-title { font-size: 20px; }
  .art-body { font-size: 15px; line-height: 1.9; }
  .art-body p { text-indent: 2em; }
  .dt-body, .dt-lead { padding-left: 14px; padding-right: 14px; }
  .dt-tip { margin-left: 14px; margin-right: 14px; }
  .qa-detail-q { padding: 14px; }
  .qa-detail-body { padding: 0 14px 6px 50px; }
  .qa-detail-a { margin: 12px 14px 14px; }

  /* 宽表格改为块级横向滚动，避免撑破屏幕 */
  .svc-table, .tbl, .kv-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 表单输入 16px 防 iOS 缩放；按钮铺满 */
  .form-row input[type=text],
  .form-row input[type=password],
  .form-row input[type=email],
  .form-row input[type=tel],
  .form-row input[type=number],
  .form-row textarea,
  .form-row select { font-size: 16px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; }

  /* 面板与页签 */
  .panel-head { padding: 12px 14px; }
  .panel-note { padding: 8px 14px 12px; }
  .kind-tabs a { padding: 6px 12px; font-size: 13px; }
  .inline-search { margin-left: 0; width: 100%; }
  .inline-search input[type=text] { width: 100%; flex: 1; }
  .kind-tabs .inline-search { display: flex; }
  .tip-list { margin: 6px 14px 12px; }

  /* 页脚 */
  .footer-in { padding: 22px 0 18px; gap: 16px; }
  .footer-col { flex: 1 1 100%; }
  .footer-col p { line-height: 1.7; }
  .copyright { padding: 12px 0; }
}

/* ============================================================
   ≤700px 手机版应用栏与抽屉导航（2026-10-05）
   ------------------------------------------------------------
   改造前手机首屏被三层头部吃掉 205px：32px 顶栏 + 131px 报头 + 42px 主导航，
   而主导航是横向滑动的，10 个栏目只看得到 4 个，剩下的既没提示也点不到；
   「分类信息」的二级下拉在触屏上悬停无效，等于 6 个类目全被藏了。

   现在改为 App 式结构：
     · sticky 应用栏 50px：☰ + 站名 + 🔍（搜素行按需展开）
     · ☰ 拉出左侧抽屉，10 个栏目 + 分类信息 6 个类目 + 会员入口全部平铺
     · 顶栏与报头的链接并入抽屉，不再各占一行
   桌面端（>700px）完全不参与，导航仍是原来那条红色横条。
   ============================================================ */
@media (max-width: 700px) {
  /* 抽屉停在屏幕左侧外面，防止它产生页面横向滚动 */
  body { overflow-x: hidden; }

  /* 顶栏 / 报头并入应用栏与抽屉，不再重复占用首屏 */
  .topbar, .masthead { display: none; }

  /* ---------- 应用栏 ---------- */
  .mtop {
    display: block;
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    padding-top: env(safe-area-inset-top);   /* 刘海/状态栏避让，套壳 APP 用 */
    box-shadow: 0 2px 8px rgba(31, 38, 49, .18);
  }
  .mbar { display: flex; align-items: center; height: 50px; padding: 0 4px; }

  .mbar-ico {
    flex: 0 0 40px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0; border-radius: 50%;
    background: none; color: #fff; cursor: pointer;
    -webkit-appearance: none; appearance: none;
  }
  .mbar-ico:active { background: rgba(255, 255, 255, .2); }

  .mbar-brand {
    flex: 1; min-width: 0;
    display: flex; align-items: center; justify-content: center; gap: 7px;
  }
  .mbar-mark {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px;
    background: #fff; color: var(--brand);
    font: 700 15px/26px "Microsoft YaHei", sans-serif; text-align: center;
  }
  .mbar-brand h1 {
    min-width: 0; font-size: 17px; font-weight: 700; color: #fff;
    letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* 搜索行：由放大镜按钮展开，收起时 max-height 0 不占位 */
  .msearch {
    display: flex; gap: 0;
    max-height: 0; overflow: hidden; padding: 0 12px;
    transition: max-height .22s ease, padding .22s ease;
  }
  body.search-open .msearch { max-height: 56px; padding: 0 12px 10px; }
  .msearch input {
    flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 0;
    border-radius: 5px 0 0 5px; outline: none; font-family: inherit;
    font-size: 16px;   /* 16px 防 iOS Safari 聚焦自动放大 */
  }
  /* 白底红字：红条上再用红按钮会和背景糊在一起，看不清可点区域 */
  .msearch button {
    flex: 0 0 64px; height: 38px; border: 0; cursor: pointer;
    background: #fff; color: var(--brand); font-weight: 700;
    font-size: 15px; border-radius: 0 5px 5px 0; font-family: inherit;
  }

  /* ---------- 左侧抽屉（复用主导航 DOM，导航项零重复） ---------- */
  .mainnav {
    display: block;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 80;
    width: 78%; max-width: 300px;
    background: #fff; box-shadow: 2px 0 16px rgba(16, 24, 40, .22);
    overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateX(-102%);
    transition: transform .24s ease;
  }
  body.nav-open .mainnav { transform: translateX(0); }

  .nav-head {
    display: flex; align-items: center; gap: 9px;
    padding: 14px 14px 12px;
    padding-top: calc(14px + env(safe-area-inset-top));
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
  }
  .nav-mark {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px;
    background: #fff; color: var(--brand);
    font: 700 15px/26px "Microsoft YaHei", sans-serif; text-align: center;
  }
  .nav-head b {
    flex: 1; min-width: 0; font-size: 16px; letter-spacing: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav-close {
    flex: 0 0 auto; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .18); color: #fff;
    -webkit-appearance: none; appearance: none;
  }

  /* 会员入口（与顶栏同一份模板，见 partials.html 的 memberNav） */
  .nav-member {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    padding: 12px 14px; font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .nav-member .js-today { display: none; }
  .nav-member a { color: var(--ink-2); }
  .nav-member a.strong,
  .nav-member a.reg { color: var(--brand); font-weight: 600; }
  .nav-member a.logout { color: var(--ink-3); }
  .nav-member .me { color: var(--ink-2); }
  .nav-member a[href="/admin"] { margin-left: auto; font-size: 13px; color: var(--ink-3); }

  /* 栏目列表：改纵向平铺，全部可见，不再横向滑动 */
  .mainnav-in {
    display: block;
    width: auto; max-width: none; margin: 0;
    padding: 6px 0 10px;
  }
  .mainnav-in > a,
  .mainnav-in .nav-sub > a {
    display: block; padding: 0 14px; line-height: 46px;
    font-size: 15px; color: var(--ink);
    border-bottom: 1px solid #f0f2f5;
  }
  .mainnav-in > a:hover,
  .mainnav-in .nav-sub > a:hover { background: #f7f8fa; color: var(--brand); }
  .mainnav-in > a.active,
  .mainnav-in .nav-sub > a.active {
    background: var(--brand-soft); color: var(--brand);
    font-weight: 700; box-shadow: inset 3px 0 0 var(--brand);
  }
  .mainnav-in .nav-sub { display: block; }
  .mainnav-in .nav-sub .caret { display: none; }
  /* 分类信息 6 个类目直接摊开——触屏上没有悬停，藏起来等于找不到 */
  .mainnav-in .nav-sub .sub {
    display: block !important;
    position: static; min-width: 0; padding: 0;
    border: 0; border-radius: 0; box-shadow: none; background: #fafbfc;
  }
  .mainnav-in .nav-sub .sub a {
    padding: 0 14px 0 28px; line-height: 40px;
    font-size: 14px; color: var(--ink-2);
    border-bottom: 1px solid #f0f2f5;
  }
  .mainnav-in .nav-sub .sub a.active {
    background: none; color: var(--brand); font-weight: 700;
  }

  /* ---------- 遮罩 ---------- */
  .nav-mask {
    display: block;
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70;
    background: rgba(16, 24, 40, .45);
    opacity: 0; visibility: hidden;
    transition: opacity .24s ease, visibility .24s;
  }
  body.nav-open .nav-mask { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- ≤480px 小屏手机 ---------- */
@media (max-width: 480px) {
  .wrap { max-width: calc(100% - 24px); }
  .logo-text h1 { font-size: 20px; }
  .hero-main h2 { font-size: 18px; }
  .hero-pic { height: 150px; }
  .photo-item img { height: 120px; }
  .ps-item { flex: 0 0 96px; }
  .ps-item img { width: 96px; height: 64px; }
  .stat-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .kind-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .info-cards { grid-template-columns: 1fr; }
  .gov-item { gap: 10px; }
  .gi-phone b { font-size: 15px; }
  .dt-actions { flex-direction: column; }
  .dt-actions .btn { width: 100%; text-align: center; }
  .pager { gap: 8px; }
  .pager a, .pager .dis { padding: 7px 12px; }
  .detail-wrap { gap: 14px; }
  .member-head { padding: 14px; gap: 12px; }
  .mh-avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 19px; }
}

/* 访问统计条已按需求下线（统计结果仅后台可见，2026-10-05） */

/* 页脚运营主体信息（2026-10-05） */
.cop-org { color: #98a1ac; }
.cop-org a { color: #c8d0da; }
.cop-org a:hover { color: #fff; }

/* ===== 关于页侧栏（2026-10-05） ===== */
.about-stat { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-stat li {
  text-align: center; padding: 12px 6px;
  background: #f7f8fa; border-radius: 6px; border: 1px solid var(--line);
}
.about-stat b {
  display: block; font-size: 21px; color: var(--brand); line-height: 1.25;
  font-family: Consolas, Monaco, monospace;
}
.about-stat span { font-size: 12px; color: var(--ink-3); }
.about-org { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.about-org li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.about-org li:last-child { border-bottom: none; }
.about-org li span { color: var(--ink-3); font-size: 13px; flex: 0 0 auto; }
.about-org li b { color: var(--ink); text-align: right; }
.about-org li b a { color: var(--brand); font-family: Consolas, Monaco, monospace; }
