/* ============================================================
   KINGPO UI v2 — 科技感精修覆盖层
   令牌语义层覆盖 + 组件精修；加载于基础样式之后
   动效：fast 150ms / normal 300ms；easing cubic-bezier(.4,0,.2,1)
   对比度：正文组合均 ≥ 4.5:1（#172033/fff 14.9:1，#0b4b8f/fff 7.6:1，
           #5d6a7e/fff 5.4:1，nav link #334155/fff 10.4:1）
   ============================================================ */

/* ---------- 1. 语义令牌扩展 ---------- */
:root {
  --kp-grad-primary: linear-gradient(135deg, #0b4b8f 0%, #0f6db8 55%, #25b7ff 130%);
  --kp-grad-accent: linear-gradient(90deg, #0f6db8, #25b7ff);
  --kp-cyan-soft: #25b7ff1f;
  --kp-ring: 0 0 0 3px #25b7ff40;
  --kp-shadow-hover: 0 18px 44px #0b4b8f26, 0 4px 12px #0b4b8f14;
  --kp-ease: cubic-bezier(.4, 0, .2, 1);
  --kp-dur: .3s;
}

/* ---------- 2. 全局基础 ---------- */
html { scroll-behavior: smooth; }
::selection { background: #25b7ff3d; color: #07152b; }
:focus-visible { outline: 2px solid #0f6db8; outline-offset: 2px; border-radius: 2px; }

body {
  font-family: var(--font-latin), var(--font-cn);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f0f5fa; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b9d2e8, #8fb4d4);
  border-radius: 8px; border: 2px solid #f0f5fa;
}
::-webkit-scrollbar-thumb:hover { background: #6f9cc4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. 页头导航 ---------- */
.site-header { border-bottom: 1px solid #dfe9f3; box-shadow: 0 8px 28px #0a1c370d; }

nav a {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  padding: 6px 2px;
  transition: color .15s var(--kp-ease);
}
nav a:hover { color: #0b4b8f; }

.brand-mark {
  background: var(--kp-grad-primary) !important;
  box-shadow: 0 6px 16px #0f6db855, inset 0 1px 0 #ffffff55 !important;
}
.brand strong { letter-spacing: .04em; }
.brand small { color: #5d6a7e; font-weight: 500; }

/* ---------- 4. Hero 强化 ---------- */
.hero { border-radius: 18px; }
.hero h1 { letter-spacing: -.015em; text-shadow: 0 2px 24px #07152b80; }
.hero .lead { color: #dbeafe; }
.hero .eyebrow { letter-spacing: .22em; font-weight: 700; }
.hero .eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 26px; height: 2px; margin-right: 10px;
  background: linear-gradient(90deg, #25b7ff, #7bd3ff);
  border-radius: 2px;
}

/* ---------- 5. 按钮：渐变主按钮 + 精修状态 ---------- */
.button {
  background: var(--kp-grad-primary);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px #0b4b8f3d, inset 0 1px 0 #ffffff40;
  transition: transform .15s var(--kp-ease), box-shadow .3s var(--kp-ease), filter .15s var(--kp-ease);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px #0b4b8f4d, inset 0 1px 0 #ffffff40;
  filter: saturate(1.15);
}
.button:active { transform: translateY(0); filter: brightness(.96); }
.button:focus-visible { outline: 2px solid #0f6db8; outline-offset: 2px; }

.button.ghost {
  background: #ffffffd9;
  border: 1px solid #b9d2e8;
  color: #0b4b8f;
  box-shadow: 0 6px 16px #0b4b8f14;
}
.button.ghost:hover { border-color: #0f6db8; background: #fff; box-shadow: 0 10px 24px #0b4b8f26; }
.hero .button.ghost { background: #ffffff14; border-color: #7bd3ff66; color: #eaf6ff; }
.hero .button.ghost:hover { background: #ffffff2b; border-color: #7bd3ff; }

/* ---------- 6. 卡片体系：统一视觉 + 交互态 ---------- */
.card {
  background: #fffffff7;
  border: 1px solid #e2ebf4;
  border-radius: 14px;
  box-shadow: 0 6px 20px #0f23410a;
  transition: transform var(--kp-dur) var(--kp-ease), box-shadow var(--kp-dur) var(--kp-ease), border-color var(--kp-dur) var(--kp-ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: #25b7ff59;
  box-shadow: var(--kp-shadow-hover);
}
.card h3 {
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid #eef4fa;
  position: relative;
}
.card h3::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 34px; height: 2px; border-radius: 2px;
  background: var(--kp-grad-accent);
}
.card.accent {
  border-color: #25b7ff59;
  background: linear-gradient(160deg, #f4fbff, #ffffff 55%);
}

/* ---------- 7. 产品卡：科技感交互 ---------- */
.product-card {
  border-radius: 14px;
  transition: transform var(--kp-dur) var(--kp-ease), box-shadow var(--kp-dur) var(--kp-ease), border-color var(--kp-dur) var(--kp-ease);
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #25b7ff73;
  box-shadow: var(--kp-shadow-hover);
}
.product-card > img {
  transition: transform .45s var(--kp-ease), filter .45s var(--kp-ease);
  border-bottom: 1px solid #eef4fa;
}
.product-card:hover > img { transform: scale(1.035); filter: saturate(1.08); }
.product-card h3 { letter-spacing: -.01em; }
.product-card a {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: #0b4b8f;
  transition: gap .2s var(--kp-ease), color .15s var(--kp-ease);
}
.product-card a::after {
  content: "→"; font-size: 15px; line-height: 1;
  transition: transform .2s var(--kp-ease);
}
.product-card a:hover { color: #0f6db8; }
.product-card a:hover::after { transform: translateX(4px); }

/* ---------- 8. 标签：红色药丸 → 科技蓝芯片 ---------- */
.tag {
  color: #0b4b8f;
  background: linear-gradient(90deg, #eaf5ff, #f6fbff);
  border: 1px solid #b9dcf5;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 10px;
}
.product-card .tag { font-size: 12px; }

/* ---------- 9. 区块标题体系 ---------- */
.section-heading h2, main h2 { letter-spacing: -.012em; }
.eyebrow {
  color: #0f6db8 !important;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 13px;
}
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 22px; height: 2px; margin-right: 10px;
  background: var(--kp-grad-accent); border-radius: 2px;
}
.hero .eyebrow { color: #7bd3ff !important; }

/* ---------- 10. 数据表格 ---------- */
.data-table {
  border-collapse: separate; border-spacing: 0;
  border: 1px solid #e2ebf4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px #0f23410a;
}
.data-table th {
  background: linear-gradient(90deg, #f2f8fd, #f7fbfe);
  color: #0b4b8f;
  font-weight: 700;
  border-bottom: 1px solid #dfe9f3;
  white-space: nowrap;
}
.data-table td { border-bottom: 1px solid #eef4fa; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background-color .15s var(--kp-ease); }
.data-table tbody tr:nth-child(even) { background: #fbfdff; }
.data-table tbody tr:hover { background: #eff8ff; }
.data-table.compact { box-shadow: none; }

/* ---------- 11. 区块带 band ---------- */
.band { border-radius: 16px; }

/* ---------- 12. 统计/信任条 ---------- */
.trust-index {
  background: var(--kp-grad-primary) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 800;
}
.home-trust .trust-item strong { letter-spacing: .01em; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  border-top: 1px solid #25b7ff33;
  box-shadow: inset 0 1px 0 #ffffff0d;
}
.site-footer a { transition: color .15s var(--kp-ease); }
.site-footer a:hover { color: #7bd3ff; }
.footer-bottom { border-top: 1px solid #ffffff14; }
.site-icp { color: #9db8d4; }
.site-icp:hover { color: #cfe7fb; }

/* ---------- 14. 图片呈现 ---------- */
.hero-media img, .product-card > img { border-radius: 10px; }
.hero-media img { box-shadow: 0 20px 50px #07152b59; }

/* ---------- 15. v3：抠图展示 / 标准符合性 / 试验流程 ---------- */
/* 产品卡抠图：白底衬垫 + contain 呈现 */
.product-card > img {
  object-fit: contain;
  background: linear-gradient(160deg, #f6fafd, #eef5fb);
  padding: 10px;
}
.product-card:hover > img { transform: scale(1.045); }

/* 详情页 hero 抠图 */
.hero-media img {
  object-fit: contain;
  background: linear-gradient(160deg, #ffffff0f, #ffffff08);
  padding: 8px;
}

/* 标准符合性列表 */
.std-note { color: #5d6a7e; margin-bottom: 14px; }
.std-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}
.std-list li {
  background: #fffffff7;
  border: 1px solid #d9e7f3;
  border-left: 3px solid #0f6db8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.65;
  box-shadow: 0 4px 14px #0f23410a;
}

/* 试验流程 */
.workflow-list {
  list-style: none; margin: 0; padding: 0; counter-reset: none;
  display: grid; gap: 10px; max-width: 860px;
}
.workflow-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fffffff7;
  border: 1px solid #e2ebf4;
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.65;
}
.step-no {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kp-grad-primary);
  color: #fff; font-weight: 800; font-size: 13px;
  border-radius: 8px;
  box-shadow: 0 4px 10px #0f6db840;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #f2f8fd; border: 1px solid #cfe3f2; color: #0b4b8f;
  font-size: 13.5px; text-decoration: none; transition: all .18s ease;
}
.chip:hover { background: #e2f0fb; border-color: #0f6db8; transform: translateY(-1px); }
.std-def { line-height: 1.8; }
a.std-link { color: #0b4b8f; font-weight: 700; text-decoration: underline dotted #0f6db8; text-underline-offset: 3px; }
a.std-link:hover { color: #0f6db8; }

/* ---------- 16. v4：图文详解（媒体交替板块） ---------- */
.media-blocks { display: grid; gap: 22px; }
.media-block {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  align-items: center; gap: 26px; margin: 0;
  background: #fffffff7; border: 1px solid #e2ebf4; border-radius: 14px;
  padding: 18px; box-shadow: 0 6px 20px #0f23410a;
}
.media-block.flip { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
.media-block.flip .mb-img { order: 2; }
.media-block.flip .mb-text { order: 1; }
.mb-img img {
  width: 100%; height: auto; max-height: 420px; object-fit: contain;
  background: linear-gradient(160deg, #f6fafd, #eef5fb);
  border-radius: 10px; padding: 8px;
}
.mb-text { padding: 4px 6px; }
.mb-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  color: #0f6db8; background: #e8f2fb; border-radius: 999px; padding: 3px 10px;
  margin: 0 0 8px;
}
.mb-text h3 { margin: 0 0 8px; font-size: 19px; color: #12263f; line-height: 1.4; }
.mb-text p { margin: 0; color: #44546a; line-height: 1.8; font-size: 15px; }
@media (max-width: 860px) {
  .media-block, .media-block.flip { grid-template-columns: 1fr; }
  .media-block.flip .mb-img { order: 1; }
  .media-block.flip .mb-text { order: 2; }
}

/* ---------- 17. v5：图解代码化（SVG 示意图 / 流程链 / 参数面板 / 标准链） ---------- */
.mb-visual {
  background: linear-gradient(160deg, #f6fafd, #eef5fb);
  border: 1px solid #d9e7f3;
  border-radius: 10px;
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}
.svg-diagram { width: 100%; height: auto; max-height: 400px; }
.svg-diagram text { font-family: inherit; }

/* 试验流程链 */
.flow-chain {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  width: 100%; justify-content: center; padding: 8px;
}
.fc-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #ffffff; border: 1px solid #c9def0; border-radius: 999px;
  padding: 7px 13px; font-size: 13.5px; color: #12263f; font-weight: 600;
  box-shadow: 0 3px 10px #0f23410d;
}
.fc-chip b {
  width: 20px; height: 20px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kp-grad-primary, linear-gradient(135deg,#0b4b8f,#25b7ff));
  color: #fff; font-size: 11.5px; border-radius: 50%;
}
.fc-chip:not(:last-child)::after {
  content: "→"; margin-left: 9px; color: #0f6db8; font-weight: 800;
}

/* 参数面板 */
.spec-panel {
  width: 100%; margin: 0 6px; background: #ffffff;
  border: 1px solid #d9e7f3; border-radius: 10px; overflow: hidden;
}
.sp-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; font-size: 14px; line-height: 1.55;
  border-bottom: 1px dashed #e2ebf4;
}
.sp-row:last-child { border-bottom: 0; }
.sp-row span { color: #5d6a7e; flex: 0 0 auto; }
.sp-row b { color: #12263f; text-align: right; font-weight: 700; }
.sp-row:nth-child(odd) { background: #f8fbfe; }

/* 标准链 */
.std-chain {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  width: 100%; padding: 8px;
}
.sc-chip {
  display: inline-flex; align-items: center;
  background: #ffffff; border: 1px solid #c9def0; border-left: 3px solid #0f6db8;
  border-radius: 8px; padding: 7px 11px; font-size: 13px; color: #12263f;
  line-height: 1.5;
}
.sc-chip .std-link { color: #0b6cb8; font-weight: 700; }
.sc-arrow {
  flex: 1 1 100%; font-size: 12.5px; color: #0f6db8; font-weight: 700;
  letter-spacing: .02em; margin-top: 2px;
}

/* ---------- 18. v6：底部资料下载栏 + 产品图片一排 ---------- */
.dl-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  background: #fffffff7; border: 1px solid #d9e7f3; border-left: 3px solid #0f6db8;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 20px;
  box-shadow: 0 8px 24px #0f23410d;
}
.dl-info { flex: 1 1 320px; display: grid; gap: 4px; }
.dl-info .mb-eyebrow { margin: 0; }
.dl-info strong { font-size: 16.5px; color: #12263f; }
.dl-info span { color: #5d6a7e; font-size: 13.5px; line-height: 1.6; }
a.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--kp-grad-primary, linear-gradient(135deg, #0b4b8f, #0f6db8 55%, #25b7ff));
  color: #fff !important; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 8px 20px #0f6db840;
}
a.dl-btn span { font-size: 15px; }
a.dl-btn:hover { filter: brightness(1.06); }
.photo-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.photo-row a {
  display: block; border: 1px solid #e2ebf4; border-radius: 10px;
  overflow: hidden; background: linear-gradient(160deg, #f6fafd, #eef5fb);
}
.photo-row img {
  width: 100%; height: 148px; object-fit: contain; display: block; padding: 6px;
}
@media (max-width: 900px) {
  .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-row img { height: 120px; }
}

/* ---------- 19. v7：UI 精修（导航/hero/标题/交互细节） ---------- */
/* 页头：吸顶 + 毛玻璃 + 渐变发丝线 */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #ffffffee;
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: none;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #0b4b8f, #0f6db8 40%, #25b7ff 75%, #25b7ff00);
  opacity: .55;
}
nav a { position: relative; }
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  border-radius: 2px; background: var(--kp-grad-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--kp-ease);
}
nav a:hover::after { transform: scaleX(1); }

/* Hero：层次与可读性 */
.hero { box-shadow: 0 24px 60px #0a1c3726; }
.hero h1 { font-size: clamp(30px, 3.2vw, 42px); }
.hero .lead {
  color: #eaf4ff;
  line-height: 1.9;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero .eyebrow {
  background: #ffffff14;
  border: 1px solid #7bd3ff45;
  padding: 7px 16px;
  border-radius: 999px;
  display: inline-block;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero .eyebrow::before { width: 18px; margin-right: 8px; }
/* hero 内 ghost 按钮：白色实底（在对角浅色区也清晰） */
.hero .button.ghost {
  background: #fffffff2;
  border: 1px solid #ffffff;
  color: #0b4b8f;
  box-shadow: 0 8px 20px #07152b38;
}
.hero .button.ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px #07152b4d; }

/* 区块 H2：底部渐变短杠 */
main .section > h2, main .band > h2 {
  font-size: clamp(22px, 2.1vw, 29px);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
main .section > h2::after, main .band > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #0f6db8, #25b7ff);
}

/* 卡片：hover 顶部渐变线 + 轻微抬升 */
.card { transition: transform .2s var(--kp-ease), box-shadow .25s var(--kp-ease), border-color .2s var(--kp-ease); }
.card::before {
  content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, #0f6db8, #25b7ff);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--kp-ease);
}
.card:hover::before { transform: scaleX(1); }

/* 图文块 / 参数面板 / 下载栏：微交互 */
.media-block:hover { transform: translateY(-3px); box-shadow: 0 14px 34px #0f234118; border-color: #c9def0; }
.spec-panel .sp-row { transition: background-color .15s var(--kp-ease); }
.spec-panel .sp-row:hover { background: #eff8ff; }
a.dl-btn { transition: transform .15s var(--kp-ease), box-shadow .25s var(--kp-ease), filter .15s var(--kp-ease); }
a.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px #0f6db855; }

/* 产品照片排：hover 放大 + 查看光标 */
.photo-row a { transition: transform .2s var(--kp-ease), box-shadow .25s var(--kp-ease); cursor: zoom-in; }
.photo-row a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #0f23411f; border-color: #9fc6e8; }
.photo-row a img { transition: transform .3s var(--kp-ease); }
.photo-row a:hover img { transform: scale(1.05); }

/* 数据表：数字对齐 + 首列宽度 */
.data-table th { width: 176px; }
.data-table td { font-variant-numeric: tabular-nums; }

/* SVG 示意图底色微调（浅色纸上更聚焦） */
.mb-visual .svg-diagram { filter: drop-shadow(0 6px 16px #0f234112); }

.card { position: relative; }

/* ---------- 20. v7b：hero 对角线与眉标修正 ---------- */
.hero {
  background: linear-gradient(135deg, #07152bf7 0%, #0a2c53f4 51%, #f6fafff7 51.15%, #ffffff 100%) !important;
}
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  line-height: 1.7;
  border-radius: 14px;
  white-space: normal;
}
