/* ============================================================
   首页样式 index.css（仅 index.html 使用）
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 72px) 0 90px;
  background:
    radial-gradient(700px 320px at 88% 8%, rgba(43,127,255,.12), transparent 60%),
    radial-gradient(560px 300px at 4% 92%, rgba(43,127,255,.09), transparent 60%),
    linear-gradient(180deg, #eef4fe 0%, var(--c-bg-page) 100%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.hero h1 { font-size: 50px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #2b7fff, #5aa2ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { margin-top: 22px; color: var(--c-text-sub); font-size: 16px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 48px; margin-top: 46px; padding-top: 30px;
  box-shadow: inset 0 1px 0 #cfdef4;
}
.stat-num {
  font-size: 34px; font-weight: 800; color: var(--c-primary);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.stat-label { font-size: 14px; color: var(--c-text-sub); margin-top: 4px; }

/* Hero 视觉区 */
.hero-visual { position: relative; min-height: 420px; }
.hero-svg { width: 100%; max-width: 560px; margin: 0 auto; display: block; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--c-text-main);
  box-shadow: var(--c-shadow-card); white-space: nowrap;
  animation: floatY 5s ease-in-out infinite;
}
.fc-icon { color: var(--c-primary); display: inline-flex; }
.fc-icon .ic { width: 16px; height: 16px; }
.fc-1 { top: 4%; left: 0; animation-delay: .2s; }
.fc-2 { top: 10%; right: 0; animation-delay: .8s; }
.fc-3 { top: 46%; right: -2%; animation-delay: 1.4s; }
.fc-4 { bottom: 14%; left: 2%; animation-delay: 2s; }
.fc-5 { bottom: 4%; right: 10%; animation-delay: 2.6s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 产品服务 ---------- */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card { display: flex; flex-direction: column; padding: 30px 26px; color: inherit; }
.pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pc-top h3 { font-size: 19px; font-weight: 700; }
.product-card p { font-size: 14px; color: var(--c-text-sub); flex: 1; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.pc-link { font-size: 14px; font-weight: 600; color: var(--c-primary); transition: transform .2s; }
.product-card:hover .pc-link { transform: translateX(4px); }
.product-card-wide { grid-column: span 4; flex-direction: row; align-items: center; gap: 32px; }
.product-card-wide .pc-top { margin-bottom: 0; min-width: 300px; }
.product-card-wide p { max-width: 560px; }
.product-card-wide .pc-tags { margin: 0 0 0 auto; max-width: 320px; justify-content: flex-end; }

/* ---------- 核心优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card { padding: 34px 26px; text-align: left; }
.adv-card h4 { font-size: 18px; margin: 18px 0 10px; font-weight: 700; }
.adv-card p { font-size: 14px; color: var(--c-text-sub); }

/* ---------- 数据蓝色横带 ---------- */
.stats-band {
  background:
    radial-gradient(500px 200px at 15% 0%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(500px 220px at 90% 100%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(120deg, #1a63e0 0%, #2b7fff 55%, #5aa2ff 100%);
  padding: 70px 0;
}
.stats-band-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.band-item { position: relative; color: #fff; }
.band-item + .band-item::before {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 52px; background: rgba(255,255,255,.28);
}
.band-num { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.band-label { font-size: 15px; opacity: .85; margin-top: 6px; }

/* ---------- 底部 CTA ---------- */
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: #fff; border-radius: 24px;
  padding: 56px 60px; box-shadow: var(--c-shadow-card);
  background-image: radial-gradient(400px 200px at 92% 0%, rgba(43,127,255,.1), transparent 60%);
}
.cta-text h2 { font-size: 30px; font-weight: 700; }
.cta-text p { margin-top: 12px; color: var(--c-text-sub); }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card-wide { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .product-card-wide .pc-tags { margin: 0; justify-content: flex-start; max-width: none; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-height) + 48px); }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 28px; }
  .stat-num { font-size: 26px; }
  .hero-visual { min-height: 340px; margin-top: 10px; }
  .float-card { display: none; }
  .fc-1, .fc-2 { display: flex; }
  .products-grid, .adv-grid { grid-template-columns: 1fr; }
  .product-card-wide { grid-column: span 1; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .band-item + .band-item::before { display: none; }
  .band-num { font-size: 32px; }
  .cta-card { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-text h2 { font-size: 23px; }
}
