:root {
  --bg: #dfe3e8;
  --panel: #f2f4f6;
  --panel-2: #e8ebef;
  --text: #1e293b;
  --muted: #64748b;
  --line: rgba(0, 0, 0, 0.06);
  --brand: #1565c0;
  --brand-2: #0d47a1;
  --accent: #0288d1;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: box-shadow 160ms ease;
}
.site-header.is-elevated {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.brand-mark {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  background: url("./assets/images/brand-mark.png") center / contain no-repeat,
    linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
}
.brand-slogan {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-slogan-big {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.nav {
  display: flex;
  justify-content: center;
}
.nav-menu {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item > a {
  display: inline-flex;
  align-items: center;
}
.nav-menu a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 150ms ease, color 150ms ease;
}
.nav-menu a.is-current {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}
.nav-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}
.nav-item-has-sub .nav-submenu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 260px;
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}
.nav-item-has-sub:hover .nav-submenu,
.nav-item-has-sub:focus-within .nav-submenu,
.nav-item-has-sub.is-open .nav-submenu {
  display: flex;
}
.nav-submenu a {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--text);
}
.nav-submenu a:hover {
  background: rgba(0, 0, 0, 0.04);
}
.nav-submenu a.is-current {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-lines {
  width: 18px;
  height: 12px;
  background: linear-gradient(
    to bottom,
    var(--text) 0 2px,
    transparent 2px 5px,
    var(--text) 5px 7px,
    transparent 7px 10px,
    var(--text) 10px 12px
  );
  border-radius: 2px;
}

.header-cta {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 120ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease,
    box-shadow 150ms ease;
  user-select: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}
.btn-secondary {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}
.btn-block {
  width: 100%;
  padding: 12px 14px;
}

/* Hero */
.hero {
  position: relative;
  padding: 10px 0 0;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--panel);
}
.hero-capabilities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 16px 14px;
  border-right: 1px solid var(--line);
  justify-content: center;
}
.hero-cap-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  padding: 0;
  letter-spacing: 0.2px;
}
.hero-cap {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hero-cap:hover {
  border-color: var(--brand);
  background: rgba(21, 101, 192, 0.08);
}
.hero-slider-wrap {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}
.hero-slider {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  width: 100%;
  max-width: none;
}

/* 实验室与设备页轮播 */
.labs-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow);
}
.labs-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
}

/* 仅 labs 页：放大右侧轮播占比 */
.feature.feature-labs {
  grid-template-columns: minmax(420px, 580px) minmax(560px, 780px);
  gap: 12px;
  align-items: start;
  justify-content: center;
}

/* 仅 labs 页：左侧文案更靠近轮播 + 适度调小字号 */
.feature.feature-labs .feature-left {
  justify-self: stretch;
}
.feature.feature-labs .feature-badges {
  gap: 6px;
  margin-bottom: 8px;
}
.feature.feature-labs .badge {
  padding: 5px 9px;
  font-size: 14px;
}
.feature.feature-labs .feature-title {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.feature.feature-labs .feature-list {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
  padding-left: 18px;
}
.feature.feature-labs .feature-actions {
  gap: 8px;
}
.labs-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.01) translateZ(0);
  transition: opacity 600ms ease, transform 700ms ease;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}
.labs-slide.is-active {
  opacity: 1;
  transform: scale(1) translateZ(0);
}
.labs-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
}
.labs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.labs-arrow:hover {
  background: rgba(0, 0, 0, 0.45);
}
.labs-arrow-prev {
  left: 14px;
}
.labs-arrow-next {
  right: 14px;
}
.labs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: rgba(0, 0, 0, 0.04);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.01) translateZ(0);
  transition: opacity 600ms ease, transform 700ms ease;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1) translateZ(0);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 62%, rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
}
.hero-content {
  position: relative;
  padding: 24px 20px 28px;
  max-width: 480px;
}
.hero-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.hero-title {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.18;
  margin: 14px 0 10px;
  letter-spacing: 0.2px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-title-accent {
  color: #e0f7fa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  margin: 0 0 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.metric {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.metric-value {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.metric-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

/* 轮播图下资质证书框（直观展示证书预览） */
.hero-certs {
  padding: 32px 0 40px;
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-certs-head {
  margin-bottom: 20px;
}
.hero-certs-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}
.hero-certs-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.hero-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.hero-cert-card {
  margin: 0;
}
.hero-cert-preview {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.hero-cert-preview:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.12);
}
.hero-cert-frame {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 210 / 297;
  min-height: 160px;
}
.hero-cert-embed,
.hero-cert-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  border: none;
  display: block;
  pointer-events: none;
  object-fit: contain;
  background: #fff;
}
.hero-cert-name {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.hero-cert-meta {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 12px;
  color: var(--muted);
}
.hero-certs-footer {
  text-align: center;
}
.hero-certs-footer .btn {
  min-width: 280px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}
.hero-arrow:active {
  transform: translateY(-50%) scale(0.98);
}
.hero-arrow-prev {
  left: 14px;
}
.hero-arrow-next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}
.dot.is-active {
  background: #fff;
  transform: scale(1.08);
}

