/* ===== 首页专属样式 .page-home ===== */
.page-home {
  --color-primary: #1a73e8;
  --color-secondary: #ff6d01;
  --color-bg-dark: #1e1e2f;
  --color-bg-light: #f4f6fa;
  --color-text-primary: #ffffff;
  --color-text-secondary: #b0b8c1;
  --color-card-bg: #2a2a3e;
  --color-border: rgba(255,255,255,0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --content-max-width: 1200px;
  --gutter: 1.5rem;
  --header-height: 60px;
  display: block;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- 共享工具类 ---------- */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  border: none;
  line-height: 1.4;
}
.page-home .btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.page-home .section-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-home .section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.page-home .section-label-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.page-home .section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary);
}

/* ---------- 首屏 Hero ---------- */
.page-home .hero-section {
  position: relative;
  padding: 2rem 0 3rem;
  overflow: hidden;
  background: linear-gradient(135deg, #161622 0%, #1e1e2f 50%, #1a1a30 100%);
}
.page-home .hero-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.page-home .hero-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.page-home .breadcrumb-current {
  opacity: 0.7;
}
.page-home .hero-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.page-home .hero-text-col {
  flex: 1 1 100%;
}
.page-home .hero-image-col {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-home .hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: block;
  object-fit: cover;
}
.page-home .hero-title {
  margin: 0 0 0.5rem;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em;
}
.page-home .hero-title-line--primary {
  color: var(--color-text-primary);
}
.page-home .hero-title-line--accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-home .hero-deco {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.page-home .hero-deco-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.3em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.page-home .hero-deco-bar {
  flex: 1;
  height: 2px;
  max-width: 120px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 1px;
}
.page-home .hero-summary {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
  max-width: 560px;
  line-height: 1.7;
}
.page-home .hero-summary strong {
  color: var(--color-text-primary);
  font-weight: 700;
}
.page-home .hero-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 1.75rem;
  max-width: 480px;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-home .hero-btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #1557b0);
  color: #fff;
}
.page-home .hero-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}
.page-home .hero-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}

/* 首屏装饰色块 */
.page-home .hero-deco-block {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}
.page-home .hero-deco-block--1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -120px;
  right: -80px;
}
.page-home .hero-deco-block--2 {
  width: 260px;
  height: 260px;
  background: var(--color-secondary);
  bottom: -60px;
  left: -40px;
}

/* ---------- 三大核心卖点 ---------- */
.page-home .features-section {
  padding: 4rem 0;
  background-color: var(--color-bg-dark);
}
.page-home .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.page-home .feature-card {
  background: var(--color-card-bg);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}
.page-home .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.page-home .feature-card-content {
  padding: 1.75rem;
}
.page-home .feature-card-content--row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.page-home .feature-text-block {
  flex: 1;
}
.page-home .feature-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,115,232,0.12);
  border-radius: 12px;
}
.page-home .feature-card:nth-child(2) .feature-icon {
  color: var(--color-secondary);
  background: rgba(255,109,1,0.12);
}
.page-home .feature-card:nth-child(3) .feature-icon {
  color: var(--color-primary);
  background: rgba(26,115,232,0.12);
}
.page-home .feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text-primary);
}
.page-home .feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
  line-height: 1.7;
}
.page-home .feature-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  margin-top: 0.5rem;
}

