:root {
  --bg: #eef3f9;
  --bg-soft: #f7f9fc;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-elevated: #f8fbff;
  --ink: #162133;
  --muted: #65748b;
  --line: rgba(20, 38, 67, 0.1);
  --accent: #2b67e8;
  --accent-soft: #4e85f2;
  --accent-strong: #1756df;
  --shadow: 0 10px 26px rgba(15, 35, 66, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f5f7fb 0%, #eef3f9 100%);
}

body.nav-open {
  overflow: hidden;
}

body::before {
  display: none;
}

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

.site-header,
.hero-card,
.block,
.section-panel,
.feature-band,
.story-card {
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1280px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 0;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid rgba(10, 35, 80, 0.08);
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.topbar--compact {
  font-size: 0.82rem;
}

.site-header__line {
  height: 10px;
  background: #f6efe9;
  border-bottom: 1px solid rgba(10, 35, 80, 0.08);
}

.topbar__meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
}

.brandbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 14px 0 12px;
}

.brandbar--news {
  align-items: center;
  padding: 16px 28px 10px;
}

.brandbar__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

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

.brandbar__tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 123, 180, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: #c7d7f5;
  font-size: 0.8rem;
}

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

.brand__label,
.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
}

.brand strong {
  font-size: 1.55rem;
  line-height: 1.2;
  color: #101722;
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1d6fe8;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  font-family: Georgia, serif;
}

.topbar__hint {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.primary-nav,
.sub-nav__links,
.meta-row,
.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-nav {
  margin-top: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.primary-nav--news {
  margin-top: 0;
  margin-left: 22px;
  padding: 0;
  border-bottom: 0;
  gap: 0;
  align-items: center;
}

.primary-nav a,
.sub-nav__links a {
  border-radius: 999px;
  border: 1px solid rgba(92, 123, 180, 0.18);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-nav a {
  padding: 10px 14px;
  font-weight: 600;
  color: #d9e7ff;
}

.primary-nav--news a {
  position: relative;
  padding: 12px 18px 16px;
  color: #131c29;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.sub-nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 28px 14px;
  color: #66758f;
  background: #fff;
  border-top: 1px solid rgba(10, 35, 80, 0.08);
}

.mobile-menu-toggle,
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(24, 77, 168, 0.14);
  border-radius: 12px;
  background: #f5f8fc;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1f2b3d;
  border-radius: 999px;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 31, 0.42);
  z-index: 18;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 360px);
  height: 100vh;
  background: #fff;
  z-index: 19;
  border-left: 1px solid rgba(10, 35, 80, 0.08);
  box-shadow: -16px 0 40px rgba(15, 35, 66, 0.14);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-backdrop.is-open {
  display: block;
}

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

.mobile-drawer__head strong {
  font-size: 1.15rem;
}

.mobile-drawer__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f2f5fa;
  font-size: 1.45rem;
  line-height: 1;
}

.mobile-drawer__body {
  padding: 10px 18px 28px;
  overflow-y: auto;
  height: calc(100vh - 67px);
}

.mobile-nav-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-group__title {
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  color: #152237;
}

.mobile-nav-group__title.is-active {
  color: var(--accent) !important;
  background: transparent !important;
}

.mobile-nav-group__links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-nav-group__links a {
  padding: 9px 12px;
  border-radius: 10px;
  background: #f6f8fc;
  color: #536277;
  font-size: 0.92rem;
}

.sub-nav__links a {
  padding: 7px 11px;
  font-size: 0.88rem;
  color: #55657d;
  background: #f5f8fc;
  border: 1px solid rgba(24, 77, 168, 0.1);
}

.primary-nav a:hover,
.sub-nav__links a:hover {
  transform: translateY(-1px);
  background: rgba(61, 124, 255, 0.12);
  border-color: rgba(121, 168, 255, 0.35);
}

.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
  border-color: transparent !important;
}

.primary-nav--news a:hover {
  background: transparent;
  color: #1d6fe8;
  border-color: transparent;
}

.primary-nav--news .is-active {
  color: #111a27 !important;
  background: transparent !important;
}

.primary-nav--news .is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #2b7cff;
}

.page-shell {
  width: min(1280px, calc(100% - 24px));
  margin: 18px auto 40px;
  display: grid;
  gap: 18px;
}

