:root {
  --ink: #142b26;
  --green: #16584b;
  --green-deep: #0e3c34;
  --coral: #a94f45;
  --gold: #bb8a3d;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --tint: #edf3f0;
  --line: #d8e0dc;
  --muted: #61706b;
  --shadow: 0 16px 40px rgba(20, 43, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: -999px;
  z-index: 100;
  padding: 9px 13px;
  color: #fff;
  background: var(--green-deep);
}

.skip-link:focus {
  left: 10px;
}

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

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}

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

.site-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 6px;
  object-fit: cover;
}

.wordmark strong,
.wordmark small {
  display: block;
  overflow: hidden;
  max-width: 320px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wordmark strong {
  font-size: 19px;
  line-height: 1.25;
}

.wordmark small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.site-navigation,
.footer-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.site-navigation a,
.footer-navigation a,
.back-link {
  text-underline-offset: 4px;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.footer-navigation a:hover,
.footer-navigation a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--coral);
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 500px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 50px;
  margin: 0 auto;
  padding: 60px 0 54px;
}

.hero:has(.hero-media) {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 52px;
}

h2 {
  font-size: 30px;
}

.hero-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.button,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 5px;
  font-weight: 800;
}

.button {
  border: 1px solid var(--green-deep);
  color: #fff;
  background: var(--green-deep);
}

.text-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.button:hover,
.button:focus-visible {
  background: var(--green);
}

.text-button:hover,
.text-button:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: 430px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.content-section {
  padding: 64px max(20px, calc((100% - 1180px) / 2));
}

.section-tint {
  background: var(--tint);
}

.section-heading {
  display: block;
  margin-bottom: 26px;
}

.content-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.content-card h2 {
  font-size: 20px;
}

.content-card h2 a {
  overflow-wrap: anywhere;
}

.content-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 14px 0 18px;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.content-link {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
}

.article-page {
  width: min(820px, calc(100% - 40px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 42px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}

.article-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  font-size: 42px;
}

.article-summary {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.article-image {
  width: 100%;
  max-height: 520px;
  margin-top: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.content-body {
  margin-top: 32px;
  color: #263d37;
  font-size: 17px;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  margin: 1.7em 0 0.65em;
}

.content-body h2 {
  font-size: 28px;
}

.content-body h3 {
  font-size: 22px;
}

.content-body p,
.content-body ul,
.content-body ol,
.content-body blockquote {
  margin: 0 0 1.15em;
}

.content-body blockquote {
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  background: var(--paper);
}

.back-link {
  display: inline-block;
  margin-top: 36px;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  color: #fff;
  background: var(--green-deep);
}

.footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  margin: 0 auto;
  padding: 38px 0;
}

.footer-brand {
  max-width: 660px;
}

.footer-brand strong {
  font-size: 20px;
}

.footer-brand p {
  margin: 10px 0 0;
  color: #c9d8d3;
  font-size: 14px;
}

.footer-navigation {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero:has(.hero-media) {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 660px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    position: relative;
    width: min(100% - 28px, 1180px);
    min-height: 64px;
  }

  .js .menu-toggle {
    display: block;
  }

  .js .site-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .js .site-navigation.open {
    display: flex;
  }

  .site-navigation a {
    padding: 10px 12px;
  }

  .hero {
    width: min(100% - 28px, 1180px);
    min-height: 0;
    gap: 30px;
    padding: 44px 0;
  }

  .hero-media img {
    height: 300px;
  }

  h1,
  .article-header h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .hero-lead,
  .article-summary {
    font-size: 16px;
  }

  .content-section {
    padding: 48px 14px;
  }

  .content-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    min-height: 0;
  }

  .article-page {
    width: calc(100% - 28px);
    padding: 30px 0 56px;
  }

  .footer-inner {
    width: calc(100% - 28px);
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-navigation {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
