/* =========================================================
   企业站搭建 · 静态主页样式
   ========================================================= */

/* ---------- 基础变量 ---------- */
:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #111a2e;
  --surface-2: #15213b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e6ecf5;
  --text-dim: #a6b1c4;
  --text-mute: #7a869a;
  --brand: #3b82f6;
  --brand-2: #8b5cf6;
  --brand-3: #06b6d4;
  --accent: #22d3ee;
  --good: #34d399;
  --warn: #fbbf24;
  --grad-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #cbd5f5;
}

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
  position: relative;
}
.section-alt {
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-sub {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--grad-1);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 16px;
}
.nav a {
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad-1);
  transition: width 0.25s var(--ease);
}
.nav a:hover::after { width: 100%; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg .grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-bg .glow-a {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: -120px; left: -100px;
}
.hero-bg .glow-b {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: 80px; right: -120px;
}
.hero-inner {
  text-align: center;
  max-width: 880px;
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.hero-title {
  margin: 0 0 20px;
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.grad-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  margin: 0 0 32px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- 信任条 ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trust-num span { font-size: 0.6em; font-weight: 700; }
.trust-label {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---------- 卡片网格 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: var(--shadow-2);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-soft);
  color: #c4b5fd;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}
.card > p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
}
.card-list li {
  position: relative;
  padding-left: 22px;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 场景 ---------- */
.scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.scenario {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.scenario:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}
.scenario-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
}
.scenario p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- 技术方案 ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stack-col {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.stack-col h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.stack-sub {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.stack-list li {
  position: relative;
  padding-left: 18px;
}
.stack-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 套餐 ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
.price-card-featured {
  border-color: rgba(139, 92, 246, 0.4);
  background:
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--surface);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.18);
}
.price-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--grad-1);
  border-radius: 999px;
}
.price-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.price-amount {
  margin: 12px 0 6px;
  font-size: 36px;
  font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-unit {
  font-size: 14px;
  font-weight: 600;
  -webkit-text-fill-color: var(--text-dim);
  color: var(--text-dim);
  margin-left: 4px;
}
.price-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-dim);
}
.price-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 22px;
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--good);
  font-weight: 800;
}

/* ---------- 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  font-size: 15.5px;
}
.about-text .btn { margin-top: 16px; }
.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.meta-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.meta-label {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- CTA ---------- */
.cta {
  padding: 80px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-1);
  opacity: 0.16;
  z-index: -1;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 80%);
  z-index: -1;
}
.cta-inner {
  text-align: center;
  max-width: 720px;
}
.cta-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cta-sub {
  margin: 0 0 24px;
  color: var(--text-dim);
}
.cta-tip {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-mute);
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-mute);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-weight: 600;
}
.footer-brand .logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
}
.footer-link {
  color: var(--accent);
  font-weight: 600;
}
.footer-link:hover { color: #67e8f9; }

/* ---------- 悬浮按钮 ---------- */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--grad-1);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.55);
}

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .cards, .scenarios, .stack, .pricing { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 64px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 12px 24px 20px;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open a:last-child { border-bottom: 0; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .cards, .scenarios, .stack, .pricing, .about-meta { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 18px; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .fab span { display: none; }
  .fab { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
