/* ============================================================
   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;
}
