:root {
  --ink: #16221d;
  --forest: #10211b;
  --forest-deep: #09130f;
  --leaf: #315e49;
  --mist: #e8efea;
  --paper: #f5f7f2;
  --white: #ffffff;
  --signal: #d7f044;
  --muted: #68736d;
  --line: rgba(22, 34, 29, 0.16);
  --shell: 1240px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--forest-deep);
  background: var(--signal);
  transform: translateY(-140%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(245, 247, 242, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(calc(100% - 64px), var(--shell));
  margin: 0 auto;
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  color: var(--forest-deep);
  background: var(--signal);
  font-family: "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  font-size: 9px;
  opacity: 0.68;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 9px 0;
}

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

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

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
}

.menu-button svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 72px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(5, 14, 10, 0.88) 0%, rgba(5, 14, 10, 0.48) 48%, rgba(5, 14, 10, 0.1) 76%),
    linear-gradient(0deg, rgba(5, 14, 10, 0.48), transparent 46%),
    url("assets/forest-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 13, 0.18), transparent 30%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--shell));
  margin: 0 auto;
  padding: 150px 0 116px;
}

.eyebrow,
.section-index {
  margin: 0 0 25px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
}

.hero .eyebrow {
  color: var(--signal);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 64px;
  line-height: 1.12;
  font-weight: 650;
}

.hero-lead {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.button-primary {
  min-width: 150px;
  color: var(--forest-deep);
  background: var(--signal);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.button:hover svg,
.button:focus-visible svg,
.text-link:hover svg,
.text-link:focus-visible svg {
  transform: translate(3px, -3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
}

.hero-foot {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--forest-deep);
  background: var(--signal);
}

.hero-foot span {
  padding: 18px 22px;
  font-size: 12px;
  font-weight: 700;
  border-left: 1px solid rgba(9, 19, 15, 0.18);
}

.section {
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 80px;
  align-items: end;
}

.section h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.25;
  font-weight: 620;
}

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

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

.service-item {
  position: relative;
  min-height: 330px;
  padding: 32px 26px 34px;
  border-left: 1px solid var(--line);
  transition: color 200ms ease, background-color 200ms ease;
}

.service-item:last-child {
  border-right: 1px solid var(--line);
}

.service-item:hover {
  color: var(--white);
  background: var(--forest);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 52px;
  color: var(--leaf);
  background: var(--mist);
}

.service-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}

.service-number {
  position: absolute;
  top: 36px;
  right: 26px;
  color: var(--muted);
  font-size: 11px;
}

.service-item h3 {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 620;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.service-item:hover p,
.service-item:hover .service-number {
  color: rgba(255, 255, 255, 0.66);
}

.workflow {
  color: var(--white);
  background: var(--forest-deep);
}

.workflow .section-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 100px;
}

.section-index-light {
  color: var(--signal);
}

.workflow-heading h2 {
  max-width: 410px;
  font-size: 40px;
}

.workflow-heading > p:last-child {
  max-width: 350px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.8;
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.step-number {
  color: var(--signal);
  font-size: 12px;
  font-weight: 700;
}

.workflow-list h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
}

.workflow-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.about {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 110px;
}

.about-title-block {
  position: sticky;
  top: 120px;
  align-self: start;
}

.about-copy {
  padding-top: 42px;
}

.about-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.about-copy .about-lead {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.65;
}

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

.principles > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.principles dt {
  font-size: 17px;
  font-weight: 700;
}

.principles dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact {
  color: var(--white);
  background: var(--leaf);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(330px, 0.72fr);
  gap: 110px;
  align-items: start;
}

.contact h2 {
  font-size: 48px;
}

.contact-content > p {
  max-width: 520px;
  margin: 38px 0 42px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.9;
}

.contact-list {
  margin: 0 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-list dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.contact-list dd {
  margin: 0;
  font-size: 14px;
}

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

.button-light:hover,
.button-light:focus-visible {
  color: var(--forest-deep);
  background: var(--signal);
  border-color: var(--signal);
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--forest-deep);
}

.footer-shell {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand-mark-small {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 17px;
}

.footer-brand {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.footer-legal a {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--signal);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 54px;
  }

  .section {
    padding: 92px 0;
  }

  .section h2 {
    font-size: 38px;
  }

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

  .service-item:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .service-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .workflow .section-shell,
  .about-layout,
  .contact-layout {
    gap: 70px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .nav-shell,
  .section-shell,
  .footer-shell,
  .hero-inner {
    width: min(calc(100% - 36px), var(--shell));
  }

  .site-header.is-menu-open {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--line);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 20px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    min-height: calc(100svh - var(--header-height));
    display: grid;
    align-content: center;
    gap: 0;
    padding: 30px 28px 80px;
    color: var(--ink);
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 18px 0;
    font-size: 26px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    min-height: calc(100svh - 44px);
    background-image:
      linear-gradient(90deg, rgba(5, 14, 10, 0.86) 0%, rgba(5, 14, 10, 0.4) 88%),
      linear-gradient(0deg, rgba(5, 14, 10, 0.52), transparent 50%),
      url("assets/forest-hero.jpg");
    background-position: 58% center;
  }

  .hero-inner {
    padding: 120px 0 132px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.18;
  }

  .hero-lead {
    max-width: 320px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 22px;
  }

  .hero-foot {
    right: auto;
    left: 0;
    width: 100%;
  }

  .hero-foot span {
    flex: 1 1 0;
    padding: 15px 8px;
    text-align: center;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading,
  .workflow .section-shell,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .section h2,
  .workflow-heading h2,
  .contact h2 {
    font-size: 34px;
  }

  .section-intro {
    font-size: 15px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

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

  .service-item:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

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

  .service-icon {
    margin-bottom: 38px;
  }

  .workflow-list li {
    grid-template-columns: 50px 1fr;
  }

  .about-title-block {
    position: static;
  }

  .about-copy {
    padding-top: 0;
  }

  .about-copy .about-lead {
    font-size: 21px;
  }

  .principles {
    margin-top: 48px;
  }

  .contact-content > p {
    margin-top: 0;
  }

  .footer-shell {
    min-height: 164px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .brand-copy small {
    display: none;
  }

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

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-inner {
    padding-bottom: 118px;
  }

  .section h2,
  .workflow-heading h2,
  .contact h2 {
    font-size: 30px;
  }

  .principles > div,
  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
