:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #18211f;
  --muted: #66716d;
  --line: #dfe6e1;
  --accent: #0f7b68;
  --accent-dark: #095d50;
  --warm: #f0c36d;
  --soft: #edf4f1;
  --shadow: 0 24px 70px rgba(24, 33, 31, 0.09);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(223, 230, 225, 0.72);
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 12px;
}

.nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

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

.section[id] {
  scroll-margin-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 58px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 760px;
  color: #34403c;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 18px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 750;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

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

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.fit-line {
  color: var(--muted);
  font-size: 15px;
}

.hero-panel,
.case-card,
.questions-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.signal-row span {
  color: var(--muted);
}

.signal-row strong {
  text-align: right;
}

.mini-note {
  margin-top: 22px;
  border-radius: 8px;
  background: var(--soft);
  padding: 18px;
  color: #31413c;
}

.service-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-strip > div > p,
.section-heading p,
.questions-card p,
.about-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
}

.service-grid,
.process-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article,
.process-grid article,
.faq-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 22px;
}

.service-grid p,
.process-grid p,
.faq-grid p,
.case-card p {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.case-card {
  padding: 28px;
}

.case-card.featured {
  grid-row: span 2;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(15, 123, 104, 0.08), rgba(255, 255, 255, 0.98)),
    var(--paper);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.case-meta a {
  color: var(--accent);
  font-weight: 700;
}

.case-result {
  margin-top: 22px;
  border-left: 3px solid var(--warm);
  padding-left: 14px;
}

.process-section {
  border-top: 1px solid var(--line);
}

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

.process-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.questions-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 40px;
  padding: clamp(26px, 5vw, 54px);
  background: var(--ink);
  color: white;
}

.questions-card .eyebrow,
.questions-card p {
  color: #a9d8cc;
}

.question-list {
  margin: 0;
  padding-left: 22px;
  font-size: clamp(18px, 2vw, 23px);
}

.question-list li + li {
  margin-top: 14px;
}

.about-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.avatar-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.avatar-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, #dce9e5, #f4efe2);
  object-fit: cover;
}

.avatar-fallback,
.qr-fallback {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(15, 123, 104, 0.15), rgba(240, 195, 109, 0.22)),
    var(--soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.avatar-fallback {
  position: absolute;
  inset: 14px;
  font-size: 28px;
}

.avatar-wrap img[src],
.wechat-card img[src] {
  min-height: 1px;
}

.avatar-wrap img.is-missing,
.wechat-card img.is-missing {
  display: none;
}

.wechat-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

code {
  border-radius: 6px;
  background: var(--soft);
  padding: 2px 5px;
  color: var(--accent-dark);
  font-size: 0.92em;
}

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

.contact-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 40px;
  align-items: start;
}

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

.embedded-form {
  overflow: hidden;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

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

textarea:focus,
input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 123, 104, 0.12);
}

.wechat-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.wechat-card img {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
}

.qr-fallback {
  grid-row: 1;
  grid-column: 1;
  width: 104px;
  height: 104px;
  padding: 14px;
  text-align: center;
  font-size: 14px;
}

.wechat-card img {
  grid-row: 1;
  grid-column: 1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .service-strip,
  .questions-card,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .case-card.featured {
    min-height: auto;
  }

  .about-section {
    gap: 28px;
  }

  .avatar-wrap {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 58px 0;
  }

  .section[id] {
    scroll-margin-top: 132px;
  }

  h1 {
    font-size: 52px;
  }

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

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

  .case-card,
  .hero-panel,
  .contact-form {
    padding: 22px;
  }

  .wechat-card {
    grid-template-columns: 1fr;
  }
}
