/* ═══════════════════════════════════════════════════════
   夜幕社区 · 高端成人向
   奢华 · 精致 · 张力
══════════════════════════════════════════════════════ */

:root {
  --bg:        #060408;
  --bg-2:      #0a060a;
  --bg-card:   #0e080c;
  --surface:   #100a0e;

  --text:      #fce8ed;
  --text-2:    #e8b8c4;
  --muted:     #9e7a88;
  --muted-2:   #c4a0ac;

  --primary:   #e91e63;
  --primary-hover: #f06292;
  --accent:    #f8bbd9;
  --gold:      #d4a574;
  --gold-soft: #e8c9a0;

  --line:      #1e1418;
  --line-2:    #2a1c24;

  --glow:      rgba(233, 30, 99, 0.4);
  --glow-subtle: rgba(233, 30, 99, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --tabbar-h:  56px;
  --float-h:   48px;
  --max-w:     480px;
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:  env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 移动端触摸优化：去除点击高亮、加快响应 */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
/* iOS 100vh 修复：地址栏收缩时高度正确 */
@supports (min-height: 100dvh) {
  html, body { min-height: 100dvh; }
}
@supports not (min-height: 100dvh) {
  html { min-height: -webkit-fill-available; }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.02em;
  line-height: 1.55;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  background-image:
    radial-gradient(ellipse 100% 50% at 50% -5%, rgba(233, 30, 99, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 50%, rgba(212, 165, 116, 0.04), transparent 45%),
    radial-gradient(ellipse 50% 35% at 15% 80%, rgba(233, 30, 99, 0.05), transparent 45%);
}

/* ── 顶栏 ── */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: var(--safe-top);
  background: rgba(6, 4, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn--share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 36px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  font-size: 12px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, color 0.2s;
}
.btn--share:hover { border-color: var(--muted); color: var(--text); }
.btn--share svg { width: 16px; height: 16px; flex-shrink: 0; }

.logo__text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #f8bbd9 0%, #e91e63 50%, #ad1457 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo__badge {
  font-size: 9px;
  font-weight: 600;
  color: #1a0a0a;
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.15em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── 公告条（合并实时下载）── */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
  background: rgba(14, 8, 12, 0.6);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.notice-bar__live {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-2);
}

.notice-bar__live strong {
  color: var(--primary);
  font-weight: 700;
}

.notice-bar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--glow);
  animation: pulse 1.5s ease-in-out infinite;
}

.notice-bar__track {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}

.notice-bar__track span {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.2px;
}

