:root {
  --ink: #17202a;
  --muted: #627081;
  --line: #d9e0e6;
  --paper: #f7f5ef;
  --white: #ffffff;
  --green: #0f6b5b;
  --green-dark: #0a433b;
  --gold: #c18a2d;
  --blue: #315f8f;
  --shadow: 0 24px 70px rgba(23, 32, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(23, 32, 42, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  margin-top: -3px;
  font-size: 12px;
  opacity: 0.78;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.main-nav a {
  opacity: 0.88;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero picture,
.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 28, 24, 0.82), rgba(7, 28, 24, 0.48) 50%, rgba(7, 28, 24, 0.18)),
    linear-gradient(0deg, rgba(7, 28, 24, 0.84), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 56px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.14;
}

h3 {
  margin: 14px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 34px rgba(15, 107, 91, 0.28);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin: 56px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-stats div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats dt {
  font-size: 32px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

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

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.intro > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.section-heading {
  max-width: 680px;
}

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

.service-card {
  min-height: 248px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(23, 32, 42, 0.06);
}

.service-card span {
  color: var(--gold);
  font-weight: 900;
}

.service-card p,
.case-grid p,
.method-content span,
.contact p,
.about-band p {
  color: var(--muted);
}

.method-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  background: var(--green-dark);
  color: var(--white);
}

.method-image {
  min-height: 620px;
}

.method-image img {
  height: 100%;
  object-fit: cover;
}

.method-content {
  align-self: center;
  padding: clamp(42px, 6vw, 88px);
}

.timeline {
  display: grid;
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 38px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(193, 138, 45, 0.18);
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  font-size: 20px;
}

.method-content .timeline span {
  color: rgba(255, 255, 255, 0.72);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.case-grid article {
  padding: 30px;
  border-left: 4px solid var(--green);
  background: var(--white);
}

.case-grid strong {
  font-size: 22px;
}

.about-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding: 78px clamp(20px, 7vw, 96px);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.about-band .eyebrow {
  color: #ffd47b;
}

.about-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(15, 107, 91, 0.14);
}

.contact-form .button {
  width: fit-content;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #101820;
}

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

  .main-nav {
    position: absolute;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .nav-cta {
    border-color: var(--line);
    border-radius: 8px;
  }

  .intro,
  .method-band,
  .about-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .method-image {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

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

  .brand small {
    font-size: 11px;
  }

  .main-nav {
    top: 68px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    width: min(100% - 32px, 1180px);
    padding-bottom: 34px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-stats,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 16px 18px;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding: 68px 0;
  }

  .intro > p,
  .about-band p {
    font-size: 18px;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
