/* ==========================================================
 * Soccerscope · 共享样式
 * 设计语言：Apple 极简（大留白、精细排版、单一强调色）
 * 调色板：暖白底 + 墨绿强调 + 中性灰文字
 * ========================================================== */

:root {
  --bg: #FAFAF7;          /* 暖白底（不刺眼） */
  --surface: #FFFFFF;
  --surface-2: #F4F4EF;
  --ink: #1A1A1A;          /* 主文字 */
  --ink-2: #4A4A4A;        /* 次文字 */
  --ink-3: #8A8A85;        /* 提示文字 */
  --line: #E5E5E0;         /* 分割线 */
  --accent: #047857;       /* 墨绿（草坪 + 沉稳，避开赌博红） */
  --accent-2: #ECFDF5;     /* 强调淡色 */
  --accent-ink: #064E3B;   /* 强调深色 */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .04), 0 10px 25px -8px rgba(0, 0, 0, .10);
  --shadow-lg: 0 20px 60px -20px rgba(4, 120, 87, .25);
  --max: 1100px;
}

/* —— 全局重置 —— */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
               "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* —— 排版 —— */
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Helvetica Neue", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.4em;
  font-weight: 600;
}
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.8vw, 40px); }
h3 { font-size: 20px; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); }
a  { color: var(--accent); text-decoration: none; transition: opacity .15s ease; }
a:hover { opacity: .75; }

.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* —— 容器 —— */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

/* —— 导航栏 —— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.brand-logo {
  height: 56px;
  width: auto;
  max-width: min(70vw, 360px);
  display: block;
}
.brand-logo-footer {
  height: 52px;
  max-width: min(70vw, 340px);
}
@media (max-width: 640px) {
  .brand-logo { height: 44px; max-width: 62vw; }
  .brand-logo-footer { height: 42px; max-width: 62vw; }
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* —— 按钮 —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary,
.btn-primary:visited,
a.btn-primary,
a.btn-primary:visited {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover, a.btn-primary:hover {
  background: var(--accent-ink) !important;
  color: #fff !important;
  transform: translateY(-1px);
  opacity: 1;
}
.btn-secondary,
.btn-secondary:visited {
  background: var(--surface); color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); opacity: 1; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* —— Hero —— */
.hero {
  padding-top: 96px; padding-bottom: 96px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 70%;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(4, 120, 87, .08), transparent 70%),
    radial-gradient(40% 40% at 80% 30%, rgba(245, 158, 11, .06), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-2); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero p.lead {
  font-size: clamp(17px, 1.7vw, 19px);
  max-width: 640px; margin: 18px auto 36px;
  color: var(--ink-2);
}
.hero-tagline {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.5;
  max-width: 780px;
  margin: 22px auto 8px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero-tagline strong { color: var(--accent-ink); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* —— 特性网格 —— */
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-2); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 15px; margin: 0; }

/* —— "怎么用" 步骤 —— */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px; counter-reset: step;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: "SF Mono", "Fira Code", Menlo, monospace;
  color: var(--accent); font-size: 14px; font-weight: 600;
  margin-bottom: 12px; letter-spacing: 0.05em;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; }

/* —— CTA Banner —— */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  margin: 40px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255, 255, 255, .85); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { background: #fff; color: var(--accent-ink); }
.cta-banner .btn:hover { background: rgba(255, 255, 255, .9); }

/* —— 倒计时 —— */
.countdown {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 40px; font-feature-settings: "tnum" 1;
}
.countdown .unit {
  background: var(--surface); padding: 18px 24px;
  border-radius: var(--radius); border: 1px solid var(--line);
  text-align: center; min-width: 88px;
}
.countdown .unit .num { font-size: 32px; font-weight: 600; color: var(--ink); display: block; }
.countdown .unit .label { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* —— Footer —— */
.footer {
  background: #0F0F0E;
  color: #B5B5B0;
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer .brand { color: #fff; }
.footer .brand-logo { filter: none; opacity: 0.96; }
.footer .brand-block { max-width: 320px; }
.footer .brand-block p { color: #8A8A85; font-size: 14px; margin-top: 12px; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #B5B5B0; font-size: 14px; }
.footer ul a:hover { color: #fff; opacity: 1; }
.footer .legal {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid #2A2A28; font-size: 13px; color: #6B6B66;
  width: 100%; text-align: center;
}

/* —— 法律页（privacy/terms/deletion）排版 —— */
.legal-page {
  max-width: 760px; margin: 0 auto; padding: 80px 24px;
}
.legal-page h1 { font-size: 40px; margin-bottom: 8px; }
.legal-page .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 {
  font-size: 22px; margin-top: 48px; margin-bottom: 12px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; }
.legal-page p, .legal-page li { font-size: 16px; color: var(--ink-2); }
.legal-page ul { padding-left: 22px; }
.legal-page strong { color: var(--ink); }
.legal-page .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 24px; }

/* —— Hero 配大背景图（半透明遮罩） —— */
.hero-with-bg { padding-top: 88px; padding-bottom: 120px; position: relative; }
.hero-with-bg .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("/assets/banners/hero-bg.jpg");
  background-size: cover; background-position: center;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 75%);
}
.hero-with-bg > .container { position: relative; z-index: 2; }
.ink-accent { color: var(--accent); }

/* —— 信任条（Hero 下方数字行） —— */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 720px; margin: 56px auto 0; padding: 24px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
@media (max-width: 640px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
.trust-item { text-align: center; }
.trust-num {
  display: block; font-size: 28px; font-weight: 600; color: var(--accent-ink);
  font-feature-settings: "tnum" 1; letter-spacing: -0.02em;
}
.trust-label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* —— Section header 居中 —— */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-2); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.section-head h2 br { display: none; }
@media (min-width: 768px) { .section-head h2 br { display: inline; } }

/* —— Intel pipeline 卡片（图文交替） —— */
.intel-stack { display: flex; flex-direction: column; gap: 64px; }
.intel-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.intel-card.reverse { grid-template-columns: 1fr 1.1fr; }
.intel-card.reverse .intel-media { order: 2; }
.intel-card.reverse .intel-body  { order: 1; }
@media (max-width: 768px) {
  .intel-card, .intel-card.reverse { grid-template-columns: 1fr; gap: 32px; }
  .intel-card.reverse .intel-media { order: -1; }
  .intel-card.reverse .intel-body  { order: 0; }
}

.intel-media {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
  box-shadow: var(--shadow-lg);
}
.intel-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s ease;
}
.intel-card:hover .intel-media img { transform: scale(1.03); }
.intel-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 96px; color: rgba(255, 255, 255, 0.4); pointer-events: none;
}
.intel-media img + .intel-fallback { display: none; }

.intel-body .stage-tag {
  display: inline-block; padding: 4px 10px;
  background: var(--accent-2); color: var(--accent-ink);
  border-radius: 6px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.intel-body h3 {
  font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px;
  letter-spacing: -0.02em; line-height: 1.25;
}
.intel-body p { font-size: 16px; }

.bullet { padding: 0; margin: 18px 0 0; list-style: none; }
.bullet li {
  padding: 8px 0 8px 26px; position: relative; color: var(--ink-2);
  border-top: 1px solid var(--line); font-size: 15px;
}
.bullet li:first-child { border-top: none; }
.bullet li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.bullet li strong { color: var(--ink); font-weight: 600; }

