﻿/* =============================================================================
   天府城讯 · 前台样式表
   设计基调：新闻门户的秩序感 —— 深蓝主色 + 纸白底 + 强标题层级 + 克制留白
   结构：1. 变量与基础  2. 骨架  3. 首页板块  4. 列表与卡片  5. 详情页
        6. 侧栏小件  7. 表单与状态  8. 页脚  9. 响应式  10. 深色模式
   ========================================================================== */

/* ------------------------------ 1. 变量与基础 ------------------------------ */
:root {
  --brand: #0d5cd7;
  --brand-600: #0a4bb2;
  --brand-700: #073a8c;
  --brand-soft: #eaf1fd;
  --brand-soft-2: #f4f8ff;
  --accent: #c8402f;
  --accent-soft: #fdf0ee;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --ink: #12171d;
  --ink-2: #404a57;
  --ink-3: #5c6673;
  --muted: #8a929e;

  --line: #e4e7ec;
  --line-soft: #eef0f4;
  --line-strong: #d3d8e0;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -16px rgba(16, 24, 40, .18);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 48px -24px rgba(16, 24, 40, .28);

  --wrap: 1200px;
  --nav-h: 46px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.7 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.page--article { background: var(--surface); }
body.page--article .footer { margin-top: 64px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.34; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(13, 92, 215, .18); }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 50%; top: -60px; transform: translateX(-50%); z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px; font-size: 13px;
}
.skip:focus { top: 0; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; vertical-align: middle; }

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 24px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .18s ease;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(13, 92, 215, .3); }
.btn--primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); background: var(--surface); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* 小标签 */
.chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 4px;
  background: var(--brand-soft); color: var(--brand-600); font-size: 12px; line-height: 1;
  white-space: nowrap; border: 1px solid transparent;
}
a.chip:hover { background: var(--brand); color: #fff; }
.chip--tag { background: var(--surface); border-color: var(--line); color: var(--ink-3); height: 28px; padding: 0 12px; font-size: 12.5px; }
.chip--tag:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 栏目名（kicker） */
.kicker {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
}
.kicker:hover { background: var(--brand-600); color: #fff; }
.flag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.flag--top { background: var(--accent); color: #fff; }
.flag--orig { background: var(--brand-soft); color: var(--brand-600); }
.flag--rep { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* -------------------------------- 2. 骨架 -------------------------------- */
/* 顶部工具条 */
.topline { background: var(--surface); border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }
.topline__in { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.topline__left, .topline__right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topline__date { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.topline__slogan { padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); }
.topline__right a { color: var(--ink-3); }
.topline__right a:hover { color: var(--brand); }
.theme-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-3);
  font-size: 12px;
}
.theme-btn:hover { border-color: var(--brand); color: var(--brand); }

/* 报头 */
.masthead { background: var(--surface); }
.masthead__in { display: flex; align-items: center; gap: 28px; padding: 20px 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__text strong {
  font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: .06em;
  color: var(--ink); line-height: 1.1;
}
.brand__text small { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; max-width: 320px; }
.brand:hover .brand__text strong { color: var(--brand); }

.msearch { display: flex; align-items: center; flex: 1 1 auto; max-width: 420px; margin-left: auto; position: relative; }
.msearch input {
  width: 100%; height: 40px; padding: 0 46px 0 16px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface-2); font-size: 13.5px; color: var(--ink);
  transition: all .18s ease;
}
.msearch input::placeholder { color: var(--muted); }
.msearch input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(13, 92, 215, .1); }
.msearch button {
  position: absolute; right: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.msearch button:hover { background: var(--brand-600); }
.msearch--lg { max-width: 480px; margin: 0; flex: 0 1 480px; }
.msearch--lg input { height: 44px; }
.msearch--lg button { height: 38px; width: auto; padding: 0 18px; border-radius: 999px; font-size: 13.5px; }

.masthead__aside { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-left: 8px; }
.masthead__cta {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px;
  border-radius: 8px; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600;
}
.masthead__cta:hover { background: var(--brand-600); color: #fff; }

/* 栏目导航条 */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, #0f57c4, #0b48a8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 20px -14px rgba(7, 40, 96, .7);
}
.navbar__in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.navbar__list { display: flex; align-items: center; height: 100%; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.navbar__list::-webkit-scrollbar { display: none; }
.navbar__list a {
  position: relative; display: flex; align-items: center; height: 100%; padding: 0 15px;
  color: rgba(255, 255, 255, .84); font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.navbar__list a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px;
  background: #fff; border-radius: 3px 3px 0 0; opacity: 0; transform: scaleX(.4); transition: all .2s ease;
}
.navbar__list a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.navbar__list a:hover::after, .navbar__list a.is-active::after { opacity: 1; transform: scaleX(1); }
.navbar__list a.is-active { color: #fff; font-weight: 700; }
.navbar__more {
  display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .82); font-size: 13.5px; white-space: nowrap;
}
.navbar__more:hover { color: #fff; }

/* 移动端底部导航 */
.tabbar { display: none; }

/* --------------------------------- 3. 首页 -------------------------------- */
.home { padding-top: 22px; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr) 302px;
  gap: 20px; align-items: stretch;
}
.story--hero {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: #0a1a2e; min-height: 428px; box-shadow: var(--shadow);
}
.story--hero .story__media { position: absolute; inset: 0; display: block; }
.story--hero .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story--hero:hover .cover { transform: scale(1.03); }
.story__overlay {
  position: absolute; inset: auto 0 0 0; padding: 140px 28px 26px; color: #fff;
  background: linear-gradient(180deg, rgba(6, 18, 34, 0) 0%, rgba(6, 18, 34, .55) 46%, rgba(6, 18, 34, .92) 100%);
}
.story__flags { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.story__flags .kicker { background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); color: #fff; }
.story__flags time { font-size: 12px; color: rgba(255, 255, 255, .7); }
.story--hero .story__title { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.32; letter-spacing: -.015em; }
.story--hero .story__title a { color: #fff; }
.story--hero .story__title a:hover { color: #cfe3ff; }
.story__sum {
  margin-top: 12px; font-size: 14px; line-height: 1.72; color: rgba(255, 255, 255, .78);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.story__meta { margin-top: 14px; }
.story__meta .meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .66); }
.story__meta .meta__src { color: rgba(255, 255, 255, .9); font-weight: 500; }

/* 焦点速览 */
.hero__brief { min-width: 0;
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px 12px;
  box-shadow: var(--shadow-sm); min-width: 0;
}
.brief__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.brief__head h2 { font-size: 16.5px; letter-spacing: .01em; }
.brief__head h2::before { content: ""; display: inline-block; width: 4px; height: 15px; background: var(--brand); border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.brief__live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--accent); }
.brief__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
.brief__list { flex: 1; display: flex; flex-direction: column; }
.brief__list .hrow:first-child { padding-top: 14px; }
.brief__more { padding-top: 12px; border-top: 1px solid var(--line-soft); margin-top: auto; }
.brief__more a { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--brand); font-weight: 500; }
.brief__more a:hover { gap: 4px; }

/* 热门排行侧栏 */
.hero__rank {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0;
}
.hero__rank .widget { border: 0; padding: 0; box-shadow: none; background: none; }
.hero__rank .widget__head { padding: 0 0 12px; border-bottom: 1px solid var(--line-soft); }
.hero__stats {
  margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding-top: 14px; border-top: 1px solid var(--line-soft); text-align: center;
}
.hero__stats div { display: flex; flex-direction: column; gap: 2px; }
.hero__stats b { font-size: 16px; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero__stats span { font-size: 11px; color: var(--muted); }

/* 焦点三卡 */
.hero__sub { margin-top: 20px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.story--feature { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .22s ease; }
.story--feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.story--feature .story__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.story--feature .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story--feature:hover .cover { transform: scale(1.04); }
.story--feature .story__body { padding: 14px 16px 16px; }
.story--feature .story__title { font-size: 17px; line-height: 1.45; margin-top: 6px; }
.story--feature .story__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story--feature .story__sum { margin-top: 8px; color: var(--muted); -webkit-line-clamp: 2; }

/* 板块通用 */
.sec { margin-top: 36px; }
.sec--tight { margin-top: 22px; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.sec-head__main { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.sec-head__title { position: relative; font-size: 21px; padding-left: 13px; letter-spacing: .01em; }
.sec-head__title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 2px; background: var(--brand);
}
.sec-head__sub { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.sec-head__more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sec-head__more:hover { color: var(--brand); }
.sec-head__more span { transition: transform .18s ease; }
.sec-head__more:hover span { transform: translateX(3px); }
.sec--split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.sec__main { min-width: 0; }
.layout-2__main { min-width: 0; }
.sec__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 16px); min-width: 0; }
.sec__foot { margin-top: 18px; }
.sec__foot .btn { width: 100%; height: 44px; }

/* 图文列表 */
.feed { display: flex; flex-direction: column; }
.row {
  display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.row:first-child { padding-top: 0; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.row__flags { display: flex; align-items: center; gap: 8px; }
.row__n { font: 700 13px var(--font-mono); color: var(--brand); opacity: .6; letter-spacing: .02em; }
.row__title { font-size: 19px; line-height: 1.45; letter-spacing: -.005em; }
.row__title a:hover { color: var(--brand); }
.row__sum {
  font-size: 13.5px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row__meta .meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.row__meta .meta__src { color: var(--ink-3); }
.row__thumb {
  flex: 0 0 216px; width: 216px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  background: var(--surface-2); align-self: center;
}
.row__thumb .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.row:hover .row__thumb .cover { transform: scale(1.05); }

/* 纯文字列表 */
.hlist { display: flex; flex-direction: column; min-width: 0; }
.hrow {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft); min-width: 0;
}
.hrow:last-child { border-bottom: 0; }
.hrow__dot { flex: 0 0 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.hrow__title {
  flex: 1 1 auto; min-width: 0; font-size: 14.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hrow:hover .hrow__title { color: var(--brand); }
.hrow__time { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hrow__date {
  flex: 0 0 40px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px 0; border-radius: 6px; background: var(--brand-soft-2); border: 1px solid var(--line-soft);
  line-height: 1.1;
}
.hrow__date b { font-size: 15px; color: var(--brand); font-family: var(--font-mono); }
.hrow__date span { font-size: 10px; color: var(--muted); }
.hlist--lines .hrow { padding: 11px 0; border-bottom-style: solid; }
.hlist--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 8px; }
.hlist--notice .hrow__title { font-size: 14px; }

/* 双栏板块 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.duo__col { min-width: 0; }
.duo__col + .duo__col { padding-left: 40px; border-left: 1px solid var(--line); }


/* 通用图文卡（民生服务 / 相关推荐 / 网格位） */
.gcard {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: all .22s ease; min-width: 0;
}
.gcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.gcard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.gcard__media .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gcard:hover .gcard__media .cover { transform: scale(1.04); }
.gcard__body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.gcard__kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--brand); }
.gcard__title { font-size: 16.5px; line-height: 1.45; letter-spacing: -.005em; }
.gcard__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard__meta { margin-top: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
/* 文化旅游条带 */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { min-width: 0; }
.tile__media { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.tile__media .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__media .cover { transform: scale(1.05); }
.tile__body { padding-top: 10px; }
.tile__body h3 { font-size: 15.5px; line-height: 1.5; margin-top: 7px; }
.tile__body h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__body p { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 专题卡片 */
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.topics--index { grid-template-columns: 1fr 1fr; gap: 24px; }
.topic-card {
  display: flex; gap: 0; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: all .22s ease;
}
.topic-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.topic-card__media { flex: 0 0 208px; width: 208px; overflow: hidden; background: var(--surface-2); }
.topic-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.topic-card:hover .topic-card__media img { transform: scale(1.05); }
.topic-card__body { flex: 1 1 auto; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.topic-card__kicker { font-size: 11.5px; letter-spacing: .14em; color: var(--brand); font-weight: 600; }
.topic-card__body h2, .topic-card__body h3 { font-size: 17px; line-height: 1.4; }
.topic-card__body p { font-size: 12.5px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card__tags { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.topic-card__tags a:hover { color: var(--brand); }

/* 区县 */
.areas {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px;
}
.areas__group h3 { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .08em; margin-bottom: 10px; }
.areas__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.areas__chips a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.areas__chips a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 广告位 */
.ad { position: relative; border: 1px dashed var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ad a { display: flex; align-items: center; gap: 16px; padding: 12px; }
.ad img { flex: 0 0 148px; width: 148px; height: 84px; object-fit: cover; border-radius: 6px; }
.ad__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad__text b { font-size: 14.5px; }
.ad__text em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ad__tag { position: absolute; right: 8px; top: 8px; font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.ad--wide a { padding: 14px 18px; }
.ad--wide img { flex: 0 0 180px; width: 180px; height: 76px; }
.ad--inline { margin-top: 16px; }
.sec__side .ad img { flex-basis: 104px; width: 104px; height: 66px; }

/* 标签云 */
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud__a {
  display: inline-flex; align-items: baseline; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: calc(12px * var(--w, 1)); color: var(--ink-2); line-height: 28px;
}
.tagcloud__a i { font-style: normal; font-size: 10px; color: var(--muted); font-family: var(--font-mono); }
.tagcloud__a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-600); }
.tagcloud--lg .tagcloud__a { height: 32px; line-height: 32px; padding: 0 13px; }

/* ------------------------------- 4. 侧栏小件 ------------------------------ */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.widget__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.widget__head h2 { position: relative; font-size: 15.5px; padding-left: 11px; }
.widget__head h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.widget__head a { font-size: 12px; color: var(--muted); }
.widget__head a:hover { color: var(--brand); }

.rank { display: flex; flex-direction: column; }
.rank__item { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.rank__item:last-child { border-bottom: 0; }
.rank__n {
  flex: 0 0 18px; font: 700 13px var(--font-mono); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rank__n.is-top { color: var(--accent); }
.rank__title { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.55; }
.rank__item:hover .rank__title { color: var(--brand); }
.rank__v { flex: 0 0 auto; font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.about-mini { font-size: 13px; line-height: 1.75; color: var(--muted); padding: 4px 0; }
.about-mini a { color: var(--brand); }
.topic-list li { padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; }
.topic-list li:last-child { border-bottom: 0; }
.topic-list a { color: var(--ink-2); }
.topic-list a:hover { color: var(--brand); }
.steps { display: flex; flex-direction: column; gap: 12px; padding: 6px 0; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 2px; padding-left: 22px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-600);
  font: 600 10px/16px var(--font-mono); text-align: center;
}
.steps b { font-size: 13.5px; }
.steps span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.code { margin: 10px 0; padding: 12px 14px; background: #0e1826; border-radius: 8px; overflow-x: auto; }
.code code { font: 12px/1.7 var(--font-mono); color: #c9d8ea; white-space: pre; }

/* --------------------------------- 5. 页面头 ----------------------------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 20px 0 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.page-head__main h1 { font-size: 28px; letter-spacing: -.015em; }
.page-head__main h1 span { color: var(--brand); margin-right: 2px; }
.page-head__main p { margin-top: 8px; font-size: 13.5px; color: var(--muted); max-width: 720px; line-height: 1.7; }
.page-head__main p b { color: var(--brand); font-variant-numeric: tabular-nums; }
.page-head__meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-bottom: 3px; }
.page-head__meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.page-head--search { flex-wrap: wrap; }
.page-head--search .msearch--lg { flex: 1 1 380px; }
.page-head--tag h1 { color: var(--ink); }

/* 面包屑 */
.crumb { padding: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.crumb ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumb li.sep { color: var(--line-strong); }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb li[aria-current] { color: var(--muted); }

/* 两栏布局 */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; padding-bottom: 40px; }
.layout-2__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 16px); min-width: 0; }
.layout-2--post { grid-template-columns: minmax(0, 1fr) 316px; }
.layout-2--form { grid-template-columns: minmax(0, 1fr) 340px; }
.feed--lg .row__title { font-size: 19.5px; }
.feed--lg .row { gap: 26px; }
.feed--lg .row__thumb { flex-basis: 232px; width: 232px; }

/* 分页 */
.pager { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager ul { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager__btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.pager__btn:hover { border-color: var(--brand); color: var(--brand); }
.pager__btn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager__btn.is-prev, .pager__btn.is-next { padding: 0 16px; }
.pager__gap { color: var(--muted); padding: 0 2px; }
.pager__info { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; }
.empty a { color: var(--brand); }

/* 筛选条 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.filters a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 6px;
  font-size: 13px; color: var(--ink-3); border: 1px solid var(--line); background: var(--surface);
}
.filters a:hover { color: var(--brand); border-color: var(--brand); }
.filters a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* -------------------------------- 6. 详情页 ------------------------------ */
.post { max-width: 780px; }
.post__flags { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.post__title { margin-top: 14px; font-size: clamp(26px, 3.1vw, 38px); line-height: 1.32; letter-spacing: -.022em; }
.post__lead {
  margin-top: 16px; padding: 14px 18px; background: var(--brand-soft-2); border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.8; color: var(--ink-2);
}
.post__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.post__by { color: var(--ink-2); font-weight: 600; }
.post__by::before { content: "记者 "; font-weight: 400; color: var(--muted); }
.post__views, .post__read { font-variant-numeric: tabular-nums; }
.post__tools { margin-left: auto; display: flex; gap: 6px; }
.post__tools button {
  width: 30px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  font-size: 12px; color: var(--ink-3);
}
.post__tools button:hover { border-color: var(--brand); color: var(--brand); }
.post__cover { margin: 24px 0 0; }
.post__cover .cover { width: 100%; border-radius: var(--radius); }
.post__cover figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.6; }

.post__body { margin-top: 28px; font-size: 17px; line-height: 1.95; color: #23292f; }
.post__body p { margin: 0 0 1.15em; }
.post__body p:last-child { margin-bottom: 0; }
.post__body h2 {
  position: relative; margin: 2em 0 .8em; padding-left: 13px; font-size: 20px; letter-spacing: -.01em;
}
.post__body h2::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 4px; height: 1.05em;
  border-radius: 2px; background: var(--brand);
}
.post__body h3 { margin: 1.6em 0 .6em; font-size: 17.5px; }
.post__body blockquote {
  margin: 1.6em 0; padding: 14px 20px; background: var(--surface-2); border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 16px;
}
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body ul, .post__body ol { margin: 1em 0 1.3em; padding-left: 1.35em; }
.post__body li { margin: .42em 0; padding-left: .2em; }
.post__body ul li { list-style: disc; }
.post__body ol li { list-style: decimal; }
.post__body li::marker { color: var(--brand); }
.post__body strong { font-weight: 600; color: var(--ink); }
.post__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post__body img { margin: 1.4em 0; border-radius: 8px; }
.post__body table { width: 100%; margin: 1.4em 0; font-size: 14px; }
.post__body th, .post__body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.post__body th { background: var(--surface-2); font-weight: 600; }
.post[data-font-size="sm"] .post__body { font-size: 15.5px; }
.post[data-font-size="lg"] .post__body { font-size: 19px; }

.post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.post__statement { margin-top: 22px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius); font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.post__statement b { color: var(--ink-3); }
.post__statement a { color: var(--brand); }
.post__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post__pager-item {
  display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); min-width: 0;
}
.post__pager-item span { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.post__pager-item b { font-size: 14px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
a.post__pager-item:hover { border-color: var(--brand); }
a.post__pager-item:hover b { color: var(--brand); }
.post__pager-item.is-next { text-align: right; }
.post__pager-item.is-empty { justify-content: center; color: var(--muted); font-size: 13px; background: var(--surface-2); }

.related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.related__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.related__head h2 { font-size: 19px; }
.related__head a { font-size: 12.5px; color: var(--muted); }

/* 专题头图 */
.topic-hero { position: relative; margin-top: 18px; border-radius: var(--radius-lg); overflow: hidden; background: #0a1a2e; min-height: 320px; display: flex; align-items: flex-end; }
.topic-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topic-hero__body {
  position: relative; width: 100%; padding: 90px 34px 28px; color: #fff;
  background: linear-gradient(180deg, rgba(8, 22, 40, 0), rgba(8, 22, 40, .88));
}
.topic-hero__kicker { font-size: 11.5px; letter-spacing: .18em; color: #9fc6ff; font-weight: 600; }
.topic-hero__body h1 { margin-top: 10px; font-size: clamp(24px, 2.4vw, 32px); color: #fff; }
.topic-hero__body p { margin-top: 10px; max-width: 760px; font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, .8); }
.topic-hero__meta { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.topic-hero__meta a { color: #9fc6ff; }

/* 区县网格 */
.area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.area-card {
  display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: all .18s ease; position: relative;
}
.area-card b { font-size: 15.5px; }
.area-card span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.area-card i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--line-strong); font-style: normal; }
.area-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.area-card:hover b { color: var(--brand); }
.area-card:hover i { color: var(--brand); }

/* --------------------------------- 7. 表单 ------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 7px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form label em { color: var(--accent); font-style: normal; margin-left: 2px; }
.form input[type="text"], .form input[type="search"], .form input:not([type]), .form input[type="email"],
.form input[type="number"], .form select, .form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); font-size: 14px; color: var(--ink); transition: all .16s ease;
}
.form textarea { resize: vertical; line-height: 1.7; font-family: inherit; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 92, 215, .1);
}
.form__hint { font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); }
.check a { color: var(--brand); }
.form .btn { align-self: flex-start; min-width: 160px; }

.alert { margin: 0 0 20px; padding: 13px 16px; border-radius: 8px; font-size: 13.5px; border: 1px solid; }
.alert--ok { background: #f0faf4; border-color: #bfe6cd; color: #1d6b3d; }
.alert--err { background: #fdf3f2; border-color: #f0cfcb; color: #a03024; }

/* 404 */
.nf { padding: 70px 0 40px; text-align: center; }
.nf__code { font: 800 78px/1 var(--font-mono); color: var(--line-strong); letter-spacing: -.04em; }
.nf h1 { margin-top: 14px; font-size: 24px; }
.nf p { margin: 10px auto 0; max-width: 460px; font-size: 14px; color: var(--muted); }
.nf__actions { display: flex; gap: 12px; justify-content: center; margin: 24px 0 40px; }
.nf .hlist { max-width: 640px; margin: 0 auto; text-align: left; }

/* 静态页 */
.post--static { max-width: 760px; padding-bottom: 60px; }
.post--static .post__meta { border-bottom: 0; padding-bottom: 0; }
.post--static .post__body { margin-top: 8px; }

/* --------------------------------- 8. 页脚 ------------------------------- */
.footer { margin-top: 48px; background: #0b1a2b; color: #93a4b8; font-size: 13px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr); gap: 48px; padding-top: 44px; padding-bottom: 32px; }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand strong { display: block; font-size: 18px; color: #fff; letter-spacing: .06em; font-family: var(--font-display); }
.footer__brand p { margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: #7d8ea3; max-width: 360px; }
.footer__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__nav h4 { font-size: 12.5px; color: #d6e0ec; letter-spacing: .1em; margin-bottom: 12px; font-weight: 600; }
.footer__nav a { display: block; font-size: 12.5px; color: #8598ad; padding: 4px 0; }
.footer__nav a:hover { color: #fff; }
.footer__mid { padding-bottom: 18px; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; }
.footer__links span:first-child { color: #5e7186; letter-spacing: .1em; }
.footer__links a { color: #8598ad; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding: 18px 24px 26px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #6b7f94; }
.footer__note { color: #566a7f; line-height: 1.8; }
.footer__debug { padding-bottom: 20px; font-size: 10.5px; color: #3f5165; font-family: var(--font-mono); }

/* ------------------------------- 9. 响应式 ------------------------------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 280px; gap: 16px; }
  .sec--split { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .layout-2 { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .story--hero { min-height: 400px; }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .hero__rank { display: none; }
  .hero__sub .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__sub .cards3 .story--feature:last-child { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  .masthead__in { flex-wrap: wrap; gap: 14px; padding: 16px 18px; }
  .msearch { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .masthead__aside { margin-left: auto; }
  .brand__text small { display: none; }
  .navbar__in { padding: 0 8px; }
  .navbar__list a { padding: 0 12px; font-size: 14px; }
  .navbar__more { display: none; }
  .sec--split { grid-template-columns: minmax(0, 1fr); }
  .sec__side, .layout-2__side {
    position: static; display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .sec__side > *, .layout-2__side > * { min-width: 0; }
  .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .duo__col + .duo__col { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .topics--index { grid-template-columns: minmax(0, 1fr); }
  .hlist--cols { grid-template-columns: minmax(0, 1fr); }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .post__pager { grid-template-columns: minmax(0, 1fr); }
  .post__pager-item.is-next { text-align: left; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  body { padding-bottom: 58px; }
  .topline__slogan, .topline__left .topline__date { display: none; }
  .topline__in { height: 32px; justify-content: flex-end; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .story--hero { min-height: 340px; border-radius: var(--radius); }
  .story__overlay { padding: 100px 18px 18px; }
  .story--hero .story__title { font-size: 22px; }
  .story__sum { display: none; }
  .hero__brief { min-width: 0; padding: 14px 16px 10px; }
  .hero__sub .cards3 { grid-template-columns: minmax(0, 1fr); }
  .hero__sub .cards3 .story--feature:last-child { display: flex; }
  .cards3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sec { margin-top: 28px; }
  .sec-head__title { font-size: 18.5px; }
  .sec-head__sub { display: none; }
  .row { gap: 14px; padding: 16px 0; }
  .row__title { font-size: 16.5px; }
  .row__sum { -webkit-line-clamp: 2; font-size: 13px; }
  .row__thumb { flex: 0 0 108px; width: 108px; aspect-ratio: 4 / 3; }
  .row__meta .meta__src { display: none; }
  .feed--lg .row__thumb { flex-basis: 116px; width: 116px; }
  .topic-card__media { flex: 0 0 132px; width: 132px; }
  .topic-card__body { padding: 12px 14px; }
  .topic-card__body h2, .topic-card__body h3 { font-size: 15px; }
  .topic-card__body p { -webkit-line-clamp: 2; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .page-head__main h1 { font-size: 23px; }
  .post__title { font-size: 25px; }
  .post__lead { font-size: 14px; padding: 12px 14px; }
  .post__body { font-size: 16.5px; line-height: 1.9; margin-top: 22px; }
  .post__body h2 { font-size: 18.5px; }
  .post__meta { gap: 10px; font-size: 12px; }
  .post__read { display: none; }
  .post__cover { margin-top: 18px; }
  .crumb { padding-top: 12px; overflow: hidden; }
  .sec__side, .layout-2__side { grid-template-columns: minmax(0, 1fr); }
  .ad a { gap: 12px; }
  .ad img { flex-basis: 100px; width: 100px; height: 62px; }
  .ad--wide a { flex-direction: column; align-items: flex-start; }
  .ad--wide img { width: 100%; height: auto; flex-basis: auto; }
  .topic-hero { min-height: 260px; }
  .topic-hero__body { padding: 70px 18px 20px; }
  .nform, .form .btn { align-self: stretch; }
  .nf__code { font-size: 58px; }

  /* 移动端底部导航 */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; font-size: 10.5px; color: var(--muted); }
  .tabbar a.is-on { color: var(--brand); }
  .tabbar a svg { opacity: .85; }
}

/* ------------------------------- 10. 深色模式 ----------------------------- */
[data-theme="dark"] {
  --bg: #0a0e13;
  --surface: #11161e;
  --surface-2: #151b24;
  --ink: #e7ebf0;
  --ink-2: #b3bcc8;
  --ink-3: #8d97a4;
  --muted: #6f7a88;
  --line: #212a35;
  --line-soft: #1a222c;
  --line-strong: #2c3744;
  --brand: #4d90f8;
  --brand-600: #3a7ce4;
  --brand-700: #2a63c0;
  --brand-soft: #17263c;
  --brand-soft-2: #131d2b;
  --accent: #ef6a58;
  --accent-soft: #2a1a18;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .5), 0 28px 56px -28px rgba(0, 0, 0, .9);
}
[data-theme="dark"] body.page--article { background: var(--bg); }
[data-theme="dark"] .navbar { background: linear-gradient(180deg, #16233a, #101a2b); }
[data-theme="dark"] .navbar__list a { color: rgba(255, 255, 255, .78); }
[data-theme="dark"] .masthead, [data-theme="dark"] .topline { background: var(--surface); }
[data-theme="dark"] .msearch input { background: var(--surface-2); }
[data-theme="dark"] .msearch input:focus { background: var(--surface); }
[data-theme="dark"] .post__body { color: #d3dae3; }
[data-theme="dark"] .post__body strong { color: #fff; }
[data-theme="dark"] .post__statement { background: var(--surface); }
[data-theme="dark"] .footer { background: #070b11; }
[data-theme="dark"] .tabbar { background: rgba(17, 22, 30, .96); }
[data-theme="dark"] .form input, [data-theme="dark"] .form select, [data-theme="dark"] .form textarea { background: var(--surface-2); }
[data-theme="dark"] .alert--ok { background: #10241a; border-color: #1f4b31; color: #7fd6a2; }
[data-theme="dark"] .alert--err { background: #2a1614; border-color: #50241f; color: #f09588; }
[data-theme="dark"] .hrow__date { background: var(--surface-2); }
[data-theme="dark"] .code { background: #060a10; }

/* 打印 */
@media print {
  .topline, .masthead, .navbar, .footer, .tabbar, .layout-2__side, .post__pager, .related, .ad, .post__tools, .crumb { display: none !important; }
  body { background: #fff; color: #000; }
  .layout-2, .wrap { display: block; max-width: none; padding: 0; }
  .post { max-width: none; }
  .post__body { font-size: 12pt; line-height: 1.8; }
}
