/* PhysioRush AI 入口页。三关各有一个主色：骑行=能量橙，心脏=血红，拉伸=青柠（与 /stretch/ 自身品牌色一致）。 */

@font-face {
  font-family: "Anton PR";
  src: url("/PhysioRushAI/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2019, U+201C-201D, U+2022, U+2026, U+2122, U+2248;
}

@property --glow-a { syntax: "<color>"; inherits: true; initial-value: #ff7a1a; }
@property --glow-b { syntax: "<color>"; inherits: true; initial-value: #ff2e63; }

:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-2: #0c0e15;
  --ink: #f5f3ee;
  --ink-2: rgba(245, 243, 238, 0.86);
  --muted: #a1a6b3;
  --faint: #777c8b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --card: rgba(10, 12, 18, 0.74);
  --ride: #ff7a1a;
  --ride-2: #ffc23d;
  --heart: #ff2e63;
  --heart-2: #ff7ab6;
  --stretch: #cefa69;
  --stretch-2: #5ef2c2;
  --cool: #38d9ff;
  --rush: linear-gradient(100deg, var(--ride) 0%, var(--heart) 48%, var(--stretch) 100%);
  --display: "Anton PR", Impact, "Haettenschweiler", "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, "Roboto Mono", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glow-a: #ff7a1a;
  --glow-b: #ff2e63;
  --pad: clamp(16px, 4vw, 48px);
  transition: --glow-a 1.4s var(--ease), --glow-b 1.4s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  /* 先给纯色兜底：不认识 color-mix() 的旧内核会整条丢掉下面那条 background，页面不能因此变白 */
  background: var(--bg);
  background:
    radial-gradient(60vw 60vh at 88% 12%, color-mix(in srgb, var(--glow-a) 16%, transparent), transparent 70%),
    radial-gradient(70vw 70vh at 6% 96%, color-mix(in srgb, var(--glow-b) 13%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 英文访客首帧先藏起待翻译节点（见 index.html 头部脚本），翻译填好后移除。 */
.i18n-pending [data-i18n], .i18n-pending [data-i18n-html], .i18n-pending #heroCtaLabel { visibility: hidden; }

.field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  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'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

main, .footer, .topbar { position: relative; z-index: 2; }

.wrap { width: min(1200px, 100% - var(--pad) * 2); margin: 0 auto; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) var(--pad) 12px;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.92), rgba(7, 8, 12, 0.55) 70%, transparent);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: #11131b; stroke: rgba(255, 255, 255, 0.18); stroke-width: 0.8; }
.brand-mark .bm-heart { fill: var(--heart); transform-origin: 12px 13px; animation: bm-beat 1.1s var(--ease) infinite; }
.brand-mark .bm-ecg { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-ai {
  margin-left: 2px;
  padding: 1px 6px 0;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0b0c10;
  background: var(--rush);
}

@keyframes bm-beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.14); }
  26% { transform: scale(0.98); }
  38% { transform: scale(1.07); }
}

.levels-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 11, 16, 0.6); }
.levels-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.levels-nav a b { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--faint); transition: color 0.3s; }
.levels-nav a:hover { color: var(--ink); }
.levels-nav a.is-active { color: #0b0c10; background: var(--nav-c, var(--ink)); }
.levels-nav a.is-active b { color: rgba(11, 12, 16, 0.65); }
.levels-nav a[data-nav="ride"] { --nav-c: var(--ride); }
.levels-nav a[data-nav="heart"] { --nav-c: var(--heart); }
.levels-nav a[data-nav="stretch"] { --nav-c: var(--stretch); }
.nav-done { display: none; position: absolute; top: 3px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--nav-c); box-shadow: 0 0 8px var(--nav-c); }
.levels-nav a.is-done .nav-done { display: block; }
.levels-nav a.is-active .nav-done { background: #0b0c10; box-shadow: none; }

.top-actions { display: flex; gap: 8px; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 11, 16, 0.6);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.3s, background 0.3s;
}
.chip-btn:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.chip-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-btn { min-width: 44px; justify-content: center; font-family: var(--mono); }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 108px var(--pad) 96px;
}
.hero-inner { width: min(1200px, 100%); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 11, 16, 0.55);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.6); animation: rec 1.6s infinite; }
@keyframes rec {
  0% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 46, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(88px, 15.5vw, 240px);
  line-height: 0.84;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.t-line { position: relative; display: block; width: fit-content; }
.t-physio {
  color: transparent;
  -webkit-text-stroke: 2px rgba(245, 243, 238, 0.92);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}
.t-rush { display: flex; align-items: flex-start; gap: 0.06em; margin-top: 0.02em; }
.t-rush-word {
  position: relative;
  background: linear-gradient(100deg, var(--ride) 0%, var(--heart) 38%, var(--heart-2) 55%, var(--stretch) 82%, var(--ride-2) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rush-flow 7s linear infinite;
  filter: drop-shadow(0 0 28px rgba(255, 60, 90, 0.28));
}
@keyframes rush-flow { to { background-position: -220% 0; } }
.t-ai {
  margin-top: 0.1em;
  padding: 0.07em 0.13em 0.03em;
  border: 2px solid rgba(245, 243, 238, 0.9);
  border-radius: 0.1em;
  font-family: var(--display);
  font-style: normal;
  font-size: 0.3em;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(7, 8, 12, 0.5);
  box-shadow: 0 0 24px rgba(56, 217, 255, 0.25), inset 0 0 18px rgba(56, 217, 255, 0.18);
}

/* 标题故障闪烁：两层错位色块，每隔几秒闪一次，平时不可见。 */
[data-glitch]::before, [data-glitch]::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  -webkit-text-stroke: 0;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
[data-glitch]::before { color: var(--cool); transform: translate(-0.02em, 0); mix-blend-mode: screen; }
[data-glitch]::after { color: var(--heart); transform: translate(0.02em, 0); mix-blend-mode: screen; }
.is-glitching[data-glitch]::before { animation: glitch-a 0.42s steps(2, end) 1; }
.is-glitching[data-glitch]::after { animation: glitch-b 0.42s steps(2, end) 1; }
@keyframes glitch-a {
  0% { opacity: 0.85; clip-path: inset(10% 0 62% 0); transform: translate(-0.04em, 0); }
  33% { opacity: 0.85; clip-path: inset(58% 0 12% 0); transform: translate(0.03em, 0); }
  66% { opacity: 0.85; clip-path: inset(34% 0 40% 0); transform: translate(-0.02em, 0); }
  100% { opacity: 0; clip-path: inset(0); }
}
@keyframes glitch-b {
  0% { opacity: 0.8; clip-path: inset(66% 0 6% 0); transform: translate(0.04em, 0); }
  33% { opacity: 0.8; clip-path: inset(16% 0 60% 0); transform: translate(-0.03em, 0); }
  66% { opacity: 0.8; clip-path: inset(44% 0 30% 0); transform: translate(0.02em, 0); }
  100% { opacity: 0; clip-path: inset(0); }
}

.hero-sub {
  margin: 26px 0 10px;
  max-width: 22em;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hero-lead { margin: 0; max-width: 38em; font-size: clamp(15px, 1.25vw, 18px); color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.btn:active { transform: scale(0.98); }
.btn-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary {
  color: #0b0c10;
  background: linear-gradient(100deg, var(--ride), var(--heart));
  box-shadow: 0 10px 40px -10px rgba(255, 60, 70, 0.6);
}
.btn-primary::after, .btn-level::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s var(--ease) infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-primary:hover { box-shadow: 0 14px 50px -10px rgba(255, 60, 70, 0.8); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); background: rgba(10, 11, 16, 0.55); color: var(--ink); font-weight: 700; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); transform: translateY(-2px); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}
.hero-meta li { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 13px; }
.hero-meta b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); letter-spacing: 0.02em; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------------- 滚动字带 ---------------- */
.ticker-wrap { position: relative; z-index: 2; overflow: hidden; padding: 26px 0; }
.ticker {
  position: relative;
  overflow: hidden;
  margin: 0 -3vw;
  padding: 14px 0;
  border-block: 1px solid var(--line-2);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.1), rgba(255, 46, 99, 0.12), rgba(206, 250, 105, 0.1));
  transform: rotate(-1.6deg);
}
.ticker-track { display: flex; width: max-content; gap: 22px; align-items: center; animation: ticker 48s linear infinite; }
.ticker span { font-family: var(--display); font-size: 26px; letter-spacing: 0.06em; color: var(--ink); white-space: nowrap; }
.ticker i { font-style: normal; color: var(--heart); font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- 通用小节 ---------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--rush); }
.section-title { margin: 0; max-width: 18em; font-size: clamp(32px, 4.6vw, 64px); font-weight: 900; line-height: 1.12; letter-spacing: -0.025em; }
.section-text { margin: 18px 0 0; max-width: 40em; font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); }

