/* Jindeng Metal — static site
   Palette: steel navy + safety orange. No external fonts. */

:root {
  --navy: #0f2743;
  --navy-2: #16355a;
  --ink: #1c2530;
  --muted: #5c6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --accent: #c2410c;
  --accent-2: #ea580c;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.nav { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; color: var(--navy); }
.nav .brand img { height: 34px; width: auto; border-radius: 4px; }
.nav nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--accent); }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: #c8d2dd; }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1d4570 100%);
  color: #fff;
  padding: 88px 0 72px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.15; margin: 0 0 20px; letter-spacing: -.01em;
  max-width: 20ch;
}
.hero p.lead { font-size: 18px; color: #cfdcea; max-width: 62ch; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 56px; padding-top: 32px;
}
.stat b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: #a8bbcf; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; margin: 0 0 16px; color: var(--navy); letter-spacing: -.01em; }
h3 { font-size: 18px; margin: 0 0 8px; color: var(--navy); }
p { margin: 0 0 16px; }
.intro { font-size: 17px; color: var(--muted); max-width: 68ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 26px; transition: .18s ease;
}
.card:hover { border-color: #c9d4e0; box-shadow: 0 8px 24px rgba(15,39,67,.06); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }

.app { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.app img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.app .body { padding: 18px 20px 22px; }
.app h3 { margin: 0 0 6px; font-size: 16px; }
.app p { margin: 0; font-size: 14px; color: var(--muted); }

.split-img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }

ul.checks { list-style: none; padding: 0; margin: 24px 0 0; }
ul.checks li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: var(--bg-2); }

