/* ============================================================
 * style.css — Vidora H5 视频站 · 三套主题布局
 *   主题1 [data-theme="1"]：TikTok 全屏沉浸式（右侧操作栏 + 底部Tab）
 *   主题2 [data-theme="2"]：影院卡片式（居中圆角卡片 + 横向操作栏 + 大CTA）
 *   主题3 [data-theme="3"]：杂志分栏式（上部视频 + 下部信息卡 + 胶片缩略图）
 * ============================================================ */

/* ---------- 设计 token ---------- */
:root {
  --c-bg: #0b0b0f;
  --c-surface: rgba(20, 20, 28, 0.86);
  --c-card: #16161e;
  --c-text: #f2f2f5;
  --c-text-dim: #9a9aa6;
  --c-accent: #ff3b5c;      /* 主强调：红粉 */
  --c-accent-2: #21d4a8;    /* 辅强调：青绿 */
  --c-line: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
  --radius-md: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI",
          "Helvetica Neue", "Noto Sans", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  user-select: none;
  -webkit-user-select: none;
}
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
[hidden] { display: none !important; }

/* 主题专属元素显隐 */
body:not([data-theme="1"]) .only-t1 { display: none !important; }
body:not([data-theme="2"]) .only-t2 { display: none !important; }
body:not([data-theme="3"]) .only-t3 { display: none !important; }
body:not([data-theme="4"]) .only-t4 { display: none !important; }

/* ============================================================
 * 顶部栏
 * ============================================================ */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }

.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; letter-spacing: 0.4px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  font-size: 12px; color: #fff;
}
.seg-tabs { display: flex; gap: 20px; }
.seg-tab { font-size: 16px; color: var(--c-text-dim); padding: 4px 2px; position: relative; }
.seg-tab.active { color: var(--c-text); font-weight: 700; }
.seg-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 2px; background: #fff;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: #fff;
}

/* ============================================================
 * 舞台与视频
 * ============================================================ */
.stage { position: fixed; inset: 0; overflow: hidden; }
.video-wrap { position: absolute; inset: 0; overflow: hidden; background: #000; }
/* 双 slide 轨道：丝滑切换动画 */
.slide-track { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; will-change: transform;
  transform: translate3d(0, 101%, 0); /* 默认待命位置在屏幕外，由 JS 按方向重置 */
}
.slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

/* 主题2/3：完整显示画面不裁切（contain），主题1 保持全屏铺满（cover） */
body[data-theme="2"] .slide video,
body[data-theme="3"] .slide video { object-fit: contain; }

.mute-badge {
  position: absolute; top: calc(58px + env(safe-area-inset-top, 0px)); left: 14px; z-index: 5;
  padding: 7px 12px; border-radius: 20px;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px;
}
.mute-badge.on { display: none; }

.progress-zone { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 8px 14px calc(10px + var(--safe-b)); }
.progress-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: #fff; border-radius: 2px; }
.progress-time { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.85); margin-top: 5px; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }

.swipe-hint {
  position: fixed; left: 50%; bottom: 26vh; transform: translateX(-50%); z-index: 30;
  padding: 10px 18px; border-radius: 24px;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px;
  animation: hintFloat 2s ease-in-out infinite;
  pointer-events: none; transition: opacity 0.4s;
}
.swipe-hint.hide { opacity: 0; }
@keyframes hintFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* 主题2：页码圆点 + 左右切换箭头 */
.dots { display: flex; gap: 7px; justify-content: center; align-items: center; padding: 2px 0; }
.dot {
  width: 7px; height: 7px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.22); transition: all 0.25s;
}
.dot.active { width: 20px; background: var(--c-accent); }
.nav-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 36;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px);
  color: #fff; font-size: 24px; line-height: 1;
  display: grid; place-items: center;
}
.nav-arrow.left { left: 8px; }
.nav-arrow.right { right: 8px; }
.nav-arrow:active { background: rgba(255, 255, 255, 0.25); }

