/* 默认资讯模型。本地为主；CDN 字体为辅（见模板 preconnect）。断 CDN 仍完整出页。 */
:root {
  --bg: #f3f4f6;
  --card: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --link: #1e3a5f;
  --link-hover: #0f2744;
  --accent: #b45309;
  --header: #132337;
  --header-fg: #e5e7eb;
  --header-nav: #24364d;
  --header-hover: #1c334d;
  --radius: 6px;
  --radius-lg: 10px;
  --info: #374151;
  --brand-tracking: .04em;
  --card-shadow: none;
  /* CDN 字体名在前；失败则落到系统中文/西文栈 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}
img[src=""],
img:not([src]) {
  display: none;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; width: 100%; box-sizing: border-box; }

.site-header {
  background: var(--header);
  color: var(--header-fg);
  padding: 18px 0 0;
}
.site-header a { color: #f9fafb; }
.site-header .brand {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: var(--brand-tracking);
  margin: 0 0 12px;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  border-top: 1px solid var(--header-nav);
}
.site-header nav a {
  display: inline-block;
  padding: 10px 16px;
  text-decoration: none;
}
.site-header nav a:hover { background: var(--header-hover); text-decoration: none; }

.crumb {
  color: var(--muted);
  font-size: .9rem;
  margin: 16px 0 8px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  margin: 20px 0 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 20px 22px;
}
.card h1 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.35; font-family: var(--font-display); }
.card h2 { margin: 0 0 12px; font-size: 1.15rem; font-family: var(--font-display); }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list li:last-child { border-bottom: 0; }
.list .title { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.list .meta { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.list .info { margin: 6px 0 0; color: var(--info); font-size: .95rem; }
.media-body .info { color: var(--info); }
.side .list li { padding: 8px 0; }

.pager { margin-top: 16px; }
.pager a { margin-right: 16px; }

article .lead { color: var(--muted); margin: 0 0 16px; font-size: .9rem; }
article .content { font-size: 1.05rem; overflow-wrap: anywhere; }
article .content p { margin: 0 0 1em; }
article .content img { max-width: 100%; height: auto; display: block; }
.related { margin-top: 28px; }

/* 列表 / 内容图文卡 */
.media-list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.media-item {
  display: grid;
  grid-template-columns: minmax(96px, 160px) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  align-items: start;
}
.media-item:last-child { border-bottom: 0; }
.media-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  aspect-ratio: 3 / 2;
  width: 100%;
  max-width: 160px;
  min-width: 0;
}
.media-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
/* 空图：不占列，避免窄栏把正文挤成竖排 */
.media-thumb:has(img[src=""]),
.media-thumb:has(img:not([src])),
.media-card-thumb:has(img[src=""]),
.side-media-thumb:has(img[src=""]) {
  display: none;
}
.media-item:has(> .media-thumb img[src=""]),
.media-item:has(> .media-thumb img:not([src])) {
  grid-template-columns: minmax(0, 1fr);
}
.media-body {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.media-body .title {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.media-body .info,
.media-body .meta {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.media-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
}
.media-card-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  aspect-ratio: 3 / 2;
}
.media-card-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
.media-card-title { font-size: .95rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.article-cover {
  margin: 0 0 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.article-cover img { width: 100%; height: auto; display: block; max-width: 100%; }

.side-block { margin-bottom: 20px; }
.side-block:last-child { margin-bottom: 0; }
.side-media { list-style: none; margin: 0; padding: 0; }
.side-media li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.side-media li:last-child { border-bottom: 0; }
.side-media-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  aspect-ratio: 4 / 3;
}
.side-media-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
.side-media-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.side-media li { min-width: 0; }
.list-compact li { padding: 6px 0; }
.side-inline { margin: 16px 0 24px; }
.side-inline h2 { margin-top: 16px; }
.side-inline h2:first-child { margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer nav { margin-bottom: 8px; }
.site-footer nav a { margin-right: 14px; color: var(--muted); }

.city:empty { display: none; }
.city { margin-right: .35em; }

/* 移动模板 body.m — 禁止用 100vw（Chrome 含滚动条宽度，易横向溢出） */
body.m .side { display: none; }
body.m .layout { display: block; }
body.m {
  overflow-x: hidden;
  max-width: 100%;
}
body.m .wrap {
  padding: 0 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
body.m .card {
  padding: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
body.m .site-header,
body.m .site-footer {
  overflow-x: hidden;
  max-width: 100%;
}
body.m .site-header .wrap,
body.m .site-footer .wrap {
  overflow-x: hidden;
}
body.m .site-header nav {
  flex-wrap: wrap;
  max-width: 100%;
}
body.m .site-header nav a { padding: 12px 10px; }
body.m .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  max-width: 100%;
}
body.m .site-footer nav a {
  margin-right: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.m .media-item {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
}
body.m .media-thumb { max-width: 88px; }
body.m .hero-focus,
body.m .hero-focus-media,
body.m .hero-focus-title,
body.m .media-list,
body.m .media-body,
body.m .lead {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.m .hero-focus-media {
  width: 100%;
  overflow: hidden;
}
body.m .hero-focus-media img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
body.m .hero-focus-title {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 800px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding: 0 12px; max-width: 100%; box-sizing: border-box; }
  .card { padding: 14px; max-width: 100%; width: 100%; box-sizing: border-box; }
  .site-header .brand { font-size: 1.2rem; }
  .media-item { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .media-thumb { max-width: 88px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid--mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero-focus,
  .hero-focus-media {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }
  .hero-focus-media img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  .hero-focus-title { overflow-wrap: anywhere; word-break: break-word; }
  .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .site-footer nav a { margin-right: 0; }
}

@media (max-width: 400px) {
  html { font-size: 15px; }
  .card h1 { font-size: 1.25rem; }
  .media-item { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
  .media-thumb { max-width: 72px; }
}
