/* 羽球时刻首页 v2
   布局：夜场灯光秀。整页背后是一块 three.js 舞台（一只羽毛球带着金色拖尾随滚动飞过，
   灯柱、金尘和球场线），内容像转播字幕一样浮在上面。大字、斜跑马灯、滚动驱动的跟拍演示。
   刻意只做深色一种外观，与 App 一致。 */

@font-face { font-family: "YQDisplay"; src: url("./assets/fonts/yq-display.woff2") format("woff2"); font-display: swap; font-weight: 700; }
@font-face { font-family: "YQNum"; src: url("./assets/fonts/yq-num.woff2") format("woff2"); font-display: swap; font-weight: 800; }

:root {
  color-scheme: dark;
  --ink: #060605;
  --ink-2: rgba(20, 21, 16, 0.72);
  --line: rgba(255, 241, 187, 0.14);
  --chalk: #fff8e6;
  --muted: #b3b0a4;
  --gold: #ffd519;
  --gold-hot: #ffe873;
  --gold-ink: #161104;
  --champ: #ecd194;
  --live: #ff4d3d;
  --f-display: "YQDisplay", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-num: "YQNum", "SF Pro Display", "DIN Alternate", "Roboto", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --r: 24px;
}

* { box-sizing: border-box; }
html { background: var(--ink); overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--chalk);
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- 舞台与胶片颗粒 ---------- */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; pointer-events: none; }
.stage-fallback {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(255, 213, 25, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(255, 213, 25, 0.08), transparent 70%),
    var(--ink);
}
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

main, .foot, .bar { position: relative; z-index: 2; }
main > section { padding-inline: var(--gutter); }
main > section > * { max-width: var(--maxw); margin-inline: auto; }

