/**
 * 首页落地页 — V21 Design System
 *
 * 5 个区域：HeroSection / FeatureSection / WorkflowSection
 *           / PricingSection / CTASection
 * 全部使用 CSS 变量，零 antd 直接导入
 */
@import "../../styles/global.css";

/* ── 页面容器 ────────────────────────────────────────────── */

.hp-page {
  min-height: 100vh;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* ── 顶部导航 ────────────────────────────────────────────── */

.hp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.hp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hp-nav-logo {
  font-size: 24px;
}

.hp-nav-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.hp-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── HeroSection ─────────────────────────────────────────── */

.hp-hero {
  padding: 120px 24px 60px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary-color) 4%, transparent) 0%,
    transparent 60%
  );
}

.hp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.hp-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-hero-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
  color: var(--primary, var(--primary-color));
  font-size: 14px;
  font-weight: 500;
}

.hp-hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.hp-hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 520px;
}

.hp-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Hero 右侧视觉 */
.hp-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-hero-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--color-primary-400, #8b5cf6) 100%
  );
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px
    color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.hp-hero-video-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-hero-video-placeholder {
  font-size: 64px;
  opacity: 0.6;
}

.hp-hero-play {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-elevated, rgba(255, 255, 255, 0.92));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary, var(--primary-color));
  box-shadow: 0 4px 20px var(--shadow-lg, rgba(0, 0, 0, 0.15));
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hp-hero-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px var(--shadow-xl, rgba(0, 0, 0, 0.2));
}

.hp-hero-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hp-hero-badges {
  display: flex;
  gap: 8px;
}

.hp-hero-badge {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.hp-hero-pill {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--secondary-color) 10%, transparent);
  color: var(--secondary-color, #059669);
  font-size: 13px;
  font-weight: 600;
}

/* ── 通用 Section 样式 ──────────────────────────────────── */

.hp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.hp-section-desc {
  font-size: 16px;
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 48px;
}

/* ── FeatureSection ──────────────────────────────────────── */

.hp-features {
  padding: 80px 0;
}

.hp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hp-feature-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color);
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md, rgba(0, 0, 0, 0.08));
}

.hp-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.hp-feature-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.hp-feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ── WorkflowSection ─────────────────────────────────────── */

.hp-workflow {
  padding: 80px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.03) 50%,
    transparent 100%
  );
}

.hp-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.hp-step-card {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color);
  text-align: center;
}

.hp-step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary, var(--primary-color));
  color: var(--text-inverse);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-step-icon {
  font-size: 36px;
  margin: 8px 0 12px;
}

.hp-step-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.hp-step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.hp-step-arrow {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-secondary);
  opacity: 0.4;
  z-index: 1;
}

/* ── PricingSection ──────────────────────────────────────── */

.hp-pricing {
  padding: 80px 0;
}

.hp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.hp-pricing-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hp-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md, rgba(0, 0, 0, 0.08));
}

.hp-pricing-card--highlight {
  border-color: var(--primary, var(--primary-color));
  box-shadow: 0 8px 32px
    color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.hp-pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary, var(--primary-color));
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 600;
}

.hp-pricing-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.hp-pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hp-pricing-period {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
}

.hp-pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.hp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.hp-pricing-check {
  color: var(--secondary-color, #10b981);
  font-weight: 700;
  font-size: 14px;
}

/* ── CTASection ──────────────────────────────────────────── */

.hp-cta {
  padding: 80px 24px;
}

.hp-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-color) 6%, transparent) 0%,
    color-mix(in srgb, var(--color-primary-400, #8b5cf6) 6%, transparent) 100%
  );
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hp-cta-title {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.hp-cta-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ── 底部 ────────────────────────────────────────────────── */

.hp-footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.hp-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── 响应式 768px ────────────────────────────────────────── */

@media (max-width: 768px) {
  .hp-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hp-hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .hp-hero-title {
    font-size: 32px;
  }

  .hp-hero {
    padding: 100px 24px 48px;
  }

  .hp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-step-arrow {
    display: none;
  }

  .hp-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .hp-section-title {
    font-size: 26px;
  }

  .hp-cta-inner {
    padding: 40px 24px;
  }

  .hp-cta-title {
    font-size: 24px;
  }
}

/* ── 响应式 480px ────────────────────────────────────────── */

@media (max-width: 480px) {
  .hp-hero-title {
    font-size: 26px;
  }

  .hp-hero-desc {
    font-size: 15px;
  }

  .hp-hero-actions {
    flex-direction: column;
  }

  .hp-hero-badges {
    flex-direction: column;
    gap: 6px;
  }

  .hp-feature-grid {
    grid-template-columns: 1fr;
  }

  .hp-step-grid {
    grid-template-columns: 1fr;
  }

  .hp-nav-actions {
    gap: 8px;
  }
}
