/* 检测能力专属样式 — 作用域严格限定于 .gh-test */
.gh-test {
  --test-accent: #b5112a;
  --test-accent-hover: #8e0c20;
  --test-ink: #211a1e;
  --test-muted: #62575e;
  --test-line: #e7dfe2;
  --test-surface: #ffffff;
  --test-canvas: #f7f5f5;
  --test-soft-red: #fdf1f4;
  --test-soft-gray: #f8f5f6;
  --test-shadow: 0 10px 30px rgba(46, 24, 34, .07);

  color: var(--test-ink);
  background: var(--test-canvas);
  font-size: 1rem;
  line-height: 1.7;
  scrollbar-color: #c8bcc1 transparent;
}

.gh-test ::selection {
  color: #ffffff;
  background: var(--test-accent);
}

.gh-test :is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--test-accent);
  outline-offset: 4px;
}

.gh-test__wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

/* ---------- 1. Hero ---------- */
.gh-test__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
  background: #28181e;
}

.gh-test__hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.gh-test__hero-img {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.gh-test__hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #28181e 28%, rgba(40, 24, 30, .88) 52%, rgba(40, 24, 30, .38) 84%, rgba(40, 24, 30, .24) 100%),
    linear-gradient(180deg, rgba(40, 24, 30, .32) 0%, rgba(40, 24, 30, .60) 100%);
}

.gh-test__hero-inner {
  padding-block: 24px 78px;
}

.gh-test__hero a:focus-visible {
  outline-color: #ffffff;
}

.gh-test__crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #e7d8dd;
  font-size: .875rem;
}

.gh-test__crumb a {
  color: #f6e9ed;
  text-underline-offset: 3px;
}

.gh-test__crumb a:hover {
  text-decoration: underline;
}

.gh-test__intro {
  max-width: 68ch;
  margin-block-start: 28px;
}

.gh-test__intro h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.125rem, 4.4vw, 3.25rem);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.gh-test__hero-lead {
  margin: 16px 0 0;
  color: #f2e6ea;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.72;
}

.gh-test__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 24px;
}

.gh-test__btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.gh-test__btn--primary {
  background: var(--test-accent);
  color: #ffffff;
}

.gh-test__btn--primary:hover {
  background: var(--test-accent-hover);
  color: #ffffff;
}

.gh-test__btn--light {
  border-color: #957d87;
  background: #3f2933;
  color: #ffffff;
}

.gh-test__btn--light:hover {
  border-color: #e6d4db;
  background: #523643;
  color: #ffffff;
}

.gh-test__subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-block-start: 22px;
  padding-block-start: 16px;
  border-block-start: 1px solid rgba(255, 255, 255, .14);
}

.gh-test__subnav-label {
  color: #dfd0d5;
  font-size: .875rem;
}

.gh-test__subnav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 2px;
  color: #ffffff;
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .36);
  text-underline-offset: 4px;
}

.gh-test__subnav a:hover {
  text-decoration-color: #ffffff;
}

/* ---------- 2. 主体叠层与通用区块 ---------- */
.gh-test__body {
  position: relative;
  margin-block-start: -36px;
  padding-block-end: 64px;
}

.gh-test__section {
  margin-block-start: 56px;
}

.gh-test__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  margin-block-end: 22px;
}

