/* ==========================================================
   球云体育 落地页样式
   设计方向：纯净白底 × 中国红品牌色 × 数据感
   ========================================================== */

:root {
  --red: #e0252a;
  --red-deep: #b01217;
  --red-glow: rgba(224, 37, 42, 0.28);
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --card: #ffffff;
  --line: rgba(17, 24, 39, 0.08);
  --text: #1a1d24;
  --text-dim: #6b7280;
  --gold: #d99a1b;
  --green: #1fae5c;
  --radius-l: 22px;
  --radius-m: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-display);
  background: #eef0f4;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page {
  max-width: 480px;
  margin: 0 auto;
  background:
    radial-gradient(120% 50% at 50% -5%, rgba(224, 37, 42, 0.07), transparent 60%),
    var(--bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 0 1px var(--line);
  padding-bottom: 84px; /* 给吸底条留空间 */
}

/* ---------- 顶部品牌栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-brand { display: flex; align-items: center; gap: 10px; }

.topbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 10px var(--red-glow);
}

.topbar-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.topbar-btn {
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 14px var(--red-glow);
}

.topbar-btn:active { transform: scale(0.95); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 44px 24px 36px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(224, 37, 42, 0.1), transparent);
  filter: blur(10px);
  pointer-events: none;
}

/* 球场中圈线条 */
.hero-pitch {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 560px;
  border: 1px solid rgba(17, 24, 39, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero-pitch::before {
  content: "";
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(17, 24, 39, 0.04);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #a8730e;
  background: rgba(217, 154, 27, 0.1);
  border: 1px solid rgba(217, 154, 27, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(31, 174, 92, 0.6);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 174, 92, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(31, 174, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 174, 92, 0); }
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(30px, 8.5vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 2px;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, #f0383d 10%, var(--red) 50%, #e8702a 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.9;
}

.hero-actions { margin-top: 26px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 34px;
  letter-spacing: 1px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active { transform: scale(0.96); }

.btn-icon { width: 19px; height: 19px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, #ff4348, var(--red) 55%, var(--red-deep));
  color: #fff;
  box-shadow: 0 8px 28px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: #fff;
  color: var(--red);
  border: 1.5px solid rgba(224, 37, 42, 0.45);
}

.btn-light {
  background: #fff;
  color: var(--red-deep);
  box-shadow: 0 8px 24px rgba(108, 8, 12, 0.35);
}

.hero-stores {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.store-link { transition: color 0.2s; }
.store-link:active, .store-link:hover { color: var(--red); }
.store-sep { opacity: 0.35; }
.store-k { font-size: 12px; }

/* ---------- 通用 Section ---------- */
.section { padding: 48px 24px 8px; }

.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--red);
  text-align: center;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ---------- 功能网格 ---------- */
.feature-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 16px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature:hover {
  border-color: rgba(224, 37, 42, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.feature-ico {
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(224, 37, 42, 0.08);
  border: 1px solid rgba(224, 37, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h4 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 12px;
}

.feature p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.7;
}

/* ---------- 世界杯专题 ---------- */
.wc {
  margin: 48px 20px 0;
  border-radius: var(--radius-l);
  background:
    radial-gradient(140% 110% at 100% 0%, rgba(255, 194, 75, 0.22), transparent 50%),
    linear-gradient(150deg, #d31c21 0%, #8e0d12 70%, #6c080c 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(176, 18, 23, 0.25);
  color: #fff;
}

.wc-inner {
  position: relative;
  z-index: 2;
  padding: 34px 28px;
}

.wc-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffc24b;
}

.wc-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 10px;
  letter-spacing: 2px;
}

.wc-list {
  margin-top: 18px;
  list-style: none;
}

.wc-list li {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 22px;
  position: relative;
  margin-bottom: 9px;
  line-height: 1.6;
}

.wc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffc24b;
}

.wc .btn-light { margin-top: 12px; font-size: 15px; padding: 13px 28px; }

/* 装饰足球 */
.wc-ball {
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.06) 55%),
    repeating-conic-gradient(rgba(255, 255, 255, 0.16) 0 12deg, transparent 12deg 30deg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.85;
}

/* ---------- AI 洞察 ---------- */
.insight-card {
  margin-top: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px 22px 16px;
}

.insight-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.insight-name {
  width: 62px;
  font-size: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.meter {
  flex: 1;
  height: 8px;
  background: rgba(17, 24, 39, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red-deep), #ff4348 70%, #ffb02e);
  animation: grow 1.2s var(--ease) both;
  transform-origin: left;
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.insight-val {
  width: 28px;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  flex-shrink: 0;
}

.insight-note {
  font-size: 10.5px;
  color: #9aa1ad;
  margin-top: 4px;
  line-height: 1.6;
}

/* ---------- 底部 CTA ---------- */
.cta {
  margin-top: 52px;
  padding: 44px 24px;
  text-align: center;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(224, 37, 42, 0.08), transparent 65%);
}

.cta-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  margin: 0 auto;
  box-shadow: 0 12px 32px var(--red-glow);
}

.cta-title { font-size: 24px; font-weight: 800; margin-top: 18px; letter-spacing: 2px; }

.cta-sub { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

.cta-btns {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns .btn { width: 100%; font-size: 15px; }

.cta-tip {
  margin-top: 14px;
  font-size: 11.5px;
  color: #9aa1ad;
}

/* ---------- Footer ---------- */
.footer {
  padding: 24px 24px 30px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer p {
  font-size: 11px;
  color: #9aa1ad;
  line-height: 1.9;
}

/* ---------- 吸底下载条 ---------- */
.dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
  z-index: 60;
}

.dock-icon { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; }

.dock-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dock-text strong { font-size: 14px; font-weight: 700; }

.dock-text span { font-size: 11px; color: var(--text-dim); }

.dock-btn {
  background: linear-gradient(135deg, #ff4348, var(--red-deep));
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 14px var(--red-glow);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.dock-btn:active { transform: scale(0.94); }

/* ---------- 微信遮罩 ---------- */
#wx-mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

#wx-mask .wx-tip {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #fff;
  font-size: 16px;
  line-height: 2;
  text-align: right;
}

#wx-mask .wx-tip::before {
  content: "↗";
  display: block;
  font-size: 40px;
  color: #ffc24b;
}

/* ---------- 入场动画 ---------- */
.reveal {
  animation: rise 0.8s var(--ease) both;
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .meter span, .live-dot { animation: none !important; }
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 360px) {
  .feature-grid { grid-template-columns: 1fr; }
}
