/* 有篮儿官网 —— 颜色取自 App 深色色板(lib/theme/app_palette.dart 的 AppPalette.dark) */

@font-face {
  font-family: "Anton";
  src: url("/fonts/anton.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0020-007E, U+00B7, U+2013-2014;
}

:root {
  --bg: #141210;
  --surface: #1f1b17;
  --surface-2: #2a241e;
  --outline: #383029;
  --ink: #f6f1ea;
  --ink-2: #b7ada2;
  --ink-3: #82776c;
  --orange: #ff6a2c;
  --orange-2: #ff8a4d;

  --display: "Anton", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }

/* 胶片颗粒:给大面积深色一点质感 */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───────── 导航 ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(20, 18, 16, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(56, 48, 41, .6);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: #fff; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 15px; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--outline); background: var(--surface);
}
@media (max-width: 560px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ───────── 首屏 ───────── */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  padding: 40px var(--pad) 80px;
  isolation: isolate;
  overflow: hidden;
}
.hero::before { /* 篮筐上方的一盏场灯 */
  content: ""; position: absolute; z-index: -2; left: 50%; top: -30%;
  width: 1100px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 106, 44, .16), rgba(255, 106, 44, 0) 70%);
}
.court {
  position: absolute; z-index: -1; left: 50%; top: 0;
  width: max(1200px, 100%); height: auto; aspect-ratio: 1200 / 760;
  transform: translateX(-50%);
}
.court-lines * { fill: none; stroke: var(--outline); stroke-width: 2; }
.court-lines .board { stroke: var(--ink-3); stroke-width: 4; }
.court-lines .rim { stroke: var(--orange); stroke-width: 3; opacity: .8; }
.shot { transform-box: fill-box; transform-origin: center; animation: pop .5s var(--ease) both; }
.shot.made { fill: var(--orange); }
.shot.miss { fill: none; stroke: var(--ink-3); stroke-width: 2.5; }
@keyframes pop { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.5); opacity: 1; } to { transform: scale(1); } }

.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.eyebrow {
  font-size: 13px; letter-spacing: .18em; color: var(--orange-2); font-weight: 600;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(20, 18, 16, .9);
}
.hero h1 em { font-style: normal; color: var(--orange); }
.lede { margin-top: 22px; max-width: 30em; font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); }

.scoreboard {
  margin-top: 34px; display: inline-flex; align-items: flex-end; gap: 18px;
  padding: 16px 24px 14px; border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--outline);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.sb-cell { display: flex; flex-direction: column; }
.sb-label { font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.sb-num { font-family: var(--display); font-size: clamp(40px, 5vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.2em; }
.sb-num small { font-size: .5em; margin-left: 2px; }
.sb-dim { color: var(--ink-2); }
.sb-accent { color: var(--orange); }
.sb-slash { font-family: var(--display); font-size: 40px; color: var(--ink-3); line-height: 1.1; }
.sb-pct { margin-left: 12px; padding-left: 22px; border-left: 1px solid var(--outline); }

.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 28px -10px rgba(255, 106, 44, .7);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(1px) scale(.98); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-disabled { cursor: default; }
.btn-disabled:hover { transform: none; }

.hero-phone { position: relative; justify-self: center; }
.phone {
  position: relative; width: min(300px, 70vw);
  padding: 10px; border-radius: 48px;
  background: linear-gradient(145deg, #3a332c, #171411);
  box-shadow: 0 0 0 1px #4a4038, 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(255, 106, 44, .35);
}
.phone img { border-radius: 38px; }
.hero-phone .phone { transform: rotate(3deg); }
.chip {
  position: absolute; padding: 10px 16px; border-radius: 14px;
  background: rgba(31, 27, 23, .86); border: 1px solid var(--outline);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; color: var(--ink-2); white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8);
  animation: float 6s ease-in-out infinite;
}
.chip b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--orange); margin-right: 2px; }
.chip-a { left: -60px; top: 22%; }
.chip-b { right: -40px; bottom: 16%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ───────── 四点条 ───────── */
.strip {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline);
}
.strip-item { display: flex; align-items: baseline; gap: 12px; padding: 26px 18px; font-size: 15px; color: var(--ink-2); }
.strip-item + .strip-item { border-left: 1px solid var(--outline); }
.strip-n { font-family: var(--display); font-size: 22px; color: var(--orange); }

/* ───────── 区块通用 ───────── */
section { scroll-margin-top: 72px; }
.section-head { max-width: 760px; margin: 0 auto; text-align: center; }
.section-head h2, .privacy h2, .download h2 { margin-top: 14px; font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; }
.section-sub { margin-top: 18px; font-size: 17px; color: var(--ink-2); }

