/* ==========================================================================
   杭州卫志科技有限公司 · 站点样式
   风格：科技现代型（深色 + 渐变 + 克制动效）
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 色板 */
  --bg:            #070a12;
  --bg-elev:       #0d1220;
  --surface:       #111827;
  --surface-2:     #161e2e;
  --line:          #1f2937;
  --line-soft:     rgba(148, 163, 184, 0.14);

  --text:          #e8eefc;
  --text-muted:    #9aa8bf;
  --text-faint:    #64748b;

  --accent:        #38bdf8;
  --accent-2:      #818cf8;
  --accent-3:      #22d3ee;
  --grad:          linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-soft:     linear-gradient(120deg, rgba(56,189,248,.14), rgba(129,140,248,.14));

  /* 圆角：内外同心，outer = inner + padding */
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-pill: 999px;

  /* 间距节奏 */
  --gap-in:   16px;   /* 组内 */
  --gap-out:  40px;   /* 组间（≥ 2× 组内） */
  --section-y: clamp(72px, 9vw, 128px);
  --wrap:      1180px;
  --wrap-pad:  clamp(20px, 4vw, 32px);

  /* 字号阶梯 */
  --fs-display: clamp(34px, 5.2vw, 60px);
  --fs-h1:      clamp(30px, 4vw, 46px);
  --fs-h2:      clamp(24px, 3vw, 34px);
  --fs-h3:      clamp(19px, 2vw, 22px);
  --fs-lead:    clamp(16px, 1.6vw, 19px);
  --fs-body:    16px;
  --fs-sm:      14px;
  --fs-xs:      13px;

  /* 阴影：用分层透明阴影表达高度，而不是拿边框假装 */
  --sh-1: 0 1px 2px rgba(0,0,0,.28), 0 1px 1px rgba(0,0,0,.2);
  --sh-2: 0 4px 16px rgba(0,0,0,.34), 0 1px 3px rgba(0,0,0,.24);
  --sh-3: 0 18px 48px rgba(0,0,0,.46), 0 4px 12px rgba(0,0,0,.3);
  --sh-accent: 0 12px 40px rgba(56,189,248,.24);

  --ease: cubic-bezier(.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans CJK SC", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.75;          /* 中文正文需要比拉丁文更松 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;           /* 中文标题不能用 1.1，字面是满格 */
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

::selection { background: rgba(56,189,248,.3); color: #fff; }

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

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* 内容的度量上限：正文别超过 ~65 字符 */
.measure { max-width: 62ch; }
.measure-tight { max-width: 46ch; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7,10,18,.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: #05121f;
  box-shadow: var(--sh-accent);
  flex: none;
}
.brand__sub {
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  letter-spacing: .08em;
  padding-inline-start: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav__link {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text-muted);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(148,163,184,.09); }
.nav__link[aria-current="page"] { color: var(--text); background: rgba(56,189,248,.1); }

.nav__toggle {
  display: none;
  margin-inline-start: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .14s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), opacity .18s var(--ease);
}
.btn:active { transform: scale(.96); }   /* 按压反馈，0.96 是上限 */

.btn--primary {
  background: var(--grad);
  color: #04141f;
  box-shadow: var(--sh-accent);
}
.btn--primary:hover { box-shadow: 0 16px 46px rgba(56,189,248,.34); }

.btn--ghost {
  background: rgba(148,163,184,.08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: rgba(148,163,184,.14); }

.btn--sm { padding: 9px 16px; font-size: var(--fs-sm); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 11vw, 132px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 620px; height: 620px;
  top: -280px; inset-inline-end: -160px;
  background: radial-gradient(circle, rgba(56,189,248,.20), transparent 68%);
}
.hero::after {
  width: 520px; height: 520px;
  bottom: -300px; inset-inline-start: -180px;
  background: radial-gradient(circle, rgba(129,140,248,.17), transparent 68%);
}
.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.22);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: #bfe4ff;
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(34,211,238,.18);
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 680;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;                 /* 相邻控件 12px 起 */
  margin-bottom: 56px;
}