/* ============================================================
 * 操作栏（主题1/3 竖排靠右；主题2 横排居中）
 * ============================================================ */
.action-rail {
  position: fixed; z-index: 35;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; }
.rail-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 21px; line-height: 1;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  backdrop-filter: blur(6px); color: #fff;
  transition: transform 0.15s;
}
.rail-item:active .rail-icon { transform: scale(1.18); }
.rail-count { font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.rail-label { font-size: 10px; color: rgba(255,255,255,0.85); text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.rail-name { display: none; }
.act-like.active .rail-icon { background: var(--c-accent); }
#btnFav.active .rail-icon { background: #f5b921; }

.avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 2px solid #fff; background: #26262e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
 * 信息面板
 * ============================================================ */
.info-panel { position: fixed; z-index: 35; }
.info-head { display: flex; align-items: center; gap: 10px; }
.info-nick { font-size: 16px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.info-follow {
  font-size: 12px; padding: 4px 12px; border-radius: 14px;
  border: 1px solid var(--c-accent); color: var(--c-accent); font-weight: 600;
}
.info-title { font-size: 14px; margin-top: 7px; line-height: 1.5; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.info-tags { font-size: 13px; color: var(--c-text-dim); margin-top: 4px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.stats-row { display: flex; gap: 22px; margin-top: 12px; }
.stat { display: flex; flex-direction: column; gap: 1px; }
.stat b { font-size: 16px; }
.stat span { font-size: 11px; color: var(--c-text-dim); }

/* ============================================================
 * 底部 Tab（主题1） / 大CTA（主题2） / 胶片（主题3）
 * ============================================================ */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-around;
  height: calc(58px + var(--safe-b)); padding-bottom: var(--safe-b);
  background: #0b0b0f; border-top: 1px solid var(--c-line);
}
.bn-item, .bn-counter { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--c-text-dim); }
.bn-icon { font-size: 19px; }
.bn-counter b { font-size: 15px; color: var(--c-text); letter-spacing: 1px; }

.cta-btn {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 45;
  padding: 15px 0; width: min(86vw, 420px);
  border-radius: 16px; font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--c-accent), #ff7b3b);
  box-shadow: 0 8px 24px rgba(255, 59, 92, 0.4);
  animation: ctaBreath 2.4s ease-in-out infinite;
}
@keyframes ctaBreath { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.03); } }

.filmstrip {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px calc(12px + var(--safe-b));
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  scrollbar-width: none;
}
.filmstrip::-webkit-scrollbar { display: none; }
.fs-item {
  flex: 0 0 64px; height: 88px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: #1c1c24; position: relative;
}
.fs-item.active { border-color: var(--c-accent-2); }
.fs-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-item i {
  position: absolute; left: 4px; bottom: 3px; font-style: normal;
  font-size: 10px; font-weight: 700; text-shadow: 0 1px 3px #000;
}

/* ============================================================
 * 主题1：TikTok 全屏沉浸式
 * ============================================================ */
body[data-theme="1"] .video-wrap { inset: 0; }
body[data-theme="1"] .action-rail {
  right: 8px; bottom: calc(96px + var(--safe-b)); width: 62px;
}
body[data-theme="1"] .info-panel {
  left: 14px; right: 84px; bottom: calc(88px + var(--safe-b));
}
body[data-theme="1"] .stats-row { display: none; }
body[data-theme="1"] .mute-badge.on { display: none; }

/* ============================================================
 * 主题2：影院卡片式（flex 纵向流式布局：卡片→圆点→操作栏→信息→CTA）
 * ============================================================ */
