:root {
  color-scheme: light;
  --brand-red: #d9232e;
  --ink: #222;
  --muted: #858585;
  --line: #ececec;
  --page: #f4f4f4;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; color: var(--ink); background: var(--page); }
a { color: inherit; text-decoration: none; }
.masthead { height: 54px; color: #fff; background: var(--brand-red); }
.masthead-inner { width: min(100% - 28px, 1120px); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; }
.brand img { display: block; width: auto; max-width: min(230px, 68vw); height: 38px; object-fit: contain; object-position: left center; }
.brand-name { overflow: hidden; color: #fff; font-size: 19px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 1px; background: #fff; }
.nav-toggle:focus-visible, a:focus-visible { outline: 2px solid #135e96; outline-offset: 3px; }
.site-navigation { display: none; background: #fff; border-bottom: 1px solid var(--line); }
.site-navigation.is-open { display: block; }
.nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 56vh; overflow: auto; margin: 0 auto; padding: 8px 14px; }
.nav-list a { display: block; padding: 11px 5px; color: #333; font-size: 14px; text-align: center; }
.nav-list a.is-active { color: var(--brand-red); font-weight: 700; }
.page-main { width: min(100%, 1100px); min-height: 55vh; margin: 0 auto; padding: 0 15px 30px; background: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 8px; min-height: 42px; overflow: hidden; border-bottom: 1px solid var(--line); color: #888; font-size: 12px; white-space: nowrap; }
.breadcrumb a { color: #666; }
.breadcrumb > :last-child { overflow: hidden; text-overflow: ellipsis; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.article { min-width: 0; padding: 22px 0 28px; }
.article-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.article-channel { margin: 0 0 8px; color: var(--brand-red); font-size: 13px; font-weight: 700; }
.article-heading h1 { margin: 0; color: #202020; font-size: 23px; font-weight: 700; line-height: 1.48; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.article-content { color: #252525; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-content p { margin: 16px 0; }
.article-content h2, .article-content h3 { margin: 25px 0 12px; font-size: 19px; line-height: 1.5; }
.article-content img, .article-content video { display: block; max-width: 100%; height: auto; margin: 16px auto; }
.article-content figure { margin: 18px 0; }
.article-content figcaption { color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.article-content blockquote { margin: 18px 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--brand-red); color: #666; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content td, .article-content th { padding: 8px; border: 1px solid var(--line); }
.sidebar { padding: 0 0 24px; border-top: 1px solid var(--line); }
.side-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.side-section h2 { margin: 0 0 10px; font-size: 16px; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.55; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-list .empty-list { color: var(--muted); }
.site-footer { padding: 19px 15px 25px; color: #d4d4d4; background: #292929; font-size: 12px; line-height: 1.9; text-align: center; }
.footer-inner { width: min(100%, 760px); margin: 0 auto; }
.footer-inner p { margin: 2px 0; }
.site-footer a { color: #eee; }

@media (min-width: 720px) {
  .masthead { height: 66px; }
  .masthead-inner { width: min(100% - 40px, 1120px); }
  .nav-toggle { display: none; }
  .site-navigation, .site-navigation.is-open { display: block; }
  .nav-list { display: flex; flex-wrap: nowrap; max-height: none; width: min(100% - 40px, 1120px); margin: 0 auto; padding: 0; overflow-x: auto; overflow-y: hidden; }
  .nav-list a { flex: 0 0 auto; padding: 13px 14px; white-space: nowrap; }
  .page-main { margin-top: 18px; padding: 0 32px 36px; }
  .content-grid { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 34px; }
  .article { padding-top: 28px; }
  .article-heading h1 { font-size: 28px; }
  .article-meta { font-size: 13px; }
  .sidebar { padding-top: 27px; border-top: 0; }
  .site-footer { padding-top: 24px; }
}
