/* ============================================================
   首页专用：Modern Clean SaaS 风格（仅 body.home）
   移动优先，≥768 / ≥1024 增强 PC 布局
   ============================================================ */

body.home {
  --hs-bg: #f8fafc;
  --hs-surface: #ffffff;
  --hs-text: #0f172a;
  --hs-muted: #64748b;
  --hs-brand: #4f46e5;
  --hs-brand-hover: #4338ca;
  --hs-brand-soft: #eef2ff;
  --hs-border: #e2e8f0;
  --hs-radius: 1rem;
  --hs-radius-lg: 1.25rem;
  --hs-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --hs-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  --hs-font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--hs-bg);
  color: var(--hs-text);
  font-family: var(--hs-font);
  letter-spacing: -0.01em;
}

body.home a {
  color: var(--hs-brand);
}
body.home a:hover {
  color: var(--hs-brand-hover);
}

/* ----- 顶栏 ----- */
body.home .site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hs-border);
  box-shadow: var(--hs-shadow);
}
body.home .nav-bar {
  height: 56px;
}
body.home .nav-menu > ul > li > a:hover {
  background: var(--hs-brand-soft) !important;
  color: var(--hs-brand) !important;
}
body.home .nav-menu .btn-cta {
  background: var(--hs-brand) !important;
  border-radius: 999px !important;
  padding-inline: 1.24rem !important;
  margin-top: 0 !important;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}
@media (max-width: 1023px) {
  body.home .nav-menu .btn-cta {
    margin-top: 10px !important;
    display: inline-block !important;
  }
}
body.home .nav-menu .sub-menu {
  border-radius: var(--hs-radius);
  border: 1px solid var(--hs-border);
  box-shadow: var(--hs-shadow-md);
}

/* ----- Hero ----- */
body.home .hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 40px;
  background: linear-gradient(165deg, #eef2ff 0%, var(--hs-bg) 45%, #f1f5f9 100%);
  border-bottom: 1px solid var(--hs-border);
}
@media (min-width: 768px) {
  body.home .hero {
    padding: 56px 0 64px;
  }
}
body.home .home-hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(99, 102, 241, 0.18), transparent 52%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(139, 92, 246, 0.12), transparent 50%);
}

body.home .home-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hs-brand);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  box-shadow: var(--hs-shadow);
}
body.home .home-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hs-brand);
  opacity: 0.9;
}

body.home .hero-inner {
  position: relative;
  z-index: 1;
}
body.home .hero h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--hs-text);
  max-width: 18ch;
}
@media (min-width: 1024px) {
  body.home .hero h1 {
    max-width: 22ch;
  }
}
body.home .hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  line-height: 1.75;
  color: var(--hs-muted);
  margin-top: 1rem;
  max-width: 36rem;
}
body.home .hero-sub a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.home .hero-points {
  margin: 1.25rem 0 1.5rem;
}
body.home .hero-points li {
  position: relative;
  padding-left: 0.25rem;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.65;
}

body.home .hero-cta {
  gap: 0.75rem;
  margin-bottom: 1rem;
}
body.home .btn.btn-primary {
  color:white;
  background: var(--hs-brand);
  border-radius: 999px;
  border: none;
  padding: 0.875rem 1.6rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
body.home .btn.btn-primary:hover {
  background: var(--hs-brand-hover);
}
body.home .btn.btn-secondary {
  border-radius: 999px;
  border-color: var(--hs-border);
  color: var(--hs-text);
  background: var(--hs-surface);
}
body.home .btn.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--hs-text);
}

body.home .hero-trust.home-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.8125rem !important;
  opacity: 1 !important;
  color: var(--hs-muted) !important;
}
body.home .hero-trust:not(.home-disclaimer) {
  font-size: 0.8125rem;
  color: #94a3b8;
}

body.home .hero-img {
  position: relative;
}
body.home .hero-img img {
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow-md);
  max-width: min(100%, 520px);
  margin-inline: auto;
}
body.home .hero-img::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: calc(var(--hs-radius-lg) + 6px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
  filter: blur(20px);
  opacity: 0.9;
}