.gh-test__section-head h2 {
  margin: 0;
  color: var(--test-ink);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 720;
  line-height: 1.28;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.gh-test__section-head p {
  margin: 0;
  max-width: 65ch;
  color: var(--test-muted);
  font-size: .9375rem;
}

/* ---------- 3. 叠层检测能力总览带 ---------- */
.gh-test__strip {
  border: 1px solid var(--test-line);
  border-radius: 16px;
  background: var(--test-surface);
  box-shadow: var(--test-shadow);
  overflow: hidden;
}

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

.gh-test__metric {
  padding: 24px 24px 22px;
}

.gh-test__metric + .gh-test__metric {
  border-inline-start: 1px solid var(--test-line);
}

.gh-test__metric-val {
  display: block;
  color: var(--test-accent);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.gh-test__metric-label {
  display: block;
  margin-block-start: 7px;
  color: var(--test-ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.gh-test__metric-sub {
  display: block;
  margin-block-start: 3px;
  color: var(--test-muted);
  font-size: .8125rem;
  line-height: 1.5;
}

/* ---------- 4. 出厂与型式试验双轨体系 + W7423 报告实证 ---------- */
.gh-test__dual {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, .88fr);
  gap: 24px;
  align-items: start;
}

.gh-test__tracks {
  display: grid;
  gap: 16px;
}

.gh-test__track-card {
  padding: clamp(20px, 2.5vw, 26px);
  border: 1px solid var(--test-line);
  border-inline-start: 4px solid var(--test-accent);
  border-radius: 14px;
  background: var(--test-surface);
}

.gh-test__track-card--type {
  border-inline-start-color: #28181e;
}

.gh-test__track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.gh-test__track-head h3 {
  margin: 0;
  color: var(--test-ink);
  font-size: 1.15rem;
  font-weight: 720;
}

.gh-test__track-tag {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--test-soft-red);
  color: var(--test-accent-hover);
  font-size: .78rem;
  font-weight: 650;
}

.gh-test__track-card--type .gh-test__track-tag {
  background: #f0eaec;
  color: var(--test-ink);
}

.gh-test__track-desc {
  margin: 10px 0 0;
  color: var(--test-muted);
  font-size: .9375rem;
  line-height: 1.65;
}

.gh-test__track-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-block-start: 1px solid var(--test-line);
  list-style: none;
}

.gh-test__track-list li {
  position: relative;
  padding-inline-start: 14px;
  color: var(--test-ink);
  font-size: .875rem;
  line-height: 1.55;
}

.gh-test__track-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .58em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--test-accent);
}

.gh-test__track-card--type .gh-test__track-list li::before {
  background: #4f3a43;
}

.gh-test__report-card {
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid #dfd3d7;
  border-radius: 14px;
  background: var(--test-surface);
}

.gh-test__report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 14px;
}

.gh-test__report-head h3 {
  margin: 0;
  color: var(--test-ink);
  font-size: 1.0625rem;
  font-weight: 720;
}

.gh-test__report-code {
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--test-soft-red);
  color: var(--test-accent-hover);
  font-size: .78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.gh-test__report-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--test-line);
  border-radius: 10px;
  background: #f5eff1;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.gh-test__report-trigger:hover {
  border-color: #d5aeb7;
  box-shadow: 0 8px 24px rgba(181, 17, 42, .10);
}

.gh-test__report-trigger img {
  display: block;
  width: 100%;
  max-height: 360px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
}

.gh-test__report-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.gh-test__report-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block-end: 8px;
  border-block-end: 1px solid #f2ecee;
}

.gh-test__report-row:last-child {
  padding-block-end: 0;
  border-block-end: 0;
}

.gh-test__report-row dt {
  color: var(--test-muted);
  font-size: .78rem;
  font-weight: 600;
}

.gh-test__report-row dd {
  margin: 0;
  color: var(--test-ink);
  font-size: .875rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  line-height: 1.48;
}

.gh-test__report-tip {
  margin: 12px 0 0;
  color: var(--test-accent-hover);
  font-size: .8125rem;
  font-weight: 600;
}

/* ---------- 5. 10台套试验设备矩阵与筛选 ---------- */
.gh-test__panel {
  padding: 22px;
  border: 1px solid var(--test-line);
  border-radius: 14px;
  background: var(--test-surface);
}

.gh-test__filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-block-end: 20px;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--test-line);
}