.route { padding: clamp(96px, 14vh, 160px) 0 40px; }
.route-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.route-steps li { position: relative; }
.route-steps a {
  position: relative;
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.route-steps a::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.route-steps a:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.route-steps b { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.14em; }
.route-steps strong { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.4vw, 76px); line-height: 0.95; letter-spacing: 0.02em; }
.route-steps span { color: var(--muted); font-size: 15px; }
.route-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--line-2);
  border-right: 2px solid var(--line-2);
  transform: translateY(-50%) rotate(45deg);
}

.progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.progress-bar { display: flex; gap: 4px; }
.progress-bar i { width: 44px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); transition: background 0.4s, box-shadow 0.4s; }
.progress-bar i.on[data-p="ride"] { background: var(--ride); box-shadow: 0 0 10px var(--ride); }
.progress-bar i.on[data-p="heart"] { background: var(--heart); box-shadow: 0 0 10px var(--heart); }
.progress-bar i.on[data-p="stretch"] { background: var(--stretch); box-shadow: 0 0 10px var(--stretch); }
.progress-count { font-family: var(--mono); color: var(--ink); }
.text-btn { padding: 4px 2px; border: 0; background: none; color: var(--faint); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--ink); }

/* ---------------- 三个关卡 ---------------- */
.level {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px var(--pad);
}
/* 关卡大号数字压在卡片右下角，不再放在粒子图形背后（会把心脏的轮廓搅乱） */
.level-num {
  position: absolute;
  right: -2px;
  bottom: -0.2em;
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(120px, 11vw, 170px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 65%, transparent);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.level-card > :not(.level-num) { position: relative; z-index: 1; }
.level-card {
  position: relative;
  width: min(560px, 100%);
  margin-left: max(0px, calc((100vw - 1200px) / 2 - var(--pad)));
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 16, 23, 0.86), rgba(9, 10, 15, 0.8));
  box-shadow: 0 40px 120px -60px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.level-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent 90%);
}
.level-tag { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.level-code { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--accent); }
.level-role {
  padding: 3px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.level-title { margin: 0; font-size: clamp(28px, 3.2vw, 42px); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.level-pitch { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; }
.level-list { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.level-list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.level-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--accent);
}

.science {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.science-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.science-note { margin: 10px 0 0; font-size: 11px; color: var(--faint); }

.energy-row { display: grid; grid-template-columns: 96px 1fr 86px; align-items: center; gap: 12px; font-size: 13px; }
.energy-row + .energy-row { margin-top: 9px; }
.energy-row span { color: var(--ink-2); white-space: nowrap; }
.energy-row i { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.energy-row i b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--accent);
  transition: width 1.4s var(--ease);
}
.energy-row:nth-child(3) i b { transition-delay: 0.15s; }
.energy-row:nth-child(4) i b { transition-delay: 0.3s; }
.is-in .energy-row i b { width: var(--w); }
.energy-row em { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

.cycle-body { display: grid; grid-template-columns: 124px 1fr; gap: 18px; align-items: center; }
.cycle-ring { width: 124px; height: 124px; overflow: visible; }
.cycle-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 10; }
.cycle-arc { fill: none; stroke-width: 10; stroke-linecap: butt; transition: stroke-dasharray 0.25s linear; }
.cycle-dot { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.cycle-bpm { fill: var(--ink); font-family: var(--display); font-size: 30px; text-anchor: middle; }
.cycle-unit { fill: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-anchor: middle; }
.cycle-legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.cycle-legend li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.cycle-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.cycle-legend b { margin-left: auto; font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--muted); }
.cycle-slider { display: block; margin-top: 14px; }
.cycle-slider input { width: 100%; accent-color: var(--heart); height: 28px; }
.cycle-readout { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.cycle-readout b { font-family: var(--mono); color: var(--accent); }

.hold { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.hold-ring { width: 96px; height: 96px; transform: rotate(-90deg); }
.hold-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 8; }
.hold-arc { fill: none; stroke: var(--stretch); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 289.03; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(206, 250, 105, 0.6)); }
.hold-num { fill: var(--ink); font-family: var(--display); font-size: 34px; text-anchor: middle; transform: rotate(90deg); transform-origin: 60px 60px; }
.hold-copy .science-title { margin-bottom: 4px; }
.hold-sub { margin: 0; font-size: 13px; color: var(--muted); }
.hold-breath { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--stretch); }

