:root {
  --ink: #172321;
  --ink-soft: #52615e;
  --teal: #0b5d5b;
  --teal-dark: #073f3e;
  --aqua: #d9efeb;
  --mist: #f3f7f6;
  --paper: #ffffff;
  --line: #d9e1df;
  --accent: #e85d3f;
  --accent-dark: #bf3e28;
  --focus: #f4b942;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.7; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: 0; }
p { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 8px 14px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.section-shell, .hero-shell, .nav-shell { width: var(--shell); margin-inline: auto; }
.section-band { padding: 94px 0; }
.section-band.muted { background: var(--mist); }
.eyebrow { display: block; margin-bottom: 16px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }
.eyebrow.light { color: #9ad6cb; }

.site-header { position: sticky; z-index: 50; top: 0; height: var(--header-height); border-bottom: 1px solid rgba(23, 35, 33, .1); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
.nav-shell { display: flex; align-items: center; height: 100%; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 11px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--paper); background: var(--teal); font-size: 15px; font-weight: 900; }
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand strong { font-size: 17px; line-height: 1.15; }
.brand small { margin-top: 4px; color: #6e7b78; font-size: 10px; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { position: relative; padding: 25px 0; color: #31413e; font-size: 14px; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.header-contact { display: grid; flex: none; min-width: 198px; padding-left: 22px; border-left: 1px solid var(--line); grid-template-columns: 1fr 1fr; gap: 16px; }
.header-contact > a, .header-contact > span { display: flex; flex-direction: column; justify-content: center; }
.header-contact small { color: #72817e; font-size: 10px; line-height: 1.3; }
.header-contact strong { color: var(--teal); font-size: 13px; letter-spacing: 0; white-space: nowrap; }
.header-contact a:hover strong { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 11px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); transition: .2s ease; }

.hero { position: relative; min-height: min(760px, calc(100vh - var(--header-height))); color: var(--paper); background-image: url("/assets/images/water-lab-hero-v3.jpg"); background-position: center; background-size: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(5, 25, 24, .77); }
.hero-shell { position: relative; z-index: 1; display: flex; min-height: inherit; padding: 72px 0 52px; flex-direction: column; justify-content: center; }
.hero-kicker { display: inline-flex; width: fit-content; margin-bottom: 20px; padding-left: 38px; color: #b6e2da; font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.hero-kicker::before { content: ""; position: absolute; width: 27px; height: 1px; margin-top: 11px; margin-left: -38px; background: var(--accent); }
.hero h1 { max-width: 830px; margin-bottom: 24px; color: var(--paper); font-size: clamp(40px, 5.5vw, 68px); font-weight: 850; }
.hero h1 em { color: #8ed3c6; font-style: normal; }
.hero p { max-width: 760px; margin-bottom: 34px; color: #dbe9e6; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 2px; align-items: center; justify-content: center; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--paper); background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.ghost { border-color: rgba(255,255,255,.55); color: var(--paper); background: rgba(255,255,255,.04); }
.button.ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.1); }
.button.secondary { border-color: var(--line); color: var(--ink); background: var(--paper); }
.hero-points { display: grid; max-width: 940px; margin-top: 68px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); grid-template-columns: repeat(4, 1fr); }
.hero-points span { padding: 4px 24px; border-left: 1px solid rgba(255,255,255,.22); color: #e4efed; font-size: 13px; font-weight: 700; }
.hero-points span:first-child { padding-left: 0; border-left: 0; }
.breadcrumbs { display: flex; margin-bottom: 42px; align-items: center; flex-wrap: wrap; gap: 9px; color: #bcd1cd; font-size: 13px; }
.breadcrumbs a:hover { color: var(--paper); }
.breadcrumbs strong { color: var(--paper); }
.city-hero .hero-shell { justify-content: flex-start; }

.local-intro { padding: 66px 0; border-bottom: 1px solid var(--line); }
.local-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.local-layout h2 { max-width: 430px; margin-bottom: 0; font-size: 34px; }
.local-layout p { margin-bottom: 13px; font-size: 16px; }
.local-layout p:last-child { margin-bottom: 0; }

.section-heading { display: flex; margin-bottom: 44px; align-items: end; justify-content: space-between; gap: 60px; }
.section-heading.vertical { display: block; margin: 0; }
.section-heading h2, .standards-copy h2, .quality-copy h2, .faq-layout h2, .contact-copy h2, .footer-heading h2 { margin-bottom: 0; font-size: 38px; }
.section-heading > p { max-width: 510px; margin-bottom: 2px; }
.section-heading.vertical p { margin-top: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 260px; padding: 32px; border: 1px solid var(--line); border-top: 3px solid var(--teal); background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15, 55, 52, .09); }
.service-index { color: #90a09c; font-size: 12px; font-weight: 800; }
.service-card h3 { margin: 34px 0 12px; font-size: 21px; }
.service-card p { margin-bottom: 22px; font-size: 14px; }
.service-card small { color: var(--teal); font-size: 12px; font-weight: 700; }

.standards-layout { display: grid; align-items: start; grid-template-columns: .7fr 1.3fr; gap: 70px; }
.standards-copy { position: sticky; top: 110px; }
.standards-copy p { margin: 22px 0; }
.text-link { color: var(--teal); font-weight: 800; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.standards-table { overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.table-row { display: grid; min-height: 76px; padding: 0 24px; border-bottom: 1px solid var(--line); align-items: center; grid-template-columns: .9fr .85fr 1.25fr; gap: 20px; font-size: 14px; }
.table-row:last-child { border-bottom: 0; }
.table-row.head { min-height: 55px; color: var(--paper); background: var(--teal); font-size: 12px; font-weight: 800; }
.table-row strong { font-size: 15px; }
.table-row span { color: var(--ink-soft); }
.table-row.head span { color: var(--paper); }

.process-layout { display: grid; align-items: start; grid-template-columns: .72fr 1.28fr; gap: 88px; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; min-height: 116px; padding: 24px 0; border-top: 1px solid var(--line); grid-template-columns: 70px 1fr; gap: 20px; }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list > li > span { color: var(--accent); font-size: 20px; font-weight: 900; }
.process-list h3 { margin-bottom: 8px; font-size: 19px; }
.process-list p { margin-bottom: 0; font-size: 14px; }

.quality-band { overflow: hidden; color: var(--paper); background: var(--teal-dark); }
.quality-layout { display: grid; align-items: stretch; grid-template-columns: 1.05fr .95fr; gap: 70px; }
.quality-image { min-height: 480px; }
.quality-image img { width: 100%; height: 100%; object-fit: cover; }
.quality-copy { display: flex; padding: 36px 0; flex-direction: column; justify-content: center; }
.quality-copy p { margin: 24px 0; color: #cae0dc; }
.quality-copy ul { margin: 0; padding: 0; list-style: none; }
.quality-copy li { padding: 13px 0 13px 24px; border-bottom: 1px solid rgba(255,255,255,.13); color: #eaf4f2; }
.quality-copy li::before { content: ""; position: absolute; width: 8px; height: 8px; margin: 9px 0 0 -24px; border: 2px solid #8ed3c6; }

.faq-band { background: #f8faf9; }
.faq-layout { display: grid; align-items: start; grid-template-columns: .72fr 1.28fr; gap: 90px; }
.faq-layout > div:first-child { position: sticky; top: 110px; }
.faq-layout > div:first-child p { margin-top: 20px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 23px 54px 23px 0; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 20px; right: 7px; color: var(--teal); font-size: 25px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 54px 23px 0; margin: 0; font-size: 14px; }

.contact-band { padding: 92px 0; color: var(--paper); background: #163634; }
.contact-layout { display: grid; align-items: start; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.contact-copy p { max-width: 480px; margin: 24px 0 34px; color: #cbd9d6; }
.contact-methods { display: grid; max-width: 480px; margin-bottom: 26px; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-methods > a, .contact-methods > div { display: flex; min-height: 76px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.2); flex-direction: column; justify-content: center; }
.contact-methods > a { transition: border-color .2s ease, background .2s ease; }
.contact-methods > a:hover { border-color: #9ed7cd; background: rgba(255,255,255,.06); }
.contact-methods small { color: #9fbab5; font-size: 11px; }
.contact-methods strong { color: var(--paper); font-size: 19px; letter-spacing: 0; }
.contact-note { display: flex; max-width: 480px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.17); flex-direction: column; gap: 4px; }
.contact-note strong { color: #a7dcd3; font-size: 13px; }
.contact-note span { color: #aebebb; font-size: 12px; }
.brief-form { display: grid; padding: 32px; border: 1px solid rgba(255,255,255,.16); background: #204541; grid-template-columns: 1fr 1fr; gap: 18px; }
.brief-form label { display: flex; color: #dce8e5; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; }
.brief-form .full { grid-column: 1 / -1; }
.brief-form input, .brief-form select, .brief-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #56706c; border-radius: 0; color: var(--paper); background: #163634; outline: 0; }
.brief-form textarea { resize: vertical; }
.brief-form select option { color: var(--ink); background: var(--paper); }
.brief-form input::placeholder, .brief-form textarea::placeholder { color: #96aaa6; }
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { border-color: #9ed7cd; box-shadow: 0 0 0 3px rgba(158,215,205,.17); }
.brief-form [aria-invalid="true"] { border-color: #ff9b84; }
.form-status { min-height: 24px; margin: -4px 0 0; color: #ffbda9; font-size: 12px; }

.site-footer { padding: 86px 0 24px; color: var(--paper); background: #0e1c1b; }
.footer-heading { display: flex; margin-bottom: 38px; align-items: end; justify-content: space-between; gap: 60px; }
.footer-heading p { max-width: 490px; margin: 0; color: #9fb0ac; }
.city-directory { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.city-group { border: 1px solid #29413e; }
.city-group summary { display: flex; min-height: 52px; padding: 12px 16px; align-items: center; justify-content: space-between; color: #e5eeec; cursor: pointer; font-size: 14px; font-weight: 800; list-style: none; }
.city-group summary::-webkit-details-marker { display: none; }
.city-group summary span { color: #72918b; font-size: 11px; font-weight: 600; }
.city-links { display: flex; padding: 0 14px 14px; flex-wrap: wrap; gap: 7px; }
.city-links a { padding: 4px 8px; border: 1px solid #29413e; color: #aabcb8; font-size: 12px; }
.city-links a:hover, .city-links a[aria-current="page"] { border-color: #75b8ac; color: var(--paper); background: #183a36; }
.footer-contact { display: flex; margin-top: 36px; padding: 22px 0; border-top: 1px solid #29413e; border-bottom: 1px solid #29413e; align-items: center; gap: 28px; color: #c8d7d4; font-size: 14px; }
.footer-contact > span:first-child { color: #81bdb2; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.footer-contact a { color: var(--paper); font-weight: 800; }
.footer-contact a:hover { color: #9ed7cd; }
.footer-bottom { display: grid; margin-top: 52px; padding-top: 26px; border-top: 1px solid #29413e; align-items: center; grid-template-columns: auto 1fr auto; gap: 36px; }
.footer-brand strong { color: var(--paper); }
.footer-brand small { color: #79908b; }
.footer-bottom p, .footer-bottom > small { margin: 0; color: #7e918d; font-size: 12px; }
.footer-bottom > small { text-align: right; }

.brief-dialog { width: min(620px, calc(100% - 32px)); padding: 30px; border: 0; border-radius: 4px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 90px rgba(0,0,0,.34); }
.brief-dialog::backdrop { background: rgba(5,20,18,.72); }
.brief-dialog h2 { margin: 0 40px 20px 0; font-size: 26px; }
.brief-dialog pre { overflow: auto; min-height: 210px; padding: 18px; border: 1px solid var(--line); color: #29413e; background: var(--mist); white-space: pre-wrap; font-family: inherit; line-height: 1.8; }
.dialog-close { position: absolute; top: 18px; right: 20px; width: 36px; height: 36px; border: 0; color: var(--ink-soft); background: transparent; font-size: 30px; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.mobile-actions { display: none; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 760px); }
  .header-contact { margin-left: auto; }
  .menu-toggle { display: block; margin-left: 0; }
  .main-nav { position: fixed; top: var(--header-height); right: 0; left: 0; display: none; padding: 18px 24px 30px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 30px rgba(15,40,37,.1); }
  .nav-open .main-nav { display: grid; }
  .main-nav a { padding: 11px 0; }
  .main-nav a::after { bottom: 4px; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 680px; }
  .hero-points { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .hero-points span:nth-child(3) { padding-left: 0; border-left: 0; }
  .local-layout, .standards-layout, .process-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .standards-copy, .faq-layout > div:first-child { position: static; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .quality-layout { grid-template-columns: 1fr; gap: 40px; }
  .quality-image { min-height: 390px; }
  .footer-heading { display: block; }
  .footer-heading p { margin-top: 20px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; }
  .footer-bottom > small { text-align: left; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); --header-height: 68px; }
  html { scroll-padding-top: 78px; }
  body { padding-bottom: 60px; }
  .site-header { height: var(--header-height); }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 15px; }
  .nav-shell { gap: 10px; }
  .header-contact { min-width: 96px; padding-left: 10px; border-left: 0; grid-template-columns: 1fr; gap: 0; }
  .header-contact .wechat { display: none; }
  .header-contact small { font-size: 9px; }
  .header-contact strong { font-size: 11px; }
  .hero { min-height: calc(100svh - var(--header-height)); }
  .hero-shell { padding: 48px 0 40px; }
  .breadcrumbs { margin-bottom: 28px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-points { margin-top: 40px; padding-top: 18px; }
  .hero-points span { padding: 4px 12px; font-size: 11px; }
  .hero-points span:nth-child(odd) { padding-left: 0; }
  .local-intro, .section-band, .contact-band { padding: 64px 0; }
  .local-layout h2, .section-heading h2, .standards-copy h2, .quality-copy h2, .faq-layout h2, .contact-copy h2, .footer-heading h2 { font-size: 30px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 230px; }
  .table-row { padding: 16px; grid-template-columns: 1fr; gap: 6px; }
  .table-row.head { display: none; }
  .process-list li { grid-template-columns: 48px 1fr; }
  .quality-image { min-height: 290px; }
  .brief-form { padding: 20px; grid-template-columns: 1fr; }
  .brief-form .full { grid-column: auto; }
  .contact-methods { grid-template-columns: 1fr; }
  .city-directory { grid-template-columns: 1fr; }
  .footer-contact { align-items: flex-start; flex-direction: column; gap: 6px; }
  .site-footer { padding-top: 64px; }
  .mobile-actions { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; display: grid; min-height: 60px; border-top: 1px solid var(--line); background: var(--paper); grid-template-columns: 1fr 1.25fr; }
  .mobile-actions a { display: grid; place-items: center; color: var(--teal); font-size: 13px; font-weight: 800; }
  .mobile-actions a:last-child { color: var(--paper); background: var(--accent); }
  .brief-dialog { padding: 22px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
