/* ===== 丁可生物官网共用样式 ===== */
:root {
  --primary: #42546A;
  --primary-dark: #2e3d4f;
  --text: #333a45;
  --text-light: #5c6672;
  --bg-light: #f4f8fb;
  --border: #e2e8ef;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 导航栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
}
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: var(--text);
  font-size: 0.98rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav a.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}
.site-nav .lang-switch {
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 4px 14px;
  color: var(--primary);
}
.site-nav .lang-switch:hover {
  background: var(--primary);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  line-height: 1;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #f4f8fb, #dce8f2);
  padding: 72px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 18px;
}
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}
.hero img {
  filter: drop-shadow(0 8px 24px rgba(66, 84, 106, 0.22));
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }

/* ===== 数据条 ===== */
.stats {
  background: var(--primary);
  color: var(--white);
  padding: 42px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.stat .label {
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-light); }

.section-title {
  font-size: 1.7rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 14px;
}
.section-lead {
  text-align: center;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto 44px;
}

/* 平台叙事 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .text h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.split .text p { color: var(--text-light); }
.split img { border-radius: 8px; box-shadow: 0 6px 20px rgba(66, 84, 106, 0.14); }

.dual-base-img { width: 100%; border-radius: 8px; box-shadow: 0 6px 20px rgba(66, 84, 106, 0.14); }
.dual-base-caption { text-align: center; color: var(--text-light); margin-top: 14px; }

/* ===== 卡片 ===== */
.cards { display: grid; gap: 24px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(66, 84, 106, 0.12); }

.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card img.img-contain { object-fit: contain; padding: 12px; box-sizing: border-box; }

.card .card-body { padding: 22px; }
.card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.card .card-sub {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.card p { color: var(--text-light); font-size: 0.95rem; }
.card .more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

/* 卖点四宫格（无边框图标式） */
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 22px;
}
.feature h3 {
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature p { color: var(--text-light); font-size: 0.94rem; }

/* ===== 产品区块 ===== */
.product-line { padding: 72px 0; }
.product-line + .product-line { border-top: 1px solid var(--border); }
.product-line > .container > h2 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.product-line .tagline {
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.device-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.device-pair figure {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.device-pair figure img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
}
.device-pair figcaption {
  text-align: center;
  padding: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

h3.block-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 44px 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

/* ===== 参数表 ===== */
.table-wrap { overflow-x: auto; }
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
}
table.spec th, table.spec td {
  padding: 11px 16px;
  text-align: left;
  border: 1px solid var(--border);
}
table.spec thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}
table.spec tbody tr:nth-child(even) { background: var(--bg-light); }
table.spec td:first-child { font-weight: 600; color: var(--primary-dark); }

.note {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  color: var(--text-light);
  margin-top: 24px;
}
.note strong { color: var(--primary-dark); }

/* 制片效果横排 */
.effect-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.effect-row img { border-radius: 8px; border: 1px solid var(--border); }
.caption {
  text-align: center;
  color: var(--text-light);
  font-size: 0.92rem;
  margin-top: 14px;
}

/* 关键指标条（产品页内） */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 8px 0 4px;
}
.metric {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 16px;
  text-align: center;
}
.metric .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}
.metric .label { font-size: 0.88rem; color: var(--text-light); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 0;
}
.footer-inner {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  align-items: center;
}
.footer-brand { text-align: center; }
.footer-brand img { height: 88px; width: auto; margin-bottom: 14px; }
.footer-brand .footer-company { font-weight: 600; color: var(--white); }
.footer-contact p { margin-bottom: 8px; font-size: 0.95rem; }
.footer-contact .f-label { color: var(--white); font-weight: 600; }
.footer-contact a { color: var(--white); }
.footer-contact a:hover { text-decoration: underline; }
.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.qr-card {
  display: inline-block;
  background: var(--white);
  border-radius: 8px;
  padding: 10px;
}
.qr-card img { width: 128px; height: 128px; object-fit: contain; display: block; }
.qr-caption {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
a.qr-caption:hover { text-decoration: underline; }
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* 锚点跳转避开 sticky 导航 */
section[id] { scroll-margin-top: 84px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .split img { order: -1; }
  .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cards.cols-3 { grid-template-columns: 1fr; }
  .metrics, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-auto-flow: row; grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .site-nav li { border-top: 1px solid var(--border); }
  .site-nav li:first-child { border-top: none; }
  .site-nav a {
    display: block;
    padding: 13px 20px;
    border-bottom: none;
  }
  .site-nav .lang-switch {
    margin: 10px 20px;
    text-align: center;
  }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.6rem; }
  .section, .product-line { padding: 48px 0; }
  .cards.cols-2, .cards.cols-4, .device-pair, .effect-row,
  .metrics, .contact-grid { grid-template-columns: 1fr; }
}
