/* =====================================================
   AgentForge 智脑工厂官网 · style.css
   Design System v1.0 · 2026-03-10
   ===================================================== */

/* =====================================================
   1. CSS 变量（Design Tokens）
   ===================================================== */
:root {
  /* ——— 背景色层次 ——— */
  --bg-base:        #080C14;
  --bg-surface:     #0E1420;
  --bg-elevated:    #161D2E;

  /* ——— 文字色层次 ——— */
  --text-primary:   #F0F4FF;
  --text-secondary: #8B96B0;
  --text-muted:     #4A5568;

  /* ——— 强调色（渐变）——— */
  --accent-from:    #6366F1;
  --accent-to:      #06B6D4;
  --accent-gradient: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
  --accent-gradient-text: linear-gradient(135deg, #818CF8 0%, #22D3EE 100%);
  --accent-glow:    rgba(99, 102, 241, 0.35);
  --accent-glow-cyan: rgba(6, 182, 212, 0.25);

  /* ——— 功能色 ——— */
  --color-success:     #10B981;
  --color-success-bg:  rgba(16, 185, 129, 0.1);
  --color-error:       #EF4444;
  --color-error-bg:    rgba(239, 68, 68, 0.1);
  --color-warning:     #F59E0B;
  --color-warning-bg:  rgba(245, 158, 11, 0.1);
  --color-info:        #3B82F6;
  --color-info-bg:     rgba(59, 130, 246, 0.1);

  /* ——— 边框色 ——— */
  --border-subtle:    rgba(255, 255, 255, 0.06);
  --border-default:   rgba(255, 255, 255, 0.10);
  --border-strong:    rgba(255, 255, 255, 0.18);
  --border-accent:    rgba(99, 102, 241, 0.45);

  /* ——— 字体 ——— */
  --font-sans:    'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Inter', var(--font-sans);
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* ——— 字号 ——— */
  --text-h1-desktop: clamp(36px, 4vw, 56px);
  --text-h2-desktop: clamp(28px, 3vw, 40px);
  --text-h3-desktop: clamp(20px, 2vw, 24px);
  --text-h4:         18px;
  --text-body-lg:    18px;
  --text-body:       16px;
  --text-body-sm:    14px;
  --text-caption:    12px;

  /* ——— 字重 ——— */
  --weight-bold:     700;
  --weight-semibold: 600;
  --weight-medium:   500;
  --weight-regular:  400;

  /* ——— 间距 ——— */
  --space-1:    4px;
  --space-2:    8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32: 128px;
  --section-padding-y: clamp(64px, 8vw, 120px);
  --section-padding-x: clamp(20px, 5vw, 80px);
  --container-max:  1200px;
  --content-max:     800px;

  /* ——— 圆角 ——— */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ——— 阴影 ——— */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl:   0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-accent:       0 0 24px rgba(99, 102, 241, 0.4), 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-accent-hover: 0 0 36px rgba(99, 102, 241, 0.6), 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-cyan:         0 0 20px rgba(6, 182, 212, 0.35);
  --shadow-card-hover:   0 0 0 1px rgba(99, 102, 241, 0.4), 0 8px 32px rgba(0, 0, 0, 0.5);
}


/* =====================================================
   2. 全局重置 & 基础样式
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* 版心容器 */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

/* section 基础间距 */
.section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

/* 版块头部 */
.section-header {
  text-align: center;
  max-width: var(--content-max);
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  font-size: var(--text-h2-desktop);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-top: var(--space-3);
}

.section-desc {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

/* 渐变文字 */
.text-gradient {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* =====================================================
   3. 标题层级
   ===================================================== */
h1 {
  font-size: var(--text-h1-desktop);
  font-weight: var(--weight-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  font-size: var(--text-h2-desktop);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

h3 {
  font-size: var(--text-h3-desktop);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h4 {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  color: var(--text-primary);
}


/* =====================================================
   4. 按钮组件
   ===================================================== */

/* 主 CTA 按钮 */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: #ffffff;
  background: var(--accent-gradient);
  border: none;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  white-space: nowrap;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-hover);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0px);
  box-shadow: var(--shadow-accent);
}

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn-primary.loading .btn-text::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  margin-left: var(--space-2);
  vertical-align: middle;
}

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

/* 尺寸变体 */
.btn-primary--lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-primary--sm {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

.btn-primary--full {
  width: 100%;
}

/* 次要按钮 */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-default);
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.07);
}

