/* ============================================================
   FluxApp — FLUX 3 waitlist landing
   深色 token 体系沿用骨架；v2 为迭代层，v3 为 fluxapp 内容层（文件末）
   ============================================================ */

:root {
  /* --- Surfaces (dark theme) --- */
  --bg: #0f0f0f;              /* html background */
  --surface-100: #121212;     /* llneutral-100 */
  --surface-200: #1a1a1a;     /* sidebar tint base */
  --surface-300: #1d1b16;     /* llneutral-200 */
  --surface-elev: #202020;    /* llgrey-300 / cards */
  --surface-elev-2: #323232;  /* llgrey-500 / hover */

  /* --- Text --- */
  --text-strong: #ffffff;
  --text: #f6f6f6;            /* llneutral default */
  --text-muted: #acacac;      /* llgrey-650 */
  --text-dim: #888888;        /* llgrey-700 */
  --text-faint: #535353;

  /* --- Brand / primary blue --- */
  --primary: #0088ff;         /* llprimary-base (#08f) */
  --primary-100: #00c2ff;     /* blue-100 */
  --primary-dark: #0079e3;
  --primary-darker: #005299;

  /* --- Accents from source --- */
  --feature: #6d3df5;         /* llfeature-base */
  --success: #38c793;
  --success-2: #28e19e;
  --warning: #f47b29;
  --error: #ee0d37;
  --verified: #35d3e9;
  --away: #f2ae40;

  /* --- Borders --- */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* --- Radii --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* --- Shadows (from source vars) --- */
  --shadow-md: 0px 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0px 16px 24px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0px 40px 64px rgba(0, 0, 0, 0.3);
  --glow-blue: 0px 8px 24px rgba(0, 136, 255, 0.3);
  --glow-blue-soft: 0px 0px 20px 0px rgba(0, 136, 255, 0.16);

  /* --- Signature gradients (dark theme) --- */
  --gradient-primary: linear-gradient(90deg, #08f, #00c2ff);
  --gradient-profile-item: linear-gradient(144deg, #08f 10.12%, #0bf 91.77%);
  --gradient-fade-black: linear-gradient(180deg, rgba(8, 22, 35, 0), #121212);
  --gradient-radial-fade: radial-gradient(50% 50% at 50% 50%, rgba(8, 22, 35, 0) 0%, #121212 100%);

  /* --- Layout --- */
  --sidebar-w: 264px;
  --content-max: 1080px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: var(--font-sans);
  /* 透明 —— 让底层固定波浪背景透上来（分层透明体系第 2 层） */
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { font-weight: 600; color: var(--text-strong); line-height: 1.2; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Thin dark scrollbar to match the app feel */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-elev); border-radius: var(--r-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--surface-elev-2); }

/* ============================================================
   分层透明体系 · 第 0 层：持续波浪背景（全站固定）
   实测复刻参考站，参数见 bg-gradient-params.md
   ============================================================ */
.gradient-bg {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  background: #000;               /* 底色压到纯黑，加深波浪对比（QA 建议）*/
  z-index: 0;
}
.gradient-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: .62;                   /* 实测 */
  -webkit-mask-image: radial-gradient(170% 122% at -22% 122%, #000 0, rgba(0,0,0,.92) 24%, rgba(0,0,0,.72) 43%, rgba(0,0,0,.46) 57%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.07) 82%, transparent 92%);
          mask-image: radial-gradient(170% 122% at -22% 122%, #000 0, rgba(0,0,0,.92) 24%, rgba(0,0,0,.72) 43%, rgba(0,0,0,.46) 57%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.07) 82%, transparent 92%);
}
/* 底部蓝光（实测 ::before） */
.gradient-bg::before {
  content: ""; position: absolute; left: -12%; right: -12%; bottom: 0;
  height: 46%; z-index: 1; pointer-events: none;
  background: radial-gradient(85% 68% at 50% 100%, rgba(30,63,208,.36) 0, rgba(20,38,120,.2) 44%, transparent 100%);
}
/* 降级兜底：无 WebGL2 / reduced-motion 时用静态渐变近似 */
.gradient-bg.is-fallback .gradient-canvas { display: none; }
.gradient-bg.is-fallback {
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(26,59,157,.55) 0, transparent 70%),
    radial-gradient(50% 40% at 75% 35%, rgba(19,41,107,.5) 0, transparent 70%),
    #030612;
}

/* ============================================================
   App layout: fixed sidebar + scrolling content
   ============================================================ */
.app { min-height: 100vh; position: relative; z-index: 1; }

.content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  position: relative;
}

@media (max-width: 900px) {
  .content { margin-left: 0; }
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  /* 分层透明体系第 3 层：侧边栏。一层灰膜盖在波浪上把蓝色往中性灰冲淡，形成玻璃感。
     灰膜 0.2（较通透）+ 较大 blur，让透出的波浪柔化、玻璃质感更明显。 */
  background: rgba(26, 26, 26, 0.2);
  -webkit-backdrop-filter: blur(28px);
          backdrop-filter: blur(28px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 20px;
  z-index: 50;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; }
.brand img { height: 26px; width: auto; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.search:hover { border-color: var(--border); }
.search img { width: 16px; opacity: .7; }
.search input {
  flex: 1; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.search input::placeholder { color: var(--text-dim); }
.search .kbd {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 6px;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); padding: 8px 12px 4px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-md);
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-strong); }
.nav-item.active { background: rgba(255, 255, 255, 0.08); color: var(--text-strong); }
.nav-item img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.nav-item .tag {
  margin-left: auto; font-size: 10px; font-weight: 700;
  color: var(--primary-100); background: rgba(0, 194, 255, 0.12);
  padding: 2px 7px; border-radius: var(--r-pill);
}
.nav-clone {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 2px 0;
  border: 1px dashed var(--border); border-radius: var(--r-md);
  color: var(--text); font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.nav-clone:hover { border-color: var(--border-strong); background: rgba(255,255,255,.03); }
.nav-clone .plus {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  background: var(--gradient-primary); color: #fff; font-size: 15px; font-weight: 400; line-height: 1;
}

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.btn-join, .btn-login {
  width: 100%; text-align: center; font-size: 15px; font-weight: 600;
  padding: 13px 12px; border-radius: var(--r-lg); transition: transform .12s, background .15s, box-shadow .15s;
}
.btn-join { background: #fff; color: #000; }
.btn-join:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,255,255,.12); }
.btn-login { color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-login:hover { box-shadow: inset 0 0 0 1px #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 80px 0 40px; }
/* 首屏专属覆盖层（分层体系第 1 层）：叠加在持续波浪之上、只盖顶部一屏。
   用 plus-lighter 加光混合，不遮挡下面的波浪；滚过首屏即淡出，露出波浪。
   —— 未来其他站可把这一层整块换成 <video>/<img>，其余层不动。 */
.hero-bg {
  pointer-events: none; position: absolute; inset-inline: 0; top: 0;
  height: 900px; z-index: 0;
  background-image: url("assets/background-gradient.svg");
  background-size: cover; background-position: top center;
  opacity: .65;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero-glow {
  pointer-events: none; position: absolute; top: -60px; left: 50%;
  width: 800px; height: 400px; transform: translateX(-50%); z-index: 0;
  background: radial-gradient(rgba(0, 136, 255, 0.32) 0%, rgba(0, 0, 0, 0) 70%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero h1 {
  font-size: 40px; font-weight: 600; line-height: 1.2; color: #fff;
  max-width: 720px; margin: 0 auto 24px;
  letter-spacing: -0.01em;
}

.pill-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 720px; margin: 0 auto 40px;
}
.pill {
  font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  transition: background .15s, border-color .15s, transform .12s;
}
.pill:hover { background: rgba(255,255,255,.1); border-color: var(--border-strong); transform: translateY(-1px); }
.pill.is-active { background: #fff; color: #000; border-color: #fff; }

/* Waveform player card */
.player {
  position: relative; max-width: 560px; margin: 0 auto 28px;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px);
}
.player .play {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-primary); display: grid; place-items: center;
  box-shadow: var(--glow-blue);
}
.player .play svg { width: 16px; height: 16px; margin-left: 2px; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 40px; }
.wave span {
  flex: 1; border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--primary-100), var(--primary));
  opacity: .8;
}
@keyframes pulse { from { transform: scaleY(.55); opacity: .55; } to { transform: scaleY(1); opacity: .95; } }
.player .yourvoice {
  position: absolute; right: -12px; top: -30px;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.player .yourvoice img { width: 40px; transform: rotate(8deg); opacity: .8; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #000; font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--r-md);
  transition: transform .12s, box-shadow .15s;
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,255,255,.15); }
.hero-sub { color: var(--text-muted); font-size: 14px; margin-top: 18px; }

/* ============================================================
   Generic section chrome
   ============================================================ */
section { position: relative; }
.block { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-100);
}
.block h2 { font-size: 28px; letter-spacing: -0.01em; }
@media (min-width: 900px) { .block h2 { font-size: 32px; } }
/* Trending carousel heading sits a touch smaller in the source */
.voices-head h2 { font-size: 24px; }
@media (min-width: 900px) { .voices-head h2 { font-size: 26px; } }
/* Feature-section headings */
.feature-copy h2 { font-size: 28px; }
@media (min-width: 900px) { .feature-copy h2 { font-size: 30px; } }
.block .lead { color: var(--text-muted); font-size: 16px; max-width: 620px; margin-top: 14px; line-height: 1.6; }
.badge-new {
  font-size: 10px; font-weight: 700; color: var(--success-2);
  background: rgba(40, 225, 158, .12); padding: 3px 8px; border-radius: var(--r-pill);
}
.link-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  background: #fff; color: #000; font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: var(--r-md); transition: transform .12s, box-shadow .15s;
}
.link-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,255,255,.12); }
.link-cta.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--border-strong); }
.link-cta.ghost:hover { box-shadow: inset 0 0 0 1px #fff; }

/* --- Trending Voices carousel --- */
.voices-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle); color: #fff;
  transition: background .15s;
}
.carousel-nav button:hover { background: rgba(255,255,255,.12); }
.voices-track { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.voices-track::-webkit-scrollbar { height: 6px; }
.voice-card {
  position: relative; flex: none; width: 220px; aspect-ratio: 3/4;
  border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start;
  box-shadow: var(--shadow-lg);
}
.voice-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.voice-card:hover img { transform: scale(1.05); }
.voice-card .rank {
  position: absolute; top: -14px; left: 10px; font-size: 150px; font-weight: 400;
  color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.55); line-height: 1; z-index: 2;
  letter-spacing: -0.04em;
}
.voice-card .meta {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}
.voice-card .meta .name { font-weight: 700; color: #fff; font-size: 16px; }
.voice-card .meta .genre { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.voice-card .play-mini {
  position: absolute; right: 14px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-primary); display: grid; place-items: center; box-shadow: var(--glow-blue);
}
.voice-card .play-mini svg { width: 13px; height: 13px; margin-left: 2px; }

/* --- Feature (tool) sections --- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.reverse .feature-copy { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.reverse .feature-copy { order: 0; } }
.feature-media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-xl);
  background: linear-gradient(160deg, #16181d, #0c0d10);
}
.feature-media img { width: 100%; height: auto; }
.feature-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0,136,255,.08);
}

/* --- "And many more tools" grid --- */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
.tool-chip {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: var(--r-lg);
  /* 分层体系第 4 层：组件磨砂玻璃（半透明 + 背景模糊） */
  background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px);
  transition: transform .15s, border-color .15s, background .15s;
}
.tool-chip:hover { transform: translateY(-3px); border-color: var(--border); background: rgba(255,255,255,.05); }
.tool-chip .ic { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(0,136,255,.1); }
.tool-chip .ic img { width: 24px; height: 24px; }
.tool-chip .t { font-weight: 600; color: #fff; font-size: 15px; }

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; text-align: center; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat .num {
  font-size: 48px; font-weight: 800; line-height: 1;
  background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* --- Final CTA --- */
.final { text-align: center; padding-bottom: 96px; }
.final h2 { font-size: 30px; }
@media (min-width: 900px) { .final h2 { font-size: 36px; } }
.final .lead { margin: 18px auto 0; }
.final-media {
  margin: 44px auto 0; max-width: 900px; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-xl);
}

footer { border-top: 1px solid var(--border-subtle); padding: 32px 0; color: var(--text-dim); font-size: 13px; text-align: center; }





/* ============================================================
   v2 迭代层 —— 方向：优雅 / 神秘（叠加在原版规则之上，不改原版文件）
   原则：Inter 单字体下用尺寸对比与透明度做层级；
        品牌蓝只给关键交互与氛围光；section 留白有节奏变化。
   ============================================================ */

/* --- Hero：主标题放大，与 h2 拉开 ≥1.5 倍差距 --- */
.hero { padding: 104px 0 72px; }
.hero h1 {
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 780px;
  margin-bottom: 32px;
}

/* --- Pill：退为次要元素（更小、更灰）；激活态用品牌蓝而非纯白 --- */
.pill-row { gap: 8px; max-width: 680px; margin-bottom: 48px; }
.pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
}
.pill:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.07); }
.pill.is-active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--glow-blue-soft);
}

