/* ==========================================================================
   青海数境科技有限公司 · 官网样式
   深色科技风 / 零依赖 / 响应式
   ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg:          #05080e;
  --bg-alt:      #080d17;
  --panel:       rgba(17, 25, 40, 0.66);
  --panel-solid: #0c1320;
  --border:      rgba(96, 165, 250, 0.14);
  --border-hi:   rgba(34, 211, 238, 0.42);

  --text:    #e8eefb;
  --text-2:  #a9bad6;
  --muted:   #7d8fab;

  --cyan:   #22d3ee;
  --blue:   #3b82f6;
  --violet: #8b5cf6;

  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 52%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,.16), rgba(139,92,246,.16));

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, .35);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, .45);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, .18);

  --radius:    16px;
  --radius-sm: 10px;
  --container: 1240px;
  --header-h:  76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               "Source Han Sans SC", "Noto Sans SC", -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection { background: rgba(34, 211, 238, .3); color: #fff; }

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

/* 锚点跳转时避开固定导航 */
[id] { scroll-margin-top: 88px; }

/* ---------- 背景层 ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 165, 250, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 88% 62% at 50% 0%, #000 8%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 88% 62% at 50% 0%, #000 8%, transparent 78%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 620px; height: 620px;
  top: -280px; left: -180px;
  background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 68%);
}
.bg-glow-2 {
  width: 700px; height: 700px;
  top: 34%; right: -320px;
  background: radial-gradient(circle, rgba(139, 92, 246, .15), transparent 68%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background-color .28s var(--ease), border-color .28s var(--ease);
}

.btn-primary {
  background: var(--grad);
  color: #04070d;
  box-shadow: 0 10px 30px rgba(34, 211, 238, .22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(34, 211, 238, .34);
}

.btn-ghost {
  background: rgba(255, 255, 255, .02);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--border-hi);
  background: rgba(34, 211, 238, .07);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 20px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 90;
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), backdrop-filter .35s var(--ease),
              border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(5, 8, 14, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  height: 45px; width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, .35));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .6px;
}
.brand-text em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 1.3px;
  color: var(--muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 8px 15px;
  font-size: 14.5px;
  color: var(--text-2);
  border-radius: 8px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(96, 165, 250, .07); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 20px; }
.nav-link.is-active { color: var(--cyan); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 8, 14, .6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.nav-mask.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 92px) 0 110px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(34, 211, 238, .05);
}
.pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero-title {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 8%, #a9d9ff 46%, #7dc4ff 72%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.hero-title .dot {
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  margin: 0 6px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-sub .hl {
  color: var(--cyan);
  font-weight: 600;
  border-bottom: 1px dashed rgba(34, 211, 238, .5);
  padding-bottom: 1px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 54px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat strong i {
  font-style: normal;
  font-size: 15px;
  margin-left: 2px;
  -webkit-text-fill-color: currentColor;
  background: none;
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s;
}
.stat strong i.is-shown { opacity: 1; transform: none; }
.stat > span {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .5px;
}
.stat-divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

/* Hero 视觉 */
.hero-visual { display: flex; justify-content: center; }
.shield-stage {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, .16);
}
.orbit-1 { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.orbit-2 {
  width: 78%; height: 78%;
  border-style: dashed;
  border-color: rgba(34, 211, 238, .22);
  animation: spin 18s linear infinite reverse;
}
.orbit-3 { width: 56%; height: 56%; animation: spin 12s linear infinite; }

.orbit-node {
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, .9);
}
.orbit-1 .orbit-node:last-child { top: auto; bottom: -4px; background: var(--violet); box-shadow: 0 0 14px rgba(139, 92, 246, .9); }
.orbit-3 .orbit-node { background: var(--blue); box-shadow: 0 0 14px rgba(59, 130, 246, .9); }

@keyframes spin { to { transform: rotate(360deg); } }

.shield-core {
  width: 210px;
  filter: drop-shadow(0 0 46px rgba(34, 211, 238, .38));
  animation: floatY 5.5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.float-tag {
  position: absolute;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(12, 19, 32, .82);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.float-tag b { color: var(--cyan); font-weight: 700; }
.float-tag-a { top: 12%; left: -6%; animation: floatY 4.6s ease-in-out infinite .3s; }
.float-tag-b { top: 48%; right: -8%; animation: floatY 5.2s ease-in-out infinite .9s; }
.float-tag-c { bottom: 10%; left: 2%; animation: floatY 4.9s ease-in-out infinite 1.5s; }

.scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.scroll-hint span {
  width: 22px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Section 通用 ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(10, 16, 27, .0), rgba(10, 16, 27, .72) 16%, rgba(10, 16, 27, .72) 84%, rgba(10, 16, 27, 0));
}

.section-head {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 999px;
  background: rgba(34, 211, 238, .05);
}
.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: .8px;
  margin-bottom: 18px;
}
.section-desc {
  font-size: 15.5px;
  color: var(--text-2);
}

