:root {
  --brand: #0d5c8f;
  --brand-dark: #08456b;
  --brand-light: #e8f2f8;
  --accent: #e2711d;
  --ink: #1a2b34;
  --body: #4a5b66;
  --line: #dde5ea;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --radius: 10px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--body);
  line-height: 1.7;
  background: var(--bg);
  font-size: 16px;
}

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

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

header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: var(--brand-dark);
  color: #cfe4f0;
  font-size: 13px;
  padding: 7px 0;
}
.topbar a { color: #fff; }

nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }

.logo { display: flex; align-items: center; gap: 14px; }
.logo-img {
  display: block;
  width: auto;
  height: 46px;
  flex-shrink: 0;
}
.logo-mark {
  width: 42px; height: 42px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; letter-spacing: -.5px;
}
.logo-text strong { display: block; color: var(--ink); font-size: 17px; line-height: 1.25; }
.logo-text span { display: block; font-size: 12px; color: var(--body); }

.navlinks { display: flex; gap: 28px; list-style: none; align-items: center; }
.navlinks a { color: var(--ink); font-size: 15px; }
.navlinks a:hover { color: var(--brand); }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #c25c12; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }

/* AI 引用的答案块 —— GEO 核心 */
.answer-block {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
}
.answer-block h2 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.answer-block p { margin-bottom: 10px; }
.answer-block p:last-child { margin-bottom: 0; }
.answer-block strong { color: var(--brand-dark); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; font-weight: 600; }
h1 { font-size: 38px; margin-bottom: 18px; }
h2 { font-size: 28px; margin: 40px 0 16px; }
h3 { font-size: 20px; margin: 26px 0 12px; }
h4 { font-size: 17px; margin: 18px 0 8px; }

.hero {
  background: linear-gradient(180deg, var(--brand-light) 0%, #fff 100%);
  padding: 64px 0 56px;
}
.hero p.lead { font-size: 18px; color: var(--body); max-width: 720px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

section { padding: 12px 0; }
.section-intro { max-width: 760px; color: var(--body); margin-bottom: 30px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: 0 6px 22px rgba(13,92,143,.09); border-color: #b9d4e5; }
.card h3 { margin-top: 0; }
.card p { font-size: 15px; }

.pill {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 20px;
  margin: 0 6px 6px 0;
  font-weight: 500;
}

.stat { text-align: center; padding: 20px; }
.stat .num { font-size: 34px; font-weight: 700; color: var(--brand); display: block; line-height: 1.2; }
.stat .lbl { font-size: 14px; color: var(--body); }

table.spec { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
table.spec th, table.spec td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
table.spec th { background: var(--bg-soft); color: var(--ink); font-weight: 600; width: 34%; }
table.spec caption { caption-side: top; text-align: left; color: var(--ink); font-weight: 600; padding-bottom: 10px; font-size: 16px; }

.cert-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cert-list li {
  border: 1px solid var(--brand);
  color: var(--brand-dark);
  padding: 7px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.faq { margin: 20px 0; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16.5px; }
.faq summary::marker { color: var(--brand); }
.faq .ans { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.breadcrumb { font-size: 14px; color: var(--body); padding: 16px 0; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: #a9bcc8; }
.breadcrumb li:last-child::after { content: ""; }

.placeholder {
  background: #fffbe6;
  border: 1px dashed #d9b310;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: #6b5200;
  font-size: 15px;
  margin: 20px 0;
}
.placeholder strong { color: #4a3800; }

.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 46px 0;
  margin-top: 46px;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; }
.cta-band p { color: #d5e8f3; margin-bottom: 24px; }

footer { background: var(--ink); color: #9db0bc; padding: 44px 0 26px; margin-top: 60px; font-size: 14.5px; }
footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
footer a { color: #9db0bc; }
footer ul { list-style: none; }
footer li { margin-bottom: 7px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 32px; }
.foot-bottom { border-top: 1px solid #2c3e4a; padding-top: 20px; font-size: 13.5px; color: #71848f; }

/* 页脚 logo 白底卡片 —— 深色背景上承载白底商标 */
.foot-logo-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: inline-block;
  line-height: 0;
}
.foot-logo-card img {
  display: block;
  width: auto;
  height: 44px;
}

@media (max-width: 900px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .navlinks { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 42px 0 38px; }
  table.spec th { width: 46%; }
}

/* ==========================================================
   图片组件 —— 首页图文化改造 2026-10-09
   ========================================================== */

/* Hero 左文右图双栏 */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: 36px; }
.hero-copy p.lead { max-width: none; }

.hero-figure { margin: 0; min-width: 0; }
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 10px 6px;
}
.hero-figure figcaption {
  font-size: 12.5px;
  color: var(--body);
  text-align: center;
  margin-top: 10px;
}

/* 品类卡顶部配图 —— 产品图为纵向构图，容器用 1:1 更贴合 */
.card-media {
  margin: -24px -24px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 产品图接近正方形（0.9~1.0:1），object-fit: contain 保证完整显示不裁切 */
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px 10px;
  transition: transform .35s ease;
}
.card:hover .card-media img { transform: scale(1.045); }

/* 精选型号九宫格 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .22s, border-color .22s, transform .22s;
}
.pcard:hover {
  box-shadow: 0 8px 26px rgba(13,92,143,.11);
  border-color: #b9d4e5;
  transform: translateY(-2px);
}

.pcard-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* object-fit: contain 保证横向长图（如 DII-160G 1.8:1）与方形图都完整可见 */
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .35s ease;
}
.pcard:hover .pcard-media img { transform: scale(1.05); }

.pcard-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.pcard-body h4 { margin: 0 0 4px; font-size: 16.5px; }
.pcard-series {
  font-size: 12px;
  color: var(--brand-dark);
  background: var(--brand-light);
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 9px;
  align-self: flex-start;
}
.pcard-spec { font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; flex: 1; }
.pcard-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.pcard-link:hover { text-decoration: underline; }

/* 水效区块的冰型点缀图 */
.split-figure {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}
.split-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

/* 图片懒加载防抖（避免 CLS 布局跳动） */
img[loading="lazy"] { background: var(--bg-soft); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-figure img { padding: 12px 8px 4px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .split-figure { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
  .card-media { margin: -20px -20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-media img,
  .pcard-media img,
  .pcard { transition: none; }
  .card:hover .card-media img,
  .pcard:hover .pcard-media img,
  .pcard:hover { transform: none; }
}
