/* ==========================================================================
   凯文思智能检测 (KENWIGS) 官网样式
   ========================================================================== */

:root {
  --brand:        #0A4DA2;
  --brand-dark:   #063472;
  --brand-light:  #1E7AE0;
  --brand-pale:   #E8F1FC;
  --accent:       #00A6A6;
  --accent-warm:  #FF7A1A;

  --ink:          #0E1A2B;
  --ink-2:        #33455C;
  --ink-3:        #6B7C93;
  --line:         #DFE6EF;
  --line-soft:    #EDF2F8;
  --bg:           #FFFFFF;
  --bg-soft:      #F5F8FC;
  --bg-deep:      #08182E;

  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 2px 8px rgba(14, 26, 43, .05), 0 12px 32px rgba(14, 26, 43, .07);
  --shadow-lg:    0 8px 24px rgba(14, 26, 43, .10), 0 28px 64px rgba(14, 26, 43, .12);

  --container:    1240px;
  --nav-h:        72px;

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
          "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* Grid/Flex 子项默认 min-width:auto 会被内容撑破，导致移动端横向溢出 */
.hero-inner > *, .split > *, .grid > *, .chain > *, .case-grid > * { min-width: 0; }
.hero-desc, .panel-head, .card, .case-body, .tool, .gal-item { overflow-wrap: break-word; }

/* ============================ 顶部导航 ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  z-index: 100;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(14, 26, 43, .06); }

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

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { height: 36px; width: auto; }
.brand-text { line-height: 1.2; }
.brand-cn { font-size: 16px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.brand-en { font-size: 9px; color: var(--ink-3); letter-spacing: 1.8px; font-weight: 600; white-space: nowrap; }

.nav-links { display: flex; gap: 0; align-items: center; }
.nav-links a {
  padding: 9px 11px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
  font-weight: 500; transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-pale); }
.nav-links a.active { color: var(--brand); font-weight: 600; }

.nav-cta {
  padding: 9px 17px; border-radius: 9px; font-size: 14px; font-weight: 600;
  background: var(--brand); color: #fff; transition: background .2s, transform .2s;
  white-space: nowrap; margin-left: 6px;
}
.nav-cta:hover { background: var(--brand-light); transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: var(--bg-soft);
  border-radius: 9px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================ 通用区块 ============================ */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-soft); }
