/*
Theme Name: 衡境测研
Author: 衡境测研
Description: 衡境测研室内空气检测官网轻量主题。
Version: 2.2.0
Requires PHP: 8.1
Text Domain: hengjing
*/
:root {
  --navy: #092d50;
  --ink: #25384a;
  --blue: #0075ad;
  --teal: var(--blue);
  --green: #14669b;
  --paper: #f6f8fa;
  --line: #e3e9ee;
  --muted: #697887;
  --white: #fff;
  --radius: 6px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--ink); font-size: 16px; line-height: 1.85; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.5; font-weight: 600; }
p { margin-bottom: 18px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* The supplied artwork is kept intact; the viewport removes its large white margins. */
.brand { display: block; position: relative; flex-shrink: 0; overflow: hidden; width: 226px; height: 74px; }
.brand img { position: absolute; width: 300px; height: 300px; max-width: none; left: -41px; top: -111px; }
.custom-logo { width: 226px; max-height: 74px; object-fit: contain; }
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; white-space: nowrap; }
.site-nav a { position: relative; padding-block: 33px; }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--blue); }
.site-nav a[aria-current=page]::after { content: ""; position: absolute; bottom: 20px; height: 2px; width: 20px; left: calc(50% - 10px); background: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 4px; background: var(--blue); color: white; font-size: 15px; font-weight: 500; line-height: 1.5; transition: background-color .18s, border-color .18s; }
.button:hover { background: #005f8f; }
.button.light { background: white; color: var(--blue); }
.button.outline { color: var(--blue); background: transparent; border-color: #c7d6df; }
.button.outline:hover { background: #edf5f9; border-color: var(--blue); }
.header-cta { min-height: 42px; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.menu-button { display: none; border: 0; background: transparent; color: var(--navy); font-size: 15px; padding: 10px; }
.preview-ribbon { padding: 5px 16px; text-align: center; background: var(--paper); color: #6a7883; font-size: 12px; }

.hero { background: #f7f9fb; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 72px; align-items: center; padding-block: 64px; }
.hero-copy { min-width: 0; padding-block: 8px; }
.hero-label { color: var(--blue); font-size: 15px; letter-spacing: 2px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 3.65vw, 50px); line-height: 1.5; letter-spacing: -.5px; margin-bottom: 22px; font-weight: 650; }
.hero h1 span { color: var(--blue); }
.hero-description { font-size: 17px; line-height: 1.95; color: var(--muted); margin-bottom: 30px; }
.hero-visual { min-width: 0; background: white; border-radius: 6px; overflow: hidden; }
.hero-visual > img { display: block; width: 100%; height: 448px; object-fit: cover; object-position: 52% 38%; }
.hero-visual figcaption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; font-size: 13px; color: var(--muted); }
.hero-visual figcaption a { color: var(--blue); white-space: nowrap; }

.search-card { padding: 32px; background: var(--paper); border-radius: var(--radius); }
.search-card h2 { font-size: 27px; margin-bottom: 10px; }
.search-card > p { font-size: 15px; color: var(--muted); margin-bottom: 25px; }
.search-compact { padding: 0; background: transparent; max-width: 490px; }
.city-form label { display: block; font-size: 14px; margin-bottom: 9px; color: var(--ink); }
.input-group { display: flex; min-width: 0; border: 1px solid #c8d4df; border-radius: 5px; padding: 4px; gap: 4px; background: white; }
.input-group input { width: 100%; min-width: 0; border: 0; padding: 9px 12px; color: var(--ink); background: transparent; font-size: 16px; }
.input-group .button { padding-inline: 20px; white-space: nowrap; min-height: 46px; }
.city-suggestions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 9px; font-size: 13px; color: var(--muted); }
.city-suggestions button { border: 0; background: transparent; color: #586f80; border-radius: 3px; padding: 4px 9px; min-height: 32px; font-size: 13px; }
.city-suggestions button:hover { background: #e8eff4; color: var(--blue); }
.search-card .search-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.query-result { margin-top: 16px; padding: 18px 20px; background: #edf4f8; border-left: 2px solid var(--blue); font-size: 14px; }
.query-result h3 { font-size: 17px; margin-bottom: 5px; }
.query-result p { margin-bottom: 8px; }
.query-result a { color: var(--blue); font-weight: 600; }

.section { padding-block: 80px; }
.section.soft { background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-heading h2 { font-size: 32px; margin-bottom: 10px; }
.section-heading p { color: var(--muted); font-size: 16px; margin: 0; max-width: 700px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--blue); white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.service-card { display: flex; flex-direction: column; padding: 32px 36px; background: var(--paper); border: 1px solid transparent; border-radius: var(--radius); transition: border-color .18s; }
.service-card:hover { border-color: #b9cfdc; }
.service-index { display: block; color: var(--blue); font-size: 15px; letter-spacing: 1px; margin-bottom: 18px; }
.service-card h2, .service-card h3 { font-size: 26px; margin-bottom: 12px; }
.service-card > p { color: var(--muted); font-size: 16px; margin-bottom: 25px; }
.service-bottom { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: auto; color: var(--muted); font-size: 13px; }
.service-bottom > span { min-width: 0; }
.service-bottom strong { color: var(--blue); font-size: 14px; font-weight: 500; white-space: nowrap; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 45px; }
.process-step { padding: 25px 0 10px; border-top: 1px solid #cbd8e0; }
.step-number { color: var(--blue); font-size: 28px; line-height: 1.2; font-weight: 400; }
.process-step h3 { font-size: 20px; margin: 18px 0 12px; }
.process-step p { font-size: 15px; color: var(--muted); margin: 0; }
.cta { padding-block: 60px; border-block: 1px solid var(--line); background: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta h2 { font-size: 28px; margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0; font-size: 15px; }
.cta .button { flex-shrink: 0; }

.site-footer { padding: 54px 0 22px; background: var(--paper); color: var(--muted); }
.site-footer .brand { mix-blend-mode: multiply; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 65px; }
.footer-company { font-size: 14px; margin: 20px 0 6px; color: #4f6170; }
.footer-desc { font-size: 13px; margin: 0; }
.footer-links { display: flex; flex-direction: column; align-items: start; gap: 8px; font-size: 14px; padding-top: 10px; }
.footer-links h3 { font-size: 16px; margin-bottom: 12px; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.mobile-bar { display: none; }

.page-head { padding: 38px 0 46px; background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a:hover { color: var(--blue); }
.page-head h1 { font-size: 38px; margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 790px; margin: 0; font-size: 16px; }
.content-width { max-width: 850px; }
.content-width h2 { font-size: 26px; margin: 34px 0 14px; }
.content-width p, .content-width li { color: #5c6d7c; }
.two-col { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 64px; align-items: start; }
.two-col > * { min-width: 0; }
.info-panel { padding: 30px 32px; background: var(--paper); border-radius: var(--radius); }
.info-panel h3 { font-size: 20px; margin-bottom: 16px; }
.info-panel p { font-size: 15px; color: var(--muted); }
.empty-state { padding: 32px 0; border-top: 1px solid var(--line); }
.empty-state h2 { font-size: 25px; margin-bottom: 14px; }
.empty-state p { color: var(--muted); max-width: 680px; }
.empty-state .button { margin-top: 10px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 3px; background: #edf4f8; color: var(--blue); font-size: 12px; }
.data-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.data-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
a.data-card:hover { border-color: #b9cfdc; }
.data-card h2, .data-card h3 { font-size: 22px; margin: 8px 0 14px; }
.data-card p { color: var(--muted); font-size: 15px; }
.definition-list { margin: 0; }
.definition-list > div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.definition-list dt { color: var(--muted); font-size: 14px; }
.definition-list dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

.about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: center; gap: 76px; }
.about-visual { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-visual img { display: block; width: 100%; height: 440px; object-fit: cover; object-position: 53% 36%; }
.about-visual figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px 22px; color: white; font-size: 13px; background: linear-gradient(transparent, #092d50b8); padding-top: 35px; }
.about-copy h2 { margin: 0 0 22px; font-size: 34px; line-height: 1.6; }
.about-copy .text-link { margin-top: 8px; }
.about-principles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 55px; border-top: 1px solid var(--line); padding-top: 38px; margin-top: 65px; }
.about-principles h3 { font-size: 20px; margin-bottom: 12px; }
.about-principles h3::before { content: ""; display: inline-block; width: 3px; height: 17px; margin-right: 12px; background: var(--green); vertical-align: -1px; }
.about-principles p { color: var(--muted); font-size: 15px; margin: 0; }
.company-line { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid var(--line); margin-top: 45px; padding-top: 30px; }
.company-line span { color: var(--muted); font-size: 13px; }
.company-line p { margin: 4px 0 0; font-size: 16px; }

.form-field { margin-bottom: 22px; }
.form-field > label { display: block; font-size: 14px; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c2d0db; border-radius: 4px; background: white; color: var(--ink); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:disabled, .form-field textarea:disabled { background: #f5f7f9; }
.form-help { font-size: 13px; color: var(--muted); margin-top: 7px; }
.notice { padding: 17px 20px; background: var(--paper); border-left: 2px solid #afc5d3; font-size: 14px; margin-bottom: 28px; color: #5e7180; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: start; gap: 10px; font-size: 14px; margin-bottom: 24px; }
.consent input { margin-top: 7px; width: 17px; height: 17px; }
.consent a { color: var(--blue); text-decoration: underline; }
.status-message { margin-top: 20px; font-size: 15px; }
.status-message.error { color: #a72d2d; }
.status-message.success { padding: 20px; background: #eef6ef; color: #356746; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { font-size: 16px; font-weight: 600; cursor: pointer; }
details p { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.wp-block-image { margin-inline: 0; }

@media (max-width: 1150px) {
  .wrap { width: calc(100% - 64px); }
  .site-nav { gap: 18px; font-size: 13px; }
  .header-inner { gap: 18px; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: 40px; }
  .hero-visual > img { height: 425px; }
  .hero-visual figcaption { padding-inline: 18px; font-size: 12px; }
  .two-col, .about-grid { gap: 42px; }
}
@media (max-width: 1040px) {
  .site-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); padding: 15px 32px; gap: 22px; font-size: 15px; }
  .site-nav.is-open { display: flex; flex-wrap: wrap; }
  .site-nav a { padding-block: 10px; }
  .site-nav a[aria-current=page]::after { bottom: 3px; }
  .header-inner { height: 84px; }
  .menu-button { display: block; margin-left: auto; }
  .hero-grid { gap: 34px; padding-block: 50px; }
  .hero h1 { font-size: 36px; }
  .hero-description { font-size: 16px; }
  .hero-visual figcaption { display: block; }
  .hero-visual figcaption a { display: block; margin-top: 2px; }
  .section { padding-block: 65px; }
  .section-heading h2 { font-size: 29px; }
  .service-card { padding: 28px; }
  .about-copy h2 { font-size: 29px; }
  .about-visual img { height: 420px; }
  .about-principles, .process-grid { gap: 30px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 74px; gap: 14px; }
  .brand { width: 188px; height: 61px; }
  .brand img { width: 250px; height: 250px; left: -34px; top: -93px; }
  .custom-logo { width: 188px; max-height: 61px; }
  .header-cta { display: none; }
  .site-nav { top: 74px; flex-direction: column; align-items: stretch; padding: 12px 20px; gap: 0; }
  .site-nav a { padding: 10px 0; }
  .site-nav a[aria-current=page]::after { display: none; }
  .preview-ribbon { font-size: 11px; padding: 5px 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 34px 36px; }
  .hero-label { font-size: 13px; letter-spacing: 1px; margin-bottom: 13px; }
  .hero h1 { font-size: clamp(30px, 6.7vw, 42px); letter-spacing: 0; margin-bottom: 16px; }
  .hero-description { margin-bottom: 24px; }
  .hero-copy { padding: 0; }
  .search-compact { max-width: none; }
  .hero-visual > img { height: 340px; object-position: 52% 36%; }
  .hero-visual figcaption { display: flex; padding: 14px 16px; }
  .hero-visual figcaption a { margin: 0; }
  .search-card:not(.search-compact) { padding: 24px; }
  .search-card h2 { font-size: 24px; }
  .input-group .button { padding-inline: 15px; font-size: 14px; }
  .input-group input { padding-inline: 9px; }
  .section { padding-block: 48px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading p { font-size: 15px; }
  .service-grid, .process-grid, .two-col, .data-grid, .about-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 20px; }
  .service-card { padding: 26px; }
  .service-card h2, .service-card h3 { font-size: 24px; }
  .service-index { margin-bottom: 12px; }
  .service-bottom { gap: 16px; }
  .service-bottom > span { font-size: 12px; }
  .process-grid { gap: 12px; }
  .process-step { position: relative; padding: 24px 0 22px 54px; }
  .step-number { position: absolute; left: 0; top: 29px; font-size: 24px; }
  .process-step h3 { margin: 0 0 10px; font-size: 19px; }
  .cta { padding-block: 40px; }
  .cta-inner { flex-direction: column; align-items: start; gap: 24px; }
  .cta h2 { font-size: 24px; }
  .page-head { padding: 25px 0 30px; }
  .breadcrumbs { margin-bottom: 16px; font-size: 12px; }
  .page-head h1 { font-size: 30px; margin-bottom: 8px; }
  .page-head p { font-size: 15px; }
  .info-panel { padding: 25px; }
  .empty-state { padding: 25px 0; }
  .empty-state h2 { font-size: 23px; }
  .content-width h2 { font-size: 23px; }
  .definition-list > div { grid-template-columns: 1fr; gap: 4px; }
  .about-grid { gap: 30px; }
  .about-copy { grid-row: 1; }
  .about-copy h2 { font-size: 28px; }
  .about-visual img { height: 360px; object-position: 53% 35%; }
  .about-principles { grid-template-columns: 1fr; gap: 28px; margin-top: 38px; padding-top: 30px; }
  .about-principles h3 { font-size: 19px; margin-bottom: 8px; }
  .company-line { flex-direction: column; align-items: start; margin-top: 32px; padding-top: 24px; gap: 18px; }
  .company-line p { font-size: 15px; }
  .site-footer { padding: 36px 0 calc(90px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-company { font-size: 13px; margin-top: 14px; }
  .footer-links { padding: 0; font-size: 13px; gap: 8px; }
  .footer-links h3 { font-size: 15px; margin-bottom: 5px; }
  .footer-bottom { flex-direction: column; gap: 4px; margin-top: 30px; font-size: 11px; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: white; border-top: 1px solid var(--line); padding: 9px 20px calc(9px + env(safe-area-inset-bottom)); gap: 12px; }
  .mobile-bar a { flex: 1; min-height: 43px; padding: 10px; font-size: 14px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 30px; }
  .hero-visual figcaption { display: block; }
  .hero-visual figcaption a { margin-top: 4px; }
  .hero-visual > img { height: 300px; }
  .search-card:not(.search-compact) { padding: 19px; }
  .city-suggestions { gap: 4px; }
  .city-suggestions button { padding-inline: 7px; }
  .input-group .button { gap: 6px; padding-inline: 12px; }
  .service-card { padding: 23px; }
  .service-bottom { flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