/* ---------- 核心能力 ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.cap-card {
  position: relative;
  padding: 32px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.cap-card:hover::before { transform: scaleX(1); }

.cap-icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 20px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, .18);
}
.cap-icon svg { width: 25px; height: 25px; }
.cap-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.cap-card p { font-size: 14px; color: var(--text-2); line-height: 1.72; }

/* ---------- 产品矩阵 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.product-card::after {
  content: "";
  position: absolute;
  top: -60%; right: -60%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 68%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-7px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.product-card:hover::after { opacity: 1; }

.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.pc-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, .18);
  transition: transform .35s var(--ease);
}
.product-card:hover .pc-icon { transform: scale(1.06) rotate(-4deg); }
.pc-icon svg { width: 23px; height: 23px; }

.pc-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-2);
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(96, 165, 250, .06);
  white-space: nowrap;
}

.product-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}
.pc-en {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.pc-desc {
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.72;
  flex: 1;
}
.pc-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.pc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
}
.pc-more i {
  font-style: normal;
  transition: transform .3s var(--ease);
}
.product-card:hover .pc-more i { transform: translateX(5px); }

/* ---------- 解决方案 ---------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.sol-card {
  position: relative;
  padding: 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.sol-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.sol-num {
  position: absolute;
  top: 22px; right: 28px;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: rgba(96, 165, 250, .1);
  letter-spacing: -2px;
  transition: color .35s var(--ease);
}
.sol-card:hover .sol-num { color: rgba(34, 211, 238, .22); }
.sol-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-right: 60px;
}
.sol-card > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 18px;
}
.sol-list { display: flex; flex-wrap: wrap; gap: 9px; }
.sol-list li {
  font-size: 12.5px;
  color: var(--text-2);
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, .05);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.sol-card:hover .sol-list li { border-color: rgba(34, 211, 238, .26); color: var(--text); }

/* ---------- 安全服务 ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.svc-item {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 25, 40, .78), rgba(10, 16, 26, .6));
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.svc-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.svc-num {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(180deg, rgba(96, 165, 250, .20), rgba(96, 165, 250, .03));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
  transition: background .35s var(--ease);
}
.svc-item:hover .svc-num {
  background: linear-gradient(180deg, rgba(34, 211, 238, .42), rgba(34, 211, 238, .06));
  -webkit-background-clip: text;
  background-clip: text;
}
.svc-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, .30);
  background: linear-gradient(150deg, rgba(34, 211, 238, .13), rgba(129, 140, 248, .09));
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.svc-icon svg { width: 23px; height: 23px; display: block; }
.svc-item:hover .svc-icon {
  border-color: rgba(34, 211, 238, .55);
  box-shadow: 0 0 18px rgba(34, 211, 238, .18);
  transform: translateY(-2px);
}
.svc-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 9px; }
.svc-item p { font-size: 13.8px; color: var(--text-2); line-height: 1.7; }

/* ---------- 关于我们 ---------- */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 60px;
  align-items: center;
}
.about-copy .section-title { text-align: left; margin-bottom: 22px; }
.about-copy p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.ap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  border-left: 2px solid rgba(34, 211, 238, .5);
  background: rgba(34, 211, 238, .04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ap b { font-size: 14.5px; color: var(--cyan); white-space: nowrap; }
.ap span { font-size: 13.5px; color: var(--text-2); }

.about-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.metric-card {
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.metric-card:hover { transform: translateY(-5px); border-color: var(--border-hi); }
.metric-card strong {
  display: block;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.metric-card span { font-size: 13px; color: var(--muted); letter-spacing: .5px; }

/* ---------- 联系我们 ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: start;
}

.contact-info { display: grid; gap: 14px; }
.ci-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.ci-item:hover { border-color: var(--border-hi); transform: translateX(4px); }
.ci-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, .18);
}
.ci-icon svg { width: 21px; height: 21px; }
.ci-item div { display: flex; flex-direction: column; }
.ci-item b { font-size: 14.5px; font-weight: 700; }
.ci-item span { font-size: 13px; color: var(--text-2); }

.contact-form {
  padding: 32px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 25, 40, .82), rgba(10, 16, 26, .66));
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field label i { color: #f87171; font-style: normal; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 15px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: rgba(5, 8, 14, .6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 104px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #5c6b83; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237d8fab' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.form-field select option { background: #0c1320; color: var(--text); }

.contact-form .btn-block { margin-top: 6px; }

.form-tip {
  margin-top: 12px;
  font-size: 13px;
  min-height: 19px;
  text-align: center;
  transition: color .25s var(--ease);
}
.form-tip.is-ok { color: #34d399; }
.form-tip.is-err { color: #f87171; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 13, 23, .5), rgba(5, 8, 14, .95));
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 56px;
  padding-bottom: 48px;
}
.footer-slogan {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.footer-col a {
  font-size: 13.2px;
  color: var(--text-2);
  transition: color .25s var(--ease), transform .25s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--cyan); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 32px;
  border-top: 1px solid var(--border);
  font-size: 12.8px;
  color: var(--muted);
}
.footer-note { letter-spacing: 1px; }

/* ---------- 产品详情弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 36px 34px 30px;
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  background: linear-gradient(160deg, #0e1623, #080d16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(34, 211, 238, .1);
  transform: translateY(22px) scale(.97);
  transition: transform .35s var(--ease);
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.modal-close:hover { color: var(--cyan); border-color: var(--border-hi); transform: rotate(90deg); }
.modal-close svg { width: 17px; height: 17px; }

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  padding-right: 40px;
}
.modal-icon {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, .2);
}
.modal-icon svg { width: 27px; height: 27px; }
.modal-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 7px;
}
.modal-head h3 { font-size: 21px; font-weight: 800; line-height: 1.35; margin-bottom: 4px; }
.modal-en { font-size: 10.5px; letter-spacing: 1.3px; color: var(--muted); font-weight: 600; }

.modal-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.82;
  margin-bottom: 26px;
}

.modal-block { margin-bottom: 24px; }
.modal-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-left: 11px;
  border-left: 3px solid var(--cyan);
  line-height: 1.2;
}

.modal-features { display: grid; gap: 10px; }
.modal-features li {
  position: relative;
  padding-left: 26px;
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.7;
}
.modal-features li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

.modal-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.modal-chips span {
  font-size: 12.5px;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(96, 165, 250, .06);
}

.modal-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.modal-foot .btn { width: 100%; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(12, 19, 32, .88);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .32s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.to-top svg { width: 19px; height: 19px; }

/* ---------- 滚动揭示动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* 网格内元素错位延迟 */
.cap-grid [data-reveal]:nth-child(2),
.product-grid [data-reveal]:nth-child(3n+2),
.svc-grid [data-reveal]:nth-child(3n+2),
.sol-grid [data-reveal]:nth-child(2n) { transition-delay: .09s; }
.cap-grid [data-reveal]:nth-child(3),
.product-grid [data-reveal]:nth-child(3n+3),
.svc-grid [data-reveal]:nth-child(3n+3) { transition-delay: .18s; }
.cap-grid [data-reveal]:nth-child(4) { transition-delay: .27s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-copy .section-title { text-align: center; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .container { padding: 0 22px; }
  .section { padding: 76px 0; }
  .hero { padding: calc(var(--header-h) + 56px) 0 76px; }
  .section-head { margin-bottom: 42px; }

  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 85;
    width: min(84vw, 320px);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: calc(var(--header-h) + 20px) 20px 20px;
    background: rgba(8, 13, 22, .98);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .36s var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-link {
    padding: 13px 16px;
    font-size: 15.5px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(96, 165, 250, .07);
  }
  .nav-link::after { display: none; }

  .sol-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shield-stage { width: 320px; height: 320px; }
  .shield-core { width: 168px; }
  .float-tag { font-size: 11px; padding: 6px 11px; }
  .float-tag-a { left: -2%; }
  .float-tag-b { right: -3%; }

  .modal-panel { padding: 28px 22px 24px; max-height: 88vh; }
  .modal-head { padding-right: 34px; }
  .modal-head h3 { font-size: 18px; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 560px) {
  .brand-logo { height: 36px; }
  .cap-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .about-metrics { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 14px; }
  .stat-divider { display: none; }
  .stat { flex: 1 1 40%; align-items: center; text-align: center; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- 无障碍 / 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ==========================================================================
   产品详情页（product.html）
   ========================================================================== */

/* ---------- Hero ---------- */
.pd-hero { padding: calc(var(--header-h) + 58px) 0 74px; }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--text-2); transition: color .25s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: rgba(125, 143, 171, .45); }
.breadcrumb em { font-style: normal; color: var(--cyan); font-weight: 600; }

.pd-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 52px;
  align-items: center;
}

.pd-tag {
  display: inline-block;
  padding: 5px 15px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 999px;
  background: rgba(34, 211, 238, .05);
}

.pd-hero h1 {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 10%, #a9d9ff 52%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pd-en {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
}

.pd-desc {
  max-width: 620px;
  margin-bottom: 34px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}

.pd-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.pd-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
}
.pd-hero-ring {
  position: absolute;
  width: 264px; height: 264px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, .22);
  box-shadow: inset 0 0 70px rgba(34, 211, 238, .07);
  animation: spin 26s linear infinite;
}
.pd-hero-ring::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, .9);
}
.pd-hero-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px; height: 152px;
  border-radius: 34px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, .24);
  box-shadow: 0 0 72px rgba(34, 211, 238, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: floatY 5.5s ease-in-out infinite;
}
.pd-hero-icon svg { width: 76px; height: 76px; }

