:root {
  --green-900: #123c31;
  --green-800: #174f3e;
  --green-700: #1f6b50;
  --green-100: #dceae3;
  --red-600: #d84234;
  --red-100: #f6d8d3;
  --blue-700: #35677a;
  --gold-500: #d5a73c;
  --ink: #17312a;
  --muted: #5f6f69;
  --paper: #fffdf9;
  --warm: #f5eee4;
  --line: rgba(23, 49, 42, 0.16);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 45, 37, 0.12);
  --shell: min(1180px, calc(100% - 40px));
  --hero-image: url("/images/hero.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.notice {
  min-height: 34px;
  padding: 5px 20px;
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  border-color: var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-900);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: var(--green-900);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 24px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--green-900);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: min(650px, calc(100svh - 154px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background-color: #365b45;
  background-image: var(--hero-image);
  background-position: center 42%;
  background-size: cover;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 42, 32, 0.64);
}

.hero-inner {
  padding-block: 66px 82px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #f4c866;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(66px, 9vw, 132px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.22);
}

.hero-tagline {
  max-width: 780px;
  margin: 28px 0 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-description {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red-600);
  color: var(--white);
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button-quiet:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 36px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #f4c866;
}

.demo-label {
  position: absolute;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.section {
  padding-block: 112px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 58px;
}

.section-heading h2,
.articles h2,
.contact h2 {
  margin: 0;
  color: var(--green-900);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item {
  min-height: 290px;
  padding: 34px 32px 38px;
  border-right: 1px solid var(--line);
}

.service-item:last-child {
  border-right: 0;
}

.service-number {
  color: var(--red-600);
  font-size: 13px;
  font-weight: 800;
}

.service-item h3 {
  margin: 62px 0 12px;
  color: var(--green-900);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 28px;
}

.service-item p {
  max-width: 29ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.articles {
  background: var(--green-900);
  color: var(--white);
}

.articles-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.28fr);
  gap: 100px;
}

.articles h2 {
  color: var(--white);
}

.articles-copy > p:not(.eyebrow) {
  max-width: 36ch;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.articles .eyebrow {
  color: #f4c866;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.article-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
}

.article-content {
  min-width: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #f4c866;
  font-size: 12px;
  font-weight: 700;
}

.article-card h3 {
  margin: 9px 0 9px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
}

.article-card p {
  max-width: 54ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.article-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 20px;
  transition: background-color 180ms ease, color 180ms ease;
}

a.article-card:hover .article-arrow {
  background: var(--white);
  color: var(--green-900);
}

.article-empty {
  padding: 42px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.article-empty h3 {
  margin: 0 0 10px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(24px, 3vw, 32px);
}

.article-empty > p:last-child {
  max-width: 44ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.contact {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
  gap: 90px;
}

.contact-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-size: 13px;
}

.contact-details dd {
  margin: 0;
  color: var(--green-900);
  font-size: 16px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 64px 0 24px;
  background: #ede3d5;
}

.footer-main,
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.footer-brand strong {
  color: var(--green-900);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 24px;
}

.footer-brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
}

.footer-legal {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-legal p {
  margin: 0;
}

noscript {
  display: block;
  padding: 20px;
  background: var(--red-100);
  text-align: center;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    min-height: calc(100svh - 76px);
    display: grid;
    align-content: start;
    gap: 0;
    padding: 30px 24px;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section-heading,
  .articles-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-item:last-child {
    border-bottom: 0;
  }

  .service-item h3 {
    margin-top: 28px;
  }

  .articles-layout {
    gap: 58px;
  }

}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .notice {
    padding-inline: 12px;
    font-size: 11px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand {
    font-size: 18px;
  }

  .site-nav {
    inset-block-start: 68px;
    min-height: calc(100svh - 68px);
  }

  .hero {
    min-height: calc(100svh - 150px);
    background-position: 62% center;
  }

  .hero-inner {
    padding-block: 52px 68px;
  }

  .hero h1 {
    font-size: 66px;
  }

  .hero-tagline {
    font-size: 28px;
  }

  .hero-description {
    max-width: 32ch;
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-points {
    gap: 8px 14px;
    margin-top: 32px;
    font-size: 12px;
  }

  .demo-label {
    right: 16px;
  }

  .section {
    padding-block: 80px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .articles h2,
  .contact h2 {
    font-size: 39px;
  }

  .article-card {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .article-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .contact-details div {
    grid-template-columns: 86px 1fr;
    gap: 14px;
  }

  .footer-main,
  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-legal {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
