:root {
  --ink: #17202a;
  --muted: #5d6a78;
  --line: #d9e0e7;
  --paper: #f8faf9;
  --panel: #ffffff;
  --navy: #12395b;
  --red: #b32f3d;
  --green: #5f8d52;
  --gold: #b48a3b;
  --soft-blue: #e8f0f6;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

a:hover {
  color: var(--red);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 5;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.8rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem clamp(1rem, 4vw, 3rem);
  font-size: 0.82rem;
}

.topbar p {
  margin: 0;
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 240px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.hero,
.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.8rem) clamp(1rem, 4vw, 2rem);
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-copy h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(2.15rem, 6vw, 4.7rem);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-copy p,
.page-hero p,
.article-header > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--navy);
  font-weight: 700;
}

.button.primary {
  background: var(--navy);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.hero-story {
  background: var(--panel);
  border-top: 5px solid var(--red);
  box-shadow: var(--shadow);
}

.hero-story img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-story > :not(img) {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.hero-story h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}

.hero-story p:last-child {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.content-band,
.page-content-wrap,
.contact-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.content-band.muted {
  max-width: none;
  background: var(--soft-blue);
}

.content-band.muted > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
}

.section-heading a {
  color: var(--red);
  font-weight: 700;
}

.article-grid,
.section-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.article-card,
.section-card {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 100%;
}

.article-card.featured-card {
  grid-column: span 2;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-copy,
.section-card {
  padding: 1rem;
}

.card-meta {
  margin: 0 0 0.55rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.article-card h3,
.section-card h3 {
  margin: 0;
  line-height: 1.32;
  font-size: 1.1rem;
}

.article-card p,
.section-card p {
  color: var(--muted);
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(18, 57, 91, 0.94), rgba(179, 47, 61, 0.82)),
    var(--navy);
  color: #fff;
  max-width: none;
}

.page-hero > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .eyebrow {
  color: #fff;
}

.page-hero.compact {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.article-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.article-header {
  margin-bottom: 1.5rem;
}

.back-link {
  color: var(--red);
  font-weight: 800;
}

.article-hero-image,
.section-image {
  margin: 0 0 2rem;
}

.article-hero-image img,
.section-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-content {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.15rem, 3vw, 2rem);
  font-size: 1.02rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  line-height: 1.25;
  margin: 1.7em 0 0.65em;
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child,
.article-content p:first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  color: #2b3540;
}

.article-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-content figure {
  margin: 1.4rem 0;
}

.article-content img {
  width: 100%;
  height: auto;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.article-content th,
.article-content td {
  border: 1px solid var(--line);
  padding: 0.65rem;
  vertical-align: top;
}

.section-rich {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.section-rich .section-image {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.section-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.section-lede,
.section-facts,
.section-feature-card,
.section-pathway {
  background: var(--panel);
  border: 1px solid var(--line);
}

.section-lede {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 5px solid var(--red);
}

.section-lede h2,
.section-pathway h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  line-height: 1.2;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.section-lede p:last-child {
  margin-bottom: 0;
}

.section-facts {
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--navy);
  color: #fff;
}

.section-facts > p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-facts dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.section-fact-row {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 0.8rem;
}

.section-fact-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.section-fact-row dt {
  margin: 0 0 0.25rem;
  color: #fff;
  font-weight: 800;
}

.section-fact-row dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.section-feature-card {
  min-height: 100%;
  padding: 1.1rem;
  border-top: 4px solid var(--green);
}

.section-feature-card:nth-child(2n) {
  border-top-color: var(--gold);
}

.feature-index {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
}

.section-feature-card h3,
.pathway-step h3 {
  margin: 0;
  line-height: 1.3;
  font-size: 1.08rem;
}

.section-feature-card p:last-child,
.pathway-step p:last-child {
  margin-bottom: 0;
}

.section-pathway {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.compact-heading {
  margin-bottom: 1rem;
}

.pathway-list {
  display: grid;
  gap: 0.85rem;
}

.pathway-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.pathway-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.pathway-step > span {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--soft-blue);
  color: var(--navy);
  font-weight: 800;
  line-height: 1;
}

.article-resource-footer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  margin-top: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.resource-links h2 {
  margin: 0 0 0.8rem;
  color: #4069b2;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.resource-links table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.resource-links td {
  border: 1px solid #7693d3;
  padding: 0.42rem 0.55rem;
  line-height: 1.35;
}

.resource-links a {
  color: #c92f38;
  font-weight: 700;
}

.resource-qr {
  margin-top: 1.5rem;
  text-align: center;
}

.resource-qr p {
  margin: 0.35rem 0;
  color: #3e4853;
}

.resource-qr img {
  width: min(220px, 70vw);
  margin: 0.65rem auto 0;
}

.page-copy {
  max-width: 900px;
  margin: 0 auto;
}

.related-band {
  border-top: 1px solid var(--line);
}

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

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.contact-panel form {
  display: grid;
  gap: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1rem;
}

.crm-webform-frame {
  min-height: 900px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.contact-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f2f5f7;
  padding: 0.75rem;
  color: var(--muted);
  font: inherit;
}

.contact-panel button {
  border: 0;
  background: #9aa7b2;
  color: #fff;
  padding: 0.85rem 1rem;
  font-weight: 800;
  font: inherit;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.copyright {
  max-width: 1180px;
  margin: 2rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .nav-shell,
  .editorial-hero,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    display: grid;
  }

  .nav-links {
    justify-content: start;
  }

  .article-grid,
  .archive-grid,
  .small-grid,
  .section-card-grid,
  .section-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-overview {
    grid-template-columns: 1fr;
  }

  .article-card.featured-card {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .topbar {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0.45rem 0.55rem;
    font-size: 0.88rem;
  }

  .article-grid,
  .archive-grid,
  .small-grid,
  .section-card-grid,
  .section-feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .article-content {
    padding: 1rem;
  }

  .resource-links table,
  .resource-links tbody,
  .resource-links tr,
  .resource-links td {
    display: block;
    width: 100%;
  }

  .article-header h1 {
    font-size: 2rem;
  }
}