/* --- 播放器：hero 核心交互物，加一圈克制的蓝色氛围光 --- */
.player {
  border-color: rgba(0, 136, 255, 0.18);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(0, 136, 255, 0.10);
}

/* --- Hero 主 CTA：关键交互给品牌蓝 + 蓝色辉光 --- */
.hero-cta {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--glow-blue);
}
.hero-cta:hover { box-shadow: 0 10px 28px rgba(0, 136, 255, 0.4); transform: translateY(-1px); }

/* --- Section 节奏：不再统一 72px，按内容类型给呼吸感 --- */
.block:has(.voices-head) { padding-top: 48px; }
.block:has(.feature) { padding: 88px 0; }
.block:has(.tool-grid) { padding: 104px 0 88px; }
.block:has(.stats) { padding: 88px 0 104px; }
.final { padding-top: 112px; }

/* --- Stats：背后一团极淡的蓝色径向光，让纯黑中段不空 --- */
.block:has(.stats)::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 720px; height: 420px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 136, 255, 0.10), transparent 70%);
}

/* --- Trending 轮播：右缘渐隐，卡片裁切不再生硬 --- */
.voices-track {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
}

/* --- 滚动 reveal：慢、柔、只动 transform/opacity，reduced-motion 不加 class --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ============================================================
   v2 · 移动端顶栏 + 侧边抽屉（MobileNav / Vaul drawer 高保真复刻）
   断点沿用本站 900px；抽屉动画用原站 vaul 真值：0.5s cubic-bezier(.32,.72,0,1)
   ============================================================ */