/* 首屏数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap-in);
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.stat__num {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 650;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;   /* 数字变化不跳动 */
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--text-faint);
  margin-top: 2px;
}

/* ---------- 区块标题 ---------- */
.sec-head { margin-bottom: var(--gap-out); }
.sec-head__kicker {
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.sec-head p {
  color: var(--text-muted);
  font-size: var(--fs-lead);
  max-width: 58ch;
}
.sec-head--center { text-align: center; }
.sec-head--center p { margin-inline: auto; }

/* ---------- 卡片 ---------- */
.grid {
  display: grid;
  gap: var(--gap-in);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-soft);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(56,189,248,.24);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);       /* inner 14 + padding 28 ... 视觉同心 */
  display: grid; place-items: center;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.2);
  color: var(--accent);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}
.card__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(148,163,184,.09);
  white-space: nowrap;
}

/* ---------- 流程 / 步骤 ---------- */
.steps {
  display: grid;
  gap: var(--gap-in);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.7; }

/* ---------- 案例卡 ---------- */
.case {
  padding: 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-elev));
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-soft);
}
.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.case h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.case p { color: var(--text-muted); font-size: 15px; }
.case__result {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-out);
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.case__result div { min-width: 92px; }
.case__result b {
  display: block;
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.case__result span { font-size: var(--fs-xs); color: var(--text-faint); }

/* ---------- 关于页 ---------- */
.split {
  display: grid;
  gap: var(--gap-out);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.timeline {
  margin: 0; padding: 0; list-style: none;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 26px;
}
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -31px;
  top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56,189,248,.16);
}
.timeline b {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.timeline p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; }

.facts {
  display: grid;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-soft);
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elev);
  font-size: var(--fs-sm);
}
.fact dt { color: var(--text-faint); }
.fact dd { margin: 0; color: var(--text); text-align: end; }

/* ---------- 联系 ---------- */
.contact-grid {
  display: grid;
  gap: var(--gap-in);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact-item {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.contact-item h3 {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  font-weight: 500;
}
.contact-item p { font-size: 17px; font-weight: 500; }
.contact-item small { display: block; color: var(--text-muted); font-size: var(--fs-sm); margin-top: 4px; }

/* 待确认内容：虚线提示，上线前应清空 */
.tbd {
  border-bottom: 1px dashed rgba(250, 204, 21, .6);
  cursor: help;
}

/* ---------- 预览横幅 ---------- */
.preview-bar {
  background: linear-gradient(90deg, rgba(250,204,21,.16), rgba(250,204,21,.06));
  border-bottom: 1px solid rgba(250,204,21,.28);
  color: #fde68a;
  font-size: var(--fs-xs);
  text-align: center;
  padding: 8px var(--wrap-pad);
}
.preview-bar b { color: #fef3c7; }

/* ---------- CTA 区块 ---------- */
.cta {
  position: relative;
  padding: clamp(44px, 6vw, 72px) clamp(26px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 12% 0%, rgba(56,189,248,.16), transparent 58%),
              radial-gradient(120% 160% at 88% 100%, rgba(129,140,248,.16), transparent 58%),
              var(--surface);
  box-shadow: var(--sh-2), inset 0 0 0 1px rgba(56,189,248,.2);
  text-align: center;
  overflow: hidden;
}
.cta h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.cta p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--line-soft);
  padding-block: 48px 40px;
  background: var(--bg-elev);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-out);
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand { max-width: 34ch; }
.footer__brand p { color: var(--text-faint); font-size: var(--fs-sm); margin-top: 12px; line-height: 1.7; }
.footer__cols { display: flex; flex-wrap: wrap; gap: var(--gap-out); }
.footer__col h4 {
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 12px;
}
.footer__col a {
  display: block;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  padding-block: 5px;
  transition: color .16s var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: var(--fs-xs);
}
.footer__legal a:hover { color: var(--text-muted); }

/* ---------- 入场动效（克制：只做一次，可被中断） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .btn:active { transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--wrap-pad) 18px;
    background: rgba(7,10,18,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 13px 14px; font-size: 16px; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__inner { gap: 12px; }
  .brand__sub { display: none; }
}