/* ---------- 顶栏 ---------- */
.bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 40;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(8, 8, 6, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bar-brand img { width: 34px; height: 34px; border-radius: 10px; }
.bar-name { font-family: var(--f-display); font-size: 20px; letter-spacing: 0.02em; }
.bar-links { display: flex; gap: 2px; margin-left: auto; }
.bar-links a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.bar-links a:hover { color: var(--chalk); background: rgba(255, 255, 255, 0.07); }
.bar-cta {
  text-decoration: none; font-weight: 800; font-size: 14px; white-space: nowrap;
  background: var(--gold); color: var(--gold-ink); padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 0 30px -6px rgba(255, 213, 25, 0.7);
}

/* ---------- 通用 ---------- */
.kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; color: var(--gold); }
.kicker-champ { color: var(--champ); }
.badge { font-style: normal; font-size: 11px; letter-spacing: 0.04em; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: linear-gradient(135deg, #fff0c7, var(--champ) 55%, #f5e1a6); color: var(--gold-ink); }
.badge-new { background: var(--live); color: #fff; box-shadow: 0 0 16px rgba(255, 77, 61, 0.6); }
h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.06; letter-spacing: 0.005em; }
.gold-text {
  background: linear-gradient(100deg, #ffb800 0%, var(--gold) 30%, #fff6c4 48%, var(--gold) 62%, #ffb800 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
  filter: drop-shadow(0 0 30px rgba(255, 213, 25, 0.35));
}
.champ-text { background: linear-gradient(100deg, #b98933, #fff0c7 45%, #d7af65 70%, #f5e1a6); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 32em; }
.fine { color: #8f8c80; font-size: 13px; }
.center { text-align: center; margin-inline: auto; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: 999px; overflow: hidden;
  font: 800 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.btn span { position: relative; z-index: 1; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 0 rgba(255, 213, 25, 0.5), 0 16px 50px -12px rgba(255, 213, 25, 0.8); }
.btn-gold::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(120%); } }
.btn-ghost { background: rgba(255, 248, 230, 0.04); color: var(--chalk); border-color: rgba(255, 248, 230, 0.26); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold); box-shadow: 0 0 30px -8px rgba(255, 213, 25, 0.6); }

/* 带光斑的玻璃卡片：鼠标位置写入 --mx / --my */
.card {
  position: relative; border-radius: var(--r); background: var(--ink-2);
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden; isolation: isolate;
}
.glow-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 213, 25, 0.16), transparent 60%);
}
.glow-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 213, 25, 0.9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glow-card:hover::before, .glow-card:hover::after { opacity: 1; }

.phone {
  position: relative; border-radius: 40px; padding: 9px;
  background: linear-gradient(160deg, #47463e, #121310 38%, #2c2b25 70%, #57554a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 0 80px -20px rgba(255, 213, 25, 0.35);
}
.phone img { border-radius: 31px; width: 100%; height: auto; }

/* ---------- 开场 ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-content: center; padding-block: 130px 90px; }
.hero-ghost {
  position: absolute; left: 0; right: 0; bottom: 12%; z-index: -1; overflow: hidden; pointer-events: none; max-width: none !important;
  font: 800 clamp(90px, 17vw, 250px)/1 var(--f-num); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 213, 25, 0.13);
}
.hero-ghost span { display: inline-block; animation: ghost 40s linear infinite; }
@keyframes ghost { to { transform: translateX(-50%); } }
.hero-inner { display: grid; gap: 28px; width: 100%; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font: 800 12px/1 var(--f-num); letter-spacing: 0.14em; color: var(--chalk);
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(255, 77, 61, 0.1); border: 1px solid rgba(255, 77, 61, 0.35);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(255, 77, 61, 0.22), 0 0 12px var(--live); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.3; } }
.hero-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(64px, 12.5vw, 188px); line-height: 0.98; letter-spacing: -0.02em;
}
.hero-title .ln { display: block; white-space: nowrap; }
.hero-title .ch { display: inline-block; animation: chIn 1s cubic-bezier(.16, 1, .3, 1) both; text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6); }
.hero-title .ch.gold {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 213, 25, 0.55), 0 0 90px rgba(255, 213, 25, 0.35);
}
.hero-title .ln:nth-child(1) .ch:nth-child(1) { animation-delay: .05s; } .hero-title .ln:nth-child(1) .ch:nth-child(2) { animation-delay: .1s; }
.hero-title .ln:nth-child(1) .ch:nth-child(3) { animation-delay: .15s; } .hero-title .ln:nth-child(1) .ch:nth-child(4) { animation-delay: .2s; }
.hero-title .ln:nth-child(1) .ch:nth-child(5) { animation-delay: .25s; } .hero-title .ln:nth-child(2) .ch:nth-child(1) { animation-delay: .35s; }
.hero-title .ln:nth-child(2) .ch:nth-child(2) { animation-delay: .4s; } .hero-title .ln:nth-child(2) .ch:nth-child(3) { animation-delay: .6s; }
.hero-title .ln:nth-child(2) .ch:nth-child(4) { animation-delay: .68s; } .hero-title .ln:nth-child(2) .ch:nth-child(5) { animation-delay: .76s; }
@keyframes chIn { from { opacity: 0.001; transform: translateY(0.5em) rotate(8deg) scale(0.9); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.hero-lead { color: #cfcbbd; font-size: clamp(16px, 1.5vw, 20px); max-width: 30em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts {
  list-style: none; padding: 0; margin: 56px auto 0 !important; width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line);
}
.hero-facts li { display: grid; gap: 2px; padding: 18px 20px 0 0; }
.hero-facts b { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.8vw, 24px); }
.hero-facts span { font-size: 13px; color: var(--muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 40px; border-radius: 12px; border: 1.5px solid rgba(255, 248, 230, 0.4); }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 斜跑马灯 ---------- */
.ribbons { position: relative; height: 210px; margin-block: 10px 40px; overflow: hidden; z-index: 3; }
.ribbon { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; white-space: nowrap; }
.ribbon-a { background: var(--gold); color: var(--gold-ink); transform: translateY(-60%) rotate(-4deg); box-shadow: 0 0 60px rgba(255, 213, 25, 0.45); z-index: 2; }
.ribbon-b { background: rgba(255, 248, 230, 0.06); color: rgba(255, 248, 230, 0.55); transform: translateY(-30%) rotate(3deg); border-block: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ribbon-track { display: inline-flex; align-items: center; gap: 28px; padding: 16px 0; animation: marquee 30s linear infinite; }
.ribbon-b .ribbon-track { animation-direction: reverse; animation-duration: 40s; font-family: var(--f-num); letter-spacing: 0.08em; }
.ribbon-track span { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 34px); }
.ribbon-b .ribbon-track span { font-family: var(--f-num); font-weight: 800; }
.ribbon-track b { font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 时间轴扫描 ---------- */
.scan-sec { padding-block: 20px 0; }
.scan {
  position: relative; padding: clamp(20px, 3vw, 36px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 21, 16, 0.75), rgba(6, 6, 5, 0.75));
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 120px -40px rgba(255, 213, 25, 0.35);
}
.scan-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.scan-big { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.scan-big b { font: 800 clamp(72px, 10vw, 140px)/0.9 var(--f-num); color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(255, 213, 25, 0.5); }
.scan-big span { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); }
.scan-note { color: var(--muted); font-size: 14px; max-width: 22em; }
.scan-track { position: relative; height: clamp(64px, 8vw, 96px); display: flex; gap: 3px; }
.seg { height: 100%; flex: var(--w) 0 0; border-radius: 4px; background: rgba(255, 255, 255, 0.07); transition: background .3s, box-shadow .3s, opacity .3s, transform .3s; }
.seg.rally { background: rgba(255, 255, 255, 0.13); }
.seg.rally.hit { background: linear-gradient(180deg, var(--gold-hot), var(--gold)); box-shadow: 0 0 24px rgba(255, 213, 25, 0.7); transform: scaleY(1.08); }
.seg.idle.passed { opacity: 0.25; transform: scaleY(0.55); }
.scan-playhead {
  position: absolute; top: -12px; bottom: -12px; left: 0; width: 2px; z-index: 2; background: #fff;
  box-shadow: 0 0 18px 4px rgba(255, 248, 230, 0.8); transform: translateX(var(--x, 0px));
}
.scan-playhead::before { content: ""; position: absolute; top: -6px; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
.scan-ruler { display: flex; justify-content: space-between; margin-top: 14px; font: 800 11px/1 var(--f-num); color: #6f6c62; letter-spacing: 0.08em; }

/* ---------- 三步 ---------- */
.how { padding-block: clamp(110px, 14vw, 180px) 0; }
.mega { font-size: clamp(64px, 11vw, 168px); line-height: 0.95; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; gap: 0 0.18em; }
.mega .out { color: transparent; -webkit-text-stroke: 2px var(--gold); }
.mega-center { justify-content: center; text-align: center; font-size: clamp(48px, 8vw, 120px); }
.steps { list-style: none; padding: 0; margin: 48px auto 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { display: grid; gap: 12px; align-content: start; padding: 28px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.step:nth-child(2) { transform: translateY(48px); }
.step:nth-child(3) { transform: translateY(96px); }
.step-no { position: absolute; top: 14px; right: 22px; font: 800 72px/1 var(--f-num); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 213, 25, 0.5); }
.step-art { height: 130px; width: auto; max-width: 70%; object-fit: contain; object-position: left center; mix-blend-mode: lighten; margin-bottom: 6px; }
.step h3 { font-family: var(--f-display); font-size: 26px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }
.step-wave { display: flex; align-items: center; gap: 5px; height: 130px; }
.step-wave i { width: 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); height: 20%; animation: wave 1.6s ease-in-out infinite; }
.step-wave i:nth-child(3n+1) { background: var(--gold); box-shadow: 0 0 12px rgba(255, 213, 25, 0.6); }
.step-wave i:nth-child(1) { height: 60%; } .step-wave i:nth-child(2) { height: 28%; animation-delay: -.2s; }
.step-wave i:nth-child(3) { height: 18%; animation-delay: -.4s; } .step-wave i:nth-child(4) { height: 82%; animation-delay: -.6s; }
.step-wave i:nth-child(5) { height: 22%; animation-delay: -.8s; } .step-wave i:nth-child(6) { height: 14%; animation-delay: -1s; }
.step-wave i:nth-child(7) { height: 70%; animation-delay: -1.2s; } .step-wave i:nth-child(8) { height: 30%; animation-delay: -1.4s; }
.step-wave i:nth-child(9) { height: 16%; animation-delay: -.1s; } .step-wave i:nth-child(10) { height: 92%; animation-delay: -.3s; }
.step-wave i:nth-child(11) { height: 26%; animation-delay: -.5s; } .step-wave i:nth-child(12) { height: 12%; animation-delay: -.7s; }
.step-wave i:nth-child(13) { height: 64%; animation-delay: -.9s; } .step-wave i:nth-child(14) { height: 20%; animation-delay: -1.1s; }
@keyframes wave { 50% { transform: scaleY(0.5); } }

/* ---------- 高光跟拍（滚动驱动，--fp 0..1 由脚本写入） ---------- */
.follow { padding-block: clamp(150px, 18vw, 240px) 0; height: 260vh; }
.follow-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 640px;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.follow-copy { display: grid; gap: 24px; min-width: 0; }
.follow-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; counter-reset: fs; }
.follow-steps li {
  position: relative; display: grid; gap: 2px; padding: 14px 0 14px 54px; color: #6f6c62; border-top: 1px solid var(--line);
  transition: color .4s; counter-increment: fs; font-size: 15px;
}
.follow-steps li::before {
  content: "0" counter(fs); position: absolute; left: 0; top: 14px; font: 800 22px/1 var(--f-num); color: inherit;
}
.follow-steps b { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.follow-steps li.on { color: var(--chalk); }
.follow-steps li.on::before { color: var(--gold); text-shadow: 0 0 16px rgba(255, 213, 25, 0.7); }
.follow-stage { position: relative; min-width: 0; padding-bottom: 70px; }
.court { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.court img { width: 100%; height: auto; }
/* 竖屏裁切窗：以 TA 为中心，宽度从整幅收到 9:16；--cl / --cw 由脚本写入（百分比数值） */
.crop {
  position: absolute; top: 0; bottom: 0; left: calc(var(--cl, 0) * 1%); width: calc(var(--cw, 100) * 1%); z-index: 2; pointer-events: none;
  border-inline: 2px solid rgba(255, 213, 25, calc(var(--crop, 0) * 0.95));
  box-shadow: inset 0 0 40px rgba(255, 213, 25, calc(var(--crop, 0) * 0.25));
}
.dim { position: absolute; top: 0; bottom: 0; background: rgba(6, 6, 5, 0.75); z-index: 1; }
.dim-l { left: 0; width: calc(var(--cl, 0) * 1%); }
.dim-r { right: 0; width: calc((100 - var(--cl, 0) - var(--cw, 100)) * 1%); }
.lock {
  position: absolute; left: 40.8%; top: 36%; width: 13.9%; height: 62%; z-index: 3;
  border: 3px solid var(--gold); border-radius: 8px; opacity: var(--lockon, 0);
  transform: scale(calc(1.4 - 0.4 * var(--lockon, 0)));
  box-shadow: 0 0 30px rgba(255, 213, 25, 0.6), inset 0 0 30px rgba(255, 213, 25, 0.25);
}
.lock span { position: absolute; top: -28px; left: -3px; font: 800 12px/1 var(--f-num); background: var(--gold); color: var(--gold-ink); padding: 7px 9px; border-radius: 6px 6px 6px 0; }
.tap {
  position: absolute; left: 47.6%; top: 62%; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 4; border-radius: 50%;
  border: 2px solid #fff; opacity: calc(1 - var(--lockon, 0)); animation: tap 1.4s ease-out infinite;
}
@keyframes tap { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.found {
  position: absolute; left: 16px; bottom: 16px; z-index: 4; padding: 8px 14px; border-radius: 12px; font-size: 14px;
  background: rgba(6, 6, 5, 0.8); border: 1px solid var(--line); opacity: var(--foundon, 0); transform: translateY(calc(10px - 10px * var(--foundon, 0)));
}
.found b { font-family: var(--f-num); color: var(--gold); font-size: 18px; }
.reel {
  position: absolute; right: -2%; bottom: 0; width: 27%; aspect-ratio: 9 / 16; z-index: 5; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--gold); background: #000;
  box-shadow: 0 0 0 6px rgba(255, 213, 25, 0.12), 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 60px -10px rgba(255, 213, 25, 0.55);
  opacity: var(--reelon, 0);
  transform: translate(calc(-90% + 90% * var(--reelon, 0)), calc(-20px + 20px * var(--reelon, 0))) scale(calc(0.7 + 0.3 * var(--reelon, 0))) rotate(calc(-6deg + 9deg * var(--reelon, 0)));
}
.reel-video {
  position: absolute; inset: 0;
  background: url("./assets/home/court-follow.webp") 46.7% 50% / auto 112% no-repeat;
  animation: follow-pan 5s ease-in-out infinite alternate;
}
@keyframes follow-pan { from { background-position: 44% 40%; } to { background-position: 50% 55%; } }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 22%, transparent 70%, rgba(0, 0, 0, 0.7)); }
.reel-tag, .reel-count, .reel-bar { position: absolute; z-index: 1; }
.reel-tag { top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); }
.reel-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: rec 1.2s infinite; }
.reel-count { left: 10px; bottom: 22px; font-size: 12px; font-weight: 700; }
.reel-bar { left: 10px; right: 10px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.reel-bar i { display: block; height: 100%; width: 40%; background: var(--gold); animation: reel-play 5s linear infinite; }
@keyframes reel-play { from { width: 0; } to { width: 100%; } }
.intro > * { margin: 0 !important; max-width: none !important; }
.intro { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; }
.intro-copy { display: grid; gap: 22px; min-width: 0; }
.tv-wrap { display: grid; gap: 12px; min-width: 0; perspective: 1400px; }
.tv {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: #000;
  border: 1px solid rgba(255, 213, 25, 0.35);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03), 0 60px 120px -40px rgba(255, 213, 25, 0.45), 0 0 160px -60px rgba(255, 213, 25, 0.6);
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.tv:hover { transform: none; }
.tv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.tv-live { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px; font: 800 12px/1 var(--f-num); letter-spacing: 0.1em; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); }
.tv-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: rec 1.2s infinite; }
.bug {
  position: absolute; left: 50%; bottom: 13%; transform: translate(-50%, 24px) scale(0.9); opacity: 0;
  display: flex; align-items: stretch; gap: 6px; font-size: clamp(11px, 1.5vw, 17px); white-space: nowrap;
  transition: opacity .5s, transform .6s cubic-bezier(.2, .9, .3, 1.3);
}
.tv.show-bug .bug { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bug-side { display: flex; align-items: center; padding: 0.35em 0.8em; font-weight: 800; color: #9fd3ff; background: rgba(8, 10, 20, 0.9); border: 1px solid rgba(255, 213, 25, 0.55); }
.bug-side-b { color: #ff9aa6; }
.bug-score { display: flex; align-items: center; gap: 0.2em; padding: 0.2em 0.7em; font-family: var(--f-num); font-size: 1.5em; color: var(--gold); background: #050505; border: 1px solid rgba(255, 213, 25, 0.55); text-shadow: 0 0 12px rgba(255, 213, 25, 0.8); }
.bug-score i { font-style: normal; color: var(--chalk); opacity: 0.7; }
.tv-note { font-size: 13px; color: #8f8c80; }

/* ---------- 我的比赛 + 四个功能 ---------- */
.bento { padding-block: clamp(120px, 15vw, 200px) 0; }
.b-match {
  overflow: visible; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 52px);
  background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(255, 213, 25, 0.14), transparent 60%), var(--ink-2);
}
.b-match::before { border-radius: inherit; }
.b-left { display: grid; gap: 16px; min-width: 0; }
.b-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; }
.b-lead { color: var(--muted); max-width: 34em; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.feat {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start;
  padding: 16px; border-radius: 16px; background: rgba(6, 6, 5, 0.5); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s, background .3s;
}
.feat:hover { border-color: rgba(255, 213, 25, 0.5); transform: translateY(-3px); background: rgba(255, 213, 25, 0.05); }
.feat svg {
  grid-row: span 2; width: 46px; height: 46px; padding: 10px; border-radius: 12px;
  fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(255, 213, 25, 0.08); border: 1px solid rgba(255, 213, 25, 0.25);
  filter: drop-shadow(0 0 8px rgba(255, 213, 25, 0.35));
}
.feat h4 { margin: 2px 0 0; font-size: 17px; }
.feat p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.b-right { min-width: 0; position: relative; }
.score-sheet { position: relative; display: grid; gap: 2px; padding: 20px; border-radius: 18px; background: rgba(6, 6, 5, 0.85); border: 1px solid var(--line); min-width: 0; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-bottom: 10px; }
.sheet-win { font-family: var(--f-num); font-size: 24px; color: var(--gold); }
.sheet-row { display: grid; grid-template-columns: 4.5em 1fr 1fr; align-items: center; gap: 8px; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sheet-row b { font-family: var(--f-num); font-size: 30px; color: rgba(255, 248, 230, 0.4); font-variant-numeric: tabular-nums; text-align: center; }
.sheet-row b.won { color: var(--chalk); text-shadow: 0 0 18px rgba(255, 213, 25, 0.5); }
.sheet-names { border-top: 0; font-size: 13px; color: var(--chalk); }
.sheet-names span { text-align: center; }
.sheet-foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: #8f8c80; }
/* 奖杯压在卡片右上角之外，不被裁切 */
.b-trophy {
  position: absolute; right: clamp(-16px, -1vw, 0px); top: -70px; width: clamp(110px, 12vw, 150px); height: auto; z-index: 3;
  transform: rotate(10deg); filter: drop-shadow(0 24px 40px rgba(255, 213, 25, 0.4));
  animation: trophy-float 5s ease-in-out infinite;
}
@keyframes trophy-float { 50% { transform: rotate(6deg) translateY(-10px); } }

/* ---------- 会员 ---------- */
.vip {
  padding-block: clamp(120px, 15vw, 200px) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
}
.vip > * { margin: 0 !important; max-width: none !important; }
.vip-copy { display: grid; gap: 22px; min-width: 0; }
.vip .lead { color: #cdc5b7; }
.perks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; }
.perks li { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 13px 0; border-top: 1px solid rgba(218, 185, 112, 0.22); }
.perks b { color: var(--champ); font-size: 17px; min-width: 5.5em; }
.perks span { color: #cdc5b7; font-size: 14px; }
.perks .badge { margin-left: auto; }
.vip-right { display: grid; gap: 22px; min-width: 0; perspective: 1200px; }
.vcard { width: min(440px, 100%); aspect-ratio: 1.586; justify-self: center; transform-style: preserve-3d; transform: rotateX(var(--ry, 8deg)) rotateY(var(--rx, -14deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.vcard-inner {
  position: relative; height: 100%; border-radius: 22px; padding: 26px 28px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 240, 199, 0.35), transparent 60%),
    linear-gradient(135deg, #3d382a, #191a14 60%, #2d2a20);
  border: 1px solid rgba(236, 209, 148, 0.55);
  box-shadow: 0 60px 120px -40px rgba(215, 175, 101, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.vcard-brand { font-size: 13px; letter-spacing: 0.18em; color: var(--champ); font-weight: 800; }
.vcard-title { align-self: center; font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 40px); background: linear-gradient(100deg, #fff0c7, #d7af65 60%, #f5e1a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vcard-foot { display: flex; justify-content: space-between; font: 800 13px/1 var(--f-num); letter-spacing: 0.14em; color: rgba(236, 209, 148, 0.7); }
.vcard-sheen {
  position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 213, 25, 0.3) 50%, transparent 60%);
  transform: translateX(var(--sx, -30%)); transition: transform .5s;
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 10px 18px; border-radius: 18px; background: rgba(10, 11, 9, 0.6); border: 1px solid rgba(218, 185, 112, 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.plan-best { background: linear-gradient(160deg, #fff0c7, #d7af65 55%, #f5e1a6); color: var(--gold-ink); border-color: transparent; box-shadow: 0 24px 60px -20px rgba(215, 175, 101, 0.7); }
.plan-flag { position: absolute; top: -12px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--champ); border: 1px solid rgba(218, 185, 112, 0.6); }
.plan-name { font-weight: 800; font-size: 15px; }
.plan-price { font-family: var(--f-num); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.plan-price small { font-size: 0.5em; margin-right: 2px; }
.plan-days { font-size: 13px; opacity: 0.7; }

/* ---------- 下载 ---------- */
.download { padding-block: clamp(140px, 16vw, 220px) 0; display: grid; gap: 26px; justify-items: center; text-align: center; }
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; margin-top: 18px !important; }
.store {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 20px; text-align: left;
  background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; min-width: 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.store-main { background: var(--gold); color: var(--gold-ink); border-color: transparent; box-shadow: 0 0 60px -10px rgba(255, 213, 25, 0.7); overflow: hidden; }
.store-main::after { content: "↗"; margin-left: auto; font-size: 20px; }
.store-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 3.6s ease-in-out infinite; }
.store svg { position: relative; width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.store-main svg { fill: currentColor; stroke: none; }
.store span { position: relative; display: grid; min-width: 0; }
.store small { font-size: 12px; opacity: 0.7; }
.store b { font-size: 17px; }
a.store:not(.store-main) { color: inherit; transition: border-color 0.25s, background 0.25s; }
a.store:not(.store-main)::after { content: "↗"; position: relative; margin-left: auto; font-size: 18px; color: var(--gold); }
a.store:not(.store-main):hover { border-color: rgba(255, 213, 25, 0.55); background: rgba(255, 213, 25, 0.06); }

/* ---------- 交流群 ---------- */
.community { padding-block: clamp(120px, 14vw, 180px) 0; }
.community-box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 56px); border-radius: 32px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 50% 80% at 18% 50%, rgba(255, 213, 25, 0.2), transparent 70%),
    linear-gradient(135deg, rgba(30, 28, 20, 0.85), rgba(8, 8, 6, 0.85));
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.community-box::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, rgba(255, 213, 25, 0.9) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 6s linear infinite;
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --spin: 360deg; } }
.community-left { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 12px; min-width: 0; }
.community-bot { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(255, 213, 25, 0.3)); animation: bot-bob 4s ease-in-out infinite; }
@keyframes bot-bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
.community-copy { display: grid; gap: 12px; min-width: 0; }
.community-copy h2 { font-size: clamp(36px, 4.4vw, 60px); }
.community-copy p:last-child { color: var(--muted); }
.groups { display: grid; gap: 14px; min-width: 0; }
.group {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  width: 100%; padding: 18px 22px 18px 18px; border-radius: 22px; cursor: pointer; text-align: left;
  font: inherit; color: var(--chalk); background: rgba(6, 6, 5, 0.6); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
}
.group:hover { transform: translateX(6px); }
.group-qq:hover { border-color: rgba(18, 183, 245, 0.7); box-shadow: 0 0 50px -12px rgba(18, 183, 245, 0.6); }
.group-wx:hover { border-color: rgba(7, 193, 96, 0.7); box-shadow: 0 0 50px -12px rgba(7, 193, 96, 0.6); }
.group-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; }
.group-icon svg { width: 40px; height: 40px; }
.group-qq .group-icon { background: linear-gradient(145deg, #3fcbff, #0a9be0); box-shadow: 0 10px 30px -8px rgba(18, 183, 245, 0.8); }
.group-wx .group-icon { background: linear-gradient(145deg, #2bdc7e, #05a650); box-shadow: 0 10px 30px -8px rgba(7, 193, 96, 0.8); }
.group-text { display: grid; gap: 2px; min-width: 0; }
.group-text b { font-family: var(--f-display); font-size: 24px; font-weight: 700; }
.group-text small { font-size: 13px; color: var(--muted); }
.group-go { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; white-space: nowrap; color: var(--gold); }
.group-go i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); transition: transform .3s; }
.group:hover .group-go i { transform: translateX(4px); }

.qr { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: #141510; color: var(--chalk); text-align: center; width: min(360px, calc(100vw - 32px)); }
.qr::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px); }
.qr h2 { font-size: 24px; margin-bottom: 16px; }
.qr img { width: 100%; border-radius: 14px; background: #fff; }
.qr p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.qr-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; }

/* ---------- 页脚 ---------- */
.foot {
  max-width: var(--maxw); margin: clamp(80px, 10vw, 120px) auto 0; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; color: var(--muted);
  box-sizing: content-box;
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); font-family: var(--f-display); font-size: 17px; }
.foot-brand img { border-radius: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--chalk); }
.foot-mail { user-select: all; }

/* ---------- 进场：静止时完整可见，只做位移和亮度 ---------- */
.js .rise { animation: rise 0.9s cubic-bezier(.16, 1, .3, 1) both; animation-play-state: paused; }
.js .rise.in { animation-play-state: running; }
@keyframes rise { from { transform: translateY(40px) scale(0.98); filter: brightness(0.6); } to { transform: none; filter: none; } }

/* ---------- 窄屏 ---------- */
@media (max-width: 1000px) {
  .bar-links { display: none; }
  .bar-cta { margin-left: auto; }
  .follow { height: auto; padding-top: 110px; }
  .follow-sticky { position: relative; height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .intro, .vip, .b-match, .community-box { grid-template-columns: minmax(0, 1fr); }
  .intro .tv-wrap { order: 2; }
  .tv { transform: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(2), .step:nth-child(3) { transform: none; }
  .stores { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bar { padding: 6px 6px 6px 10px; }
  .bar-name { font-size: 18px; }
  .hero { padding-block: 120px 70px; min-height: 0; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0 0; }
  .scroll-cue { display: none; }
  .ribbons { height: 150px; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .b-trophy { width: 84px; top: -48px; right: -6px; }
  .community-left { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .group { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .group-icon { width: 52px; height: 52px; border-radius: 14px; }
  .group-icon svg { width: 32px; height: 32px; }
  .group-go { font-size: 0; gap: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-best { order: -1; }
  .reel { width: 32%; right: 0; }
  .seg { border-radius: 2px; }
  .scan-track { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .follow { height: auto; }
  .follow-sticky { position: relative; height: auto; }
}