/* ---------- 概述 + 场景 ---------- */
.pd-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .62fr);
  gap: 42px;
  align-items: start;
}

.pd-h2 {
  position: relative;
  padding-left: 17px;
  margin-bottom: 22px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .5px;
}
.pd-h2::before {
  content: "";
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 4px;
  border-radius: 3px;
  background: var(--grad);
}

.pd-overview-text {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-2);
}

.pd-side {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.pd-side h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.pd-side-cta { margin-top: 22px; }

/* ---------- 核心能力 ---------- */
.pd-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pd-feature-card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.pd-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.pd-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.pd-feature-card:hover::before { transform: scaleX(1); }

.pd-feature-idx {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.pd-feature-card p { font-size: 14px; line-height: 1.8; color: var(--text-2); }

/* ---------- 产品优势 ---------- */
.pd-hl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pd-hl-card {
  position: relative;
  padding: 34px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 25, 40, .78), rgba(10, 16, 26, .6));
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.pd-hl-card::after {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .14), transparent 68%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.pd-hl-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.pd-hl-card:hover::after { opacity: 1; }

.pd-hl-idx {
  display: block;
  margin-bottom: 14px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: rgba(96, 165, 250, .17);
  transition: color .35s var(--ease);
}
.pd-hl-card:hover .pd-hl-idx { color: rgba(34, 211, 238, .3); }
.pd-hl-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.pd-hl-card p { font-size: 14px; line-height: 1.8; color: var(--text-2); }

/* ---------- 上下篇导航 ---------- */
.pd-pager-section { padding: 6px 0 34px; }
.pd-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pd-pager-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
a.pd-pager-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.pd-pager-next { text-align: right; }
.pd-pager-label { font-size: 12.5px; letter-spacing: .5px; color: var(--muted); }
.pd-pager-item strong { font-size: 16px; font-weight: 700; color: var(--text); }
.pd-pager-empty { border-color: transparent; background: none; padding: 0; }

.pd-more { margin-top: 36px; text-align: center; }

/* ---------- 详情页响应式 ---------- */
@media (max-width: 1080px) {
  .pd-hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .pd-hero-copy { display: flex; flex-direction: column; align-items: center; }
  .pd-desc { margin-inline: auto; }
  .pd-cta { justify-content: center; }
  .pd-hero-visual { order: -1; }
  .pd-overview-grid { grid-template-columns: 1fr; gap: 30px; }
  .pd-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-hl-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .pd-hero { padding: calc(var(--header-h) + 34px) 0 56px; }
  .pd-hero-visual { min-height: 200px; }
  .pd-hero-ring { width: 192px; height: 192px; }
  .pd-hero-icon { width: 118px; height: 118px; border-radius: 26px; }
  .pd-hero-icon svg { width: 58px; height: 58px; }
  .pd-pager { grid-template-columns: 1fr; }
  .pd-pager-next { text-align: left; }
  .pd-pager-empty { display: none; }
}

@media (max-width: 560px) {
  .pd-feature-grid { grid-template-columns: 1fr; }
  .pd-hero h1 { font-size: 26px; }
}

/* ==========================================================================
   交互动效增强（v3）：滚动进度 / 光标聚光 / 3D 倾斜 / 磁吸 / 视差 / 流光
   —— 均为纯视觉增强，不改动布局；reduced-motion 与大屏触控已做降级
   ========================================================================== */

/* ---------- 顶部滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 95;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 52%, #8b5cf6 100%);
  box-shadow: 0 0 12px rgba(34, 211, 238, .55);
  pointer-events: none;
}

/* ---------- 光标聚光：背景光斑（位于文字之下） ---------- */
.product-card,
.sol-card {
  background-image:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .13), transparent 62%);
}
.svc-item {
  background-image:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .14), transparent 62%),
    linear-gradient(160deg, rgba(17, 25, 40, .78), rgba(10, 16, 26, .6));
}

