/* ==========================================================================
   羽升智能 · 设计系统（浅色营销站）
   ========================================================================== */
:root {
  --bg: #f6f8fd;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(12, 26, 51, 0.09);
  --line-strong: rgba(12, 26, 51, 0.18);
  --text: #0a1220;
  --muted: #54647d;
  --dim: #6b7c93;
  --c1: #06b6d4;
  --c2: #6366f1;
  --c3: #ec4899;
  --c1-ink: color-mix(in srgb, var(--c1) 72%, #0a1220);
  --c2-ink: color-mix(in srgb, var(--c2) 78%, #0a1220);
  --green: #10b981;
  --amber: #f59e0b;
  --aur1: rgba(6, 182, 212, 0.22);
  --aur2: rgba(99, 102, 241, 0.2);
  --aur3: rgba(236, 72, 153, 0.12);
  --grid-line: rgba(12, 26, 51, 0.05);
  --noise-opacity: 0.018;
  --shadow-sm: 0 1px 2px rgba(12, 26, 51, 0.04), 0 12px 32px -20px rgba(12, 26, 51, 0.22);
  --shadow-md: 0 24px 64px -32px rgba(12, 26, 51, 0.28);
  --shadow-lg: 0 44px 110px -48px rgba(12, 26, 51, 0.38);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1240px;
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: rgba(6, 182, 212, 0.22); color: #06121f; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef2f9; }
::-webkit-scrollbar-thumb {
  background: rgba(12, 26, 51, 0.18);
  border-radius: 20px;
  border: 2px solid #eef2f9;
}
::-webkit-scrollbar-thumb:hover { background: rgba(12, 26, 51, 0.3); }

/* ---------- 背景层 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, #e8f4ff 0%, transparent 62%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #f4f7fc 100%);
}

.bg-aurora { position: absolute; inset: -20%; }

.bg-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.85;
  will-change: transform;
}

.bg-aurora i:nth-child(1) {
  width: 46vw; height: 46vw; left: -8vw; top: -10vw;
  background: radial-gradient(circle at 30% 30%, var(--aur1), transparent 64%);
  animation: drift1 26s var(--ease) infinite alternate;
}
.bg-aurora i:nth-child(2) {
  width: 42vw; height: 42vw; right: -10vw; top: 2vh;
  background: radial-gradient(circle at 60% 40%, var(--aur2), transparent 66%);
  animation: drift2 32s var(--ease) infinite alternate;
}
.bg-aurora i:nth-child(3) {
  width: 38vw; height: 38vw; left: 32vw; top: 52vh;
  background: radial-gradient(circle at 50% 50%, var(--aur3), transparent 68%);
  animation: drift3 38s var(--ease) infinite alternate;
}

@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 10vh, 0) scale(0.9); } }
@keyframes drift3 { to { transform: translate3d(6vw, -8vh, 0) scale(1.2); } }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 82% 58% at 50% 0%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 82% 58% at 50% 0%, #000 0%, transparent 76%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.045) 42%, transparent 66%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ---------- 布局 ---------- */
.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  z-index: 2;
  padding: clamp(76px, 10vw, 148px) 0;
}

.section + .section { padding-top: clamp(40px, 6vw, 80px); }

.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c1-ink);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--c1), transparent);
}

.sec-head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

.sec-head p {
  margin-top: 20px;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.85;
}

.grad-text {
  background: linear-gradient(100deg, #0891b2 0%, #4f46e5 55%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 品牌标识 ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }

.logo-mark { position: relative; width: 38px; height: 38px; flex: none; }
.logo-mark .ring1 {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.4);
}
.logo-mark .ring2 {
  position: absolute; inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-top-color: var(--c1);
  border-right-color: rgba(6, 182, 212, 0.8);
  animation: spin 9s linear infinite;
}
.logo-mark .core {
  position: absolute; inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #e0fbff, var(--c1) 42%, var(--c2) 100%);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.55), 0 0 34px rgba(99, 102, 241, 0.28);
}

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

.logo-text b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; }
.logo-text em {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.32em;
  color: var(--dim);
  margin-top: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  overflow: hidden;
  isolation: isolate;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: #ffffff;
  background: var(--c2);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 80%, #0a1220) 0%, var(--c2) 100%);
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--c1) 62%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.4) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px color-mix(in srgb, var(--c1) 72%, transparent); }
.btn-primary:hover::after { transform: translateX(130%); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--c1) 55%, transparent);
  color: var(--c1-ink);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(12, 26, 51, 0.35);
}

.btn-sm { height: 42px; padding: 0 18px; font-size: 13.5px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ---------- 徽标 / 玻璃 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(6, 182, 212, 0.09), rgba(99, 102, 241, 0.06));
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--c1-ink);
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(12, 26, 51, 0.03);
}

.badge .pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 10px var(--c1);
}

.badge .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.55);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 1; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

.glass {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- 滚动揭示 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

.reveal-scale { transform: translateY(28px) scale(0.97); }
.reveal-scale.in { transform: none; }

/* ---------- 通用文字 ---------- */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 360px;
  padding: 13px 18px;
  border-radius: 13px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: #ffffff;
  box-shadow: 0 24px 60px -24px rgba(12, 26, 51, 0.35);
  color: var(--text);
  font-size: 13.5px;
  animation: toastIn 0.4s var(--ease);
}

.toast.out { animation: toastOut 0.35s var(--ease) forwards; }
.toast i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 8px var(--c1);
  flex: none;
}
.toast.warn { border-color: rgba(245, 158, 11, 0.35); }
.toast.warn i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.toast.error { border-color: rgba(236, 72, 153, 0.35); }
.toast.error i { background: var(--c3); box-shadow: 0 0 8px var(--c3); }

@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.modal.open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.42);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 50px 120px -40px rgba(12, 26, 51, 0.45);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.4s var(--ease);
}

.modal.open .modal-card { transform: none; }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--dim);
  border: 1px solid var(--line);
  transition: 0.25s;
}

.modal-close:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.field label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.input::placeholder, .textarea::placeholder { color: var(--dim); }

.input:focus, .textarea:focus, .select:focus {
  border-color: color-mix(in srgb, var(--c1) 60%, transparent);
  background: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 14%, transparent);
}

.textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.select { appearance: none; cursor: pointer; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .btn { height: 48px; padding: 0 20px; font-size: 14px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wave i { transform: scaleY(var(--h, 0.8)); animation: none !important; }
}
