:root {
  --ink: #16312e;
  --muted: #60726f;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --green: #123f3a;
  --jade: #2f776b;
  --mint: #cde7dc;
  --gold: #bf9961;
  --line: rgba(18, 63, 58, 0.14);
  --shadow: 0 24px 70px rgba(19, 49, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(18, 63, 58, 0.06);
}

.nav-shell {
  width: min(1160px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 12px 4px 12px 4px;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 15px;
  letter-spacing: 0.04em;
}

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

.site-nav a {
  position: relative;
  color: #3c514e;
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--jade);
  transition: right 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  right: 0;
}

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

.menu-button > span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--green);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 170px max(40px, calc((100vw - 1160px) / 2)) 100px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 80px;
  background: linear-gradient(140deg, #f7f4ec 0%, #edf5f0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(18, 63, 58, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 63, 58, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--green);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(46px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(18, 63, 58, 0.2);
}

.button-primary:hover {
  background: #0b322d;
}

.button-ghost {
  color: var(--green);
  border-color: rgba(18, 63, 58, 0.24);
  background: rgba(255, 255, 255, 0.55);
}

.hero-card {
  min-height: 360px;
  padding: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 40px 8px 40px 8px;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(205, 231, 220, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(205, 231, 220, 0.06), 0 0 0 44px rgba(205, 231, 220, 0.03);
}

.signal {
  display: flex;
  gap: 7px;
}

.signal i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.card-label {
  margin: 72px 0 8px;
  color: #9fc3ba;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.hero-card strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
}

.hero-card > p:last-of-type {
  max-width: 260px;
  color: #c7d9d4;
}

.card-line {
  width: 70%;
  height: 2px;
  margin-top: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.card-line span {
  display: block;
  width: 55%;
  height: 100%;
  background: var(--gold);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}

.glow-one {
  top: 90px;
  right: 18%;
  width: 260px;
  height: 260px;
  background: rgba(184, 220, 207, 0.34);
}

.glow-two {
  left: -130px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  background: rgba(191, 153, 97, 0.12);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 50px;
}

.section-heading.compact {
  margin-bottom: 34px;
}

.section h2,
.contact h2,
.contact-dialog h2 {
  margin: 0;
  color: var(--green);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.3;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 16px;
}

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

.service-card {
  min-height: 290px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  color: #fff;
  background: var(--green);
}

.service-index {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 14px;
}

.service-card h3 {
  margin: 70px 0 15px;
  font-size: 22px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card.featured p {
  color: #c7d9d4;
}

.about {
  width: 100%;
  padding: 0;
  background: var(--cream);
}

.about-panel {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
  align-items: center;
}

.about-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 36px 8px 36px 8px;
  box-shadow: var(--shadow);
}

.principles div {
  min-height: 150px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--paper);
}

.principles strong {
  color: var(--green);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 26px;
}

.principles span {
  color: var(--muted);
  font-size: 13px;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 23px 40px 23px 0;
  position: relative;
  list-style: none;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 20px;
  color: var(--jade);
  font-size: 22px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -6px 0 24px;
  color: var(--muted);
}

.contact {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 90px;
  padding: 58px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  background: var(--green);
  border-radius: 40px 8px 40px 8px;
}

.contact .eyebrow {
  color: #a9cec4;
}

.contact h2 {
  max-width: 690px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
}

.button-light {
  flex: 0 0 auto;
  color: var(--green);
  background: var(--mint);
}

.site-footer {
  padding: 64px max(40px, calc((100vw - 1160px) / 2)) 28px;
  color: #c2d2ce;
  background: #0d2c29;
}

.footer-main {
  padding-bottom: 50px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main strong {
  color: #fff;
  font-size: 18px;
}

.footer-main p {
  max-width: 520px;
  margin-bottom: 0;
}

.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-main a,
.footer-bottom a {
  transition: color 0.2s ease;
}

.footer-main a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.contact-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 42px;
  border: 0;
  border-radius: 28px 8px 28px 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.contact-dialog::backdrop {
  background: rgba(7, 31, 28, 0.65);
  backdrop-filter: blur(6px);
}

.contact-dialog h2 {
  font-size: 30px;
}

.contact-dialog > p:not(.eyebrow, .copy-status) {
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--cream);
  font-size: 24px;
  cursor: pointer;
}

.copy-status {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--jade);
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 28px rgba(18, 63, 58, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .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);
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    padding: 28px 20px 38px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(18, 63, 58, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 4px;
    font-size: 16px;
  }

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

  .hero {
    min-height: auto;
    padding: 140px 28px 80px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-card {
    min-height: 300px;
  }

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

  .service-card {
    min-height: 230px;
  }

  .service-card h3 {
    margin-top: 38px;
  }

  .about-panel,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact {
    padding: 46px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .nav-shell,
  .section,
  .about-panel,
  .contact {
    width: min(100% - 32px, 1160px);
  }

  .brand-name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding-inline: 20px;
  }

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

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-card {
    padding: 30px;
  }

  .section,
  .about-panel {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .principles div {
    min-height: 126px;
    padding: 20px;
  }

  .principles strong {
    font-size: 22px;
  }

  .contact {
    margin-bottom: 60px;
    padding: 36px 28px;
  }

  .site-footer {
    padding: 52px 24px 24px;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
  }

  .contact-dialog {
    padding: 38px 24px 28px;
  }
}

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

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