.section.deep { background: var(--bg-deep); color: #E8EFF8; }

.sec-head { max-width: 780px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand-light); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.sec-head.center .eyebrow { justify-content: center; }
.deep .eyebrow { color: #6FB6FF; }

.sec-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.5px; line-height: 1.28; }
.sec-sub { margin-top: 16px; font-size: 16.5px; color: var(--ink-3); }
.deep .sec-sub { color: #93A6BE; }

/* ============================ 首屏 Hero ============================ */
.hero {
  position: relative; padding: calc(var(--nav-h) + 84px) 0 96px;
  background: linear-gradient(165deg, #071628 0%, #0B2447 52%, #0E3A6E 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% 22%, rgba(30, 122, 224, .30), transparent 62%),
    radial-gradient(620px 380px at 12% 82%, rgba(0, 166, 166, .20), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .30; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 8px;
  border-radius: 100px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; color: #CDE2FA; margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero-badge b { background: var(--accent); color: #04252B; padding: 2px 10px; border-radius: 100px; font-size: 11.5px; letter-spacing: .5px; }

.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; line-height: 1.16; letter-spacing: -.8px; }
.hero h1 em { font-style: normal; color: #6FB6FF; }

.hero-desc { margin-top: 22px; font-size: 17px; color: #B7C9DE; max-width: 560px; }

.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--brand-light); color: #fff; box-shadow: 0 10px 26px rgba(30,122,224,.36); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(30,122,224,.46); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); }

.hero-stats { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 640px; }
.hero-stat b { display: block; font-size: 30px; font-weight: 700; color: #fff; line-height: 1.2; }
.hero-stat span { font-size: 13px; color: #8FA5C0; }

.hero-visual { position: relative; }
.hero-card {
  border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.14);
}
.hero-card img { width: 100%; }
.hero-card-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #0B1B30; border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-card-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34506F; }
.hero-card-bar i:nth-child(1) { background: #E0555B; }
.hero-card-bar i:nth-child(2) { background: #E0A93F; }
.hero-card-bar i:nth-child(3) { background: #48B36A; }
.hero-card-bar span { margin-left: 8px; font-size: 12px; color: #7A90AB; }

.hero-float {
  position: absolute; background: rgba(255,255,255,.97); border-radius: 12px;
  padding: 13px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 11px; align-items: center;
}
.hero-float.tl { top: -20px; left: -26px; }
.hero-float.br { bottom: -22px; right: -18px; }
.hero-float .ico {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-pale); color: var(--brand); flex: none;
}
.hero-float .ico.teal { background: #E0F7F7; color: var(--accent); }
.hero-float b { display: block; font-size: 13.5px; line-height: 1.35; }
.hero-float span { font-size: 11.5px; color: var(--ink-3); }

/* ============================ 通用卡片 ============================ */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9DBF2; }

.card-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-pale); color: var(--brand); margin-bottom: 18px;
}
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--ink-3); line-height: 1.75; }

.feat-list { display: grid; gap: 11px; margin-top: 4px; }
.feat-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.feat-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 2px solid var(--brand-light); border-bottom: 2px solid var(--brand-light);
  transform: rotate(-45deg);
}
.deep .feat-list li { color: #C3D2E4; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip {
  font-size: 12.5px; padding: 6px 13px; border-radius: 100px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2);
}
.deep .chip { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #C3D2E4; }

/* ============================ 产品线标签页 ============================ */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab {
  padding: 11px 22px; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: all .22s;
}
.tab:hover { border-color: var(--brand-light); color: var(--brand); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(10,77,162,.24); }

.tab-panel { display: none; animation: fadeUp .45s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.panel-head { margin-bottom: 30px; max-width: 860px; }
.panel-head h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.panel-head p { color: var(--ink-3); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
.split.wide-right { grid-template-columns: .85fr 1.15fr; }

.media {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--line); position: relative;
}
.media img { width: 100%; }
.media-caption {
  position: absolute; left: 14px; bottom: 14px; background: rgba(8,24,46,.82);
  color: #fff; font-size: 12.5px; padding: 6px 13px; border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* ============================ 指标 ============================ */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.metric {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: center;
}
.metric b { display: block; font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.15; }
.metric b small { font-size: 17px; font-weight: 600; margin-left: 2px; }
.metric span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.deep .metric { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.deep .metric b { color: #6FB6FF; }
.deep .metric span { color: #93A6BE; }

/* ============================ 图库 ============================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line); cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(8,24,46,.88));
  color: #fff; font-size: 12.5px; transform: translateY(6px); opacity: 0;
  transition: opacity .3s, transform .3s;
}
.gal-item:hover figcaption { opacity: 1; transform: none; }

/* ============================ 工具网格 ============================ */
.tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tool {
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; transition: transform .22s, box-shadow .22s;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tool span { display: block; padding: 9px 10px; font-size: 12.5px; color: var(--ink-2); text-align: center; border-top: 1px solid var(--line-soft); }

/* ============================ 案例 ============================ */
.case-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: transform .25s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 100px;
  background: rgba(10,77,162,.92); color: #fff; font-size: 11.5px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.case-body { padding: 18px 20px 22px; }
.case-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.case-body p { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }

/* ============================ 技术优势链条 ============================ */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.chain-node {
  position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.chain-node h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.chain-node p { font-size: 13px; color: #93A6BE; line-height: 1.65; }
.chain-node:not(:last-child)::after {
  content: "+"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-light); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 700; z-index: 2;
}
.chain-result {
  margin-top: 24px; text-align: center; padding: 24px;
  border-radius: var(--radius); background: rgba(30,122,224,.13); border: 1px solid rgba(111,182,255,.3);
}
.chain-result b { font-size: 17px; color: #A9D4FF; }

/* ============================ CTA ============================ */
.cta {
  background: linear-gradient(140deg, var(--brand-dark), var(--brand) 55%, #1260C4);
  color: #fff; text-align: center; padding: 82px 0;
}
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin-bottom: 16px; }
.cta p { color: #BED6F2; max-width: 640px; margin: 0 auto 32px; font-size: 16px; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* ============================ 页脚 ============================ */
.footer { background: #061224; color: #8CA1BB; padding: 62px 0 30px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand .brand-logo { height: 44px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-brand p { line-height: 1.8; max-width: 320px; }
.footer h5 { color: #fff; font-size: 14.5px; font-weight: 600; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer li a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #5E7391; }

/* ============================ 灯箱 ============================ */
.lightbox {
  position: fixed; inset: 0; background: rgba(4,12,24,.93); z-index: 999;
  display: none; place-items: center; padding: 40px; backdrop-filter: blur(6px);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-cap { margin-top: 16px; color: #C5D4E6; font-size: 14px; text-align: center; }
.lightbox-close {
  position: absolute; top: 26px; right: 30px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.13); color: #fff; font-size: 24px;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }

/* ============================ 滚动动画 ============================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================ 响应式 ============================ */
@media (max-width: 1320px) {
  .nav-links a { padding: 9px 8px; font-size: 13.5px; }
  .brand-en { display: none; }
}

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-float.tl { left: 0; }
  .hero-float.br { right: 0; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .chain-node:not(:last-child)::after { display: none; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column;
    background: #fff; padding: 12px 20px 22px; gap: 2px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .section { padding: 66px 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-float { display: none; }
  .sec-head { margin-bottom: 34px; }
}

@media (max-width: 520px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .brand-en { display: none; }
}