.gh-test__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gh-test__filter-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid #d9cfd4;
  border-radius: 8px;
  background: #ffffff;
  color: var(--test-ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.gh-test__filter-btn:hover {
  border-color: var(--test-accent);
  color: var(--test-accent-hover);
}

.gh-test__filter-btn[aria-pressed="true"] {
  border-color: var(--test-accent);
  background: var(--test-accent);
  color: #ffffff;
}

.gh-test__count {
  margin: 0;
  color: var(--test-muted);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}

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

.gh-test__equip-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--test-line);
  border-radius: 12px;
  background: var(--test-soft-gray);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.gh-test__equip-card:hover {
  border-color: #d5aeb7;
  box-shadow: 0 8px 22px rgba(46, 24, 34, .08);
}

.gh-test__equip-card[hidden] {
  display: none;
}

.gh-test__equip-link {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.gh-test__equip-thumb {
  aspect-ratio: 4 / 3;
  background: #ece6e8;
  overflow: hidden;
}

.gh-test__equip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-test__equip-body {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  padding: 14px 16px 16px;
  border-block-start: 1px solid var(--test-line);
  background: #ffffff;
}

.gh-test__equip-cat {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--test-soft-red);
  color: var(--test-accent-hover);
  font-size: .75rem;
  font-weight: 650;
}

.gh-test__equip-body strong {
  display: block;
  margin-block-start: 8px;
  color: var(--test-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.gh-test__equip-desc {
  display: block;
  margin-block-start: 5px;
  color: var(--test-muted);
  font-size: .84rem;
  line-height: 1.56;
}

/* ---------- 6. 12项核心检验项目与标准限值矩阵 ---------- */
.gh-test__table-shell {
  padding: 22px;
  border: 1px solid var(--test-line);
  border-radius: 14px;
  background: var(--test-surface);
}

.gh-test__table-panel {
  border: 1px solid var(--test-line);
  border-radius: 12px;
  background: var(--test-surface);
  overflow: hidden;
}

.gh-test__table-wrap {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(620px, 76vh);
  container-type: inline-size;
  scrollbar-width: thin;
}

.gh-test__table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  --col-1: "检测项目";
  --col-2: "试验类别";
  --col-3: "标准要求 / 关键限值";
  --col-4: "依据标准";
  --col-5: "检验性质";
}

.gh-test__table th,
.gh-test__table td {
  padding: 13px 16px;
  border-block-end: 1px solid var(--test-line);
  text-align: left;
  vertical-align: top;
  font-size: .92rem;
  line-height: 1.58;
}

.gh-test__table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: #f3eeef;
  color: var(--test-ink);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}

.gh-test__table tbody th[scope="row"] {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--test-surface);
  color: var(--test-ink);
  font-weight: 650;
}

.gh-test__table tbody td:nth-child(3),
.gh-test__table tbody td:nth-child(4) {
  font-variant-numeric: tabular-nums;
}

.gh-test__table tbody tr:last-child :is(th, td) {
  border-block-end: 0;
}

.gh-test__table tbody tr:hover :is(th, td) {
  background: #fdf9fa;
}

.gh-test__table tbody tr[hidden] {
  display: none;
}