/* ----- 区块眉题 ----- */
body.home .section-eyebrow {
  margin: 0 auto 0.5rem;
  max-width: 42rem;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hs-brand);
}
body.home .section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hs-text);
}
body.home .section-sub {
  font-size: 0.95rem;
  color: var(--hs-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ----- 功能卡 ----- */
body.home .features {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--hs-surface);
}
body.home .feature-grid {
  gap: 1.25rem;
}
body.home .feature-card {
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow);
  padding: 1.6rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
body.home .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hs-shadow-md);
  border-color: rgba(99, 102, 241, 0.25);
}
body.home .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: var(--hs-brand-soft);
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
}
body.home .feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hs-text);
}
body.home .feature-card p {
  color: var(--hs-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
body.home .feature-link {
  color: var(--hs-brand);
  font-size: 0.875rem;
}
body.home .feature-card-alt {
  background: linear-gradient(180deg, #fafaff 0%, var(--hs-surface) 100%);
}

/* ----- 场景 ----- */
body.home .scenes {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--hs-bg);
  border-top: 1px solid var(--hs-border);
}
body.home .scene-grid {
  gap: 1rem;
}
body.home .scene-item {
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--hs-shadow);
  transition: box-shadow 0.2s ease;
}
body.home .scene-item:hover {
  box-shadow: var(--hs-shadow-md);
}
body.home .scene-item h3 {
  color: var(--hs-text);
  font-size: 1.02rem;
  font-weight: 600;
}
body.home .scene-item p {
  color: var(--hs-muted);
  font-size: 0.9rem;
}

/* ----- FAQ ----- */
body.home .faq {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--hs-surface);
  border-top: 1px solid var(--hs-border);
}
body.home .faq-item {
  background: var(--hs-bg);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 1rem 1.15rem;
}
body.home .faq-item summary {
  color: var(--hs-text);
  font-weight: 600;
}
body.home .faq-item summary::after {
  color: var(--hs-brand);
}
body.home .faq-item p {
  color: var(--hs-muted);
}

/* ----- CTA ----- */
body.home .cta-band {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 48%, #7c3aed 100%);
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: none;
}
body.home .cta-band h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.home .cta-band .btn-primary {
  border-radius: 999px;
  font-weight: 600;
}
body.home .cta-band .btn-secondary {
  border-radius: 999px;
  border-width: 2px;
}
body.home .home-cta-note {
  margin-top: 1rem !important;
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* CTA 按钮：压住 body.home 对 <a> 的全局链色，保证白底 / 白字可读 */
body.home .cta-band .btn-primary {
  background: #ffffff !important;
  color: var(--hs-brand) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}
body.home .cta-band .btn-primary:hover {
  background: #f1f5f9 !important;
  color: var(--hs-brand-hover) !important;
}
body.home .cta-band .btn-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
}
body.home .cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* ----- 页脚 ----- */
body.home .site-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding-top: 3rem;
}
body.home .footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
body.home .footer-col p,
body.home .footer-col a {
  color: #cbd5e1;
  font-size: 0.9rem;
}
body.home .footer-col a:hover {
  color: #fff;
}
body.home .footer-col img {
  opacity: 1;
}
body.home .footer-col-extra {
  margin-top: 0.75rem;
}

body.home .footer-legal {
  border-top-color: #1e293b;
}
body.home .footer-legal p,
body.home .footer-legal a {
  color: #64748b;
}
body.home .footer-legal a:hover {
  color: #cbd5e1;
}

/* PC：首屏左右分栏更舒适 */
@media (min-width: 1024px) {
  body.home .hero-inner {
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
  }
  body.home .feature-grid {
    gap: 1.5rem;
  }
}

/* 无障碍：减少动画 */
@media (prefers-reduced-motion: reduce) {
  body.home .feature-card,
  body.home .scene-item {
    transition: none;
  }
}
