:root {
  --bg: #f4f7fc;
  --card: #ffffff;
  --soft: #eef4ff;
  --line: #dbe5f3;
  --text: #173a72;
  --muted: #617697;
  --primary: #2f6fec;
  --primary-dark: #1f56c4;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(27, 65, 133, 0.08);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:'Inter', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fd 0%, #f2f6fc 100%);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  padding: 30px 0 34px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb span {
  color: var(--text);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 32px;
  align-items: center;
}

h1 {
  font-size: 35px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  line-height: 1.4;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 760px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.tag {
  padding: 11px 16px;
  border-radius: 999px;
  background: #f9fbff;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 22px rgba(47, 111, 236, 0.22);
}

.btn-secondary {
  background: white;
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.hero-media {
  min-height: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 20px;
  text-align: center;
  font-size: 18px;
}

section {
  padding: 20px 0 32px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 900px;
}

.kit-components {
  padding: 60px 0;
}

.components-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.components-table th,
.components-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.components-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.components-table tbody tr:last-child td {
  border-bottom: none;
}

.components-table tbody tr:hover {
  background: rgba(31, 86, 196, 0.04);
}

.required-instruments {
  margin-bottom: 24px;
}

.required-instruments h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #17335d;
}

.required-instruments ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  padding-left: 0;
}

.required-instruments li {
  padding: 0 !important;
  position: relative !important;
  color: var(--text) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  float: none !important;
  width: auto !important;
  clear: none !important;
}

.required-instruments li::before {
  content: '•' !important;
  display: flex !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  color: var(--primary) !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
}

.kit-note {
  background: #f7faff;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
}

.kit-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.kit-note strong {
  color: #17335d;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.card h3,
.card h4 {
  margin: 10px 0 10px;
  color: #17335d;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  clear: left;
}

.mini-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  float: left;
  margin-right: 16px;
  margin-bottom: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}

th {
  color: var(--text);
  background: #f8fbff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

.composition-table th:nth-child(1),
.composition-table th:nth-child(3) {
  width: 24%;
}

.composition-table th:nth-child(2),
.composition-table th:nth-child(4) {
  width: 26%;
}

.note-box {
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

.note-box ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.note-box li + li {
  margin-top: 8px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.metric .label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 700;
}

.metric .value {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 8px;
}

.metric .note {
  color: var(--muted);
  font-size: 14px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.app-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.app-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.procedure-download {
  background: #edf4ff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.procedure-download h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.procedure-download p {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 760px;
  font-size: 16px;
}

.footer-cta {
  padding: 28px 0 70px;
}

.footer-cta-box {
  background: linear-gradient(135deg, #1f56c4 0%, #2f6fec 100%);
  color: white;
  border-radius: 30px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 18px 40px rgba(47, 111, 236, 0.22);
}

.footer-cta-box h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.footer-cta-box p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  max-width: 760px;
}

.footer-btn {
  background: white;
  color: var(--primary-dark);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }

  .hero-grid,
  .grid-3,
  .data-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.related-products {
  padding: 60px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(27, 65, 133, 0.12);
}

.related-image {
  aspect-ratio: 1;
  background: #f7faff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card h3 {
  padding: 16px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #17335d;
  text-align: left;
}

.related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.related-card h3 a:hover {
  color: var(--primary);
}

@media (max-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  /* 移除错误的 .nav 样式，使用 header.css 中的正确样式 */

  h1 {
    font-size: 38px;
  }

  th,
  td {
    padding: 12px;
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .procedure-download .hero-actions {
    align-items: center;
  }
}

/* 标题区域样式 */
.title-row {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 20px;
}

.title-line {
  flex-shrink: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--title);
  line-height: 1.2;
  margin: 0 0 8px;
}

/* Kit Components 两栏布局 */
.kit-components-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.kit-components-col {
  display: flex;
  flex-direction: column;
}

.kit-components-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--title);
  margin: 0 0 14px;
  padding-left: 0;
}

.kit-components-col .components-table {
  flex: 1;
  margin-bottom: 0;
}

/* 样本前处理区块 */
.sample-preparation-block {
  margin-bottom: 30px;
}

.sample-prep-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--title);
  margin: 0 0 12px;
  line-height: 1.3;
}

.sample-prep-desc {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
  margin: 0 0 18px;
}

/* 兼容检测项目表格 */
.compatible-assay-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compatible-assay-table th,
.compatible-assay-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.compatible-assay-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: none;
  letter-spacing: .02em;
}

.compatible-assay-table tbody tr:last-child td {
  border-bottom: none;
}

.compatible-assay-table tbody tr:hover {
  background: rgba(31, 86, 196, 0.04);
}

@media (max-width: 860px) {
  .hero h1 {
    font-size: 26px;
  }

  .subtitle {
    font-size: 15px;
  }

  .title-line {
    width: 3px;
  }

  .kit-components-grid {
    grid-template-columns: 1fr;
  }

  .compatible-assay-table th,
  .compatible-assay-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .required-instruments ul {
    grid-template-columns: 1fr;
  }
}