.gh-test__nature {
  display: inline-flex;
  padding: 2px 9px;
  border: 1px solid var(--test-line);
  border-radius: 6px;
  background: var(--test-soft-gray);
  color: var(--test-ink);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

.gh-test__nature--both {
  border-color: #f0d7df;
  background: var(--test-soft-red);
  color: var(--test-accent-hover);
}

.gh-test__table-note {
  padding: 13px 18px;
  border-block-start: 1px solid var(--test-line);
  background: var(--test-soft-gray);
  color: var(--test-muted);
  font-size: .8125rem;
  line-height: 1.65;
}

@container (width < 680px) {
  .gh-test__table-wrap {
    max-block-size: none;
    overflow: visible;
    padding: 12px;
    background: var(--test-soft-gray);
  }

  .gh-test__table,
  .gh-test__table thead,
  .gh-test__table tbody,
  .gh-test__table tr,
  .gh-test__table th,
  .gh-test__table td {
    display: block;
    width: 100%;
  }

  .gh-test__table thead {
    display: none;
  }

  .gh-test__table tbody tr {
    margin-block-end: 12px;
    border: 1px solid var(--test-line);
    border-radius: 10px;
    background: var(--test-surface);
    overflow: hidden;
  }

  .gh-test__table tbody tr:last-child {
    margin-block-end: 0;
  }

  .gh-test__table tbody th[scope="row"] {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    padding: 11px 15px;
    border-block-end: 1px solid var(--test-line);
    background: #f5eff1;
  }

  .gh-test__table tbody td {
    padding: 9px 15px;
    border-block-end: 1px solid #f2ecef;
  }

  .gh-test__table tbody td:last-child {
    border-block-end: 0;
  }

  .gh-test__table tbody td:nth-child(2)::before {
    content: var(--col-2) "：";
    color: var(--test-muted);
    font-weight: 600;
    margin-inline-end: 6px;
  }

  .gh-test__table tbody td:nth-child(3)::before {
    content: var(--col-3) "：";
    color: var(--test-muted);
    font-weight: 600;
    margin-inline-end: 6px;
  }

  .gh-test__table tbody td:nth-child(4)::before {
    content: var(--col-4) "：";
    color: var(--test-muted);
    font-weight: 600;
    margin-inline-end: 6px;
  }

  .gh-test__table tbody td:nth-child(5)::before {
    content: var(--col-5) "：";
    color: var(--test-muted);
    font-weight: 600;
    margin-inline-end: 6px;
  }
}

/* ---------- 7. 5阶段全流程质控闭环 ---------- */
.gh-test__flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.gh-test__step {
  padding: 18px 16px;
  border: 1px solid var(--test-line);
  border-radius: 12px;
  background: var(--test-surface);
}

.gh-test__step-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--test-soft-red);
  color: var(--test-accent-hover);
  font-size: .75rem;
  font-weight: 680;
  letter-spacing: .02em;
}

.gh-test__step h3 {
  margin: 10px 0 0;
  color: var(--test-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.38;
}

.gh-test__step p {
  margin: 6px 0 0;
  color: var(--test-muted);
  font-size: .84rem;
  line-height: 1.58;
}

/* ---------- 8. 原生 <details> 验收答疑手风琴 ---------- */
.gh-test__faq {
  display: grid;
  gap: 10px;
}

.gh-test__faq details {
  border: 1px solid var(--test-line);
  border-radius: 12px;
  background: var(--test-surface);
  overflow: hidden;
}

.gh-test__faq summary {
  list-style: none;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  color: var(--test-ink);
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.45;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}

.gh-test__faq summary::-webkit-details-marker {
  display: none;
}

.gh-test__faq summary:hover {
  background: var(--test-soft-gray);
  color: var(--test-accent-hover);
}

.gh-test__faq summary::before {
  content: "";
  inline-size: 1em;
  block-size: 1em;
  flex-shrink: 0;
  background-color: var(--test-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.gh-test__faq details[open] > summary {
  border-block-end: 1px solid var(--test-line);
  background: var(--test-soft-gray);
}

.gh-test__faq details[open] > summary::before {
  rotate: 0deg;
}

.gh-test__faq details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.gh-test__faq details:not([open])::details-content {
  block-size: 0;
}

.gh-test__faq-body {
  padding: 14px 20px 16px 44px;
  color: var(--test-muted);
  font-size: .9375rem;
  line-height: 1.68;
}

.gh-test__faq-body p {
  margin: 0;
}

.gh-test__faq-body p + p {
  margin-block-start: 8px;
}

/* ---------- 9. 关联技术文库与底部 CTA ---------- */
.gh-test__links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-block-start: 20px;
}

.gh-test__inline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--test-accent-hover);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gh-test__inline-link .icon {
  width: 16px;
  height: 16px;
}

.gh-test__inline-link:hover {
  color: var(--test-accent);
}

.gh-test__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  margin-block-start: 52px;
  padding: clamp(24px, 3.2vw, 36px);
  border-radius: 14px;
  background: #28181e;
  color: #ffffff;
}