.notice-bar__track strong {
  color: var(--primary);
  font-weight: 700;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 主内容 ── */
.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 16px 20px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── 数据统计 ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.stats__item {
  background: var(--bg-card);
  padding: 8px 6px;
  text-align: center;
}

.stats__value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.stats__label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats__item--highlight {
  background: linear-gradient(180deg, rgba(233, 30, 99, 0.12) 0%, var(--bg-card) 100%);
  border-left: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
}

.stats__item--highlight .stats__value {
  color: var(--accent);
}

/* ── 会员福利卡 ── */
.cta-card {
  background: linear-gradient(165deg, #0e080c 0%, #1a1014 50%, #0c080a 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
  pointer-events: none;
}

.cta-card__urgent {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 8px;
  font-weight: 600;
  color: #1a0a0a;
  background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.12em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-card__content {
  position: relative;
}

.cta-card__tag {
  margin: 0 0 6px;
  font-size: 10px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cta-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.cta-card__title em {
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
}

.cta-card__sub {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--text-2);
}

.cta-card__features {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cta-card__features li {
  font-size: 11px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}

.cta-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
  text-shadow: 0 0 8px var(--glow-subtle);
}

.cta-card__btn {
  width: 100%;
  min-height: 42px;
  font-size: 13px;
}

.cta-card__tip {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.cta-card__install-hint { margin: 4px 0 0; }

.cta-card__install-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--gold-soft);
  line-height: 1.4;
}
.cta-card__install-hint:empty { display: none; }

/* ── 内容流 ── */
.feed {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.feed__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
}

.feed__live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.feed__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.feed__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ── 视频卡片（JS 动态生成）── */
.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.preview-card:hover {
  border-color: var(--line-2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.preview-card:active {
  transform: scale(0.98);
}

.preview-thumb {
  position: relative;
  overflow: hidden;
}

.preview-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.preview-card:hover img {
  transform: scale(1.03);
}

.preview-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.preview-play-btn svg {
  width: 36px;
  height: 36px;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: transform 0.2s ease;
}

.preview-card:hover .preview-play-btn svg {
  transform: scale(1.08);
}

.preview-card__hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  font-size: 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 12px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.preview-card:hover .preview-card__hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.preview-card__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}

.preview-card__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.preview-card__meta {
  padding: 10px;
}

.preview-card__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-card__sub {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 推广卡（JS 动态生成）── */
.promo-card {
  grid-column: span 2;
  background: linear-gradient(145deg, #1c0e14 0%, #150a10 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.promo-card__text {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-2);
}

.promo-card__btn {
  width: 100%;
}

/* ── 底部引导 CTA ── */
.bottom-cta {
  margin-top: 4px;
  padding: 20px 20px;
  background: linear-gradient(165deg, #0e080c 0%, #1a1014 50%, #0c080a 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.bottom-cta__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}

.bottom-cta__sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-2);
}

.bottom-cta__btn {
  margin-bottom: 12px;
}

.bottom-cta__hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.bottom-cta__hint span {
  color: var(--gold);
  font-weight: 600;
}

/* ── 试看引导弹层 ── */
.modal__box--nudge {
  text-align: center;
  padding: 28px 24px;
}

.nudge__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.nudge__title strong {
  color: var(--primary);
}

.nudge__sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.nudge__benefits {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  text-align: left;
  display: inline-block;
}

.nudge__benefits li {
  padding: 6px 0 6px 20px;
  font-size: 13px;
  color: var(--text-2);
  position: relative;
}

.nudge__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.nudge__skip {
  margin-top: 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nudge__skip:hover {
  color: var(--text-2);
}

/* ── 按钮 ── */
.btn {
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: 0.02em;
}

.btn:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  min-height: 44px;
  padding: 0 20px;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

/* 主转化按钮：高端感 */
.btn--cta {
  background: linear-gradient(165deg, #e91e63 0%, #ad1457 100%);
  color: #fff;
  font-weight: 600;
  min-height: 48px;
  padding: 0 28px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--cta:hover {
  background: linear-gradient(165deg, #f06292 0%, #e91e63 100%);
  box-shadow: 0 6px 24px rgba(233, 30, 99, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--cta .btn__icon {
  margin-right: 6px;
  font-size: 16px;
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn--outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  min-height: 38px;
  padding: 0 16px;
}

.btn--outline:hover {
  border-color: var(--muted);
  color: var(--text);
}

.btn--block {
  width: 100%;
}

/* ── 弹层 ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: calc(20px + var(--safe-top));
  padding-bottom: calc(20px + var(--safe-bottom));
  padding-left: calc(20px + var(--safe-left));
  padding-right: calc(20px + var(--safe-right));
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hidden { display: none !important; }

/* 弹层打开时锁定 body 滚动（兼容微信/QQ 等内置浏览器） */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.modal__box {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  animation: modalIn 0.25s ease-out;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: var(--line);
  color: var(--muted-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.modal__close:hover {
  background: var(--line-2);
  color: var(--text);
}

/* ── 播放器 ── */
.player {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.player__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.player__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.5;
  filter: blur(2px) saturate(0.9);
}

.player__state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.5);
}

.player__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 12px var(--glow-subtle);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.player__state-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.player__lock-icon {
  font-size: 36px;
}

.player__lock-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.player__lock-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.player__controls {
  background: var(--bg-2);
  padding: 12px 16px;
}

.player__progress-wrap {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.player__progress {
  height: 100%;
  background: linear-gradient(90deg, #e91e63, #f06292);
  border-radius: 2px;
  width: 0%;
  transition: width 0.25s linear;
  box-shadow: 0 0 12px var(--glow-subtle);
}

.player__time-row {
  display: flex;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.player__time-sep { opacity: 0.5; }

/* ── 弹层 CTA ── */
.modal__cta {
  margin-top: 20px;
  text-align: center;
}

.modal__cta-headline {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.modal__benefits {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.modal__benefits span {
  font-size: 12px;
  color: var(--text-2);
  background: var(--line);
  padding: 6px 12px;
  border-radius: 8px;
}

.modal__btn-wrap {
  position: relative;
}

.modal__badge {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 9px;
  font-weight: 600;
  color: #1a0a0a;
  background: linear-gradient(135deg, #d4a574, #b8860b);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal__tip {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* ── 设备引导 ── */
.modal__title {
  margin: 0 40px 8px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.modal__subtitle {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.guide {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.guide__step {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}

.guide__step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide__url {
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  word-break: break-all;
  line-height: 1.5;
}

.guide__btn {
  margin-top: 12px;
}

/* ── 扫码分享弹层 ── */
.share-qr {
  display: flex;
  justify-content: center;
  margin: 20px 0 16px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-md);
}

.share-qr__img {
  width: 200px;
  height: 200px;
  display: block;
}

.share-qr__url {
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  word-break: break-all;
  line-height: 1.5;
}

/* ── 下载重试条 ── */
.retry-bar {
  position: fixed;
  bottom: calc(var(--tabbar-h) + var(--float-h) + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: retryBarIn 0.25s ease-out;
}

@keyframes retryBarIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.retry-bar__text {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
@media (max-width: 360px) {
  .retry-bar__text { white-space: normal; }
}
.retry-bar__btn { flex-shrink: 0; }
.retry-bar__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--line);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.retry-bar__close:hover { background: var(--line-2); color: var(--text); }

/* ── Toast ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--float-h) + var(--safe-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 24px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 13px;
  white-space: normal;
  text-align: center;
  word-break: break-word;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6), 0 0 24px var(--glow-subtle);
  animation: toastIn 0.2s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── 页脚 ── */
.footer {
  text-align: center;
  padding: 16px 16px calc(var(--tabbar-h) + var(--float-h) + var(--safe-bottom) + 20px);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── 悬浮下载条 ── */
.float-bar {
  position: fixed;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 25;
  height: var(--float-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
  background: rgba(15, 8, 12, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.float-bar--highlight {
  border-top-color: var(--line-2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.float-bar__info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.float-bar__badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  color: #1a0a0a;
  background: linear-gradient(135deg, #d4a574, #b8860b);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.float-bar__text {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-bar__btn {
  flex-shrink: 0;
  padding: 10px 20px;
}

/* ── 底部导航 ── */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--tabbar-h);
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
  box-sizing: content-box;
  background: rgba(10, 5, 8, 0.96);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.tabbar__item {
  position: relative;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.15s;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tabbar__item--active {
  color: var(--primary);
}

.tabbar__item--active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow);
}

.tabbar__icon {
  width: 22px;
  height: 22px;
}

/* ── 桌面端 ── */
@media (min-width: 768px) {
  body {
    max-width: var(--max-w);
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background-attachment: fixed;
  }

  .float-bar,
  .tabbar {
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--max-w);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .toast {
    left: 50%;
    max-width: calc(var(--max-w) - 32px);
  }

  .retry-bar {
    max-width: calc(var(--max-w) - 32px);
  }
}

/* ── 无障碍：降低动效 ── */
@media (prefers-reduced-motion: reduce) {
  .notice-bar__track { animation: none; }
  .feed__live-dot { animation: none; }
  .preview-card,
  .preview-card img,
  .preview-play-btn svg { transition: none; }
  .modal__box { animation: none; }
  .toast { animation: none; }
  .retry-bar { animation: none; }
  .player__spinner { animation: none; }
}