.feature-wide { padding: clamp(80px, 12vw, 140px) var(--pad) 40px; }
.landscape {
  max-width: 1080px; margin: 56px auto 0; padding: 10px;
  border-radius: 34px;
  background: linear-gradient(145deg, #3a332c, #171411);
  box-shadow: 0 0 0 1px #4a4038, 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.landscape img { border-radius: 26px; width: 100%; }

.features {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 26px 32px; border-radius: 28px;
  background: linear-gradient(180deg, var(--surface), rgba(31, 27, 23, .4));
  border: 1px solid var(--outline);
  transition: transform .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-6px); border-color: #4d4237; }
.phone-sm { width: min(230px, 62vw); border-radius: 38px; padding: 8px; }
.phone-sm img { border-radius: 31px; }
.feature-text { margin-top: 28px; text-align: center; }
.feature h3 { font-size: 22px; }
.feature p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* ───────── 怎么用 ───────── */
.how { padding: clamp(60px, 9vw, 110px) var(--pad); }
.steps {
  list-style: none; margin: 56px auto 0; padding: 0; max-width: var(--max);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  counter-reset: none;
}
.step { position: relative; padding: 8px 32px 0; }
.step + .step { border-left: 1px dashed var(--outline); }
.step-n {
  display: block; font-family: var(--display); font-size: clamp(64px, 8vw, 104px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange);
}
.step h3 { margin-top: 18px; font-size: 22px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* ───────── 隐私 ───────── */
.privacy { padding: 0 var(--pad) clamp(60px, 9vw, 110px); }
.privacy-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 106, 44, .12), transparent 70%),
    var(--surface);
  border: 1px solid var(--outline);
}
.privacy h2 { margin-top: 0; font-size: clamp(26px, 3.4vw, 40px); }
.privacy p { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
.lock {
  flex: none; width: 96px; height: 96px; border-radius: 28px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--outline);
}
.lock svg { width: 48px; height: 48px; fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; }
.lock svg circle { fill: var(--orange); stroke: none; }

/* ───────── 下载 ───────── */
.download {
  position: relative; overflow: hidden;
  padding: clamp(80px, 12vw, 140px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--outline);
  background: radial-gradient(700px 360px at 50% 100%, rgba(255, 106, 44, .14), transparent 70%);
}
.download-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.download-logo { width: 96px; height: 96px; border-radius: 24px; background: #fff; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8); }
.download h2 { margin-top: 28px; }
.download p { margin: 16px 0 34px; color: var(--ink-2); font-size: 17px; }
.goat {
  position: absolute; right: max(4vw, calc(50% - 560px)); bottom: 24px; width: 180px;
  opacity: .9; transform: scaleX(-1);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6));
}

/* ───────── 页脚 ───────── */
.footer { padding: 32px var(--pad) 40px; border-top: 1px solid var(--outline); font-size: 13px; color: var(--ink-3); }
.footer-row { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-muted { margin-top: 6px; opacity: .7; }
.beian:hover { color: var(--ink-2); }

/* ───────── 进场动画 ───────── */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-phone.reveal { animation-name: rise-phone; }
@keyframes rise-phone { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.settled .reveal { animation: none; opacity: 1; transform: none; }

.reveal-scroll { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scroll.in { opacity: 1; transform: none; }
.features .reveal-scroll:nth-child(2), .steps .reveal-scroll:nth-child(2) { transition-delay: .1s; }
.features .reveal-scroll:nth-child(3), .steps .reveal-scroll:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scroll { opacity: 1; transform: none; animation: none; transition: none; }
  .chip, .shot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ───────── 窄屏 ───────── */
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 28px; }
  .court { width: 170vw; top: 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; }
  .chip-a { left: -30px; }
  .chip-b { right: -24px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: none; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--outline); }
  .features { grid-template-columns: 1fr; max-width: 460px; }
  .steps { grid-template-columns: 1fr; gap: 36px; max-width: 460px; }
  .step { padding: 0; }
  .step + .step { border-left: none; border-top: 1px dashed var(--outline); padding-top: 36px; }
  .privacy-inner { flex-direction: column; text-align: center; }
  .goat { width: 120px; opacity: .35; }
}
@media (max-width: 480px) {
  .scoreboard { gap: 12px; padding: 14px 18px 12px; }
  .sb-pct { margin-left: 4px; padding-left: 14px; }
  .strip-item { flex-direction: column; gap: 2px; padding: 18px 14px; font-size: 14px; }
  .landscape { padding: 6px; border-radius: 20px; }
  .landscape img { border-radius: 15px; }
}