/* Sections */
.section {
  padding: 58px 0;
}
.section-alt {
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.page-labs .section-head {
  margin-bottom: 14px;
}
.page-labs .section-title-labs {
  font-size: 34px;
  margin: 0;
  line-height: 1.12;
}

/* labs 页：左侧文案更整齐一些 */
.page-labs .feature.feature-labs .feature-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.page-labs .feature.feature-labs .feature-badges {
  margin-top: 12px;
  margin-bottom: 14px;
}
.page-labs .feature.feature-labs .feature-list li + li {
  margin-top: 6px;
}
.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.grid {
  display: grid;
  gap: 14px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-feature {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px 20px 18px;
}
.case-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.case-feature-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.case-feature-intro,
.case-feature-body {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.case-feature-media {
  border-radius: calc(var(--radius) + 4px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.case-feature-img {
  display: block;
  width: 100%;
  height: auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 170px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.card-title {
  margin: 12px 0 6px;
  font-size: 18px;
  color: var(--text);
}
.card-text {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.card-link {
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  color: var(--brand);
}
a.card-as-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
a.card-as-link:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.12);
}

.cert-card {
  padding: 14px;
}
.cert-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: #fff;
}
.cert-embed,
.cert-preview {
  width: 100%;
  height: 210px;
  border: none;
  display: block;
  object-fit: contain;
  background: #fff;
}
.cert-img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: contain;
  background: #fff;
}
.cert-thumb {
  height: 170px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.08), rgba(38, 166, 154, 0.06)),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0 10px, transparent 10px 20px);
  margin-bottom: 12px;
  display: block;
}
.cert-thumb:hover {
  filter: brightness(1.06);
}
.cert-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn-small {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.pill {
  padding: 16px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.pill-title {
  font-weight: 800;
}
.pill-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}
.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
}
.feature-title {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--text);
}
.feature-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
}
.feature-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.media-card {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--text);
}
.media-card-top {
  height: 220px;
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.15), rgba(38, 166, 154, 0.1)),
    radial-gradient(380px 220px at 70% 30%, rgba(0, 0, 0, 0.04), transparent 60%);
}
.media-card-bottom {
  padding: 14px 16px 16px;
}
.media-card-title {
  font-weight: 800;
  color: var(--text);
}
.media-card-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.stat-title {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.stat-value {
  font-size: 28px;
  font-weight: 900;
  margin-top: 8px;
  color: var(--text);
}
.stat-desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.contact-title {
  margin: 0;
  font-size: 26px;
  color: var(--text);
}
.contact-desc {
  margin: 8px 0 14px;
  color: var(--muted);
}
.contact-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mini-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 12px;
  color: var(--text);
}
.mini-card-title {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.mini-card-value a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 900;
  color: var(--brand);
}
.contact-form {
  border-radius: calc(var(--radius) + 6px);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--line);
  padding: 14px;
}
.service-detail {
  margin-top: 28px;
}

/* 可靠性与环境工程试验 - 测试项分类 */
.test-category {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.test-category:first-of-type {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}
.test-category-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.test-category-sub {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.test-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.test-tags .badge {
  margin: 0;
}
.test-items-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px !important;
  width: 100%;
}
.test-item-card {
  display: block !important;
  padding: 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
  transition: border-color 150ms ease, box-shadow 150ms ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
.test-item-card:hover {
  border-color: var(--brand) !important;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.08) !important;
}
.test-item-title {
  display: block !important;
  margin: 0 0 6px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.3 !important;
}
.test-item-desc {
  display: block !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
}
.service-detail + .service-detail {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.service-detail-title {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--text);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
.field-span {
  grid-column: 1 / -1;
}
.field-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.15);
}
.form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Footer */
.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
}
.footer-brand {
  font-weight: 900;
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
  }
  .brand {
    grid-area: brand;
  }
  .header-cta {
    grid-area: cta;
  }
  .nav {
    grid-area: nav;
    justify-content: flex-start;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    width: 100%;
    padding: 10px 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    margin-top: 10px;
    flex-wrap: wrap;
  }
  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-item-has-sub {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-item-has-sub .nav-submenu {
    position: static;
    margin-top: 4px;
    width: 100%;
    padding: 0 0 4px 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    gap: 2px;
  }
  .nav-submenu a {
    padding: 4px 8px;
    font-size: 13px;
  }
  .header-cta .btn-ghost {
    display: none;
  }
  .hero-wrap {
    grid-template-columns: 1fr;
  }
  .hero-capabilities {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .hero-cap {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
  }
  .hero-slider-wrap {
    justify-content: stretch;
  }
  .hero-slider {
    max-width: none;
  }
  .hero-certs-grid {
    grid-template-columns: 1fr;
  }
  .hero-certs-footer .btn {
    min-width: 0;
    width: 100%;
  }
  .hero-content {
    padding: 20px 14px 24px;
  }
  .hero-arrow {
    display: none;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

