:root {
  --ink: #132033;
  --muted: #617086;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --soft: #edf4f8;
  --line: #dbe4ee;
  --navy: #0d314f;
  --navy-2: #103d63;
  --blue: #1e6bd6;
  --green: #0aa36c;
  --amber: #f4a62a;
  --red: #e34d59;
  --shadow: 0 14px 34px rgba(19, 32, 51, 0.1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  padding: 13px 0;
  background: rgba(245, 247, 251, 0.96);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span,
.brand strong,
.brand small {
  display: block;
  min-width: 0;
}

.brand strong {
  overflow: hidden;
  max-width: 220px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  overflow: hidden;
  max-width: 220px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: var(--ink);
}

.primary-nav {
  position: fixed;
  inset: 74px 16px auto;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.primary-nav[data-open] {
  display: grid;
  gap: 6px;
}

.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.primary-nav a:hover {
  background: var(--soft);
  color: var(--blue);
}

.score-strip {
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid #143f66;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
}

.score-track {
  display: flex;
  min-height: 54px;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: thin;
}

.score-track span,
.score-track a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 38px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #dcecff;
  font-size: 13px;
  font-weight: 700;
}

.score-track b {
  color: var(--amber);
  font-weight: 900;
}

.home-hero {
  display: grid;
  gap: 16px;
  margin: 18px 0 28px;
}

.hero-main,
.hero-card,
.nav-section,
.content-band,
.page-title,
.article-detail,
.sidebar section,
.faq-section,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(19, 32, 51, 0.06);
}

.hero-main {
  min-height: 300px;
  padding: 32px;
  background: var(--navy);
  color: #ffffff;
}

.eyebrow,
.section-heading p,
.page-title p,
.nav-tile small,
.topic-card small,
.news-card small,
.news-row small,
.article-meta,
.side-link span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-main .eyebrow {
  color: #8ed5b8;
}

.home-hero h1,
.page-title h1,
.article-head h1 {
  margin: 0;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: 42px;
  line-height: 1.12;
}

.hero-main p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: #d9e8f7;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.button-primary {
  background: var(--green);
  color: #ffffff;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.hero-card {
  padding: 24px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff1f2;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.hero-card h2 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-card dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.hero-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--soft);
}

.hero-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-card dd {
  overflow: hidden;
  margin: 0;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-section,
.content-band,
.faq-section {
  margin: 24px 0;
  padding: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.25;
}

.nav-board,
.topic-grid,
.news-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.nav-tile,
.topic-card,
.news-card,
.news-row {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-tile,
.topic-card {
  min-height: 148px;
  padding: 18px;
}

.nav-tile.featured {
  background: var(--navy-2);
  color: #ffffff;
}

.nav-tile.featured small,
.nav-tile.featured span {
  color: #d8e7f4;
}

.nav-tile strong,
.topic-card strong {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.35;
}

.nav-tile span,
.topic-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.news-card {
  min-height: 178px;
  padding: 18px;
}

.news-card h3,
.news-row h2 {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.45;
}

.news-card h3 a:hover,
.news-row h2 a:hover,
.side-link:hover strong {
  color: var(--blue);
}

.news-card p,
.news-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.page-title {
  margin: 18px 0 24px;
  padding: 28px;
}

.page-title h1 {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.22;
}

.page-title strong {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: #9aa7b8;
}

.content-layout {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.main-column,
.news-list,
.sidebar {
  display: grid;
  gap: 14px;
}

.news-row {
  min-height: 150px;
  padding: 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.sidebar section {
  padding: 18px;
}

.sidebar h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.side-link {
  display: grid;
  min-height: 66px;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.side-link:first-of-type {
  border-top: 0;
}

.side-link strong {
  font-size: 14px;
  line-height: 1.45;
}

.article-layout {
  align-items: start;
}

.article-detail {
  padding: 22px;
}

.article-head {
  margin-bottom: 20px;
}

.article-head h1 {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.28;
}

.article-head strong {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.article-meta {
  margin-top: 12px;
}

.lead-media {
  margin: 20px 0;
}

.lead-media img,
.body-media-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  color: #243247;
  font-size: 16px;
  line-height: 1.95;
}

.article-body p {
  margin: 0 0 18px;
}

.body-media-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.body-media-grid figure {
  margin: 0;
}

.related-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.related-block h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.standalone-page {
  margin: 24px 0;
}

.faq-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.faq-grid h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.site-footer {
  display: grid;
  gap: 18px;
  margin: 24px 0 32px;
  padding: 24px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13px;
}

@media (min-width: 720px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  }

  .nav-board,
  .topic-grid,
  .news-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .body-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .primary-nav a {
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .nav-board,
  .news-grid,
  .topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .hero-main {
    padding: 44px;
  }
}

@media (max-width: 719px) {
  .page {
    width: min(100% - 20px, 560px);
  }

  .brand strong,
  .brand small {
    max-width: 170px;
  }

  .home-hero h1,
  .page-title h1,
  .article-head h1 {
    font-size: 28px;
  }

  .hero-main,
  .hero-card,
  .nav-section,
  .content-band,
  .page-title,
  .article-detail,
  .faq-section,
  .site-footer {
    padding: 18px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 23px;
  }
}