.btn-secondary--full {
  width: 100%;
}

/* 幽灵按钮 */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s ease, gap 0.2s ease;
}

.btn-ghost:hover {
  color: var(--text-primary);
  gap: var(--space-3);
}


/* =====================================================
   5. 标签 & Eyebrow
   ===================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: #818CF8;
  margin-bottom: var(--space-4);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.tag--default {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tag--accent {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818CF8;
}

.tag--success {
  background: var(--color-success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

.tag--new {
  background: var(--accent-gradient);
  color: white;
  border: none;
}


/* =====================================================
   6. 卡片基础组件
   ===================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.card__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card__desc {
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--text-secondary);
}

.card--interactive:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}

.card--highlighted {
  background: var(--bg-elevated);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.45);
  position: relative;
}

.card--highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}


/* =====================================================
   7. 表单组件
   ===================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-align: left;
}

.form-label--required::after {
  content: ' *';
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--text-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error-msg {
  font-size: var(--text-caption);
  color: var(--color-error);
  min-height: 16px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-success {
  background: var(--color-success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: var(--color-success);
}

.form-success__icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.form-success h3 {
  font-size: var(--text-h3-desktop);
  color: var(--color-success);
  margin-bottom: var(--space-3);
}

.form-success p {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.75;
}


/* =====================================================
   8. 滚动入场动画
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms;  opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 300ms; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 360ms; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =====================================================
   9. 导航栏
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-padding-x);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav--transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: 17px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__link {
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(8, 12, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-6) var(--section-padding-x) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 16px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}


/* =====================================================
   10. Hero 区
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(64px + var(--space-16)) var(--section-padding-x) var(--space-20);
  overflow: hidden;
}

/* 层 1：CSS 网格背景 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

/* 层 2：渐变光晕 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%,
      rgba(99, 102, 241, 0.20) 0%,
      transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%,
      rgba(6, 182, 212, 0.12) 0%,
      transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: var(--text-h1-desktop);
  font-weight: var(--weight-bold);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-body-lg);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-12);
}

.hero__divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: var(--space-10);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-8);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* P2: 将 hero 数据标签从 --text-muted（#4A5568，对比度3.2:1）
        改为 --text-secondary（#8B96B0，对比度约7.5:1），满足 WCAG AA */
.hero__stat-label {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-caption);
  color: var(--text-muted);
  animation: scroll-hint-bounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}


/* =====================================================
   11. 痛点区
   ===================================================== */
.pain-points {
  background: var(--bg-base);
}

.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

.pain-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.pain-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 20px;
}

.pain-card__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.pain-card__desc {
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--text-secondary);
}