.hero-card,
.block,
.section-panel,
.feature-band {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-card,
.block,
.section-panel,
.feature-band,
.story-card {
  padding: 20px;
}

.hero-grid,
.three-grid,
.two-grid,
.story-grid {
  display: grid;
  gap: 18px;
}

.newsroom-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.newsroom-hero--light {
  background: #fff;
}

.newsroom-hero__lead {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.newsroom-hero__rail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lead-news__main {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lead-news__image {
  overflow: hidden;
  border-radius: 16px;
  min-height: 320px;
}

.lead-news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-news__body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.bullet-links {
  display: grid;
  gap: 0;
}

.bullet-links a {
  display: grid;
  gap: 6px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.bullet-links a:first-child {
  border-top: 0;
  padding-top: 0;
}

.bullet-links strong {
  font-size: 1rem;
  color: #162133;
}

.bullet-links span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.country-tile {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.country-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 168, 255, 0.26);
  background: #f8fbff;
}

.country-tile strong {
  font-size: 1rem;
  color: #162133;
}

.country-tile span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.country-tile--large {
  min-height: 132px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
}

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

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

.story-grid {
  align-items: start;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  max-width: 10ch;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}

h3 {
  font-size: 1.16rem;
  line-height: 1.45;
}

p {
  line-height: 1.72;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #2a5fd6;
  background: #f3f7ff;
  border: 1px solid rgba(43, 103, 232, 0.14);
  font-size: 0.86rem;
}

.section-panel,
.story-card {
  background: var(--surface-strong);
}

.story-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.story-card:hover,
.block:hover,
.section-panel:hover,
.feature-band:hover {
  border-color: rgba(121, 168, 255, 0.26);
}

.story-card--linked:hover {
  transform: translateY(-2px);
  background: #fbfdff;
}

.story-meta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.list-links {
  display: grid;
  gap: 0;
}

.list-links a,
.list-links .list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.list-links a:first-child,
.list-links .list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 2px 0;
}

.pagination-bar__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.pagination__item,
.pagination__ellipsis {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #243247;
  font-size: 0.92rem;
  line-height: 1;
}

.pagination__item:hover {
  border-color: rgba(43, 103, 232, 0.24);
  color: var(--accent);
  background: #f5f8ff;
}

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

.pagination__ellipsis {
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding: 0 2px;
}

.story-card--linked {
  display: grid;
  gap: 12px;
}

.story-card--linked img,
.hero-cover img,
.article-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.hero-cover {
  overflow: hidden;
  border-radius: 16px;
}

.story-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #eef4ff;
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  gap: 18px;
}

.article-body {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.article-body p {
  margin: 0 0 18px;
  font-size: 1.04rem;
  color: #223147;
}

.article-body figure {
  margin: 0 0 22px;
}

.article-body figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 8px;
}

.country-card {
  position: relative;
  overflow: hidden;
}

.country-card::after {
  position: absolute;
  inset: auto -40px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 103, 232, 0.09), transparent 70%);
  content: "";
}

.hero-card h1 + .muted,
.block h2 + .muted,
.feature-band h2 + .muted,
.section-panel h2 + .muted {
  margin-top: 14px;
}

.story-card h2 {
  font-size: clamp(1.18rem, 1.8vw, 1.95rem);
  line-height: 1.28;
}

.story-card p.muted {
  margin: 0;
}

.story-card--headline-only {
  align-content: start;
  gap: 10px;
}

.story-card--headline-only .story-thumb {
  aspect-ratio: 16 / 10;
}

.story-card--headline-only h2 {
  font-size: clamp(1.08rem, 1.5vw, 1.55rem);
  line-height: 1.35;
}

.story-card--headline-only .eyebrow {
  margin-top: 2px;
}

.hero-card {
  background: #fff;
}

.hero-card--compact h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: none;
}

.block--compact {
  padding: 18px;
}

.block--compact h2 {
  font-size: 1.18rem;
  line-height: 1.35;
}

.block--feature {
  padding: 20px 22px 24px;
}

.feature-band--dense {
  min-height: 100%;
}

.section-panel--newslist {
  align-content: start;
}

.three-grid--news .story-card {
  min-height: 200px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.94rem;
}

.block--news,
.block--white,
.feature-band--white,
.section-panel--white {
  background: #fff;
}

.block,
.section-panel,
.feature-band,
.story-card,
.article-body {
  background: #fff;
}

@media (max-width: 960px) {
  .site-header,
  .page-shell {
    width: min(100% - 18px, 100%);
  }

  .topbar,
  .brandbar,
  .newsroom-hero,
  .hero-grid,
  .channel-strip,
  .country-grid,
  .country-grid--channel,
  .news-card-grid,
  .lead-news__main,
  .three-grid,
  .two-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: start;
  }

  .brandbar,
  .section-headline {
    align-items: start;
    flex-direction: column;
  }

  .brandbar--news {
    gap: 8px;
  }

  .primary-nav--news {
    display: none;
  }

  .sub-nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sub-nav__links {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .sub-nav__links a {
    white-space: nowrap;
  }

  .mobile-menu-toggle,
  .mobile-drawer {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  .topbar__hint {
    text-align: left;
  }

  h1 {
    max-width: none;
  }

  .newsroom-hero__lead {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }
}

@media (max-width: 640px) {
  .site-header {
    border-radius: 0;
    margin-top: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
  }

  .hero-card,
  .block,
  .section-panel,
  .feature-band,
  .story-card {
    padding: 18px;
    border-radius: 16px;
  }

  .brandbar--news {
    padding: 14px 16px 10px;
  }

  .sub-nav {
    padding: 10px 16px 12px;
  }

  body[data-country] .sub-nav {
    display: none;
  }

  body[data-country] .hero-card--compact:first-child {
    display: none;
  }
}