body[data-theme="2"] {
  background:
    radial-gradient(60vw 60vw at 15% 12%, rgba(33, 212, 168, 0.16), transparent 60%),
    radial-gradient(70vw 70vw at 85% 85%, rgba(255, 59, 92, 0.18), transparent 60%),
    #0d0d14;
  /* 纵向 flex 流：元素按 DOM 顺序排列，永不互相叠压 */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: calc(54px + env(safe-area-inset-top, 0px)) 0 calc(16px + var(--safe-b));
}
body[data-theme="2"] .stage {
  position: relative; inset: auto;
  flex: 0 1 auto; width: min(88vw, 430px); height: min(58vh, 580px);
}
body[data-theme="2"] .video-wrap {
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
body[data-theme="2"] .action-rail {
  position: static; flex-direction: row; gap: 22px;
}
body[data-theme="2"] .rail-icon { width: 42px; height: 42px; font-size: 18px; }
body[data-theme="2"] .rail-label { display: none; }
body[data-theme="2"] .avatar { width: 44px; height: 44px; }
body[data-theme="2"] .info-panel {
  position: static;
  width: min(88vw, 430px);
  text-align: center;
}
body[data-theme="2"] .info-head { justify-content: center; }
body[data-theme="2"] .info-title { font-size: 13px; }
body[data-theme="2"] .info-tags { display: none; }
body[data-theme="2"] .seg-tabs { display: none; }
body[data-theme="2"] .mute-badge { top: 14px; left: 14px; }
body[data-theme="2"] .dots { display: none; } /* 去掉底部页码圆点 */
body[data-theme="2"] .cta-btn {
  position: static; width: min(86vw, 420px);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
@keyframes ctaPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
body[data-theme="2"] .swipe-hint {
  position: static; transform: none; animation: none;
  background: transparent; padding: 2px 0;
  color: var(--c-text-dim); font-size: 12px;
}

/* ============================================================
 * 主题3：杂志分栏式（导航栏下方大视频 + 信息卡内嵌操作行）
 * ============================================================ */
body[data-theme="3"] {
  --t3-top: calc(52px + env(safe-area-inset-top, 0px));
  --t3-vidh: min(60vh, 620px); /* 播放器高度 */
  background: #101016;
}
body[data-theme="3"] .video-wrap {
  inset: auto;
  top: var(--t3-top); left: 0; right: 0;
  height: var(--t3-vidh);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
body[data-theme="3"] .progress-zone { padding-bottom: 12px; }
body[data-theme="3"] .title-overlay {
  position: absolute; top: calc(var(--t3-top) + 12px); left: 18px; z-index: 5;
  display: flex; flex-direction: column; gap: 2px; pointer-events: none;
}
body[data-theme="3"] .t-index {
  font-size: clamp(26px, 8vw, 40px); font-weight: 900; letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
body[data-theme="3"] .t-name {
  font-size: clamp(15px, 4.5vw, 22px); font-weight: 700; color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  max-width: 60vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 操作行（头像+点赞/声音/收藏/分享）内嵌到信息卡顶部 */
body[data-theme="3"] .action-rail {
  flex-direction: row; gap: 14px; justify-content: flex-start; align-items: center;
  left: 34px; right: auto; bottom: auto;
  top: calc(var(--t3-top) + var(--t3-vidh) + 28px);
  z-index: 36; /* 压在信息卡上层，视觉上嵌进卡片 */
}
body[data-theme="3"] .rail-icon { width: 40px; height: 40px; font-size: 17px; }
body[data-theme="3"] .rail-label { display: none; }
body[data-theme="3"] .avatar { width: 44px; height: 44px; }
body[data-theme="3"] .info-panel {
  top: calc(var(--t3-top) + var(--t3-vidh) + 14px);
  left: 16px; right: 16px;
  bottom: auto;
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 16px;
  padding-top: 84px; /* 顶部留出内嵌操作行的空间 */
  text-shadow: none;
}
body[data-theme="3"] .info-title, body[data-theme="3"] .info-tags, body[data-theme="3"] .info-nick { text-shadow: none; }
body[data-theme="3"] .info-title {
  font-size: 13px; color: var(--c-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
body[data-theme="3"] .info-tags { color: var(--c-accent-2); }
body[data-theme="3"] .swipe-hint {
  bottom: auto;
  top: calc(var(--t3-top) + 34vh);
}
body[data-theme="3"] .mute-badge { top: calc(var(--t3-top) + 8px); left: auto; right: 14px; }
/* 底部胶片缩略图去掉 */
body[data-theme="3"] .filmstrip { display: none; }

/* ============================================================
 * 主题4：极简画廊（亮色纸感 · 上方播放器 + 下方可滚动播放列表）
 * 与前三套暗色沉浸式完全反差：米白背景、黑色元素、列表点选交互
 * ============================================================ */
body[data-theme="4"] {
  --t4-fg: #141414;
  --t4-muted: #8a8a84;
  --t4-paper: #f4f2ec;
  --t4-line: rgba(0, 0, 0, 0.08);
  background: var(--t4-paper);
  color: var(--t4-fg);
  /* 纵向流式：舞台 → 操作条 → 信息 → 列表（可滚动） */
  display: flex; flex-direction: column;
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
}
/* 顶部导航：纸感白底黑字 */
body[data-theme="4"] .top-bar {
  color: var(--t4-fg);
  background: var(--t4-paper);
  border-bottom: 1px solid var(--t4-line);
}
body[data-theme="4"] .seg-tab { color: var(--t4-muted); }
body[data-theme="4"] .seg-tab.active { color: var(--t4-fg); }
body[data-theme="4"] .seg-tab.active::after { background: var(--t4-fg); }
body[data-theme="4"] .icon-btn { background: rgba(0, 0, 0, 0.06); color: var(--t4-fg); }
/* 播放器：带边距的圆角卡片，完整显示画面 */
body[data-theme="4"] .stage {
  position: relative; inset: auto;
  flex: 0 0 auto;
  width: auto; margin: 14px 14px 0;
  height: min(56vh, 560px);
}
body[data-theme="4"] .video-wrap {
  inset: 0; border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
body[data-theme="4"] .slide video { object-fit: contain; }
body[data-theme="4"] .mute-badge { top: 12px; }
body[data-theme="4"] .swipe-hint { bottom: auto; top: calc(52px + env(safe-area-inset-top, 0px) + 28vh); }
/* 操作条：左头像+昵称，右侧按钮等宽分布对齐 */
body[data-theme="4"] .action-rail {
  position: static; flex-direction: row; align-items: center;
  gap: 0; padding: 12px 14px 0;
}
body[data-theme="4"] .action-rail > .rail-item:first-child {
  flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px;
  padding-right: 10px;
}
body[data-theme="4"] .action-rail > .rail-item:not(:first-child) {
  flex: 1 1 0; align-items: center; justify-content: center;
}
body[data-theme="4"] .rail-name { display: block; font-size: 15px; font-weight: 800; color: var(--t4-fg); }
body[data-theme="4"] .rail-icon {
  width: 38px; height: 38px; font-size: 16px;
  background: var(--t4-fg); color: #fff;
}
body[data-theme="4"] .rail-count { color: var(--t4-fg); text-shadow: none; }
body[data-theme="4"] .rail-label { display: none; }
body[data-theme="4"] .act-like.active .rail-icon { background: var(--c-accent); }
body[data-theme="4"] #btnFav.active .rail-icon { background: #b8860b; }
body[data-theme="4"] .avatar { border-color: var(--t4-fg); box-shadow: none; }
/* 信息区：亮色排版，标题为主角 */
body[data-theme="4"] .info-panel { position: static; padding: 8px 16px 0; }
body[data-theme="4"] .info-head { justify-content: flex-end; }
body[data-theme="4"] .info-nick { display: none; }
body[data-theme="4"] .info-follow { background: var(--t4-fg); color: #fff; border: none; }
body[data-theme="4"] .info-title {
  font-size: 16px; font-weight: 700; color: var(--t4-fg); text-shadow: none;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
body[data-theme="4"] .info-tags { color: var(--t4-muted); text-shadow: none; }
/* 底部播放列表去掉（按需求移除） */
body[data-theme="4"] .feed-list { display: none; }
.feed-head {
  font-size: 12px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--t4-muted);
  margin: 6px 0 4px;
}
.feed-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--t4-line);
}
.feed-item:active { opacity: 0.6; }
.fi-avatar {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 12px; overflow: hidden; background: #e5e3dc;
}
.fi-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fi-body { flex: 1; min-width: 0; }
.fi-title {
  font-size: 14px; font-weight: 600; color: var(--t4-fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feed-item.active .fi-title { color: var(--c-accent); }
.feed-item.active .fi-num { color: var(--c-accent); }
.fi-meta { font-size: 12px; color: var(--t4-muted); margin-top: 3px; }
.fi-num { font-size: 12px; font-weight: 700; color: var(--t4-muted); }

/* ============================================================
 * 语言菜单
 * ============================================================ */
.lang-mask, .modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px);
  display: grid; place-items: center;
}
.lang-menu {
  width: min(78vw, 320px); border-radius: var(--radius-lg);
  background: var(--c-surface); border: 1px solid var(--c-line);
  padding: 18px; backdrop-filter: blur(16px);
}
.lang-title { font-size: 15px; text-align: center; margin-bottom: 12px; color: var(--c-text-dim); }
.lang-menu ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang-menu li button {
  width: 100%; padding: 11px 8px; border-radius: 12px; font-size: 14px;
  background: rgba(255, 255, 255, 0.06); color: var(--c-text);
}
.lang-menu li button.active { background: var(--c-accent); font-weight: 700; }

/* ============================================================
 * 注册弹窗
 * ============================================================ */
.modal {
  width: min(88vw, 380px); border-radius: var(--radius-lg);
  background: var(--c-surface); border: 1px solid var(--c-line);
  padding: 26px 22px 22px; backdrop-filter: blur(18px);
  position: relative; animation: popIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: var(--c-text-dim); font-size: 14px;
}
.modal h2 { font-size: 20px; text-align: center; }
.reg-badge { font-size: 34px; text-align: center; margin-bottom: 6px; }
.reg-sub { font-size: 12px; color: var(--c-text-dim); text-align: center; margin: 6px 0 16px; }
#regForm label { display: block; margin-bottom: 12px; }
#regForm label span { display: block; font-size: 12px; color: var(--c-text-dim); margin-bottom: 5px; }
#regForm input {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.06); color: var(--c-text);
  font-size: 14px; outline: none;
}
#regForm input:focus { border-color: var(--c-accent-2); }
.reg-btn {
  width: 100%; height: 46px; margin-top: 4px;
  border-radius: 12px; font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--c-accent), #ff7b3b);
}
.reg-btn:disabled { opacity: 0.65; }

.succ-view { text-align: center; }
.succ-icon {
  width: 62px; height: 62px; margin: 4px auto 12px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; color: #fff;
  background: linear-gradient(135deg, var(--c-accent-2), #1a9e7e);
  animation: popIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.dl-btn {
  display: block; width: 100%; height: 48px; line-height: 48px; margin-top: 10px;
  border-radius: 12px; font-size: 15px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #4f8cff, #7b5cff);
}

/* ============================================================
 * Toast
 * ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 18vh; transform: translateX(-50%) translateY(10px);
  z-index: 99; padding: 10px 18px; border-radius: 22px;
  background: rgba(20, 20, 28, 0.92); border: 1px solid var(--c-line);
  color: #fff; font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* PC 端hover微交互 */
@media (hover: hover) {
  .rail-item:hover .rail-icon { transform: scale(1.12); }
  .cta-btn:hover { filter: brightness(1.1); }
  .dl-btn:hover, .reg-btn:hover { filter: brightness(1.1); }
}

/* 大屏（平板/PC）：限制舞台最大宽度，居中呈现 */
@media (min-width: 640px) {
  body[data-theme="1"] .stage, body[data-theme="1"] .bottom-nav,
  body[data-theme="1"] .action-rail, body[data-theme="1"] .info-panel {
    max-width: 480px;
  }
  body[data-theme="1"] .stage { left: 50%; transform: translateX(-50%); }
}
