:root {
  --brand-primary: #0b6353;
  --brand-secondary: #2f7666;
  --brand-accent: #a66a1f;
  --brand-gradient: #0b6353;

  --text-primary: #17231f;
  --text-secondary: #56635e;
  --text-tertiary: #7a8782;

  --bg-body: #f3f5f4;
  --bg-paper: #ffffff;

  --border-color: #d9e0dd;
  --border: #d3dcd8;

  --danger: #b4232f;
  --success: #14735f;
  --warning: #a86614;

  --shadow-sm: 0 1px 2px rgba(21, 41, 34, 0.04);
  --shadow-md: 0 4px 12px rgba(21, 41, 34, 0.06);
  --shadow-lg: 0 8px 24px rgba(21, 41, 34, 0.08);
  --shadow-xl: 0 16px 40px rgba(21, 41, 34, 0.10);

  --radius-md: 5px;
  --radius-lg: 7px;
  --radius-xl: 8px;
  --radius-full: 4px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-body);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
/* 表格单元格内的窄表单（如退款流水号）：纵向堆叠，间距小于 .form */
.stack-sm { display: flex; flex-direction: column; gap: 0.25rem; }
/* 对公收款账户信息块：标签/值成对，值可长（银行账号）需可换行 */
.payee-block { display: grid; gap: 0.5rem; margin: 0; }
.payee-block > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.payee-block dt { color: var(--text-secondary); font-size: 0.875rem; margin: 0; }
.payee-block dd { margin: 0; text-align: right; word-break: break-all; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.text-sm { font-size: 0.875rem; }
.muted { color: var(--text-secondary); }
.font-bold { font-weight: 700; }

/* 1. Header Logic - Fix Overlap */
.topstrip {
  /* #065f46 vs #fff gives ~7.7:1 contrast, meeting 4.5:1 for 12px text */
  background: #065f46;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.topbar__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand__name { font-size: 1.25rem; font-weight: 700; color: var(--brand-primary); }

.search { flex: 1; max-width: 400px; margin: 0 24px; position: relative; }
.search input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.search input:focus { outline: none; border-color: var(--brand-primary); background: #fff; box-shadow: 0 0 0 4px rgba(11,99,83,0.1); }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; border-radius: var(--radius-full); padding: 0 12px; }

/* 2. Sub-nav Fix */
.navcats {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.navcats__inner { display: flex; gap: 12px; justify-content: center; }
.cat-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  text-decoration: none;
}
.cat-pill.is-active { background: var(--brand-primary); color: #fff; }
.cat-pill:not(.is-active):hover { background: #f3f4f6; }

/* 3. Main Content Spacing */
main.wrap { padding-top: 40px; padding-bottom: 80px; }

/* 4. Hero Section - Refined */
.home-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #1e293b;
  min-height: 320px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-xl);
}
.home-hero__bg {
  position: absolute;
  inset: 0;
  background: url("/static/hero-environmental-testing-v2.465a641ea0fb.webp") center/cover no-repeat;
}
/* Solid translucent veil (no gradient) over the text-side only, so the photo stays clear on the right. */
.home-hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 58%;
  background: rgba(241, 246, 244, 0.92);
}
.home-hero__content { position: relative; z-index: 10; padding: 60px; color: #fff; max-width: 600px; }
.home-hero h1 { font-size: 3rem; margin-bottom: 16px; line-height: 1.1; }
.home-hero p { font-size: 1.125rem; color: #cbd5e1; margin-bottom: 32px; }

/* 5. Buttons - Clean Pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.btn--primary:hover { background: #084d41; border-color: #084d41; }
.btn--secondary { background: #fff; border-color: #cbd5e1; color: var(--text-primary); }
.btn--secondary:hover { border-color: #839991; background: #f4f7f5; color: var(--brand-primary); }
.btn--ghost { background: #f8fafc; border-color: #e2e8f0; color: var(--text-primary); }
.btn--ghost:hover { background: #eef2f0; border-color: #9cada6; color: var(--brand-primary); }
.btn--sm { min-height: 32px; padding: 6px 12px; font-size: 0.8rem; }
.action-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 6. Product Cards - Minimalist Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-primary); }
.product-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); text-decoration: none; }
.product-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.product-card__price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.price-tag { font-size: 1.5rem; font-weight: 700; color: var(--brand-primary); }

/* 7. Trust Bar - Icons */
.trust-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.trust-item { background: #fff; padding: 20px; border-radius: var(--radius-md); border: 1px solid #f1f5f9; display: flex; align-items: center; gap: 12px; }
.trust-icon { width: 44px; height: 44px; border-radius: 50%; background: transparent; color: var(--brand-primary); display: grid; place-items: center; }
/* 8. PDP Grid & Buy Box */
.pdp-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.sticky-buy-box { position: sticky; top: 100px; background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid #f1f5f9; box-shadow: var(--shadow-lg); }
.buybox-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dce3e0;
  color: #56635e;
  font-size: 0.85rem;
  line-height: 1.55;
}
.notice-box {
  border: 1px solid #cbdad4;
  background: #f3f7f5;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.notice-box__title {
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-list {
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
}
.trust-panel {
  border: 1px solid #cbdad4;
  background: #f3f7f5;
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.trust-panel--compact { gap: 10px; padding: 14px; }
.trust-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-panel__header h3 {
  margin: 0;
  font-size: 1rem;
  color: #174f41;
}
.trust-panel__lead {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.55;
}
.trust-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.trust-panel__item {
  border: 1px solid #d9e2de;
  border-radius: 5px;
  background: #fff;
  padding: 10px;
}
.trust-panel__item-title {
  color: #174f41;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.trust-panel__item-desc {
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.5;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.status-overview__card {
  background: #fff;
  border: 1px solid #e7edf9;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.status-overview__label {
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.status-overview__value {
  font-weight: 700;
  font-size: 1.03rem;
  margin-bottom: 6px;
}
.status-overview__meta {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.step {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid #dbe5f6;
  color: #64748b;
  background: #fff;
  padding: 8px 10px;
}
.step.is-current {
  color: #fff;
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}
.step.is-done {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.order-summary-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.invoice-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.invoice-split-card {
  border: 1px solid #e5edf9;
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fbfdff;
  display: grid;
  gap: 6px;
}
.invoice-split-card__title {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}
.invoice-split-card__amount {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
.toolbar .field { margin: 0; }
.toolbar .field label {
  font-size: 0.76rem;
  color: #64748b;
}
.toolbar input,
.toolbar select { min-width: 140px; }
.queue-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.queue-card {
  border: 1px solid #e5edf9;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fbff;
}
.queue-card__label {
  color: #64748b;
  font-size: 0.76rem;
}
.queue-card__value {
  margin-top: 4px;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 1.05rem;
}
.status-groups {
  display: grid;
  gap: 12px;
}
.status-group {
  border: 1px solid #e8eef8;
  border-radius: var(--radius-md);
  background: #fff;
}
.status-group__hd {
  padding: 10px 14px;
  border-bottom: 1px solid #edf2fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status-group__title {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
}
.status-group__count {
  color: #475569;
  font-size: 0.8rem;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-sticky th:first-child,
.table-sticky td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}
.table-sticky th:first-child { background: rgba(15, 23, 42, 0.03); }
.table-sticky th:last-child,
.table-sticky td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
}
.table-sticky th:last-child { background: rgba(15, 23, 42, 0.03); }
.mobile-sticky-cta {
  display: none;
}

/* 9. Form Control Fixes */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.875rem; }
.form-control { width: 100%; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid #e2e8f0; background: #fff; }
.form-control:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(11,99,83,0.1); }

/* 10. Radio Button Simulation */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.peer:checked + .btn--secondary { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* 11. Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: 0.75; }
.badge--brand,
.badge--progress { background: #e9f3ef; border-color: #bcd6cd; color: var(--brand-primary); }
.badge--waiting { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.badge--done,
.badge--success,
.badge--teal { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.badge--warning { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.badge--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.badge--muted { background: #f8fafc; border-color: #e2e8f0; color: #475569; }

/* 12. Footer */
.footer { background: #0f172a; border-top: 1px solid rgba(148,163,184,0.18); padding: 60px 0 40px; margin-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer h4 { margin-bottom: 20px; font-size: 1rem; color: #fff; }
.footer a { display: block; margin-bottom: 10px; color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,0.18);
  color: #94a3b8;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------------- */
/* Core components used by templates (MVP)                                    */
/* ------------------------------------------------------------------------- */

.messages { display: grid; gap: 10px; margin-bottom: 16px; }
.msg {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 500;
}
.msg--error { background: #fef2f2; border-color: rgba(220,38,38,0.25); color: #991b1b; }
.msg--success { background: #ecfdf5; border-color: rgba(16,185,129,0.25); color: #065f46; }
.msg--info { background: #eef6f3; border-color: rgba(11,99,83,0.25); color: #0b5144; }

.hero {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: #eef2f0;
  border: 1px solid #d4ddda;
  margin-bottom: 14px;
}
.hero h1 { font-size: 2rem; line-height: 1.1; margin-bottom: 6px; }
.hero p { color: var(--text-secondary); }

.card {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card__hd {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
}
.card__bd { padding: 18px; }
.card__ft {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.02);
}

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.03);
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}
.table tr:hover td { background: rgba(15, 23, 42, 0.02); }

.form { display: grid; gap: 14px; max-width: 720px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.875rem; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  background: #fff;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(11,99,83,0.10);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.pill:hover,
.chip:hover { background: #fff; border-color: #94a8a0; box-shadow: none; }
.chip.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.75rem;
  color: #475569;
}
.tag--brand { background: #e9f3ef; border-color: #bcd6cd; color: var(--brand-primary); }

.login-wrap { display: grid; place-items: center; padding: 44px 0; }
.login-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 28px 22px;
  box-shadow: var(--shadow-xl);
}
.login-card__brand { font-weight: 700; color: var(--brand-primary); letter-spacing: 0.02em; margin-bottom: 12px; }
.login-card__title { font-size: 1.6rem; margin-bottom: 6px; }
.login-card__sub { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }
.login-card__footer { margin-top: 14px; color: var(--text-secondary); font-size: 0.875rem; }
.login-card__footer a { color: var(--brand-primary); text-decoration: none; font-weight: 700; }
.login-card__footer a:hover { text-decoration: underline; }

.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.nav-link:hover { background: #eef3f1; color: var(--brand-primary); }

.topstrip__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topstrip__right { display: flex; gap: 14px; flex-wrap: wrap; }
.topstrip__right a { color: #fff; opacity: 0.95; text-decoration: none; }
.topstrip__right a:hover { text-decoration: underline; opacity: 1; }

.linklike { color: inherit; font: inherit; background: transparent; border: none; cursor: pointer; }

/* ------------------------------------------------------------------------- */
/* Lightweight utility classes (subset used by templates)                    */
/* ------------------------------------------------------------------------- */

.hidden { display: none; }
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.cursor-pointer { cursor: pointer; }
.flex-1 { flex: 1 1 0%; }
.flex-\\[2\\] { flex: 2 2 0%; }
.w-full { width: 100%; }

.gap-1 { gap: 0.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }

.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 500; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; }

.text-primary { color: var(--brand-primary); }
.text-secondary { color: var(--text-secondary); }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-blue-700 { color: #1d4ed8; }
.text-yellow-800 { color: #92400e; }
.text-red-500 { color: #ef4444; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.bg-white { background: #fff; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-blue-50 { background: #eff6ff; }
.bg-yellow-50 { background: #fffbeb; }

.border { border: 1px solid var(--border-color); }
.border-0 { border-width: 0; }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-gray-100 { border-color: #f1f5f9; }
.border-blue-200 { border-color: #bfdbfe; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow-sm { box-shadow: var(--shadow-sm); }

.grid-cols-1 { grid-template-columns: 1fr; }
.grid { display: grid; gap: 16px; }

.col-span-full { grid-column: 1 / -1; }

.divide-y > * + * { border-top: 1px solid var(--border-color); }
.divide-gray-100 > * + * { border-color: #f1f5f9; }

.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-shadow { transition: box-shadow 0.25s, transform 0.25s; }

/* Tailwind-like variant class names used in templates (escaped colons) */
.hover\\:underline:hover { text-decoration: underline; }
.hover\\:bg-gray-50:hover { background: #f9fafb; }
.hover\\:shadow-lg:hover { box-shadow: var(--shadow-lg); }

.last\\:mb-0:last-child { margin-bottom: 0; }


.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; border-color: #b91c1c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25); }
.btn--warning { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn--warning:hover { background: #d97706; border-color: #d97706; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.24); }

/* show/hide helpers used by older templates */
.only-mobile { display: none; }

/* Mobile */
@media (max-width: 768px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .sticky-buy-box { position: static; margin-top: 24px; }
  .home-hero h1 { font-size: 2rem; }
  .home-hero__content { padding: 40px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__inner { flex-direction: column; height: auto; padding: 12px; gap: 12px; }
  .search { margin: 0; width: 100%; }
  .row { grid-template-columns: 1fr; }
  .status-overview { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .invoice-split-grid { grid-template-columns: 1fr; }
  .trust-panel__grid { grid-template-columns: 1fr; }
  .queue-overview { grid-template-columns: 1fr 1fr; }
  .table-sticky th:first-child,
  .table-sticky td:first-child,
  .table-sticky th:last-child,
  .table-sticky td:last-child {
    position: static;
    background: inherit;
  }
  .table-stack thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }
  .table-stack tr {
    border: 1px solid #e8eef8;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
  }
  .table-stack td {
    border-bottom: 1px solid #e4e9e7;
    padding: 9px 12px;
  }
  .table-stack td:last-child { border-bottom: none; }
  .table-stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #dbe5f6;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  body.has-mobile-cta main.wrap { padding-bottom: 150px; }
  .only-desktop { display: none; }
  .only-mobile { display: block; }
}

@media (min-width: 768px) {
  .md\\:block { display: block; }
  .md\\:hidden { display: none; }
  .md\\:flex-row { flex-direction: row; }
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}


.pdp-grid > * { min-width: 0; }
.pdp-title { font-size: 2.5rem; margin-bottom: 16px; line-height: 1.08; overflow-wrap: anywhere; }

/* Compact key-value spec block on the package detail page. */
.pdp-specs {
  border: 1px solid #d9e0dd;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.pdp-specs__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e4e9e7;
}
.pdp-specs__row:last-child { border-bottom: 0; }
.pdp-specs__label { color: #64716c; font-size: 0.82rem; }
.pdp-specs__value { color: #1b2924; font-size: 0.9rem; font-weight: 500; }

/* Left-aligned enterprise-style quote block in the buy box. */
.buybox-pricing {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e8e6;
}
.buybox-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.buybox-price__amount {
  color: var(--brand-primary);
  font-size: 1.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.buybox-price__unit { color: #56635e; font-size: 0.88rem; }
.buybox-basis {
  margin-top: 6px;
  color: #64716c;
  font-size: 0.8rem;
  line-height: 1.6;
}
.verify-field-shell input { min-width: 0; }
.card__bd > .table { min-width: 640px; }
.card__bd > .table.table-stack { min-width: 0; }

.staff-body { background: #f6f8fb; }
.staff-topbar {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e6edf7;
}
.staff-topbar__inner {
  min-height: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.staff-brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.staff-brand__name { color: var(--brand-primary); font-weight: 700; font-size: 1.12rem; }
.staff-brand__tag { color: #64748b; font-size: 0.82rem; font-weight: 700; }
.staff-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.staff-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #334155;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.staff-nav__link:hover { color: var(--brand-primary); background: #edf3f0; border-color: #d4dfdb; }
.staff-nav__button { background: transparent; cursor: pointer; font: inherit; }
.staff-logout { margin: 0; display: inline-flex; }
.staff-badge { margin-left: 5px; color: #fff; background: #dc2626; border-radius: 999px; padding: 2px 6px; font-size: 0.72rem; line-height: 1; }
.staff-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px 56px; }
.staff-wrap .hero { margin-bottom: 18px; padding: 22px 24px; }
.staff-wrap .hero h1 { font-size: 1.7rem; }


/* first-card mobile conversion overrides */
@media (max-width: 768px) {
  .topstrip { padding: 6px 0; }
  .topstrip__inner { justify-content: center; }
  .topstrip__right { display: none; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.1rem; }
  .topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: auto;
    padding: 10px 14px;
    gap: 8px 10px;
  }
  .search { grid-column: 1 / -1; margin: 0; width: 100%; max-width: none; }
  .search input { padding: 9px 76px 9px 12px; }
  .nav { justify-content: flex-end; gap: 6px; }
  .nav-link { padding: 6px 8px; font-size: 0.82rem; }
  .navcats { padding: 8px 0; overflow-x: auto; }
  .navcats__inner {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px;
    scrollbar-width: none;
  }
  .navcats__inner::-webkit-scrollbar { display: none; }
  .cat-pill { flex: 0 0 auto; white-space: nowrap; padding: 7px 12px; }
  main.wrap { padding-top: 20px; padding-bottom: 56px; }
  .home-hero { min-height: 220px; margin-bottom: 20px; border-radius: 16px; }
  .home-hero__content { padding: 28px 18px; }
  .home-hero h1 { font-size: 1.75rem; margin-bottom: 10px; }
  .home-hero p { font-size: 0.95rem; margin-bottom: 18px; }
  .home-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .home-hero__actions .btn { padding: 9px 14px; font-size: 0.88rem; }
  .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
  .trust-item { padding: 12px; gap: 8px; }
  .trust-icon { width: 34px; height: 34px; flex: 0 0 auto; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .pdp-title { font-size: 1.8rem; margin-bottom: 10px; }
  .card__bd { overflow-x: auto; }
  .card__bd > .table { min-width: 620px; }
  .verify-field-shell { flex-direction: column; }
  .verify-field-shell .btn { width: 100%; }
  .footer { margin-top: 30px; padding: 36px 0 28px; }
  .staff-topbar__inner { align-items: flex-start; padding: 10px 12px; flex-direction: column; gap: 8px; }
  .staff-nav { justify-content: flex-start; gap: 6px; overflow-x: auto; width: 100%; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .staff-nav::-webkit-scrollbar { display: none; }
  .staff-nav__link { flex: 0 0 auto; min-height: 32px; padding: 6px 10px; font-size: 0.82rem; }
  .staff-wrap { padding: 16px 12px 44px; }
  .staff-wrap .hero { padding: 18px; }
  .staff-wrap .hero h1 { font-size: 1.45rem; }
}

/* UI acceptance overrides: contrast, focus, mobile targets, staff tables. */
.topstrip {
  background-color: #14532d;
  color: #ffffff;
}

.footer p {
  color: #e2e8f0;
}

.footer .btn--primary,
.footer .btn--primary:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid #0b6353;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .btn,
  .btn--sm,
  .nav-link,
  .cat-pill,
  .staff-nav__link,
  .action-group > *,
  .footer a,
  input[type="submit"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .field input,
  .field select,
  .field textarea,
  .form-control {
    min-height: 44px;
  }

  .field input[type="checkbox"],
  .field input[type="radio"],
  .form-control[type="checkbox"],
  .form-control[type="radio"] {
    min-height: 0;
    height: 24px;
    width: 24px;
    max-height: 24px;
    max-width: 24px;
  }

  .search {
    position: relative;
  }

  .search input {
    min-height: 52px;
    padding-right: 56px;
    box-sizing: border-box;
  }

  .search button {
    position: absolute;
    top: 4px;
    bottom: 4px;
    min-height: 44px;
    height: auto;
  }

  .btn[class*="icon"],
  .btn--icon,
  .btn.icon-only {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .product-card__title {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .staff-body .table-stack {
    display: table;
    min-width: 900px;
  }

  .staff-body .table-stack thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    display: table-header-group;
  }

  .staff-body .table-stack tbody {
    display: table-row-group;
  }

  .staff-body .table-stack tr {
    display: table-row;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .staff-body .table-stack th,
  .staff-body .table-stack td {
    display: table-cell;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 10px;
  }

  .staff-body .table-stack td::before {
    content: none;
    display: none;
  }

  .staff-body .table-wrap,
  .staff-body .card__bd {
    overflow-x: auto;
    max-width: 100%;
  }

  .staff-body .staff-wrap,
  .staff-body .card {
    max-width: 100%;
    overflow: hidden;
  }

  .staff-body .table-sticky th:first-child,
  .staff-body .table-sticky td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
  }

  .staff-body .table-sticky th:last-child,
  .staff-body .table-sticky td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
  }

  .staff-body .table-sticky th:first-child,
  .staff-body .table-sticky th:last-child {
    z-index: 3;
  }
}

@media (max-width: 768px) {
  .staff-body .status-groups,
  .staff-body .status-group,
  .staff-body .staff-wrap {
    min-width: 0;
  }

  .staff-body .table-wrap,
  .staff-body .card__bd {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .staff-body .table-stack {
    width: max-content;
    min-width: 1000px;
  }

  .staff-body .table-stack th:last-child,
  .staff-body .table-stack td:last-child {
    white-space: nowrap;
    min-width: 220px;
  }

  .staff-body .table-stack .action-group .btn {
    min-width: 44px;
    min-height: 44px;
    white-space: nowrap;
  }

  .staff-body .table-stack a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .brand,
  .staff-brand {
    min-height: 44px;
  }

  .nav-link {
    min-width: 44px;
  }

  .product-card__price .btn {
    width: 44px;
    height: 44px;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {
  .product-card__price .btn {
    min-width: 44px;
    min-height: 44px;
  }
}

.section-heading {
  margin: 0;
  font-size: 1.17rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .buybox-contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 36px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
}

.compare-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-primary);
}

.compare-toggle.is-active {
  color: var(--brand-primary);
  font-weight: 700;
}

.compare-tray {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
}

.compare-tray[hidden] {
  display: none;
}

.compare-tray__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 0;
}

.compare-tray__selection,
.compare-tray__items,
.compare-tray__actions,
.compare-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-tray__selection {
  min-width: 0;
}

.compare-tray__items {
  min-width: 0;
  overflow-x: auto;
}

.compare-item {
  flex: 0 0 auto;
  max-width: 210px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 0.8125rem;
}

.compare-item__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-item__rm {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.compare-tray__actions {
  flex: 0 0 auto;
}

body.has-compare-tray {
  padding-bottom: 82px;
}

.order-disclosure {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-paper);
}

.order-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.order-disclosure > summary::-webkit-details-marker {
  display: none;
}

.order-disclosure > summary::after {
  content: ">";
  flex: 0 0 auto;
  color: var(--text-secondary);
  transition: transform 150ms ease;
}

.order-disclosure[open] > summary::after {
  transform: rotate(90deg);
}

.order-disclosure > summary:focus-visible {
  outline: 3px solid rgba(11, 99, 83, 0.45);
  outline-offset: 2px;
}

.order-disclosure[open] > summary {
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
}

.order-disclosure__body {
  padding: 14px;
}

.geo-capture {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lab-result-list {
  display: grid;
  gap: 6px;
}

.lab-result-list__item {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(100px, auto) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 0.8125rem;
}

@media (max-width: 720px) {
  .compare-tray__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 24px);
    padding: 10px 0;
  }

  .compare-tray__selection {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .compare-tray__items {
    width: 100%;
  }

  .compare-tray__actions {
    justify-content: flex-end;
  }

  body.has-compare-tray {
    padding-bottom: 142px;
  }
}

@media (max-width: 768px) {
  .order-form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .order-form-row > * {
    width: 100%;
    min-width: 0;
  }

  .staff-body .table-stack.table-stack--compact,
  .staff-body .table-stack.table-stack--compact tbody,
  .staff-body .table-stack.table-stack--compact tr,
  .staff-body .table-stack.table-stack--compact td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .staff-body .table-stack.table-stack--compact {
    min-width: 0;
  }

  .staff-body .table-stack.table-stack--compact thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .staff-body .table-stack.table-stack--compact tr {
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
  }

  .staff-body .table-stack.table-stack--compact td {
    position: static;
    padding: 9px 12px;
    border-bottom: 1px solid #e4e9e7;
    white-space: normal;
  }

  .staff-body .table-stack.table-stack--compact td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--text-secondary);
    font-size: 0.75rem;
  }

  .staff-body .table-stack.table-stack--compact td:last-child {
    min-width: 0;
    border-bottom: 0;
  }

  .lab-result-list__item {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------- */
/* Commercial UI system                                                      */
/* ------------------------------------------------------------------------- */

html { color-scheme: light; }

body {
  background: var(--bg-body);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.55;
}

body,
button,
input,
select,
textarea { letter-spacing: 0; }

.wrap {
  max-width: 1240px;
  padding-right: 24px;
  padding-left: 24px;
}

.topstrip {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #17251f;
  color: #dbe4e0;
  font-weight: 500;
}

.topstrip__right { gap: 20px; }
.topstrip__right a { color: #dbe4e0; opacity: 0.86; }
.topstrip__right a:hover { color: #fff; text-decoration: none; }

.topbar {
  background: #fff;
  border-bottom: 1px solid #d9e0dd;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(17, 34, 28, 0.03);
}

.topbar__inner {
  height: 70px;
  max-width: 1240px;
  padding-right: 24px;
  padding-left: 24px;
}

.brand { gap: 12px; }

.brand__name {
  color: #0b5144;
  font-size: 1.32rem;
  font-weight: 700;
}

.brand__tag {
  padding-left: 12px;
  border-left: 1px solid #cfd8d4;
  color: #64716c;
  font-size: 0.78rem;
  font-weight: 500;
}

.search { max-width: 460px; }

.search input {
  min-height: 42px;
  padding: 9px 84px 9px 14px;
  border: 1px solid #cfd8d4;
  border-radius: 4px;
  background: #f7f8f7;
  color: var(--text-primary);
}

.search input:focus {
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 99, 83, 0.1);
}

.search button {
  top: 5px;
  right: 5px;
  bottom: 5px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 3px;
}

.nav { gap: 4px; }

.nav-link {
  padding: 8px 10px;
  border-radius: 3px;
  color: #46534e;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link:hover {
  background: #eef3f1;
  color: #0b6353;
}

.navcats {
  padding: 0;
  border-bottom: 1px solid #d9e0dd;
  background: #fff;
}

.navcats__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  justify-content: flex-start;
  gap: 28px;
}

.cat-pill {
  padding: 13px 1px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #56635e;
  font-weight: 500;
}

.cat-pill.is-active {
  border-bottom-color: var(--brand-primary);
  background: transparent;
  color: var(--brand-primary);
}

.cat-pill:not(.is-active):hover {
  background: transparent;
  color: #17251f;
}

main.wrap {
  padding-top: 30px;
  padding-bottom: 72px;
}

.home-hero {
  min-height: 430px;
  margin-bottom: 0;
  border: 1px solid #1e322b;
  border-radius: 4px;
  background: #1b2b25;
  box-shadow: none;
}

.home-hero__bg {
  background: url("/static/hero-environmental-testing-v2.465a641ea0fb.webp") center/cover no-repeat;
  filter: saturate(0.78) brightness(0.58);
  transform: scale(1.01);
}

.home-hero__content {
  max-width: 680px;
  padding: 62px 64px;
}

.home-hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 7px;
  border-bottom: 2px solid #68b39f;
  color: #d7ebe5;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-hero h1 {
  max-width: 11em;
  margin-bottom: 18px;

  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.12;
}

.home-hero h1 span { white-space: nowrap; }

.home-hero p {
  max-width: 620px;
  margin-bottom: 26px;
  color: #eef4f1;
  font-size: 1.02rem;
  line-height: 1.75;
}

.home-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-hero__actions .btn--secondary {
  border-color: rgba(255,255,255,0.6);
  background: rgba(18, 31, 26, 0.5);
  color: #fff;
}

.home-hero__actions .btn--secondary:hover {
  border-color: #fff;
  background: #fff;
  color: #17251f;
}

.trust-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 34px;
  border: 1px solid #d9e0dd;
  border-top: 0;
  background: #fff;
}

.trust-item {
  min-width: 0;
  padding: 20px 22px;
  border: 0;
  border-right: 1px solid #e0e5e3;
  border-radius: 0;
  background: transparent;
}

.trust-item:last-child { border-right: 0; }

.trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  color: #0b6353;
}

.trust-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid #ccd6d2;
}

.section-head__eyebrow {
  margin-bottom: 3px;
  color: var(--brand-primary);
  font-size: 0.74rem;
  font-weight: 700;
}

.section-head h2 {
  margin: 0;
  color: #17251f;
  font-size: 1.55rem;
  line-height: 1.3;
}

.section-head__link {
  color: #41504a;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}

.section-head__link:hover { color: var(--brand-primary); }

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  border: 1px solid #d7dfdc;
  border-radius: 5px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  border-color: #7f9c92;
  box-shadow: 0 8px 20px rgba(25, 47, 39, 0.07);
  transform: none;
}

.product-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

.product-card__category {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6f3ee;
  border: 1px solid #c4ddd4;
  color: #0b6353;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-card__tier {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f3;
  border: 1px solid #dde5e2;
  color: #64716c;
  font-size: 0.72rem;
  font-weight: 600;
}

/* CMA 套餐用暖金标记，与 hero 金色呼应，形成绿+金双色 */
.product-card__tier--cma {
  background: #fbf1dc;
  border-color: #e9cf9b;
  color: #8a5a12;
}

.product-card__facts {
  display: grid;
  gap: 7px;
  margin: 0 0 2px;
  padding-top: 12px;
  border-top: 1px solid #e3e8e6;
}

.product-card__facts > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.product-card__facts dt {
  flex: 0 0 4em;
  color: #64716c;
  font-size: 0.78rem;
}

.product-card__facts dd {
  margin: 0;
  color: #34433d;
  font-size: 0.84rem;
  line-height: 1.55;
}

.product-card__body { padding: 12px 18px 18px; }

.product-card__title {
  min-height: 3em;
  margin-bottom: 9px;
  color: #16241f;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.product-card__summary {
  min-height: 3.1em;
  margin-bottom: 13px;
  color: #5c6964;
  font-size: 0.84rem;
  line-height: 1.55;
}

.product-card__meta {
  gap: 5px;
  margin-bottom: 3px;
}

.tag,
.badge {
  padding: 4px 8px;
  border-radius: 3px;
  border-color: #d8e0dd;
  background: #f7f8f7;
  color: #53605b;
  font-weight: 500;
}

.badge::before { display: none; }

.compare-toggle {
  width: 100%;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e3e8e6;
  color: #56635e;
}

.product-card__price {
  margin-top: 12px;
  padding-top: 15px;
  border-top: 1px solid #e3e8e6;
}

.price-tag {
  color: #173a30;
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 700;
}

.product-card__detail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 0 7px 10px;
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.product-card__detail:hover { color: #08483d; }

.enterprise-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: 56px;
  padding: 38px 40px;
  border-radius: 4px;
  background: #18261f;
  color: #fff;
}

.enterprise-cta__eyebrow {
  margin-bottom: 8px;
  color: #92c8b9;
  font-size: 0.76rem;
  font-weight: 700;
}

.enterprise-cta h2 {
  max-width: 620px;
  margin: 0 0 9px;
  color: #fff;
  font-size: 1.42rem;
  line-height: 1.45;
}

.enterprise-cta p {
  max-width: 620px;
  margin: 0;
  color: #c6d2cd;
  font-size: 0.88rem;
}

.enterprise-cta__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid rgba(255,255,255,0.16);
}

.enterprise-cta__facts div {
  display: grid;
  gap: 3px;
  padding: 2px 15px;
}

.enterprise-cta__facts strong {
  color: #fff;
  font-size: 0.9rem;
}

.enterprise-cta__facts span {
  color: #9fb0a9;
  font-size: 0.72rem;
  line-height: 1.4;
}

.btn {
  min-height: 40px;
  padding: 9px 17px;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn--primary {
  border-color: #0b6353;
  background: #0b6353;
}

.btn--primary:hover {
  border-color: #084d41;
  background: #084d41;
  box-shadow: none;
  transform: none;
}

.btn--secondary {
  border-color: #bfcac6;
  background: #fff;
  color: #1d2d27;
}

.btn--secondary:hover {
  border-color: #839991;
  background: #f4f7f5;
  color: #0b6353;
}

.btn--ghost {
  border-color: #d3dcd8;
  background: transparent;
  color: #34433d;
}

.btn--ghost:hover {
  border-color: #9cada6;
  background: #eef2f0;
  color: #0b6353;
}

.btn--danger:hover,
.btn--warning:hover {
  box-shadow: none;
  transform: none;
}

.hero {
  padding: 22px 24px;
  border: 1px solid #d4ddda;
  border-left: 4px solid #0b6353;
  border-radius: 4px;
  background: #eef2f0;
}

.card {
  border-color: #d9e0dd;
  border-radius: 5px;
  box-shadow: none;
}

.card__hd {
  padding: 13px 16px;
  border-bottom-color: #dce3e0;
  background: #f7f8f7;
}

.card__bd { padding: 16px; }

.card__ft {
  padding: 13px 16px;
  border-top-color: #dce3e0;
  background: #f7f8f7;
}

.table th {
  padding: 10px 12px;
  border-bottom-color: #cfd8d4;
  background: #edf1ef;
  color: #52605a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.table td {
  padding: 10px 12px;
  border-bottom-color: #e0e5e3;
}

.table tr:hover td { background: #f7f9f8; }

.field input,
.field textarea,
.field select,
.form-control {
  border-color: #cbd5d1;
  border-radius: 4px;
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.form-control:focus {
  border-color: #0b6353;
  box-shadow: 0 0 0 3px rgba(11, 99, 83, 0.1);
}

.pill,
.chip {
  border-radius: 4px;
  border-color: #d4ddda;
  background: #f7f8f7;
  color: #3e4d47;
  font-weight: 500;
}

.pill:hover,
.chip:hover {
  border-color: #94a8a0;
  background: #fff;
  box-shadow: none;
}

.chip.is-active {
  border-color: #0b6353;
  background: #0b6353;
}

.notice-box,
.trust-panel,
.trust-panel__item,
.status-overview__card,
.invoice-split-card,
.queue-card,
.status-group,
.login-card,
.msg {
  border-radius: 5px;
}

.notice-box {
  border-color: #cbdad4;
  background: #f3f7f5;
}

.notice-box__title { color: #0b6353; }

.trust-panel {
  border-color: #cbdad4;
  background: #f3f7f5;
}

.trust-panel__header h3,
.trust-panel__item-title { color: #174f41; }

.trust-panel__item {
  border-color: #d9e2de;
  background: #fff;
}

.sticky-buy-box {
  top: 92px;
  padding: 26px;
  border-color: #d4ddda;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(24, 46, 38, 0.07);
}

.status-overview__card {
  border-color: #d8e0dd;
  border-top: 3px solid #829b92;
  background: #fff;
}

.status-overview__label {
  color: #64716c;
  letter-spacing: 0;
}

.steps { gap: 6px; }

.step {
  border-color: #ced8d4;
  border-radius: 4px;
  background: #fff;
}

.step.is-current {
  border-color: #0b6353;
  background: #0b6353;
}

.step.is-done {
  border-color: #9dc3b7;
  background: #e9f3ef;
  color: #0a5b4c;
}

.queue-card {
  border-color: #d6dfdb;
  background: #fff;
}

.queue-card__value { color: #173a30; }

.invoice-split-card__amount,
.queue-card__value,
.status-overview__value { font-variant-numeric: tabular-nums; }

.status-group { border-color: #d6dfdb; }
.status-group__hd { border-bottom-color: #dce3e0; background: #f7f8f7; }

.login-card {
  border-color: #d3dcd8;
  box-shadow: 0 16px 40px rgba(21, 41, 34, 0.1);
}

.login-card__brand,
.login-card__footer a { color: #0b6353; }

.footer {
  margin-top: 64px;
  padding: 50px 0 30px;
  border-top: 0;
  background: #17231f;
}

.footer__grid {
  grid-template-columns: 2fr 1fr 1fr 1fr 1.35fr;
  gap: 34px;
}

.footer h4 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.9rem;
}

.footer a {
  margin-bottom: 8px;
  color: #b9c6c1;
  font-size: 0.84rem;
}

.footer p {
  color: #aebcb6;
  font-size: 0.84rem;
}

.staff-body { background: #eef1ef; }

.staff-topbar {
  background: #17231f;
  border-bottom: 1px solid #273a32;
  backdrop-filter: none;
}

.staff-topbar__inner {
  min-height: 58px;
  max-width: 1320px;
}

.staff-brand__name { color: #fff; }
.staff-brand__tag { color: #97aaa2; }

.staff-nav__link {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 3px;
  color: #c9d4cf;
  font-weight: 500;
}

.staff-nav__link:hover {
  border-color: #3b5148;
  background: #24372f;
  color: #fff;
}

.staff-nav__button { color: #c9d4cf; }

.staff-badge {
  border-radius: 3px;
  background: #b83d3d;
}

.staff-wrap {
  max-width: 1320px;
  padding-top: 24px;
}

.staff-wrap .hero {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #cbd5d1;
  border-radius: 0;
  background: transparent;
}

.staff-wrap .hero h1 {
  color: #17251f;
  font-size: 1.58rem;
}

.compare-item,
.order-disclosure,
.lab-result-list__item {
  border-color: #d3dcd8;
  border-radius: 4px;
}

.compare-item,
.lab-result-list__item { background: #f7f8f7; }

.compare-tray {
  border-top-color: #c9d3cf;
  box-shadow: 0 -6px 18px rgba(22, 42, 35, 0.08);
}

.mobile-sticky-cta {
  border-top-color: #cbd5d1;
  box-shadow: 0 -6px 18px rgba(22, 42, 35, 0.08);
}

@media (max-width: 900px) {
  .enterprise-cta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .enterprise-cta__facts {
    border-top: 1px solid rgba(255,255,255,0.16);
    border-left: 0;
    padding-top: 18px;
  }

  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .wrap {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar__inner {
    height: auto;
    padding: 10px 14px;
    border-bottom: 0;
  }

  .topbar__inner > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar__inner > .nav {
    grid-column: 2;
    grid-row: 1;
    max-width: 58vw;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .topbar__inner > .nav::-webkit-scrollbar { display: none; }

  .topbar__inner > .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .navcats__inner {
    padding: 0 14px;
    gap: 22px;
  }

  .cat-pill { padding: 11px 1px 9px; }

  main.wrap {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .home-hero {
    min-height: 360px;
    border-radius: 3px;
  }

  .home-hero__content { padding: 34px 24px; }
  .home-hero h1 { font-size: 2rem; }
  .home-hero p { font-size: 0.93rem; line-height: 1.65; }

  /* On narrow screens the copy sits over the whole photo, so the veil covers full width. */
  .home-hero__bg::after {
    top: 0; right: 0; bottom: 0; left: 0;
    width: auto;
    background: rgba(242, 246, 244, 0.82);
  }

  .trust-bar {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 26px;
  }

  .trust-item {
    padding: 14px;
    border-right: 1px solid #e0e5e3;
    border-bottom: 1px solid #e0e5e3;
  }

  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }

  .section-head {
    align-items: flex-end;
    margin-top: 30px;
  }

  .section-head h2 { font-size: 1.3rem; }

  .product-grid { gap: 12px; }

  .product-card__title {
    display: block;
    min-height: 0;
  }

  .product-card__summary { min-height: 0; }

  .enterprise-cta {
    margin-top: 38px;
    padding: 28px 22px;
  }

  .enterprise-cta__facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .enterprise-cta__facts div { padding: 0; }

  .footer { margin-top: 36px; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer__grid > div:first-child,
  .footer__grid > div:last-child { grid-column: 1 / -1; }

  .staff-topbar__inner { background: #17231f; }
  .staff-wrap { padding-top: 16px; }
}

/* ------------------------------------------------------------------------- */
/* Light commercial tone                                                     */
/* ------------------------------------------------------------------------- */

:root {
  --bg-body: #f7f8f7;
  --text-primary: #1b2924;
  --text-secondary: #596660;
}

body { background: #f4f7f5; }

/* 顶栏：恢复有色品牌带（此前被调成近白，整体发灰的主因之一） */
.topstrip {
  border-bottom-color: transparent;
  background: linear-gradient(90deg, #0b6353 0%, #0e7c64 100%);
  color: #eafaf5;
}

.topstrip__right a {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.topstrip__right a:hover { color: #fff; text-decoration: underline; }

/* Hero：深绿→透明的品牌渐变蒙版盖在照片左侧，白字，右侧照片保持清晰。
   替代原先近白蒙版 + 深色文字的"素"方案。 */
.home-hero {
  border-color: #0a3d33;
  background: #0a352c;
}

.home-hero__bg {
  filter: saturate(1.05) brightness(0.97);
}

.home-hero__bg::after {
  width: 100%;
  background: linear-gradient(
    108deg,
    rgba(8, 66, 55, 0.97) 0%,
    rgba(11, 99, 83, 0.92) 40%,
    rgba(11, 99, 83, 0.28) 70%,
    rgba(11, 99, 83, 0) 100%
  );
}

.home-hero__content { color: #fff; }

.home-hero__eyebrow {
  border-bottom-color: #d8a24a;
  color: #f2e0bf;
}

.home-hero h1 { color: #ffffff; }

.home-hero p { color: #e6f2ee; }

.home-hero__actions .btn--secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(9, 42, 34, 0.45);
  color: #fff;
}

.home-hero__actions .btn--secondary:hover {
  border-color: #fff;
  background: #fff;
  color: #0b6353;
}

/* 信任条图标：实心浅绿圆底，四处小色块，替代透明底 */
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6f3ee;
  color: #0b6353;
}

/* 企业区：绿色渐变带 + 暖金点缀，白字，页脚前的一处强色块 */
.enterprise-cta {
  border: none;
  background: linear-gradient(120deg, #0b6353 0%, #0f8067 60%, #12876c 100%);
  color: #eefaf6;
}

.enterprise-cta__eyebrow { color: #f2d9a6; }

.enterprise-cta h2 { color: #ffffff; }

.enterprise-cta p { color: #d9efe8; }

.enterprise-cta__facts {
  border-left-color: rgba(255, 255, 255, 0.28);
}

.enterprise-cta__facts strong { color: #ffffff; }

.enterprise-cta__facts span { color: #c6e3da; }

.enterprise-cta .btn--secondary {
  border-color: #ffffff;
  background: #ffffff;
  color: #0b6353;
}

.enterprise-cta .btn--secondary:hover {
  background: #f4d99f;
  border-color: #f4d99f;
  color: #17382e;
}

.footer {
  border-top: 1px solid #d4ddda;
  background: #eef2f0;
}

.footer .brand__name { color: #0b5144 !important; }

.footer h4 { color: #21332c; }

.footer a { color: #52635c; }

.footer a:hover { color: #0b6353; }

.footer p { color: #60716a; }

.footer__bottom {
  border-top-color: #ccd7d3;
  color: #6a7872;
}

.staff-topbar {
  border-bottom-color: #d3dcd8;
  background: #fff;
}

.staff-brand__name { color: #0b5144; }

.staff-brand__tag { color: #6a7772; }

.staff-nav__link,
.staff-nav__button { color: #41514a; }

.staff-nav__link:hover {
  border-color: #d4dfdb;
  background: #edf3f0;
  color: #0b6353;
}

@media (max-width: 900px) {
  .enterprise-cta__facts {
    border-top-color: #bdcec8;
  }
}

@media (max-width: 768px) {
  .staff-topbar__inner { background: #fff; }
}

/* Compact checkout progress on narrow screens. */
@media (max-width: 640px) {
  .checkout-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }

  .checkout-steps__arrow {
    display: none;
  }

  .checkout-steps__stage {
    min-width: 0;
    padding: 12px 4px;
    border-left: 1px solid var(--line);
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
  }

  .checkout-steps__stage:first-child {
    border-left: 0;
  }
}

/* ------------------------------------------------------------------------- */
/* Accessibility and responsive acceptance                                   */
/* ------------------------------------------------------------------------- */

.brand__mark,
.staff-brand__mark,
.footer__brand-mark {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand__mark {
  width: 36px;
  height: 36px;
}

.staff-brand {
  align-items: center;
}

.staff-brand__mark {
  width: 32px;
  height: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer__brand .brand__name {
  margin: 0;
}

.footer__brand-mark {
  width: 34px;
  height: 34px;
}

.form-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.form-fieldset legend {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid #dce3e0;
  background: #dce3e0;
}

.metric-panel {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
}

.metric-panel__label {
  margin-bottom: 7px;
  color: #64716c;
  font-size: 0.76rem;
  font-weight: 600;
}

.metric-panel__value {
  color: #17382e;
  font-size: 1.24rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.metric-panel__value--compact {
  font-size: 1rem;
}

.metric-panel__meta {
  margin-top: 6px;
  color: #64716c;
  font-size: 0.76rem;
  line-height: 1.55;
}

.package-summary {
  min-width: 0;
  padding: 16px;
  border-left: 3px solid #829b92;
  background: #f5f7f6;
}

.nav-logout {
  display: inline-flex;
  margin: 0;
}

.nav-user {
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .staff-brand__mark {
    width: 30px;
    height: 30px;
  }

  .topbar,
  .staff-topbar {
    position: static;
  }

  body.is-authenticated .topbar__inner {
    grid-template-columns: 1fr;
  }

  body.is-authenticated .topbar__inner > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  body.is-authenticated .topbar__inner > .nav--authenticated {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    padding-top: 7px;
    border-top: 1px solid #e1e7e4;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }

  body.is-authenticated .topbar__inner > .search {
    grid-column: 1;
    grid-row: 3;
  }

  .nav--authenticated .nav-user {
    flex: 1 1 96px;
    max-width: 128px;
  }

  .nav-logout,
  .nav-logout .nav-link {
    min-width: 44px;
    min-height: 44px;
  }

  .staff-topbar__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
    padding: 8px 12px 10px;
  }

  .staff-brand {
    width: max-content;
  }

  .staff-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    width: 100%;
    padding-top: 6px;
    padding-bottom: 0;
    border-top: 1px solid #e1e7e4;
    gap: 4px;
    overflow: visible;
  }

  .staff-nav__link,
  .staff-logout,
  .staff-logout .staff-nav__link {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .btn,
  .btn--sm,
  .nav-link,
  .cat-pill,
  .pill,
  .chip,
  .compare-item__rm,
  .footer a {
    min-width: 44px;
    min-height: 44px;
  }

  .product-card__title,
  .tap-link,
  .section-head a,
  .login-card__footer a,
  .msg a,
  .feature-list a,
  .hub-anchorbar a,
  .hub-linklist a,
  .status-overview a,
  main p a,
  main li a,
  td a:not(.btn) {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }

  .product-card__title {
    min-height: 44px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* 经营者信息公示条（电子商务法 §15）：未配置时整块不渲染，故无空态样式 */
.footer__disclosure {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.78;
}
.footer__disclosure a { text-decoration: underline; }

/* Public launch, accessibility and mobile decision support */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: #083f35;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
#main-content:focus { outline: none; }

.footer .footer__intro { color: #52635c; line-height: 1.6; }
.footer__bottom { color: #475750; }
.enterprise-cta__facts span { color: #f0f8f5; }
.section-head h1,
.section-head h2 {
  margin: 0;
  color: #17251f;
  font-size: 1.55rem;
  line-height: 1.3;
}

.mobile-utility-nav {
  border-bottom: 1px solid #d9e1de;
  background: #f6f8f7;
}
.mobile-utility-nav a {
  color: #174b40;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.form-privacy-note,
.legal-meta {
  color: #52635c;
  font-size: 0.86rem;
  line-height: 1.7;
}
.form-privacy-note { margin: 4px 0 14px; max-width: 76ch; }
.form-privacy-note a,
.legal-sections a,
.disclosure-warning a { color: #075c4c; text-decoration: underline; }
.legal-meta { margin-top: 12px; }
.legal-sections { display: grid; gap: 28px; max-width: 84ch; }
.legal-sections section { scroll-margin-top: 20px; }
.legal-sections h2 { margin-bottom: 10px; color: #17382e; font-size: 1.18rem; }
.legal-sections p,
.legal-sections li { color: #43544d; line-height: 1.8; }
.legal-sections ul { display: grid; gap: 8px; padding-left: 22px; }
.disclosure-warning {
  padding: 10px 12px;
  border-left: 3px solid #a87800;
  background: #fff9e8;
  color: #594500;
  line-height: 1.65;
}

.footer__disclosure {
  display: block;
  padding: 20px 0 10px;
  border-top: 1px solid #ccd7d3;
  font-size: 0.78rem;
  line-height: 1.65;
  opacity: 1;
}
.footer__disclosure h2 { margin: 0 0 10px; color: #21332c; font-size: 0.94rem; }
.footer__disclosure dl { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.footer__disclosure dl > div { display: flex; gap: 5px; }
.footer__disclosure dt { color: #41514a; font-weight: 800; }
.footer__disclosure dd { margin: 0; color: #52635c; }
.footer__disclosure-warning {
  max-width: 90ch;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #9a6b00;
  background: #fff8dc;
  color: #554200 !important;
}
.disclosure-missing { color: #65511a; }

.package-mobile-quote {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #a7c7bd;
  border-radius: 6px;
  background: #eff8f4;
  color: #0a5849;
  text-decoration: none;
}
.package-mobile-quote > span { display: grid; gap: 2px; }
.package-mobile-quote small { color: #52635c; }
.package-mobile-quote strong { font-size: 1.22rem; }

.compare-desktop-hint { margin: 0 0 8px; color: #52635c; font-size: 0.82rem; }
.compare-table-region:focus-visible { outline: 3px solid #0b6353; outline-offset: 3px; }
.compare-mobile-list.only-mobile { display: none; gap: 14px; }
.compare-mobile-card { padding: 16px; border: 1px solid #ccd7d3; border-radius: 6px; background: #fff; }
.compare-mobile-card header { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e1e7e4; }
.compare-mobile-card header a { color: #0b6353; text-decoration: none; }
.compare-mobile-card h2 { margin: 0; font-size: 1.08rem; }
.compare-mobile-card dl { display: grid; margin: 0; }
.compare-mobile-card dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf1ef; }
.compare-mobile-card dt { color: #52635c; font-weight: 700; }
.compare-mobile-card dd { margin: 0; color: #263a32; line-height: 1.55; }
.compare-mobile-card dd .tag { display: inline-flex; margin: 0 4px 4px 0; }
.compare-mobile-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

@media (max-width: 768px) {
  .mobile-utility-nav.only-mobile {
    display: flex;
    justify-content: space-around;
    gap: 2px;
    overflow-x: auto;
    padding: 2px 10px;
  }
  .mobile-utility-nav a,
  .product-card__detail,
  .compare-toggle,
  .search input,
  .search button,
  .form input,
  .form select,
  .form textarea {
    min-height: 44px;
  }
  .mobile-utility-nav a,
  .product-card__detail,
  .compare-toggle { display: inline-flex; align-items: center; }
  .package-mobile-quote.only-mobile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
  .compare-mobile-list.only-mobile { display: grid; }
  .section-head h1,
  .section-head h2 { font-size: 1.3rem; }
  .footer__disclosure dl { display: grid; gap: 10px; }
  .footer__disclosure dl > div { display: grid; grid-template-columns: 78px 1fr; }
}

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