/* ---------- 如何工作 ---------- */
.page-home .how-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #1e1e2f 0%, #191928 100%);
}
.page-home .how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step-counter;
}
.page-home .how-step {
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  position: relative;
  transition: background 0.3s ease;
}
.page-home .how-step:hover {
  background: rgba(255,255,255,0.06);
}
.page-home .how-step-number {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}
.page-home .how-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--color-text-primary);
}
.page-home .how-step-text {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* ---------- 数据驱动体验 ---------- */
.page-home .data-section {
  padding: 4rem 0;
  background-color: var(--color-bg-dark);
}
.page-home .data-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.page-home .data-visual {
  flex: 1 1 100%;
}
.page-home .data-image-col {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-home .data-img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.page-home .data-demo-card {
  background: var(--color-card-bg);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  max-width: 520px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.page-home .data-demo-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--color-border);
}
.page-home .data-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.page-home .data-demo-dot:nth-child(1) { background: #ff5f56; }
.page-home .data-demo-dot:nth-child(2) { background: #ffbd2e; }
.page-home .data-demo-dot:nth-child(3) { background: #27c93f; }
.page-home .data-demo-label {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.page-home .data-demo-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.page-home .data-demo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  animation: dataItemFadeIn 0.5s ease both;
  animation-delay: calc(0.08s * var(--order, 1));
}
.page-home .data-demo-badge {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--bg, var(--color-primary));
  flex-shrink: 0;
}
.page-home .data-demo-footer {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  font-style: italic;
  letter-spacing: 0.02em;
}
.page-home .data-cta-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-top: 1.5rem;
  max-width: 480px;
  line-height: 1.7;
}

@keyframes dataItemFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-12px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- 立即开始 CTA ---------- */
.page-home .cta-section {
  padding: 3rem 0 5rem;
  background-color: var(--color-bg-dark);
}
.page-home .cta-card {
  background: linear-gradient(135deg, #23223a, #2a1f38);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.page-home .cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-home .cta-heading {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  background: linear-gradient(135deg, #fff 40%, var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-home .cta-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0 auto 1.75rem;
  max-width: 520px;
  line-height: 1.7;
}
.page-home .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.page-home .cta-btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), #e05d00);
  color: #fff;
}
.page-home .cta-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}
.page-home .cta-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}
.page-home .cta-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  gap: 1.5rem;
  opacity: 0.06;
}
.page-home .cta-deco-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}
.page-home .cta-deco-circle:nth-child(2) {
  width: 100px;
  height: 100px;
  border-color: var(--color-secondary);
}
.page-home .cta-deco-circle:nth-child(3) {
  width: 70px;
  height: 70px;
  border-color: var(--color-primary);
}

/* ---------- 滚动显现动画 ---------- */
.page-home [data-observe] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.page-home [data-observe].fade-in {
  opacity: 1;
  transform: translateY(0);
}
.page-home .hero-section[data-observe],
.page-home .hero-section[data-observe].fade-in {
  opacity: 1;
  transform: none;
}

/* 减少动效兼容 */
@media (prefers-reduced-motion: reduce) {
  .page-home [data-observe] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-home .data-demo-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .page-home .feature-card:hover {
    transform: none;
  }
  .page-home .btn:hover {
    transform: none;
  }
}

/* ===== 桌面端媒体查询 ===== */
@media (min-width: 768px) {
  .page-home .hero-layout {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .page-home .hero-text-col {
    flex: 1 1 55%;
  }
  .page-home .hero-image-col {
    flex: 1 1 45%;
  }
  .page-home .hero-title {
    font-size: 5rem;
  }
  .page-home .hero-summary {
    font-size: 1.15rem;
  }
  .page-home .hero-deco-text {
    font-size: 1rem;
  }
  .page-home .features-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  .page-home .feature-card--wide {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  .page-home .feature-card--tall {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .page-home .feature-card--full {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .page-home .feature-card-content--row {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  .page-home .how-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .page-home .how-step {
    padding: 2rem 1.25rem;
  }
  .page-home .how-step-number {
    font-size: 2.6rem;
  }
  .page-home .data-layout {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .page-home .data-visual {
    flex: 1 1 50%;
  }
  .page-home .data-image-col {
    flex: 1 1 50%;
  }
  .page-home .cta-card {
    padding: 3.5rem 3rem;
  }
  .page-home .cta-heading {
    font-size: 2.6rem;
  }
  .page-home .section-heading {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-title {
    font-size: 6rem;
  }
  .page-home .hero-section {
    padding: 3rem 0 5rem;
  }
  .page-home .features-section,
  .page-home .how-section,
  .page-home .data-section {
    padding: 5rem 0;
  }
  .page-home .cta-section {
    padding: 4rem 0 6rem;
  }
  .page-home .hero-deco-block--1 {
    width: 600px;
    height: 600px;
    top: -180px;
    right: -120px;
  }
  .page-home .hero-deco-block--2 {
    width: 380px;
    height: 380px;
    bottom: -100px;
    left: -80px;
  }
}

.page-home {
  --bg: transparent;
  --order: inherit;
}
