/* ============================================
   49统计 - 首页样式（第一屏 / 核心功能 / 价格 / CTA）
   ============================================ */

/* === 第一屏 === */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 88px;
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 78%);
}

/* 背景网格与光晕 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 168, 141, .28), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--brand-500);
  color: var(--brand-900);
  font-size: .86rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 208, 0, .24);
}

.hero h1 { margin-bottom: 20px; font-size: 3.1rem; }

.hero h1 .hero-mark {
  position: relative;
  color: var(--brand-700);
}

.hero h1 .hero-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .22em;
  border-radius: 3px;
  background: rgba(255, 208, 0, .42);
  z-index: -1;
}

.hero-sub { margin-bottom: 10px; color: var(--ink-3); font-size: 1.06rem; }
.hero-sub strong { color: var(--ink-2); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-note { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: var(--ink-3); font-size: .88rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note span::before { content: "✓"; color: var(--brand-700); font-weight: 700; }

/* === 第一屏右侧视觉：数据面板 + 三个环绕标签 === */
.hero-visual { position: relative; padding: 34px 0; }

.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.panel-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.panel-head .dot:nth-child(1) { background: var(--coral); }
.panel-head .dot:nth-child(2) { background: var(--gold); }
.panel-head .dot:nth-child(3) { background: var(--brand-500); }

.panel-head span.panel-title { margin-left: 8px; color: var(--ink-3); font-size: .8rem; font-weight: 500; }

.panel-body { padding: 20px; }

.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.panel-stat { padding: 14px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.panel-stat .ps-label { display: block; color: var(--ink-3); font-size: .76rem; }
.panel-stat .ps-value { display: block; margin: 4px 0 2px; color: var(--ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -.5px; }
.panel-stat .ps-trend { font-size: .74rem; color: var(--ink-4); }
.panel-stat .ps-trend.up { color: var(--brand-700); }

.panel-chart { margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.panel-chart-label { display: block; margin-bottom: 8px; color: var(--ink-3); font-size: .76rem; }
.panel-chart svg { display: block; width: 100%; height: 96px; }

.panel-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--brand-50); font-size: .82rem; color: var(--ink-2); }
.panel-row b { color: var(--brand-700); }

/* 三个环绕标签 */
.hero-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
}

.hero-tag-1 { top: -6px; left: -12px; animation: float 5.5s ease-in-out infinite; }
.hero-tag-2 { top: 44%; right: -14px; animation: float 6.5s ease-in-out infinite .6s; }
.hero-tag-3 { bottom: -6px; left: 6px; animation: float 6s ease-in-out infinite 1.2s; }

.hero-tag-2::before { background: var(--gold); }
.hero-tag-3::before { background: var(--coral); }

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

@media (prefers-reduced-motion: reduce) {
  .hero-tag { animation: none; }
}

/* === 核心功能卡片 === */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.feature-card { position: relative; padding: 30px; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-100);
  color: var(--brand-700);
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 18px; color: var(--ink-3); font-size: .95rem; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.feature-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--line);
  color: var(--brand-900);
  font-size: .78rem;
  font-weight: 500;
}

/* === 价格卡片 === */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.price-card:hover { border-color: var(--brand-500); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.price-card--featured { border: 2px solid var(--brand-700); box-shadow: var(--shadow-lg); }

.price-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  padding: 5px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--coral);
  color: #fff;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .5px;
}

.price-name { margin-bottom: 6px; font-size: 1.5rem; }
.price-for { margin-bottom: 22px; color: var(--ink-3); font-size: .88rem; }

.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; color: var(--ink); }
.price-amount .price-value { font-size: 2.6rem; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.price-amount .price-cur { font-size: 1.3rem; font-weight: 700; }
.price-amount .price-unit { color: var(--ink-3); font-size: .95rem; font-weight: 500; }
.price-amount .price-todo { font-size: 1.9rem; font-weight: 700; color: var(--brand-700); }

.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: var(--ink-2); }

.price-features li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: .72rem;
  font-weight: 700;
}

.price-features li.is-off { color: var(--ink-4); }

.price-features li.is-off::before {
  content: "✕";
  background: var(--line-soft);
  color: var(--ink-4);
  font-size: .66rem;
}

.price-card .btn { margin-top: auto; }

/* 价格区块下方的说明 */
.price-foot { margin-top: 28px; text-align: center; color: var(--ink-3); font-size: .88rem; }

/* 首页常见问题：更多入口 */
.faq-more { margin: 28px 0 0; text-align: center; color: var(--ink-3); font-size: .9rem; }
.faq-more a { font-weight: 600; }

/* === 首页 CTA === */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: rgba(255, 255, 255, .8);
  text-align: center;
}

.cta-band::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 208, 0, .14), transparent 66%);
}

.cta-band h2 { position: relative; color: #fff; }
.cta-band p { position: relative; margin-bottom: 28px; }
.cta-band .btn-group { position: relative; justify-content: center; }
.cta-band .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* === 响应式 === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-tag { position: static; animation: none; }
  .hero-tag-1, .hero-tag-2, .hero-tag-3 { display: inline-flex; }
  .hero-visual { display: flex; flex-direction: column; gap: 12px; }
  .hero-tags-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
}