/* ---------- cta strip ---------- */
.cta {
  background: var(--navy); color: #fff; padding: 64px 0; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #c3d2e2; max-width: 60ch; margin: 0 auto 28px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item .k { width: 96px; flex: none; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 3px; }
.info-item .v { font-size: 16px; }
form { display: grid; gap: 14px; }
label { font-size: 13px; font-weight: 600; color: var(--navy); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 6px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #bcd0e6; border-color: #9db4cc; }
textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
footer { background: #0b1c30; color: #93a6ba; padding: 48px 0 32px; font-size: 14px; }
footer a { color: #c9d8e7; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #7b90a6; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-2, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.btn) { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}

/* ---------- lab gallery ---------- */
.lab-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0 0;
}
.lab {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.lab.tall { grid-row: span 2; }
.lab img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lab.tall { height: 100%; }
.lab.tall img { aspect-ratio: auto; height: 100%; }
.lab figcaption {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}
@media (max-width: 900px) {
  .lab-gallery { grid-template-columns: repeat(2, 1fr); }
  .lab.tall { grid-row: auto; }
  .lab.tall img { aspect-ratio: 4 / 3; }
}

/* ---------- hero video ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
.hero-video {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #0b1c30;
  box-shadow: 0 22px 48px rgba(0,0,0,.35);
}
.hero-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-video figcaption {
  font-size: 12px;
  color: #a8bbcf;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-video { max-width: 100%; }
}

/* ---------- visit band ---------- */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.visit img { border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

/* ---------- lab caption layers ---------- */
.lab figcaption strong { display: block; color: var(--ink); font-size: 13px; }
.lab figcaption .m { display: block; font-size: 11.5px; margin-top: 3px; color: var(--muted); }
.lab figcaption .u { display: block; font-size: 11px; margin-top: 5px; color: var(--accent); letter-spacing: .01em; }
.card p.u { margin-top: 8px; font-size: 11.5px; color: var(--accent); }

.calib { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* ---------- product hub ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 40px;
}
.prod {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: .18s ease;
}
.prod:hover { box-shadow: 0 12px 32px rgba(15,39,67,.09); border-color: #c9d4e0; }
.prod img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #eef2f7; }
.prod .body { padding: 22px 26px 26px; }
.prod h3 { font-size: 19px; margin-bottom: 6px; }
.prod .app { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 10px; }
.prod p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.prod dl { margin: 0; font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.prod dt { color: var(--muted); }
.prod dd { margin: 0; color: var(--ink); }

.prod.spec-card {
  background: linear-gradient(160deg, #16213a, #1e2a48);
  border-color: #1e2a48;
  justify-content: center;
  padding: 36px 30px;
  color: #cfdcea;
}
.prod.spec-card .big { font-size: 52px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.02em; }
.prod.spec-card h3 { color: #fff; margin-top: 14px; }
.prod.spec-card p { color: #a8bbcf; }
@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr; } }

a.app { display: block; color: inherit; text-decoration: none; }
a.app:hover h3 { color: var(--accent); }

/* ---------- about facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.fact { border-top: 2px solid var(--navy); padding-top: 14px; }
.fact b { display: block; font-size: 26px; color: var(--navy); letter-spacing: -.01em; line-height: 1.1; }
.fact span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- family thumbnails ---------- */
.fam-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 16px; margin-top: 36px; }
.fam { text-align: center; }
.fam img {
  width: 100%; max-width: 148px; aspect-ratio: 1 / 1; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; margin: 0 auto; display: block;
}
.fam span { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
@media (max-width: 900px) { .fam-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- shop videos ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 272px));
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}
.shop-card { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0b1c30; }
.shop-card video { width: 100%; display: block; aspect-ratio: 9 / 16; object-fit: cover; }
.shop-card figcaption { font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: minmax(0, 272px); }
}

/* shop section: text left, two clips right */
.shop-layout { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.shop-grid { grid-template-columns: repeat(2, 272px); gap: 16px; margin-top: 0; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 32px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
.cert { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 16px; display: flex; flex-direction: column; }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 6px; display: block; }
.cert h3 { font-size: 14.5px; margin: 14px 0 10px; }
.cert dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12px; }
.cert dt { color: var(--muted); }
.cert dd { margin: 0; }
.cert .dl { margin: 14px 0 0; font-size: 13px; }
@media (max-width: 1040px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 40px; }
.faq-item h3 { font-size: 15.5px; margin: 0 0 8px; color: var(--navy); }
.faq-item p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   移动端优化（< 900px）
   ============================================================ */

@media (max-width: 900px) {
  /* --- 顶部导航：改成两行，链接不再被隐藏 --- */
  header .nav {
    height: auto;
    padding: 12px 0 10px;
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .nav .brand span {
    white-space: nowrap;
    font-size: 15px;
    letter-spacing: 0;
  }
  .nav .brand img { height: 28px; }
  .nav .btn { padding: 8px 14px; font-size: 13.5px; margin-left: auto; }
  .nav nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 4px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .nav nav a {
    font-size: 14px;
    padding: 4px 0;
  }
  /* 取消隐藏链接 */
  .nav nav a:not(.btn) { display: inline-block; }
  /* 导航区里的 CTA 按钮在第二行重复，隐藏掉 */
  .nav nav .btn { display: none; }

  /* --- 标题与正文 --- */
  h1 { font-size: clamp(24px, 6.4vw, 34px); }
  h2 { font-size: clamp(21px, 5.2vw, 28px); }
  .hero h1 { max-width: none; }
  .hero p.lead { font-size: 16px; }
  .intro { font-size: 15.5px; }

  /* --- 区块间距 --- */
  section { padding: 44px 0; }
  .wrap { padding: 0 18px; }

  /* --- 表格：改成上下堆叠，避免挤压 --- */
  table { font-size: 14px; margin-top: 20px; }
  thead { display: none; }
  tbody, tr, td { display: block; width: 100%; }
  tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    background: none !important;
  }
  td { border: 0; padding: 0 0 6px; }
  td:first-child {
    font-size: 14.5px;
    color: var(--navy);
    padding-bottom: 4px;
  }
  td:last-child { padding-bottom: 0; color: var(--muted); }

  /* --- 卡片与网格 --- */
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert { padding: 12px; }
  .cert h3 { font-size: 13px; }
  .cert dl { font-size: 11.5px; }
  .fam-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }

  /* --- 统计数字 --- */
  .stats { gap: 20px 12px; }
  .stats b, .stat b { font-size: 22px; }

  /* --- 按钮 --- */
  .hero .actions { gap: 10px; }
  .btn { font-size: 14px; padding: 10px 16px; }

  /* --- 页脚 --- */
  footer { padding: 40px 0 24px; }
}

/* 小屏手机（< 520px） */
@media (max-width: 520px) {
  .cert-grid { grid-template-columns: 1fr; }
  .fam-grid { grid-template-columns: repeat(2, 1fr); }
  .nav nav a { font-size: 13px; }
  .nav .brand span { font-size: 13.5px; }
  .wrap { padding: 0 15px; }
}

/* 触摸设备：去掉 hover 副作用，加大点击区 */
@media (hover: none) {
  .nav nav a { min-height: 34px; display: inline-flex; align-items: center; }
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* --- 移动端导航修正：CTA 浮到右上角，链接排成一行 --- */
@media (max-width: 900px) {
  .nav { position: relative; }
  .nav nav {
    justify-content: flex-start;
    gap: 14px 18px;
    flex-wrap: wrap;
  }
  .nav nav .btn {
    display: inline-flex;
    position: absolute;
    top: 13px;
    right: 18px;
    padding: 7px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .nav nav a { display: inline-block; }
  .nav .brand { padding-right: 130px; }
}

/* ---------- 系列标题栏 ---------- */
.series-bar {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 52px 0 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.series-bar .series-no { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.series-bar h3 { margin: 0; font-size: 24px; color: var(--navy); }
.series-bar .series-count { margin-left: auto; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .series-bar { flex-wrap: wrap; gap: 6px 12px; margin-top: 38px; }
  .series-bar h3 { font-size: 19px; width: 100%; }
  .series-bar .series-count { margin-left: 0; font-size: 12px; }
}

/* --- 移动端导航：四个等宽按钮 --- */
@media (max-width: 900px) {
  .nav nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 2px;
  }
  .nav nav a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 2px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    background: #f1f5fa;
    color: var(--navy);
    white-space: nowrap;
    letter-spacing: -.01em;
    transition: background .15s ease;
  }
  .nav nav a:not(.btn):active {
    background: var(--navy);
    color: #fff;
  }
}

/* --- 移动端导航：分段控件外观 --- */
@media (max-width: 900px) {
  .nav nav {
    background: #eef2f7;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 4px;
    gap: 3px;
    margin-top: 6px;
  }
  .nav nav a:not(.btn) {
    background: transparent;
    border-radius: 8px;
    color: #3b4a5c;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 1px;
    letter-spacing: -.015em;
  }
  .nav nav a:not(.btn):hover,
  .nav nav a:not(.btn):active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 1px 2px rgba(15,23,42,.08);
  }
}

/* --- 移动端导航：蓝色高亮 --- */
@media (max-width: 900px) {
  .nav nav {
    background: #e8effa;
    border-color: #cfdcf1;
  }
  .nav nav a:not(.btn) {
    color: #1d4ed8;
    font-weight: 700;
    font-size: 12.5px;
  }
  .nav nav a:not(.btn):hover,
  .nav nav a:not(.btn):active {
    background: #1d4ed8;
    color: #fff;
    box-shadow: none;
  }
}