/* ---------- 光标聚光：跟随描边光环 ---------- */
.glow-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
              rgba(34, 211, 238, .85), rgba(59, 130, 246, .35) 42%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.cap-card:hover .glow-ring,
.cap-card:focus-visible .glow-ring,
.product-card:hover .glow-ring,
.product-card:focus-visible .glow-ring,
.sol-card:hover .glow-ring,
.sol-card:focus-visible .glow-ring,
.svc-item:hover .glow-ring { opacity: 1; }

/* ---------- 产品卡：hover 光泽扫过 ---------- */
.sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.sheen::before {
  content: "";
  position: absolute;
  top: -70%; left: -70%;
  width: 55%; height: 240%;
  background: linear-gradient(90deg, transparent, rgba(190, 230, 255, .17), transparent);
  transform: rotate(16deg);
  opacity: 0;
}
.product-card:hover .sheen::before,
.product-card:focus-visible .sheen::before {
  animation: sheenSweep .95s var(--ease);
}
@keyframes sheenSweep {
  0%   { opacity: 0; transform: rotate(16deg) translateX(0); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(16deg) translateX(360%); }
}

/* ---------- 3D 倾斜（由 JS 写入 inline transform） ---------- */
.product-card.is-tilting,
.sol-card.is-tilting {
  transition: transform .18s ease-out,
              border-color .35s var(--ease),
              box-shadow .35s var(--ease);
  will-change: transform;
}

