/* 设计令牌 + 基础层：颜色、排版、按钮、动效 */

:root {
  /* 深色（首屏 / CTA） */
  --d-bg: #070a12;
  --d-bg-2: #0b1120;
  --d-card: rgba(255, 255, 255, .045);
  --d-line: rgba(255, 255, 255, .09);
  --d-line-2: rgba(255, 255, 255, .16);
  --d-ink: #eef2f8;
  --d-ink-2: #b4bdcd;
  --d-ink-3: #8d99ad;

  /* 浅色 */
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-soft-2: #eef2f8;
  --ink: #0a1120;
  --ink-2: #46536c;
  --ink-3: #77839a;
  --line: #e5eaf1;
  --line-2: #d3dae5;

  /* 品牌 */
  --blue: #2e6bff;
  --blue-d: #1c4ad6;
  --blue-soft: #eaf0ff;
  --cyan: #22d3ee;
  --amber: #f5a524;
  --green: #15a34a;
  --red: #e5484d;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(10, 17, 32, .04), 0 2px 6px rgba(10, 17, 32, .04);
  --sh-2: 0 2px 4px rgba(10, 17, 32, .04), 0 8px 20px rgba(10, 17, 32, .06);
  --sh-3: 0 4px 8px rgba(10, 17, 32, .05), 0 18px 42px rgba(10, 17, 32, .1);
  --sh-4: 0 30px 80px rgba(7, 10, 18, .45);

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 26px;

  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 0;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 排版 ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.011em;
  line-height: 1.24;
}

.display {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  line-height: 1.14;
  letter-spacing: -.022em;
  font-weight: 750;
}

.h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  line-height: 1.22;
  letter-spacing: -.016em;
}

.h3 { font-size: 1.075rem; }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: var(--ink-2);
  line-height: 1.78;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: .55;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.nb { white-space: nowrap; }

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
}

/* ---------- 布局 ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
}

section { padding: clamp(66px, 8vw, 108px) 0; }

.soft { background: var(--bg-soft); }

.head { max-width: 720px; margin-bottom: clamp(38px, 4.5vw, 58px); }

.head .h2 { margin-bottom: 16px; }

.head .lead { margin: 0; }

.dark {
  background: var(--d-bg);
  color: var(--d-ink);
}

.dark .lead { color: var(--d-ink-2); }

.dark .kicker { color: var(--cyan); }

/* ---------- 按钮 ---------- */

.btn {
  --bh: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--bh);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
    background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #3f79ff, var(--blue));
  color: #fff;
  box-shadow: 0 1px 2px rgba(28, 74, 214, .3), 0 8px 22px rgba(46, 107, 255, .28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4d84ff, #2760f0);
  box-shadow: 0 2px 4px rgba(28, 74, 214, .32), 0 14px 32px rgba(46, 107, 255, .34);
  transform: translateY(-1px);
}

.btn-line {
  border-color: var(--line-2);
  color: var(--ink);
  background: #fff;
}

.btn-line:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}

.btn-glass {
  border-color: var(--d-line-2);
  color: var(--d-ink);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-1px);
}

.btn-sm { --bh: 38px; padding: 0 17px; font-size: 14px; }

.btn-lg { --bh: 52px; padding: 0 30px; font-size: 16px; }

/* ---------- 徽标 ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--d-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 13.5px;
  color: var(--d-ink-2);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 163, 74, .22);
}

/* ---------- 入场动效 ---------- */

.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.rise.in { opacity: 1; transform: none; }

.rise.d1 { transition-delay: .07s; }
.rise.d2 { transition-delay: .14s; }
.rise.d3 { transition-delay: .21s; }
.rise.d4 { transition-delay: .28s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes glow {
  0%, 100% { opacity: .5; }
  50% { opacity: .85; }
}

@keyframes grow {
  from { transform: scaleY(.15); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}
