/* ==========================================================================
   网脉科技 - 基础样式（变量/重置/导航/按钮/布局/Hero）
   ========================================================================== */

:root {
  --c-primary: #2563eb;
  --c-primary-dark: #1d4ed8;
  --c-accent: #06b6d4;
  --c-navy: #0b1f3a;
  --c-ink: #0f172a;
  --c-body: #475569;
  --c-muted: #94a3b8;
  --c-line: #e2e8f0;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fb;
  --c-bg-tint: #eff4fb;
  --grad-hero: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .18);
  --shadow-blue: 0 12px 32px -8px rgba(37, 99, 235, .35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(37, 99, 235, .18); }

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--c-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top .25s;
}
.skip-link:focus { top: 0; }

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--navy {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(6, 182, 212, .1), transparent 55%),
    var(--c-navy);
  color: #cbd5e1;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--grad-hero);
  border-radius: 2px;
}
.section--navy .eyebrow { color: #22d3ee; }

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.section-desc { margin-top: 16px; font-size: 16.5px; }
.section--navy .section-title { color: #fff; }
.section--navy .section-desc { color: #94a3b8; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--grad-hero);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(37, 99, 235, .45); }

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, .35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(203, 213, 225, .6); color: #fff; }

.btn--outline { border-color: var(--c-line); color: var(--c-ink); background: #fff; }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--c-line);
  box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
}

.nav--inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  background: var(--grad-hero);
  display: grid; place-items: center;
  box-shadow: var(--shadow-blue);
  transition: transform .3s var(--ease);
}
.logo:hover .logo-mark { transform: translateY(-1px); }
.logo-mark svg { width: 26px; height: 26px; overflow: visible; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-zh { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.logo-en { font-size: 10px; letter-spacing: .24em; color: #8ba3c7; font-weight: 700; }
.logo-en b { font-weight: 700; color: #22d3ee; }
.nav.is-scrolled .logo-zh { color: var(--c-ink); }
.nav.is-scrolled .logo-en { color: #64748b; }
.nav.is-scrolled .logo-en b { color: #0891b2; }
.logo .halo { transition: opacity .3s; }
.logo:hover .halo { animation: haloPulse 1.6s ease-in-out infinite; }
@keyframes haloPulse {
  0%, 100% { opacity: .32; }
  50% { opacity: .08; }
}

.nav--links { display: flex; align-items: center; gap: 8px; }
.nav--link {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #cbd5e1;
  border-radius: 999px;
  transition: color .25s;
}
.nav--link:hover { color: #fff; }
.nav.is-scrolled .nav--link { color: var(--c-body); }
.nav.is-scrolled .nav--link:hover { color: var(--c-primary); }
.nav--link.is-active { color: #fff; }
.nav.is-scrolled .nav--link.is-active { color: var(--c-primary); }
.nav--link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--grad-hero);
}

.nav--toggle {
  display: none;
  justify-self: end;
  width: 42px; height: 42px;
  border: 1px solid rgba(148, 163, 184, .4);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav--toggle span {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background-color .3s;
}
.nav.is-scrolled .nav--toggle span, .nav--toggle.is-open span { background: var(--c-ink); }
.nav--toggle span:nth-child(1) { top: 15px; transform: translateX(-50%); }
.nav--toggle span:nth-child(2) { top: 20px; transform: translateX(-50%); }
.nav--toggle span:nth-child(3) { top: 25px; transform: translateX(-50%); }
.nav--toggle.is-open span:nth-child(1) { top: 20px; transform: translateX(-50%) rotate(45deg); }
.nav--toggle.is-open span:nth-child(2) { opacity: 0; }
.nav--toggle.is-open span:nth-child(3) { top: 20px; transform: translateX(-50%) rotate(-45deg); }

.nav--mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #fff;
  padding: calc(var(--nav-h) + 24px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s var(--ease), opacity .3s, visibility .3s;
}
.nav--mobile.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav--mobile a {
  padding: 14px 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.nav--mobile a.is-active { color: var(--c-primary); }
.nav--mobile .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(37, 99, 235, .22), transparent 55%),
    var(--c-navy);
  overflow: hidden;
  color: #e2e8f0;
  padding: calc(var(--nav-h) + 64px) 0 72px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
}

.hero--inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}

.hero--badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .14);
  border: 1px solid rgba(37, 99, 235, .35);
  font-size: 13.5px;
  color: #93c5fd;
  margin-bottom: 26px;
}
.hero--badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .22);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 238, .22); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, .08); }
}

.hero--title {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: #fff;
}
.hero--title .grad {
  background: linear-gradient(120deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero--desc { margin: 22px 0 34px; max-width: 520px; font-size: 17px; color: #94a3b8; }
.hero--actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero--stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.stat { min-width: 90px; }
.stat-num {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-num .unit { font-size: 16px; font-weight: 600; color: #22d3ee; margin-left: 2px; }
.stat-label { font-size: 13.5px; color: #64748b; margin-top: 4px; }

/* Hero 视觉卡片 */
.hero--visual { position: relative; }
.hero--card {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; }
.hc-dot:nth-child(1) { background: #f87171; }
.hc-dot:nth-child(2) { background: #fbbf24; }
.hc-dot:nth-child(3) { background: #34d399; }

.hc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hc-tile {
  background: rgba(15, 23, 42, .45);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius-md);
  padding: 18px;
}
.hc-tile .k { font-size: 12.5px; color: #64748b; margin-bottom: 6px; }
.hc-tile .v { font-size: 21px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hc-tile .v small { font-size: 12.5px; font-weight: 600; color: #22d3ee; margin-left: 4px; }
.hc-tile--wide { grid-column: 1 / -1; }
.hc-bar { height: 8px; border-radius: 99px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.hc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-hero); width: 0; transition: width 1.6s var(--ease) .4s; }

/* ---------- 页面横幅 ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(6, 182, 212, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 120%, rgba(37, 99, 235, .25), transparent 55%),
    var(--c-navy);
  color: #e2e8f0;
  padding: calc(var(--nav-h) + 84px) 0 84px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 80%);
}
.page-hero--inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: #93c5fd; }
.breadcrumb .cur { color: #93c5fd; }
.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.page-hero p { margin-top: 14px; max-width: 560px; font-size: 16.5px; color: #94a3b8; }