.level-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; }
.btn-level {
  color: #0b0c10;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 40px -14px var(--accent);
}
.btn-level:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px var(--accent); }
.level-state { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); }
.level-state.is-done { color: var(--accent); }

/* ---------------- 心率曲线 ---------------- */
.curve { padding: clamp(96px, 14vh, 160px) 0 60px; }
.curve-fig {
  margin: 40px 0 0;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 16, 23, 0.88), rgba(9, 10, 15, 0.84));
}
.curve-plot { width: 100%; min-height: 240px; }
.curve-plot svg { width: 100%; height: auto; overflow: visible; }
.curve-fig figcaption { margin-top: 8px; font-size: 12px; color: var(--faint); text-align: right; }
.cv-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.cv-axis-label { fill: var(--faint); font-family: var(--mono); font-size: 11px; }
.cv-zone-label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.cv-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255, 70, 90, 0.45)); }
.cv-marker circle { stroke: #0b0c10; stroke-width: 2; }
.cv-marker text { fill: #0b0c10; font-family: var(--mono); font-size: 11px; font-weight: 800; text-anchor: middle; }
.cv-cursor-line { stroke: rgba(255, 255, 255, 0.35); stroke-dasharray: 3 4; }
.cv-cursor-dot { fill: #fff; filter: drop-shadow(0 0 8px #fff); }
.cv-cursor-text { fill: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 700; }

.curve-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: note;
}
.curve-notes li { position: relative; padding: 12px 14px 12px 50px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 12, 18, 0.66); font-size: 14px; color: var(--ink-2); line-height: 1.5; counter-increment: note; }
.curve-notes li::before {
  content: counter(note);
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0c10;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 12px var(--accent);
}

/* ---------------- AI ---------------- */
.ai { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0; }
.ai-wrap { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 32px; }
.ai-head .section-title { font-size: clamp(30px, 3.6vw, 50px); }
.ai-grid { grid-column: 1; display: grid; gap: 12px; }
.ai-card {
  position: relative;
  padding: 20px 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
}
.ai-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.ai-tag { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.ai-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.ai-card p:last-child { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------- 扫码 ---------------- */
.join { padding: clamp(80px, 12vh, 140px) 0; }
.join-wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.join-qr {
  position: relative;
  padding: 16px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 60px -6px rgba(255, 46, 99, 0.45), 0 0 120px -20px rgba(206, 250, 105, 0.35);
  transition: transform 0.35s var(--ease);
}
.join-qr:hover { transform: scale(1.03) rotate(-1deg); }
.join-qr::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 27px;
  background: var(--rush);
  filter: blur(2px);
}
.join-qr img { width: clamp(180px, 22vw, 260px); height: auto; }
.join-url { margin: 22px 0 0; font-family: var(--display); font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: 0.01em; word-break: break-all; }
.join-url span { color: var(--faint); }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------------- 页脚 ---------------- */
.footer { padding: 40px 0 calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(7, 8, 12, 0.82); font-size: 13px; color: var(--muted); }
.foot-disclaimer { margin: 0 0 22px; max-width: 60em; }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot-brand { font-size: 16px; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a:hover { color: var(--ink); }
.beian { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 22px; font-size: 12px; }
.beian img { width: 18px; height: 18px; object-fit: contain; }
.beian a { color: var(--faint); }
.beian a:hover { color: var(--ink); }

/* ---------------- 心率读数 HUD ---------------- */
.hud {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(8, 9, 13, 0.82);
  box-shadow: 0 16px 50px -20px var(--glow-b);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.hud.is-hidden { opacity: 0; transform: translateY(20px); }
.hud-heart { width: 22px; height: 22px; fill: var(--glow-b); filter: drop-shadow(0 0 6px var(--glow-b)); }
.hud-bpm { display: flex; align-items: baseline; gap: 4px; min-width: 76px; }
.hud-bpm b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-bpm small { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.12em; }
.hud-ecg { width: 110px; height: 30px; }
.hud-stage { display: grid; font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: 0.14em; color: var(--muted); }
.hud-stage span:last-child { color: var(--glow-a); font-weight: 700; }

/* ---------------- 大屏扫码层 ---------------- */
.present {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background:
    radial-gradient(60vw 60vh at 85% 10%, rgba(255, 46, 99, 0.2), transparent 70%),
    radial-gradient(60vw 60vh at 10% 95%, rgba(206, 250, 105, 0.14), transparent 70%),
    #06070a;
}
.present::backdrop { background: #06070a; }
.present[open] { display: grid; place-items: center; }
.present-inner { display: grid; justify-items: center; gap: clamp(10px, 2vh, 22px); padding: 24px; text-align: center; }
.present-brand { margin: 0; font-family: var(--display); font-size: clamp(40px, 7vw, 96px); line-height: 0.9; letter-spacing: 0.01em; }
.present-brand span { background: var(--rush); -webkit-background-clip: text; background-clip: text; color: transparent; }
.present-brand em { margin-left: 0.15em; font-style: normal; font-size: 0.45em; vertical-align: super; color: var(--cool); }
.present-title { margin: 0; font-size: clamp(18px, 2.4vw, 28px); font-weight: 800; }
.present-qr { padding: clamp(12px, 1.6vw, 20px); border-radius: 26px; background: #fff; box-shadow: 0 0 80px -10px rgba(255, 46, 99, 0.55); }
.present-qr img { width: min(56vh, 76vw); height: auto; }
.present-url { margin: 0; font-family: var(--display); font-size: clamp(28px, 4.4vw, 60px); line-height: 1; }
.present-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.present-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; font-size: clamp(14px, 1.5vw, 18px); font-weight: 700; }
.present-steps b { font-family: var(--mono); color: var(--accent); }
.present-close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, 0.04); font-size: 28px; line-height: 1; }
.present-close:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------------- 入场动画（仅在脚本可用时隐藏初态） ---------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-inner > * { animation: rise 1s var(--ease) both; }
.js .hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.js .hero-inner > :nth-child(3) { animation-delay: 0.22s; }
.js .hero-inner > :nth-child(4) { animation-delay: 0.3s; }
.js .hero-inner > :nth-child(5) { animation-delay: 0.38s; }
.js .hero-inner > :nth-child(6) { animation-delay: 0.46s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .levels-nav a { padding: 7px 12px; }
  .ai-wrap { grid-template-columns: minmax(0, 520px) 1fr; }
}

@media (max-width: 860px) {
  .topbar { padding-bottom: 10px; }
  .brand-word { display: none; }
  .levels-nav a { padding: 6px 11px; font-size: 13px; gap: 5px; }
  .chip-btn span { display: none; }
  .chip-btn { padding: 0 11px; }

  .hero { align-items: flex-end; padding-top: 96px; padding-bottom: 88px; }
  .hero-title { font-size: clamp(84px, 27vw, 200px); }
  .t-physio { -webkit-text-stroke-width: 1.5px; }
  .hero-sub { margin-top: 20px; }
  .hero-meta { gap: 8px 22px; margin-top: 30px; }
  .hero-meta b { font-size: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }

  .route-steps { grid-template-columns: 1fr; gap: 12px; }
  .route-steps a { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; padding: 16px 18px; }
  .route-steps b { grid-row: 1 / 3; }
  .route-steps strong { font-size: 44px; }
  .route-steps li:not(:last-child)::after { top: auto; bottom: -11px; right: 50%; transform: translateX(50%) rotate(135deg); }

  /* 手机上关卡的粒子图形固定在屏幕上部，卡片从下方滚上来 */
  .level { align-items: flex-end; padding-top: 44vh; padding-top: 44svh; padding-bottom: 72px; }
  .level-card { margin-left: 0; }

  .curve-notes { grid-template-columns: 1fr; }

  .ai { align-items: flex-end; padding-top: 40vh; padding-top: 40svh; }
  .ai-wrap { grid-template-columns: 1fr; }

  .join-wrap { grid-template-columns: 1fr; justify-items: start; }
  .join-qr img { width: min(62vw, 240px); }

  .scroll-cue { display: none; }
  .hud { padding: 6px 10px 6px 9px; gap: 8px; border-radius: 14px; }
  .hud-heart { width: 18px; height: 18px; }
  .hud-bpm { min-width: 56px; }
  .hud-bpm b { font-size: 22px; }
  .hud-ecg { width: 56px; height: 24px; }
}

@media (max-width: 420px) {
  .levels-nav a span { display: none; }
  .levels-nav a b { font-size: 12px; color: inherit; }
  .hero-meta { gap: 8px 18px; }
  .hero-meta li { font-size: 12px; }
  .energy-row { grid-template-columns: 82px 1fr 74px; gap: 8px; font-size: 12px; }
  .cycle-body { grid-template-columns: 104px 1fr; gap: 12px; }
  .cycle-ring { width: 104px; height: 104px; }
  .hud-stage { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
