:root {
  --ink: #18201d;
  --muted: #66736d;
  --line: #dfe7df;
  --paper: #fbfbf7;
  --sage: #557465;
  --leaf: #8ba35b;
  --clay: #ba6f44;
  --mint: #e5efe7;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(28, 40, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(251, 251, 247, 0.9);
  border-bottom: 1px solid rgba(223, 231, 223, 0.75);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 9px;
  padding-bottom: 9px;
  box-shadow: 0 10px 30px rgba(24, 32, 29, 0.08);
}

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

.brand-logo {
  display: block;
  width: 132px;
  height: 64px;
  max-width: 132px;
  max-height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

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

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #34433d;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(20px, 6vw, 82px) 48px;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 251, 247, 0.94) 0%, rgba(251, 251, 247, 0.82) 38%, rgba(251, 251, 247, 0.16) 72%);
}

.hero-content {
  position: relative;
  width: min(610px, 100%);
  padding-top: 24px;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(40px, 4.7vw, 62px);
  line-height: 1;
  letter-spacing: 0;
  max-width: 12ch;
}

.hero-copy {
  width: min(540px, 100%);
  margin: 24px 0 0;
  color: #384942;
  font-size: clamp(16px, 1.45vw, 19px);
}

.hero-copy.english {
  margin-top: 14px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #52615c;
}

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

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

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

.button.primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(85, 116, 101, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--ink);
}

.section,
.intro,
.metrics,
.quality-band,
.contact {
  padding-left: clamp(20px, 6vw, 82px);
  padding-right: clamp(20px, 6vw, 82px);
}

.intro {
  padding-top: 68px;
  padding-bottom: 42px;
}

.section-grid,
.split,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.quality-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p:last-child,
.quality-copy p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 26px;
  padding-bottom: 74px;
}

.metrics div {
  min-height: 142px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.metrics strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

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

.section {
  padding-top: 78px;
  padding-bottom: 82px;
}

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

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 35px rgba(24, 32, 29, 0.06);
}

.product-image {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
  background: var(--mint);
}

.product-card h3,
.service-steps h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.quality-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-top: 78px;
  padding-bottom: 78px;
  background: #eef4ee;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quality-copy p {
  margin-top: 18px;
}

.quality-list {
  display: grid;
  gap: 12px;
}

.quality-list div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(24, 32, 29, 0.06);
  font-weight: 800;
}

.quality-list span {
  color: var(--leaf);
  font-size: 24px;
}

.certificate-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.certificate-gallery figure {
  margin: 0;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(24, 32, 29, 0.08);
}

.certificate-gallery img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f6f6f2;
}

.certificate-gallery figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

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

.service-steps article {
  padding: 24px;
  border-top: 4px solid var(--sage);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--clay);
  font-weight: 800;
}

.contact {
  padding-top: 78px;
  padding-bottom: 78px;
  background: var(--ink);
  color: var(--white);
}

.contact .section-kicker {
  color: #f0bd8a;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 18px;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.contact-details a,
.contact-details span {
  display: block;
  overflow-wrap: anywhere;
}

.contact-details a:hover {
  color: #f0bd8a;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(20px, 6vw, 82px);
  background: #111714;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .product-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid,
  .split,
  .quality-band,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .certificate-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-logo {
    width: 96px;
    height: 48px;
    max-width: 96px;
    max-height: 48px;
  }

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

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: 680px;
    align-items: end;
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(251, 251, 247, 0.97) 0%, rgba(251, 251, 247, 0.82) 46%, rgba(251, 251, 247, 0.12) 100%);
  }

  .hero-content {
    padding-top: 36vh;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .product-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: auto;
  }

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

/* Contact QR + floating dock */
.contact-intro {
  min-width: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-actions .button {
  min-width: 170px;
}

.contact-whatsapp {
  background: #25d366;
  color: #0d2715;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.24);
}

.contact-email {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

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

.qr-contact-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.qr-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.qr-card-heading strong,
.qr-card-heading small {
  display: block;
}

.qr-card-heading strong {
  font-size: 16px;
}

.qr-card-heading small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.qr-brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.whatsapp-icon {
  background: #25d366;
  color: #102217;
}

.wechat-icon {
  background: #07c160;
  color: #102217;
}

.qr-contact-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.qr-contact-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-align: center;
}

.contact-dock {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 40;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.dock-item {
  position: relative;
}

.dock-button {
  width: 58px;
  min-height: 58px;
  padding: 7px 4px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid #dce7df;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #22332b;
  box-shadow: 0 10px 30px rgba(21, 33, 27, 0.16);
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dock-button:hover,
.dock-button:focus-visible {
  transform: translateX(-2px);
  box-shadow: 0 14px 36px rgba(21, 33, 27, 0.22);
}

.dock-whatsapp:hover,
.dock-whatsapp:focus-visible {
  background: #effdf4;
  border-color: #a9eec1;
}

.dock-wechat:hover,
.dock-wechat:focus-visible {
  background: #effcf5;
  border-color: #9de7bd;
}

.dock-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eff4ef;
  color: #325342;
  font-size: 11px;
  font-weight: 900;
}

.dock-whatsapp .dock-icon {
  background: #25d366;
  color: #0e2c18;
}

.dock-wechat .dock-icon {
  background: #07c160;
  color: #0e2c18;
}

.dock-email .dock-icon {
  background: #f6e7dd;
  color: #8f4e2b;
}

.dock-quote .dock-icon {
  background: #e6efe8;
  color: #395b49;
}

.dock-label {
  display: block;
  max-width: 50px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
}

.dock-popover {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: 210px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(21, 33, 27, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.dock-popover strong,
.dock-popover span {
  display: block;
  text-align: center;
}

.dock-popover strong {
  margin-bottom: 9px;
  font-size: 14px;
}

.dock-popover span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dock-popover img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.dock-has-popover:hover .dock-popover,
.dock-has-popover:focus-within .dock-popover,
.dock-item.is-open .dock-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

@media (max-width: 980px) {
  .contact-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-dock {
    right: 12px;
  }
}

@media (max-width: 760px) {
  .contact-qr-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-dock {
    top: auto;
    right: 10px;
    bottom: 14px;
    grid-template-columns: repeat(4, 52px);
    gap: 6px;
    transform: none;
  }

  .dock-button {
    width: 52px;
    min-height: 52px;
    border-radius: 11px;
  }

  .dock-label {
    font-size: 8px;
  }

  .dock-popover {
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(220px, calc(100vw - 28px));
    transform: translateY(8px);
  }

  .dock-has-popover:hover .dock-popover,
  .dock-has-popover:focus-within .dock-popover,
  .dock-item.is-open .dock-popover {
    transform: translateY(0);
  }
}

.qr-brand-icon svg,
.dock-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