/* ---------- 磁吸按钮 ---------- */
.btn.is-magnetic,
.to-top.is-magnetic {
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition: transform .22s var(--ease),
              background-color .3s var(--ease),
              box-shadow .3s var(--ease),
              color .3s var(--ease),
              border-color .3s var(--ease);
}
.btn.is-magnetic:hover,
.to-top.is-magnetic:hover {
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px), 0);
}

/* ---------- Hero 指针视差 ---------- */
.is-parallax { transition: opacity .7s var(--ease), transform .25s ease-out; }

/* ---------- Hero 标题流光 ---------- */
.hero-title {
  background-size: 240% 100%;
  animation: titleFlow 11s linear infinite;
}
@keyframes titleFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}


/* ---------- 动效降级：无指针 / 减少动效环境 ---------- */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .glow-ring, .sheen { display: none; }
  .btn.is-magnetic, .to-top.is-magnetic { transform: none; }
  .hero-title { animation: none; background-size: 100% 100%; }
  .scroll-progress { box-shadow: none; }
  .product-card, .sol-card, .svc-item {
    background-image: none;
  }
  .svc-item {
    background-image: linear-gradient(160deg, rgba(17, 25, 40, .78), rgba(10, 16, 26, .6));
  }
}

/* ---------- 核心能力：闭环数据流交互（v3.1） ---------- */
.cap-grid { position: relative; }
.cap-step {
  position: absolute;
  top: 20px; right: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text-2);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(96, 165, 250, .06);
  transition: color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cap-card:hover .cap-step,
.cap-card:focus-visible .cap-step {
  color: var(--cyan);
  border-color: var(--border-hi);
  box-shadow: 0 0 14px rgba(34, 211, 238, .3);
}
.cap-card .cap-icon { transition: transform .35s var(--ease); }
.cap-card:hover .cap-icon { transform: scale(1.1) rotate(-5deg); }
.cap-card { transition: transform .35s var(--ease), border-color .35s var(--ease),
            box-shadow .35s var(--ease), opacity .35s var(--ease); }

/* 悬停时其他卡退暗，突出当前环节 */
.cap-grid:has(.cap-card:hover) .cap-card:not(:hover) { opacity: .42; }

/* 闭环流光束（JS 依卡位绘制 SVG） */
.cap-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}
.cap-flow {
  fill: none;
  stroke: rgba(34, 211, 238, .9);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 10;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
g.is-active .cap-flow {
  opacity: .8;
  animation: capFlow .55s linear infinite;
  filter: drop-shadow(0 0 5px rgba(34, 211, 238, .65));
}
.cap-flow-arrow { fill: rgba(34, 211, 238, .9); opacity: 0; transition: opacity .3s var(--ease); }
g.is-active .cap-flow-arrow { opacity: 1; }
@keyframes capFlow { to { stroke-dashoffset: -14; } }

@media (max-width: 1080px) {
  .cap-flow-svg { display: none; }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .cap-flow { animation: none; }
  .cap-grid:has(.cap-card:hover) .cap-card:not(:hover) { opacity: 1; }
}