.gh-test__cta-copy {
  max-width: 60ch;
}

.gh-test__cta-copy h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.32;
}

.gh-test__cta-copy p {
  margin: 8px 0 0;
  color: #f0e2e7;
  font-size: .9375rem;
}

.gh-test__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 10. 原生 <dialog> 翻页灯箱 ---------- */
dialog.gh-test__dialog {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--test-line);
  border-radius: 14px;
  background: var(--test-surface);
  color: var(--test-ink);
  box-shadow: 0 24px 70px rgba(25, 12, 18, .34);
}

dialog.gh-test__dialog:modal {
  overscroll-behavior: contain;
}

dialog.gh-test__dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(25, 12, 18, .76);
}

.gh-test__dialog-inner {
  padding: clamp(16px, 3vw, 24px);
}

.gh-test__dialog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-block-end: 14px;
}

.gh-test__dialog-titlewrap {
  min-width: 0;
}

.gh-test__dialog-titlewrap h2 {
  margin: 0;
  color: var(--test-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.gh-test__dialog-counter {
  display: block;
  margin-block-start: 2px;
  color: var(--test-muted);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.gh-test__dialog-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-test__dialog-btn,
.gh-test__dialog-close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border: 1px solid var(--test-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--test-ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

.gh-test__dialog-close {
  color: var(--test-accent-hover);
}

.gh-test__dialog-btn:hover,
.gh-test__dialog-close:hover {
  border-color: var(--test-accent);
  background: var(--test-soft-red);
  color: var(--test-accent-hover);
}

.gh-test__dialog-media {
  border: 1px solid var(--test-line);
  border-radius: 10px;
  background: #f6f3f4;
  padding: 10px;
}

.gh-test__dialog-media img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin-inline: auto;
}

/* ---------- 11. 响应式与动效偏好 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .gh-test__faq summary::before {
    transition: rotate .2s ease;
  }

  .gh-test__faq details::details-content {
    transition: block-size .28s ease-in-out, content-visibility .28s ease-in-out, display .28s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

@media (min-width: 1200px) {
  .gh-test__hero-inner {
    padding-block-start: calc(var(--header-height, 80px) + 28px);
  }
}

@media (max-width: 1080px) {
  .gh-test__flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .gh-test__strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-test__metric:nth-child(odd) {
    border-inline-start: 0;
  }

  .gh-test__metric:nth-child(n+3) {
    border-block-start: 1px solid var(--test-line);
  }

  .gh-test__dual {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 820px) {
  .gh-test__wrap {
    width: calc(100% - 40px);
  }

  .gh-test__hero-img {
    width: 100%;
    opacity: .68;
  }

  .gh-test__hero-media::after {
    background: linear-gradient(180deg, rgba(40, 24, 30, .74) 0%, #28181e 95%);
  }

  .gh-test__hero-inner {
    padding-block: 22px 62px;
  }

  .gh-test__body {
    margin-block-start: -24px;
    padding-block-end: 44px;
  }
}

@media (max-width: 580px) {
  .gh-test__wrap {
    width: calc(100% - 32px);
  }

  .gh-test__metric {
    padding: 18px 16px;
  }

  .gh-test__metric-val {
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .gh-test__track-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gh-test__panel,
  .gh-test__table-shell {
    padding: 16px;
  }

  .gh-test__equip-grid,
  .gh-test__flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .gh-test__faq-body {
    padding: 12px 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh-test *,
  .gh-test *::before,
  .gh-test *::after {
    transition: none;
  }
}