.pain-transition {
  text-align: center;
  margin-top: var(--space-16);
  font-size: 20px;
  font-weight: var(--weight-semibold);
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* =====================================================
   12. 六大智能体角色区
   ===================================================== */
.agents {
  background: var(--bg-surface);
}

.agents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

.agent-card {
  padding: var(--space-6) var(--space-6);
}

/* 智能体图标颜色 */
.agent-icon--pm {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
}

.agent-icon--design {
  background: rgba(236, 72, 153, 0.15);
  color: #F472B6;
}

.agent-icon--fe {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.agent-icon--be {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.agent-icon--qa {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
}

.agent-icon--security {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

/* 技能标签 */
.agent-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* P2: 将智能体技能标签从 --text-muted 改为 --text-secondary，提升对比度 */
.agent-skills li {
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

/* 人工把关横幅 */
.human-oversight-banner {
  max-width: var(--container-max);
  margin: var(--space-6) auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-left: 3px solid #6366F1;
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.human-oversight-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.human-oversight-banner__text {
  font-size: var(--text-body);
  color: var(--text-secondary);
}

.human-oversight-banner__text strong {
  color: var(--text-primary);
}


/* =====================================================
   13. 数字背书区
   ===================================================== */
.numbers {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
  max-width: var(--container-max);
  margin: 0 auto var(--space-4);
}

.number-item {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  position: relative;
  cursor: default;
}

.number-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.number-item:hover .number-item__value {
  filter: brightness(1.15);
}

.number-item__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
  transition: filter 0.2s ease;
}

.number-item__unit {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

/* P2: 数字背书区说明文字从 --text-muted 改为 --text-secondary，提升对比度 */
.number-item__label {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* P2: 数字区注脚从 --text-muted 改为 --text-secondary，提升对比度 */
.numbers__footnote {
  text-align: center;
  margin-top: var(--space-10);
  font-size: var(--text-caption);
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.numbers__footnote strong {
  color: var(--text-secondary);
}


/* =====================================================
   14. 服务范围区
   ===================================================== */
.services {
  background: var(--bg-base);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .card__desc {
  flex: 1;
}

/* 服务图标颜色 */
.service-icon--mini   { background: rgba(52, 211, 153, 0.15); color: #34D399; }
.service-icon--system { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.service-icon--web    { background: rgba(6, 182, 212, 0.15);  color: #22D3EE; }
.service-icon--desktop{ background: rgba(245, 158, 11, 0.15); color: #FCD34D; }
.service-icon--api    { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.service-icon--ops    { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: #818CF8;
  text-decoration: none;
  margin-top: var(--space-4);
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-card__link:hover {
  gap: var(--space-2);
  color: #22D3EE;
}

.services__bottom-cta {
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.services__bottom-cta a {
  font-size: var(--text-body);
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-default);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.services__bottom-cta a:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}


/* =====================================================
   15. 案例预览区
   ===================================================== */
.case-preview {
  background: var(--bg-base);
}

.case-card {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 420px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-lg);
}

/* 顶部渐变装饰线 */
.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.case-card__info {
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
}

.case-card__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.case-card__title {
  font-size: 26px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.case-card__desc {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  flex: 1;
}

.case-card__badges {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.case-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  text-align: center;
  min-width: 80px;
}

.case-badge__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* P2: 案例徽章标签从 --text-muted 改为 --text-secondary，提升对比度 */
.case-badge__label {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 3px;
  white-space: nowrap;
}

.case-card__mockup {
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.case-more {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

/* 手机 Mockup */
.mockup-phone {
  width: 240px;
  background: #111827;
  border-radius: 28px;
  padding: 16px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}

.mockup-phone::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 14px;
}

.mockup-phone__screen {
  background: #0D1117;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 340px;
}

.mockup-screen__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-screen__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.mockup-screen__badge {
  font-size: 10px;
  color: #818CF8;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}

.mockup-screen__card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
}

.mockup-screen__card--accent {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.06);
}

/* P2: 手机 Mockup 标签从 --text-muted 改为 --text-secondary，提升对比度 */
.mockup-screen__label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mockup-screen__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.mockup-screen__sub {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mockup-screen__stars {
  font-size: 16px;
  color: #FCD34D;
  margin: 4px 0;
}

.mockup-screen__stats-row {
  display: flex;
  justify-content: space-between;
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 10px 12px;
}

.mockup-screen__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mockup-screen__stat-val {
  font-size: 14px;
  font-weight: 700;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* P2: 手机 Mockup 统计标签从 --text-muted 改为 --text-secondary，提升对比度 */
.mockup-screen__stat-lbl {
  font-size: 9px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mockup-screen__btn {
  background: var(--accent-gradient);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  margin-top: auto;
  letter-spacing: 0.01em;
}


/* =====================================================
   16. 定价区
   ===================================================== */
.pricing {
  background: var(--bg-surface);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card--featured {
  background: var(--bg-elevated);
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5), var(--shadow-accent);
  transform: translateY(-8px);
  padding-top: var(--space-10);
}

.pricing-card--featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.7), var(--shadow-accent-hover);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: var(--space-2) 0 var(--space-1);
  line-height: 1.1;
}

/* P2: 定价价格单位从 --text-muted 改为 --text-secondary，提升对比度 */
.pricing-card__price span {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
  letter-spacing: 0;
}

/* P2: 定价周期文字从 --text-muted 改为 --text-secondary，提升对比度 */
.pricing-card__period {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.pricing-card__desc {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-card__feature strong {
  color: var(--text-primary);
}

.pricing-card__feature-icon {
  color: var(--color-success);
  flex-shrink: 0;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

.pricing__bottom-cta {
  text-align: center;
  margin-top: var(--space-12);
}


/* =====================================================
   17. 最终转化区
   ===================================================== */
.final-cta {
  position: relative;
  background: var(--bg-base);
  overflow: hidden;
}

/* 背景光晕 */
.final-cta::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.15) 0%,
    transparent 65%);
  pointer-events: none;
}

.final-cta__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-size: var(--text-h2-desktop);
}

.final-cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
  text-align: left;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* P2: 隐私声明从 --text-muted 改为 --text-secondary，提升对比度 */
.form-privacy {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  text-align: center;
}


/* =====================================================
   18. Footer
   ===================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) var(--section-padding-x) var(--space-8);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-subtle);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.footer__logo-text {
  font-size: 16px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.footer__slogan {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.footer__brand-desc {
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 360px;
}

.footer__nav-title {
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}

.footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer__contact-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.footer__icp {
  font-size: var(--text-caption);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__icp:hover {
  color: var(--text-secondary);
}


/* =====================================================
   19. 响应式样式 — 平板（<=1024px）
   ===================================================== */
@media (max-width: 1024px) {
  .agents__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card {
    grid-template-columns: 1fr 360px;
  }
}


/* =====================================================
   20. 响应式样式 — 平板竖屏（<=768px）
   ===================================================== */
@media (max-width: 768px) {
  /* 导航 */
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__stat-value {
    font-size: 28px;
  }

  .hero__stat-item {
    padding: var(--space-2) var(--space-4);
  }

  .hero__stat-divider {
    height: 30px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .hero__actions .btn-primary,
  .hero__actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* 痛点区 */
  .pain-points__grid {
    grid-template-columns: 1fr;
  }

  /* 智能体 */
  .agents__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .human-oversight-banner {
    flex-direction: column;
    text-align: center;
  }

  /* 数字 */
  .numbers__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .number-item::after {
    display: none;
  }

  /* 服务 */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 案例卡片 */
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card__mockup {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    min-height: 280px;
  }

  /* 定价 */
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card--featured {
    transform: translateY(0);
    order: -1;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  /* Footer */
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* 表单 */
  .final-cta__form {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   21. 响应式样式 — 小手机（<=480px）
   ===================================================== */
@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .hero__stat-divider {
    display: none;
  }

  .hero__stat-item {
    padding: var(--space-1) 0;
    flex-direction: row;
    gap: var(--space-3);
    align-items: center;
  }

  .hero__stat-value {
    font-size: 28px;
  }

  .agents__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .case-card__info {
    padding: var(--space-6);
  }

  .case-card__badges {
    gap: var(--space-2);
  }

  .case-badge {
    padding: var(--space-2) var(--space-3);
  }

  .case-badge__value {
    font-size: 18px;
  }

  .mockup-phone {
    width: 200px;
  }

  .footer__brand-desc {
    max-width: 100%;
  }
}
