:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #202124;
  --muted: #6f7782;
  --line: #e6e8eb;
  --accent: #c92a2a;
  --accent-dark: #9f2020;
  --soft: #fff7f4;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e2e5e9;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.top-strip {
  background: #2f3338;
  color: #e8eaed;
  font-size: 13px;
}

.top-strip .wrap,
.brand-row,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-strip nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-strip a {
  color: #f2f4f7;
}

.brand-row {
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #d7352d 0%, #d7352d 48%, transparent 49%),
    linear-gradient(315deg, #222 0%, #222 48%, #f1c94e 49%);
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.search-form {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 1fr 82px;
  border: 1px solid #d9dce1;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--text);
}

.search-form button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.channel-nav {
  border-top: 1px solid var(--line);
  background: #fff;
}

.channel-nav .wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.channel-nav a {
  flex: 0 0 auto;
  padding: 13px 16px;
  color: #34383d;
  border-bottom: 3px solid transparent;
  font-size: 15px;
}

.channel-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 22px 0 36px;
}

.content-panel,
.side-block,
.static-panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.article-list {
  padding: 4px 20px 14px;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.news-card:last-child {
  border-bottom: 0;
}

.news-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.news-card h2 a:hover,
.text-link:hover,
.side-list a:hover,
.related-list a:hover {
  color: var(--accent);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.thumb {
  aspect-ratio: 1.36 / 1;
  overflow: hidden;
  background: #e2e5e9;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.meta-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.tag {
  color: var(--accent);
  border: 1px solid rgba(201, 42, 42, 0.3);
  padding: 1px 5px;
  border-radius: 3px;
}

.read-count {
  flex: 0 0 auto;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px 22px;
  border-top: 1px solid var(--line);
}

.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: #444;
  font-size: 14px;
}

.pagination .is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.side-block {
  padding: 16px;
}

.side-block h2 {
  margin: 0 0 12px;
  font-size: 18px;
  border-left: 4px solid var(--accent);
  padding-left: 8px;
}

.side-block p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.side-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.side-list a {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-detail {
  padding: 24px 28px 30px;
}

.article-detail h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  margin: 22px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e5e9;
}

.article-detail p {
  margin: 16px 0;
  font-size: 18px;
  line-height: 1.85;
}

.related-title {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-list a {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.static-panel {
  grid-column: 1 / -1;
  padding: 28px;
}

.static-panel h1 {
  margin: 0 0 16px;
  font-size: 30px;
}

.static-panel h2 {
  margin: 26px 0 10px;
  font-size: 20px;
}

.static-panel p,
.static-panel li {
  color: #3d4248;
  font-size: 16px;
}

.static-panel a,
.text-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-box {
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid #f1d0c8;
  color: #77362d;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #282d33;
  color: #f3f5f7;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 26px 0;
}

.site-footer p {
  margin: 8px 0 0;
  color: #c7ccd3;
  font-size: 14px;
}

.site-footer a {
  color: #f3f5f7;
  white-space: nowrap;
}

.footer-bottom {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #c7ccd3;
  font-size: 13px;
}

@media (max-width: 860px) {
  .wrap {
    width: min(100% - 24px, var(--wrap));
  }

  .top-strip .wrap,
  .brand-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0 16px;
  }

  .site-footer p {
    max-width: 28em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .site-footer nav {
    width: 100%;
    gap: 8px 14px;
  }

  .footer-bottom {
    gap: 6px;
    padding: 12px 0 16px;
  }

  .brand-row {
    padding: 16px 0;
  }

  .brand strong {
    font-size: 24px;
  }

  .search-form {
    width: 100%;
  }

  .channel-nav .wrap {
    width: 100%;
    padding-left: 12px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
  }

  .side-panel {
    display: none;
  }

  .section-head {
    padding: 14px 14px 12px;
  }

  .section-head h1,
  .section-head h2 {
    font-size: 21px;
  }

  .article-list {
    padding: 0 14px 10px;
  }

  .news-card {
    padding: 14px 0;
  }

  .news-card h2 {
    font-size: 18px;
  }

  .thumb-row {
    gap: 5px;
  }

  .meta-row {
    font-size: 12px;
  }

  .article-detail,
  .static-panel {
    padding: 18px 16px 22px;
  }

  .article-detail h1,
  .static-panel h1 {
    font-size: 24px;
  }

  .article-detail p {
    font-size: 17px;
  }
}