.mobile-nav, .drawer-overlay { display: none; }

@media (max-width: 900px) {
  /* --- 顶栏：fixed，高 80px，pt-4 px-4，bg-transparent（原站值）--- */
  .mobile-nav {
    display: flex; align-items: flex-start; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    height: 80px; padding: 16px 16px 0;
    pointer-events: none; /* 中间区域不挡内容 */
  }
  .mobile-nav > * { pointer-events: auto; }
  .mn-left { display: flex; align-items: center; }

  /* 侧边栏按钮：40px / rounded-xl / 玻璃 + 内描边（bg-alpha-dark-10 + inner-border-white-10 + blur25）*/
  .mn-btn {
    width: 40px; height: 40px; margin-right: 16px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px);
    border-radius: 12px;
    transition: transform 0.12s;
  }
  .mn-btn:active { transform: scale(0.95); }

  /* Logo：35px 圆角渐变tile（原站 animate-wave-circular-color）+ 44px 字符标 */
  .mn-logo { display: flex; align-items: center; gap: 10px; }
  .mn-logo-tile {
    position: relative; width: 35px; height: 35px; border-radius: 12px;
    display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(225deg, #0062ff 10.85%, #00b2ff 93.72%);
    background-size: 200% 200%;
    animation: wave-circular-color 4s linear infinite;
  }
  .mn-logo-tile img { width: 20px; height: 20px; position: relative; }
  @keyframes wave-circular-color {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  .mn-logo-word { width: 44px; height: auto; }

  /* 右上角用户头像：40px 圆形，品牌蓝渐变 */
  .mn-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(225deg, #0062ff, #00b2ff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), var(--glow-blue-soft);
    transition: transform 0.12s;
  }
  .mn-avatar:active { transform: scale(0.95); }

  /* 内容让出固定顶栏 */
  .hero { padding-top: 128px; }

  /* 侧边栏变抽屉：vaul 方向 left 的滑入滑出 */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    background: rgba(18, 18, 18, 0.72); /* 抽屉盖在滚动内容上，加深玻璃底色保证可读 */
    z-index: 70;
  }
  .sidebar.is-open { transform: translateX(0); }

  /* 遮罩：与抽屉同节奏淡入淡出 */
  .drawer-overlay {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
}

/* --- 全局：装饰性绝对定位元素（hero-glow / stats 光团）不再撑出横向滚动 --- */
html, body { overflow-x: clip; }

/* --- 移动端抽屉内不再重复 brand（顶栏已有 logo），内容让出 80px 顶栏 --- */
@media (max-width: 900px) {
  .sidebar .brand { display: none; }
  .sidebar { padding-top: 96px; }
}

/* --- v2 修正（方案 A）：轻遮罩 + 透光玻璃抽屉，移动端导航文字提亮 --- */
@media (max-width: 900px) {
  .drawer-overlay { background: rgba(0, 0, 0, 0.35); }
  .sidebar { background: rgba(18, 22, 30, 0.45); } /* 微透蓝的玻璃，让波浪蓝光透进来 */
  .sidebar .nav-item { color: var(--text); }
  .sidebar .nav-item.active, .sidebar .nav-item:hover { color: var(--text-strong); }
}

/* --- v2 微调：遮罩再提亮 .35 → .25 --- */
@media (max-width: 900px) {
  .drawer-overlay { background: rgba(0, 0, 0, 0.25); }
}

/* --- v2 微调：遮罩 .25 → .20 --- */
@media (max-width: 900px) {
  .drawer-overlay { background: rgba(0, 0, 0, 0.2); }
}

/* ============================================================
   v3 · fluxapp 内容层 —— 只追加，不改上方任何规则
   ============================================================ */

/* --- 品牌件：渐变 tile + "f" 字符 + fluxapp 文字标（桌面 sidebar / 移动顶栏共用） --- */
.brand-tile {
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(225deg, #0062ff 10.85%, #00b2ff 93.72%);
  background-size: 200% 200%;
  animation: wave-circular-color 4s linear infinite;
}
.mn-logo-tile .brand-glyph { font-size: 17px; }
.brand-glyph { color: #fff; font-weight: 800; font-size: 15px; line-height: 1; }
.brand-word { color: var(--text-strong); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

/* --- 移动端顶栏右侧 Join 小按钮（替代原头像位） --- */
.mn-join {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 12px; background: var(--gradient-primary);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--glow-blue-soft);
}

/* --- Hero 视频演示卡：原波形位换成 16:9 视频帧 --- */
.player-video { padding: 14px 16px; }
.player-video .demo-frame {
  flex: 1; aspect-ratio: 16 / 9; border-radius: var(--r-md);
  overflow: hidden; background: #000;
}
.player-video .demo-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .play.is-hidden { display: none; }
.player .play.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* --- Waitlist 表单（Web3Forms，接入见 dev/01启动/06技术接入 spec）--- */
.waitlist-form {
  display: block; max-width: 480px; margin: 0 auto;
}
/* 成功态守卫（P0）：author-origin 的 display 会覆盖 UA 的 [hidden]{display:none}，
   导致 form.hidden=true 后表单不消失。用 !important 显式压回 none。 */
#waitlistForm[hidden] { display: none !important; }
#waitlistSuccess[hidden] { display: none !important; }
.waitlist-field { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist-field input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 13px 16px; border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff; font-size: 15px; font-family: inherit;
}
.waitlist-field input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.waitlist-field input[type="email"]:focus { outline: none; border-color: rgba(255, 255, 255, 0.4); }
.waitlist-submit {
  flex: 0 0 auto; padding: 13px 22px; border: none; border-radius: var(--r-md);
  background: var(--gradient-primary); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: var(--glow-blue);
  transition: transform .12s, box-shadow .15s;
}
.waitlist-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 136, 255, 0.4); }
.waitlist-submit:disabled { opacity: .6; cursor: default; transform: none; }
.waitlist-error { margin: 8px 0 0; color: #ff8a8a; font-size: 13px; min-height: 1em; }
.waitlist-success {
  max-width: 480px; margin: 0 auto; padding: 14px 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(56, 199, 147, 0.35);
  background: rgba(56, 199, 147, 0.1);
}
.waitlist-success p { font-size: 15px; color: rgba(255, 255, 255, 0.9); }
/* 蜜罐：对用户彻底隐藏，但不 display:none（部分机器人会跳过 none 元素） */
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Join 入口点击后的高亮反馈：蓝色脉冲，引导用户视线到表单 */
.waitlist-form.is-highlighted {
  animation: waitlist-pulse 1.6s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes waitlist-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0); }
  15%  { box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist-form.is-highlighted { animation: none; outline: 2px solid var(--primary-100); }
}

/* --- Hero 归因行："Powered by" + BFL logotype（白标，小尺寸，不加任何效果） --- */
.hero-attribution {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; color: var(--text-dim); font-size: 12px;
}
.hero-attribution .bfl-logo { height: 14px; width: auto; opacity: .85; }

/* --- Stats 来源小字 --- */
.stats-note { color: var(--text-dim); font-size: 12px; margin-top: 18px; }

/* --- Footer 合规声明 --- */
footer .legal { max-width: 640px; margin: 0 auto 10px; line-height: 1.6; }
footer .copyright a { color: var(--text-muted); }
footer .copyright a:hover { color: var(--text-strong); }

/* --- 修正：v2 的 @keyframes wave-circular-color 定义在移动端 media 块内，桌面端 brand-tile 动画不生效；顶层重声明一份（append-only） --- */
@keyframes wave-circular-color {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* --- Feature 卖点列表（H3 小项） --- */
.feature-points { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.feature-points li { padding-left: 14px; border-left: 2px solid rgba(0, 136, 255, 0.35); }
.feature-points h3 { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.feature-points p { font-size: 13px; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }

/* --- FAQ（details/summary 手风琴，无 JS） --- */
.faq-list { max-width: 720px; margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 16px; font-weight: 600; color: var(--text-strong); transition: color .15s; }
.faq-item summary:hover h3 { color: var(--primary-100); }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item p { padding: 0 4px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.65; max-width: 640px; }


/* --- Trending 卡：能力标题 + 描述段（素材深化 v2 · C3） --- */
.voice-card .meta .desc {
  font-size: 11px; color: var(--text-dim); margin-top: 4px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Stats 竞品对比条形图（自绘；数据：BFL preliminary testing） --- */
.cmp { max-width: 640px; margin: 48px auto 0; text-align: left; }
.cmp-title { font-size: 20px; color: var(--text-strong); }
.cmp-sub { color: var(--text-dim); font-size: 12px; margin-top: 6px; }
.cmp-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; }
.cmp-model { font-size: 13px; color: var(--text-muted); text-align: right; }
.cmp-bar { height: 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.cmp-bar span { display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--gradient-primary); }
.cmp-pct { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.cmp-row.is-tie .cmp-bar span { background: var(--surface-elev-2); }
.cmp-row.is-tie .cmp-model, .cmp-row.is-tie .cmp-pct { color: var(--text-dim); font-weight: 500; }
.cmp-note { color: var(--text-dim); font-size: 11px; margin-top: 14px; }
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr 76px; }
  .cmp-model { grid-column: 1 / -1; text-align: left; }
}


/* --- Trending 卡可读性补强：浅色图上的标题/描述文字（append-only 覆盖渐变） --- */
.voice-card .meta { background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.92) 100%); }
.voice-card .meta .desc { color: rgba(255, 255, 255, 0.72); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
