/* ========================================
   千禧年声音超市 - 像素磁带撞色 + CRT故障光效
   视觉翻新 v29：黑底 + 硬边磁带壳 + 霓虹发光 + 铬合金磁带装置
   ======================================== */

/* Google Fonts - 像素字体 */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ========================================
   CSS 变量 - 集中管理
   ======================================== */
:root {
  /* 分类色 - 保留原值，用于磁带壳+霓虹发光 */
  --color-tech: #FF1493;
  --color-comm: #00E5FF;
  --color-economy: #FFE600;
  --color-entertainment: #00FF88;
  --color-street: #B24BF3;
  --color-bgm: #FF6B35;

  /* 背景层 - 纯黑系 */
  --color-bg-dark: #080812;
  --color-bg-card: #0A0A0A;
  --color-bg-card-hover: #141414;

  /* 文字 */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #777777;
  --color-text-dark: #000000;

  /* 边框/阴影 */
  --color-border-dark: rgba(0, 0, 0, 0.8);
  --shadow-pixel: 4px 4px 0 rgba(0,0,0,0.8);
  --shadow-pixel-hover: 6px 6px 0 rgba(0,0,0,0.8);

  /* 字体 */
  --font-pixel: 'Press Start 2P', monospace;
  --font-chinese: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* 过渡 */
  --transition-fast: 0.15s;
  --transition-normal: 0.3s;

  /* 最大宽度 */
  --max-width: 428px;
}

/* ========================================
   基础重置
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-chinese);
  background: #080812;
  color: var(--color-text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* 霓虹网格骨架 + CRT扫描线 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* 金属框架网格 - 竖线 */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(0, 229, 255, 0.04) 79px,
      rgba(0, 229, 255, 0.04) 80px
    ),
    /* 金属框架网格 - 横线 */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(0, 229, 255, 0.04) 79px,
      rgba(0, 229, 255, 0.04) 80px
    ),
    /* CRT扫描线 */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* 彩胶透光霓虹氛围 - 模拟透过彩色塑料片看霓虹灯管 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* 中央大面积粉紫霓虹光团 - 像装置中间的彩胶+灯管 */
    radial-gradient(ellipse at 50% 40%, rgba(255, 20, 147, 0.20) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.18) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 60%, rgba(0, 229, 255, 0.16) 0%, transparent 40%),
    /* 角落色彩折射 */
    radial-gradient(ellipse at 5% 10%, rgba(255, 20, 147, 0.18) 0%, transparent 35%),
    radial-gradient(ellipse at 95% 90%, rgba(0, 229, 255, 0.18) 0%, transparent 35%),
    /* 暗角 - 边缘重压 */
    radial-gradient(ellipse at center, transparent 25%, rgba(0, 0, 0, 0.55) 100%),
    /* 水平霓虹流线1 */
    linear-gradient(0deg, transparent 29.7%, rgba(0, 229, 255, 0.06) 29.7%, rgba(139, 92, 246, 0.06) 30.3%, transparent 30.3%),
    /* 水平霓虹流线2 */
    linear-gradient(0deg, transparent 59.5%, rgba(255, 20, 147, 0.05) 59.5%, rgba(0, 229, 255, 0.05) 60.2%, transparent 60.2%),
    /* 水平霓虹流线3 */
    linear-gradient(0deg, transparent 84.8%, rgba(139, 92, 246, 0.06) 84.8%, rgba(255, 20, 147, 0.04) 85.5%, transparent 85.5%),
    /* 垂直霓虹流线1 */
    linear-gradient(90deg, transparent 24.7%, rgba(0, 229, 255, 0.04) 24.7%, rgba(139, 92, 246, 0.04) 25.3%, transparent 25.3%),
    /* 垂直霓虹流线2 */
    linear-gradient(90deg, transparent 74.5%, rgba(255, 20, 147, 0.04) 74.5%, rgba(0, 229, 255, 0.04) 75.2%, transparent 75.2%);
  pointer-events: none;
  z-index: 0;
  animation: neonBreath 8s ease-in-out infinite;
}

#app {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ========================================
   引导页
   ======================================== */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080812;
  background-image:
    /* 中央大面积极光团 - 撑起中间区域 */
    radial-gradient(ellipse at 50% 45%, rgba(255, 20, 147, 0.25) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 45%, rgba(0, 229, 255, 0.20) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 55%, rgba(139, 92, 246, 0.22) 0%, transparent 40%),
    /* 角落氛围 */
    radial-gradient(ellipse at 5% 10%, rgba(255, 20, 147, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 95% 90%, rgba(0, 229, 255, 0.15) 0%, transparent 35%),
    /* 暗角 */
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.onboarding-overlay.hidden {
  display: none;
}

.onboarding-card {
  text-align: center;
  max-width: 340px;
  animation: onboardingIn 0.6s ease-out;
}

@keyframes onboardingIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.onboarding-icon {
  font-size: 72px;
  margin-bottom: var(--spacing-lg);
  animation: onboardingBounce 2s ease-in-out infinite;
}

/* 展览归属行 - 开屏 */
.onboarding-exhibit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: 500;
}
.onboarding-exhibit .bracket {
  color: #E8604C;
  font-weight: 700;
  font-size: 13px;
}

@keyframes onboardingBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.onboarding-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: #FFE600;
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.5), 2px 2px 0 #FF1493;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 2px;
}

.onboarding-subtitle {
  font-size: 12px;
  color: #666;
  letter-spacing: 4px;
  margin-bottom: var(--spacing-xl);
}

.onboarding-steps {
  text-align: left;
  margin-bottom: var(--spacing-xl);
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.onboarding-step:last-child {
  border-bottom: none;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #FF1493;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.5);
}

.step-text {
  font-size: 14px;
  color: #ddd;
}

.onboarding-start-btn {
  width: 100%;
  height: 64px;
  background: #FF1493;
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-xl);
  font-family: var(--font-pixel);
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.4), 4px 4px 0 rgba(0,0,0,0.8);
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
  animation: onboardingBtnPulse 2s ease-in-out infinite;
}

@keyframes onboardingBtnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.onboarding-start-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.5), 6px 6px 0 rgba(0,0,0,0.8);
}

.onboarding-start-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3), 2px 2px 0 rgba(0,0,0,0.8);
}

/* ========================================
   加载与错误状态
   ======================================== */
.loading-state, .error-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00E5FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

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

.loading-text {
  color: #555;
  font-size: 14px;
}

.error-text {
  color: #888;
  font-size: 14px;
  margin-bottom: 16px;
}

.retry-btn {
  background: rgba(0, 229, 255, 0.08);
  color: #00E5FF;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:active {
  background: rgba(0, 229, 255, 0.2);
  transform: scale(0.95);
}

/* ========================================
   页面容器与切换
   ======================================== */
.page {
  display: none;
  padding: var(--spacing-md);
  padding-bottom: 120px;
  min-height: 100vh;
  min-height: 100dvh;
}

.page.active {
  display: block;
  animation: pageIn 0.3s ease-out;
}

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

/* ========================================
   顶部导航栏
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #080812 0%, #080812 80%, transparent 100%);
  padding: var(--spacing-md) 0 var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.header-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  text-align: center;
  color: #FFE600;
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.5), 2px 2px 0 #FF1493;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 2px;
}

.header-subtitle {
  font-size: 12px;
  color: #555;
  text-align: center;
  letter-spacing: 4px;
}

/* 展览归属行 - 顶部 */
.header-exhibit {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  letter-spacing: 1.5px;
  margin-top: 4px;
}
.header-exhibit .bracket {
  color: rgba(232, 96, 76, 0.6);
  font-weight: 600;
}

/* ========================================
   分类筛选标签栏
   ======================================== */
.category-tabs {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  flex-shrink: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: #0A0A0A;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  color: #666;
}

.category-tab:hover { background: #141414; }

.category-tab.active {
  color: var(--color-text-primary);
  background: #0A0A0A;
}

.category-tab[data-category="all"].active {
  border-color: #FFE600;
  color: #FFE600;
  box-shadow: 0 0 8px rgba(255, 230, 0, 0.3);
}
.category-tab[data-category="tech"].active {
  border-color: var(--color-tech);
  color: var(--color-tech);
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.3);
}
.category-tab[data-category="internet"].active {
  border-color: var(--color-comm);
  color: var(--color-comm);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}
.category-tab[data-category="economy"].active {
  border-color: var(--color-economy);
  color: var(--color-economy);
  box-shadow: 0 0 8px rgba(255, 230, 0, 0.3);
}
.category-tab[data-category="entertainment"].active {
  border-color: var(--color-entertainment);
  color: var(--color-entertainment);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}
.category-tab[data-category="street"].active {
  border-color: var(--color-street);
  color: var(--color-street);
  box-shadow: 0 0 8px rgba(178, 75, 243, 0.3);
}
.category-tab[data-category="bgm"].active {
  border-color: var(--color-bgm);
  color: var(--color-bgm);
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* ====== 预设混音带横条 (已移至Fix 5区块) ====== */

/* ========================================
   声音卡片网格 - 磁带壳撞色 + 霓虹边框
   ======================================== */
.sounds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

.sound-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

/* 霓虹发光边框 - 像素化细边+glow */
.sound-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  pointer-events: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 1;
  /* 像素化锯齿感 - 细微的阶梯效果 */
  image-rendering: pixelated;
}

.sound-card:hover {
  transform: translate(-2px, -2px);
}
.sound-card:active {
  transform: translate(2px, 2px);
}

.sound-card.playing { animation: cardPulse 0.5s ease-in-out infinite; }

@keyframes cardPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* 磁带壳内部标签区暗层 - 模拟磁带标签窗 */
.sound-card::after {
  content: '';
  position: absolute;
  top: 24%;
  left: 10%;
  right: 10%;
  height: 36%;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 0;
  /* 模拟磁带标签纸的细微横线 */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.06) 4px,
    rgba(0, 0, 0, 0.06) 5px
  );
}

/* ====== 磁带壳实色 - 6分类 ====== */
.sound-card[data-category="tech"] {
  background: #FF1493;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}
.sound-card[data-category="tech"]::before {
  border-color: rgba(255, 150, 200, 0.8);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
}

.sound-card[data-category="internet"] {
  background: #00E5FF;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
.sound-card[data-category="internet"]::before {
  border-color: rgba(128, 240, 255, 0.8);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
}

.sound-card[data-category="economy"] {
  background: #FFE600;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
}
.sound-card[data-category="economy"]::before {
  border-color: rgba(255, 245, 128, 0.8);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
}

.sound-card[data-category="entertainment"] {
  background: #00FF88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.sound-card[data-category="entertainment"]::before {
  border-color: rgba(128, 255, 200, 0.8);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
}

.sound-card[data-category="street"] {
  background: #B24BF3;
  box-shadow: 0 0 10px rgba(178, 75, 243, 0.5);
}
.sound-card[data-category="street"]::before {
  border-color: rgba(200, 150, 255, 0.8);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
}

.sound-card[data-category="bgm"] {
  background: #FF6B35;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}
.sound-card[data-category="bgm"]::before {
  border-color: rgba(255, 170, 128, 0.8);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
}

/* hover增强霓虹光 */
.sound-card[data-category="tech"]:hover { box-shadow: 0 0 18px rgba(255, 20, 147, 0.7); }
.sound-card[data-category="internet"]:hover { box-shadow: 0 0 18px rgba(0, 229, 255, 0.7); }
.sound-card[data-category="economy"]:hover { box-shadow: 0 0 18px rgba(255, 230, 0, 0.7); }
.sound-card[data-category="entertainment"]:hover { box-shadow: 0 0 18px rgba(0, 255, 136, 0.7); }
.sound-card[data-category="street"]:hover { box-shadow: 0 0 18px rgba(178, 75, 243, 0.7); }
.sound-card[data-category="bgm"]:hover { box-shadow: 0 0 18px rgba(255, 107, 53, 0.7); }

/* 已录制状态 - 加强发光 */
.sound-card.in-cart[data-category="tech"] { box-shadow: 0 0 16px rgba(255, 20, 147, 0.8), 0 0 30px rgba(255, 20, 147, 0.3); }
.sound-card.in-cart[data-category="internet"] { box-shadow: 0 0 16px rgba(0, 229, 255, 0.8), 0 0 30px rgba(0, 229, 255, 0.3); }
.sound-card.in-cart[data-category="economy"] { box-shadow: 0 0 16px rgba(255, 230, 0, 0.8), 0 0 30px rgba(255, 230, 0, 0.3); }
.sound-card.in-cart[data-category="entertainment"] { box-shadow: 0 0 16px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.3); }
.sound-card.in-cart[data-category="street"] { box-shadow: 0 0 16px rgba(178, 75, 243, 0.8), 0 0 30px rgba(178, 75, 243, 0.3); }
.sound-card.in-cart[data-category="bgm"] { box-shadow: 0 0 16px rgba(255, 107, 53, 0.8), 0 0 30px rgba(255, 107, 53, 0.3); }

.sound-card.in-cart::before {
  border-color: rgba(255,255,255,0.9) !important;
}

/* 卡片内磁带转轴 */
.sound-card-reels {
  display: flex;
  justify-content: space-around;
  padding: 2px 8px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.sound-card-reel {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 20%, rgba(255,255,255,0.15) 21%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.05) 100%);
  transition: transform var(--transition-fast);
}

.sound-card.in-cart .sound-card-reel {
  animation: miniReelSpin 3s linear infinite;
}

/* 卡片内磁带条 */
.sound-card-tape-strip {
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  margin: 0 6px 2px;
  border-radius: 2px;
  width: calc(100% - 12px);
  position: relative;
  z-index: 1;
}

/* 已录制徽章 */
.sound-card .recorded-badge {
  position: absolute;
  top: 3px;
  right: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #E8604C;
  font-weight: 900;
  letter-spacing: -1px;
  z-index: 5;
  text-shadow: 0 0 6px rgba(232, 96, 76, 0.6);
  line-height: 1;
}

/* 已录制徽章 - 「」红色直角引号 */
.sound-card.in-cart .recorded-badge {
  display: flex;
  animation: bracketPulse 2.5s ease-in-out infinite;
}

@keyframes bracketPulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 6px rgba(232, 96, 76, 0.6); }
  50% { opacity: 0.7; text-shadow: 0 0 3px rgba(232, 96, 76, 0.3); }
}

/* ====== 录制按钮 - 亮黄胶囊按钮 + REC标签 ====== */
/* ====== Fix 1: 卡片试听提示 - 首次出现时脉冲暗示可点击 ====== */
/* ====== 交互式新手引导 (Coach Marks) ====== */
/* ============ 新手引导弹窗 ============ */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  animation: welcomeFadeIn 0.25s ease-out;
}

@keyframes welcomeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.welcome-modal-content {
  background: linear-gradient(145deg, #1a0a3e, #0a1628);
  border: 2px solid #00E5FF;
  border-radius: 16px;
  padding: 28px 24px 20px;
  max-width: 300px;
  width: 85vw;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.welcome-modal-step {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 14px;
  animation: welcomeStepPop 0.3s ease-out;
}

@keyframes welcomeStepPop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.welcome-modal-text {
  font-family: var(--font-chinese);
  font-size: 14px;
  color: #d0d0d0;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 48px;
}

.welcome-modal-text strong {
  color: #00E5FF;
  font-weight: 700;
}

.welcome-modal-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.welcome-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334;
  transition: background 0.2s, transform 0.2s;
}

.welcome-dot.active {
  background: #00E5FF;
  transform: scale(1.4);
}

.welcome-modal-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, #00E5FF, #0091EA);
  color: #000;
  font-family: var(--font-chinese);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.welcome-modal-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}

/* 卡片首次加载微弹 */
.sound-card.first-appear {
  animation: cardAppear 0.4s ease-out both;
}
@keyframes cardAppear {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 卡片试听提示 - 常驻淡化播放图标 */
.card-preview-hint {
  position: absolute;
  bottom: 28px;
  right: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  z-index: 2;
  pointer-events: none;
  transition: all 0.2s;
}
.sound-card:hover .card-preview-hint {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}
.sound-card.playing .card-preview-hint {
  color: #00E5FF;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}
.sound-card.in-cart .card-preview-hint {
  opacity: 0.3;
}

/* ====== Fix 2: REC按钮改为"加入"语义 ====== */
.sound-card:not(.in-cart) .record-btn::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: none;
  border: none;
  box-shadow: none;
  position: relative;
}
.sound-card:not(.in-cart) .record-btn::after {
  content: '+';
  font-family: var(--font-chinese);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}
.sound-card.in-cart .record-btn::after {
  content: '✓';
  font-family: var(--font-chinese);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
.sound-card.in-cart .record-btn::before {
  content: '';
  width: 0;
  height: 0;
  background: none;
  box-shadow: none;
  border: none;
}

.record-btn {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  height: 22px;
  min-width: 44px;
  border-radius: 11px;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  z-index: 3;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  font-size: 10px;
  font-weight: bold;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.record-btn:active {
  transform: translateX(-50%) scale(0.9);
}

.record-btn-icon {
  display: none;
}

/* hover增强 */
.sound-card:not(.in-cart) .record-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
}

/* 已录制状态 */
.sound-card.in-cart .record-btn {
  background: #FFE600;
  border-color: #FFE600;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.7);
}

/* ====== Fix 3: 磁带栏首次有内容时高亮脉冲 ====== */
.tape-deck-bar.first-add {
  animation: tapeDeckHighlight 1.5s ease-out;
}
@keyframes tapeDeckHighlight {
  0% { box-shadow: 0 -4px 30px rgba(255, 230, 0, 0.6); border-top-color: #FFE600; }
  100% { box-shadow: none; border-top-color: #444; }
}

.tape-hint {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #FFE600;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,230,0,0.3);
  white-space: nowrap;
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.tape-hint.show {
  opacity: 1;
  animation: tapeHintFade 3s ease-in-out forwards;
}
@keyframes tapeHintFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(4px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  75% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}

/* ====== Fix 5: 一键编曲更突出 ====== */
.preset-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--spacing-sm);
  padding: 10px;
  background: linear-gradient(135deg, rgba(255,230,0,0.06) 0%, rgba(255,20,147,0.04) 100%);
  border: 1px solid rgba(255,230,0,0.15);
  border-radius: var(--radius-lg);
  position: relative;
}
.preset-bar-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #FFE600;
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(255, 230, 0, 0.4);
  padding-left: 2px;
}
.preset-bar-label::after {
  content: ' ← 新手推荐';
  font-family: var(--font-chinese);
  font-size: 9px;
  color: #FF1493;
  letter-spacing: 0;
  text-shadow: 0 0 6px rgba(255,20,147,0.4);
}
.preset-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.preset-scroll::-webkit-scrollbar { display: none; }
.preset-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 230, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.preset-chip:hover {
  background: rgba(255, 230, 0, 0.1);
  border-color: rgba(255, 230, 0, 0.6);
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.2);
}
.preset-chip:active {
  transform: scale(0.95);
}
.preset-emoji {
  font-size: 18px;
  line-height: 1;
}
.preset-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.preset-name {
  font-size: 11px;
  font-weight: bold;
  color: #FFE600;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(255, 230, 0, 0.3);
}
.preset-desc {
  font-size: 9px;
  color: #999;
  white-space: nowrap;
}
.preset-colors {
  display: flex;
  gap: 2px;
  margin-left: 2px;
}
.preset-color-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes miniReelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sound-card-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.sound-card-icon svg { width: 100%; height: 100%; fill: white; filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.4)); }
.sound-card-name { font-size: 9px; font-weight: bold; color: white; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); line-height: 1.3; position: relative; z-index: 1; }
.sound-card-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
  padding: 1px 4px;
  border-radius: 2px;
  z-index: 2;
  text-shadow: 0 0 3px rgba(0,0,0,0.6);
  pointer-events: none;
}

.play-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.sound-card.playing .play-indicator { opacity: 1; }

.play-bar {
  width: 3px;
  height: 12px;
  background: white;
  border-radius: 1px;
  animation: playBar 0.5s ease-in-out infinite;
}

.play-bar:nth-child(1) { animation-delay: 0s; }
.play-bar:nth-child(2) { animation-delay: 0.1s; }
.play-bar:nth-child(3) { animation-delay: 0.2s; }

@keyframes playBar {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

/* ========================================
   磁带卡座底部栏 - 铬合金金属质感
   ======================================== */
.tape-deck-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 60px;
  /* 铬合金金属渐变 */
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 15%, #2a2a2a 30%, #111 50%, #222 70%, #1a1a1a 85%, #2a2a2a 100%);
  border-top: 2px solid #444;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  cursor: pointer;
}

/* 铬合金横向凹槽纹理 */
.tape-deck-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.02) 3px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* 铬合金顶部高光线 */
.tape-deck-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 10%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 90%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* 粉色指示灯 */
.tape-deck-bar .tape-reel:first-child {
  position: relative;
}
.tape-deck-bar.has-tape .tape-reel:first-child::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  background: #FF1493;
  border-radius: 1px;
  box-shadow: 0 0 6px #FF1493, 0 0 12px rgba(255,20,147,0.5);
  animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 4px #FF1493, 0 0 8px rgba(255,20,147,0.3); }
  50% { opacity: 1; box-shadow: 0 0 8px #FF1493, 0 0 16px rgba(255,20,147,0.6); }
}

/* 转轴 - 金属质感 */
.tape-reel {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #999 18%, #555 19%, #777 40%, #444 60%, #333 100%);
  border: 2px solid #555;
  flex-shrink: 0;
  transition: box-shadow 0.3s;
  position: relative;
  z-index: 3;
}

.tape-deck-bar.has-tape .tape-reel {
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.4);
}

/* 播放时转轴旋转 */
.tape-deck-bar.is-playing .tape-reel {
  animation: reelSpin 1.5s linear infinite;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

@keyframes reelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tape-deck-bar.full .tape-reel {
  animation: reelGlow 2s ease-in-out infinite;
}

/* 磁带窗口容器 */
.tape-window-wrap {
  flex: 1;
  position: relative;
  z-index: 3;
}

/* 磁带窗口 - 深色内嵌 */
.tape-window {
  width: 100%;
  height: 24px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #333;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 2px;
  gap: 1px;
}

/* scanline效果 */
.tape-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  pointer-events: none;
}

.tape-block {
  height: 60%;
  border-radius: 1px;
  min-width: 8px;
  flex-shrink: 0;
}

.tape-window-empty {
  width: 100%;
  height: 60%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1px;
}

/* 播放按钮 - 亮黄 */
.tape-play-btn {
  background: #FFE600;
  color: #000;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 230, 0, 0.3), 2px 2px 0 rgba(0,0,0,0.8);
  transition: all 0.15s;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}

.tape-play-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 4px rgba(255, 230, 0, 0.2), 1px 1px 0 rgba(0,0,0,0.8);
}

.tape-play-btn.playing {
  background: #FF1493;
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.4), 2px 2px 0 rgba(0,0,0,0.8);
}

/* 混音台入口按钮 - 已移至面板内，底栏隐藏 */
.tape-mixer-btn {
  display: none;
}

/* 磁带计数 */
.tape-count {
  display: block;
  text-align: center;
  font-size: 9px;
  color: #555;
  font-family: var(--font-chinese);
  margin-top: 2px;
}

/* 满载霓虹脉动 - 粉色改为白光 */
.tape-deck-bar.full {
  animation: tapeDeckPulse 2s ease-in-out infinite;
}

@keyframes tapeDeckPulse {
  0%, 100% { box-shadow: 0 -2px 12px rgba(255, 255, 255, 0.05); }
  50% { box-shadow: 0 -2px 20px rgba(255, 255, 255, 0.15); }
}

@keyframes reelGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 20, 147, 0.4); }
  50% { box-shadow: 0 0 16px rgba(255, 20, 147, 0.8); }
}

/* 霓虹呼吸 - 模拟彩胶后灯管明暗流动 */
@keyframes neonBreath {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ========================================
   磁带展开面板 - 纯黑+铬合金顶线
   ======================================== */
.tape-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9996;
  pointer-events: none;
  transition: background 0.3s;
}

.tape-panel-overlay.active {
  background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.tape-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 80vh;
  background: #080812;
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(255, 20, 147, 0.14) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 60%, rgba(0, 229, 255, 0.14) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 40%);
  border-top: 2px solid #555;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 9997;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -5px 30px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

/* 顶部铬合金渐变装饰带 - 更鲜明的6分类色 */
.tape-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 20, 147, 0.7) 10%, 
    rgba(0, 229, 255, 0.7) 25%, 
    rgba(255, 230, 0, 0.7) 40%, 
    rgba(0, 255, 136, 0.7) 55%, 
    rgba(178, 75, 243, 0.7) 70%, 
    rgba(255, 107, 53, 0.7) 85%, 
    transparent 100%
  );
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.3), 0 0 8px rgba(0, 229, 255, 0.3);
}

.tape-panel.open {
  transform: translateY(0);
}

.tape-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.tape-panel-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: #FF1493;
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.tape-panel-subtitle {
  display: block;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: #00E5FF;
  letter-spacing: 3px;
  margin-top: 3px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.tape-panel-close {
  background: none;
  border: none;
  color: #555;
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.tape-panel-close:hover {
  color: #FF1493;
}

.tape-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  padding-bottom: 80px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* VHS色偏效果 - 面板背景微弱RGB偏移 */
.tape-panel-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,0,0,0.02) 0%, transparent 2%, transparent 98%, rgba(0,0,255,0.02) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.06) 3px,
      rgba(0, 0, 0, 0.06) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* ====== 卡带可视化区 ====== */
.tape-cassette-visual {
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tape-cassette-shell {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 30%, #222 60%, #1a1a1a 100%);
  border: 2px solid #444;
  border-radius: 12px;
  padding: 12px 16px;
  position: relative;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 16px rgba(0,0,0,0.6);
}

/* 铬合金高光条 */
.tape-cassette-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

/* 凹槽纹理 */
.tape-cassette-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.01) 2px,
    rgba(255, 255, 255, 0.01) 3px
  );
  pointer-events: none;
}

.tape-cassette-reels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tape-cassette-reel {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #aaa 15%, #666 16%, #888 35%, #555 55%, #333 100%);
  border: 2px solid #555;
  position: relative;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s;
}

/* 转轴中心十字 */
.tape-cassette-reel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  background: 
    linear-gradient(0deg, transparent 40%, #666 40%, #666 60%, transparent 60%),
    linear-gradient(90deg, transparent 40%, #666 40%, #666 60%, transparent 60%);
}

/* 播放时面板内转轴旋转 */
.tape-panel.is-playing .tape-cassette-reel {
  animation: reelSpin 1.5s linear infinite;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.tape-cassette-window {
  width: 100%;
  height: 28px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 3px;
  gap: 1px;
  position: relative;
  overflow: hidden;
}

/* VHS扫描线 */
.tape-cassette-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
}

.tape-cassette-label {
  text-align: center;
  margin-top: 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #FFE600;
  text-shadow: 0 0 6px rgba(255, 230, 0, 0.4);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* ====== 面板内音轨列表 ====== */
.tape-panel-tracks {
  padding: 4px 0;
  position: relative;
  z-index: 1;
}

.tape-panel-tracks-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #555;
  letter-spacing: 2px;
  padding: 8px 16px 4px;
}

.tape-panel-track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s;
}

.tape-panel-track:active {
  background: rgba(255, 255, 255, 0.03);
}

.tape-panel-track-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.tape-panel-track-name {
  width: 80px;
  font-size: 12px;
  color: #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.tape-panel-track-loop {
  font-size: 10px;
  color: #FFE600;
  margin-left: -4px;
  flex-shrink: 0;
}

/* 面板内音量滑块 */
.tape-panel-volume-slider {
  flex: 1;
  height: 4px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  min-width: 0;
}

.tape-panel-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #FFE600;
  border: 2px solid #000;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 230, 0, 0.3);
}

.tape-panel-volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #FFE600;
  border: 2px solid #000;
  border-radius: 3px;
  cursor: pointer;
}

.tape-panel-track-remove {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.tape-panel-track-remove:hover {
  border-color: #FF1493;
  color: #FF1493;
}

.tape-panel-track-remove:active {
  background: rgba(255, 20, 147, 0.15);
}

/* ====== 预设混音带区 ====== */
.tape-panel-presets {
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

.tape-panel-presets-header {
  padding: 0 16px 8px;
}

.tape-panel-presets-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #FF1493;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255, 20, 147, 0.4);
}

.tape-panel-presets-subtitle {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
}

.tape-panel-presets-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tape-panel-presets-scroll::-webkit-scrollbar { display: none; }

/* 小卡带形状的预设按钮 */
.tape-preset-cassette {
  flex-shrink: 0;
  width: 80px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #222 100%);
  border: 1.5px solid #444;
  border-radius: 8px;
  padding: 8px 6px 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.tape-preset-cassette::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.tape-preset-cassette:hover {
  border-color: #FFE600;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.2);
}

.tape-preset-cassette:active {
  transform: scale(0.95);
}

.tape-preset-cassette.active {
  border-color: #FF1493;
  box-shadow: 0 0 12px rgba(255, 20, 147, 0.4);
}

.tape-preset-cassette-emoji {
  font-size: 20px;
  line-height: 1;
}

.tape-preset-cassette-name {
  font-size: 9px;
  font-weight: bold;
  color: #ddd;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tape-preset-cassette-colors {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.tape-preset-color-dot {
  width: 5px;
  height: 5px;
  border-radius: 1px;
}

/* ====== 面板底部操作栏 ====== */
.tape-panel-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(8, 8, 18, 0.95) 0%, #080812 100%);
}

.tape-panel-play-btn {
  flex: 1;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  font-family: var(--font-pixel);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3), 3px 3px 0 rgba(0,0,0,0.8);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #00FF88;
  color: #000;
}

.tape-panel-play-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.4), 5px 5px 0 rgba(0,0,0,0.8);
}

.tape-panel-play-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.2), 1px 1px 0 rgba(0,0,0,0.8);
}

.tape-panel-play-btn.playing {
  background: #FF1493;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.4), 3px 3px 0 rgba(0,0,0,0.8);
}

.tape-panel-mixer-btn {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, #FF1493, #B24BF3);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  font-family: var(--font-pixel);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.3), 3px 3px 0 rgba(0,0,0,0.8);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tape-panel-mixer-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0 0 12px rgba(255, 20, 147, 0.4), 5px 5px 0 rgba(0,0,0,0.8);
}

.tape-panel-mixer-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 4px rgba(255, 20, 147, 0.2), 1px 1px 0 rgba(0,0,0,0.8);
}

/* ====== 面板空状态 ====== */
.tape-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  z-index: 1;
}

.tape-panel-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.tape-panel-empty-text {
  font-size: 13px;
  color: #555;
  text-align: center;
  line-height: 1.6;
}

/* 磁带空状态 */
.tape-empty {
  text-align: center;
  padding: 60px var(--spacing-md);
}

.tape-empty-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  opacity: 0.3;
}

.tape-empty-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.tape-empty-text b {
  color: #FFE600;
}

/* ========================================
   混音台页面 - 黑底+霓虹边框
   ======================================== */
.mixer-header { text-align: center; margin-bottom: var(--spacing-lg); position: relative; }
.mixer-title { font-family: var(--font-pixel); font-size: 16px; color: #00E5FF; text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); margin-bottom: var(--spacing-sm); }
.mixer-subtitle { font-size: 12px; color: #555; }

/* 返回按钮 - 添加声音 */
.mixer-back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid #FFE600;
  border-radius: 6px;
  color: #FFE600;
  font-family: var(--font-chinese);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 1;
}
.mixer-back-btn:hover { background: rgba(255,230,0,0.1); }
.mixer-back-btn:active { transform: translateY(-50%) scale(0.95); }

/* 模式切换标签 */
.mixer-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--spacing-lg);
  border: 2px solid #333;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mixer-mode-tab {
  flex: 1;
  padding: 10px 0;
  background: #0A0A0A;
  border: none;
  color: #666;
  font-family: var(--font-chinese);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.mixer-mode-tab:first-child { border-right: 1px solid #333; }
.mixer-mode-tab.active {
  background: #1a1a1a;
  color: #FFE600;
  text-shadow: 0 0 8px rgba(255,230,0,0.4);
}

/* 即时混音面板 */
.instant-controls {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}
.instant-play-btn {
  width: 100%;
  height: 52px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  font-family: var(--font-pixel);
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-pixel);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: #00FF88;
  color: #000;
}
.instant-play-btn:hover { transform: translate(-2px, -2px); box-shadow: 0 0 10px rgba(0,255,136,0.4), var(--shadow-pixel-hover); }
.instant-play-btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-pixel); }
.instant-play-btn.playing { background: #FF1493; color: #fff; }

.instant-track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.instant-track:last-child { border-bottom: none; }
.instant-track-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.instant-track-name {
  width: 80px;
  font-size: 11px;
  color: #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}
.instant-volume-slider {
  flex: 1;
  height: 4px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.instant-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #FFE600;
  border: 2px solid #000;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255,230,0,0.3);
}
.instant-volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #FFE600;
  border: 2px solid #000;
  border-radius: 3px;
  cursor: pointer;
}
.instant-track-remove {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.instant-track-remove:hover { border-color: #FF1493; color: #FF1493; }

/* 步进序列器 */
.sequencer-container {
  background: #0A0A0A;
  border: 2px solid #00E5FF;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.sequencer-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #00E5FF;
  margin-bottom: var(--spacing-md);
  letter-spacing: 1px;
}

/* 步进编号 */
.sequencer-step-nums {
  display: flex;
  padding-left: 80px;
  margin-bottom: var(--spacing-xs);
  gap: 3px;
}

.step-num-label {
  flex: 1;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: #444;
}

.step-num-label.active-step {
  color: #FFE600;
  text-shadow: 0 0 6px rgba(255, 230, 0, 0.5);
}

/* 单行音轨 */
.sequencer-track {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.sequencer-track-name {
  width: 72px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: bold;
  color: #ddd;
  text-shadow: 0 0 4px currentColor;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sequencer-track-name.loop-sound {
  color: #FFE600;
}

.sequencer-cells {
  display: flex;
  gap: 3px;
  flex: 1;
}

.sequencer-cell {
  flex: 1;
  aspect-ratio: 1;
  min-width: 28px;
  max-width: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A0A0A;
}

.sequencer-cell:hover {
  border-color: rgba(255,255,255,0.25);
}

.sequencer-cell.active {
  border-color: currentColor;
  box-shadow: 0 0 8px currentColor, inset 0 0 4px currentColor;
}

.sequencer-cell.active::after {
  content: '';
  width: 60%;
  height: 60%;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* 当前播放步骤高亮 */
.sequencer-cell.current-step {
  border-color: #FFE600 !important;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
}

.sequencer-cell.current-step.active::after {
  background: #FFE600;
}

/* 分类颜色 - 音轨cell */
.sequencer-track[data-category="tech"] .sequencer-cell { color: var(--color-tech); }
.sequencer-track[data-category="internet"] .sequencer-cell { color: var(--color-comm); }
.sequencer-track[data-category="economy"] .sequencer-cell { color: var(--color-economy); }
.sequencer-track[data-category="entertainment"] .sequencer-cell { color: var(--color-entertainment); }
.sequencer-track[data-category="street"] .sequencer-cell { color: var(--color-street); }
.sequencer-track[data-category="bgm"] .sequencer-cell { color: var(--color-bgm); }

.sequencer-track[data-category="tech"] .sequencer-cell.active { background: rgba(255, 20, 147, 0.2); }
.sequencer-track[data-category="internet"] .sequencer-cell.active { background: rgba(0, 229, 255, 0.2); }
.sequencer-track[data-category="economy"] .sequencer-cell.active { background: rgba(255, 230, 0, 0.2); }
.sequencer-track[data-category="entertainment"] .sequencer-cell.active { background: rgba(0, 255, 136, 0.2); }
.sequencer-track[data-category="street"] .sequencer-cell.active { background: rgba(178, 75, 243, 0.2); }
.sequencer-track[data-category="bgm"] .sequencer-cell.active { background: rgba(255, 107, 53, 0.2); }

/* 音量控制行 */
.track-volume-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.track-volume-row:last-child { border-bottom: none; }

.track-volume-name {
  width: 72px;
  font-size: 10px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-volume-slider {
  flex: 1;
  height: 4px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.track-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #FFE600;
  border: 2px solid #000;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 230, 0, 0.3);
}

.track-volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #FFE600;
  border: 2px solid #000;
  border-radius: 3px;
  cursor: pointer;
}

/* BPM 调节 */
.bpm-control {
  background: #0A0A0A;
  border: 2px solid #B24BF3;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  box-shadow: 0 0 12px rgba(178, 75, 243, 0.2);
}

.bpm-label { font-family: var(--font-pixel); font-size: 10px; color: #B24BF3; margin-bottom: var(--spacing-md); }
.bpm-value { font-family: var(--font-pixel); font-size: 32px; color: #FFE600; text-shadow: 0 0 10px rgba(255, 230, 0, 0.5); margin-bottom: var(--spacing-md); }

.bpm-slider {
  width: 100%;
  height: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}

.bpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  background: #B24BF3;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(178, 75, 243, 0.5);
}

.bpm-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  background: #B24BF3;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  cursor: pointer;
}

/* 波形可视化 */
.visualizer-container {
  background: #0A0A0A;
  border: 2px solid #00E5FF;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.visualizer-canvas { width: 100%; height: 80px; display: block; }

.visualizer-label {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  font-size: 10px;
  color: #00E5FF;
  font-family: var(--font-pixel);
}

/* 播放控制 */
.mixer-controls-row {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.play-btn, .stop-btn {
  flex: 1;
  height: 52px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  font-family: var(--font-pixel);
  font-size: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-pixel);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.play-btn {
  background: #00FF88;
  color: #000;
}

.play-btn:hover { transform: translate(-2px, -2px); box-shadow: 0 0 10px rgba(0, 255, 136, 0.4), var(--shadow-pixel-hover); }
.play-btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-pixel); }

.play-btn.playing { background: #FF1493; color: #fff; }

.stop-btn {
  background: #0A0A0A;
  color: #aaa;
}

.stop-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pixel-hover); }
.stop-btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-pixel); }

/* 生成按钮 - 亮黄PLAY TAPE风格 */
.generate-btn {
  width: 100%;
  height: 64px;
  background: #FFE600;
  border: 3px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-xl);
  font-family: var(--font-pixel);
  font-size: 14px;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 230, 0, 0.3), var(--shadow-pixel);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  letter-spacing: 1px;
}

.generate-btn:hover { transform: translate(-3px, -3px); box-shadow: 0 0 20px rgba(255, 230, 0, 0.4), var(--shadow-pixel-hover); }
.generate-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 8px rgba(255, 230, 0, 0.2), 2px 2px 0 rgba(0,0,0,0.8); }

/* ========================================
   生成结果页面
   ======================================== */
.result-page { text-align: center; padding-top: var(--spacing-xl); }

.progress-container { margin-bottom: var(--spacing-xl); }

.progress-text {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: #00E5FF;
  margin-bottom: var(--spacing-md);
  animation: blink 0.5s ease-in-out infinite;
}

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

.progress-bar { height: 16px; background: #0A0A0A; border: 2px solid #00E5FF; border-radius: 8px; overflow: hidden; }

.progress-fill {
  height: 100%;
  background: #00E5FF;
  width: 0%;
  transition: width 0.3s ease-out;
  position: relative;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: progressShine 1s linear infinite;
}

@keyframes progressShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* 分享卡片 */
.share-card {
  background: #0A0A0A;
  border: 3px solid #FFE600;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: 0 0 16px rgba(255, 230, 0, 0.2);
}

.share-card-title { font-family: var(--font-pixel); font-size: 12px; color: #FFE600; margin-bottom: var(--spacing-md); text-shadow: 0 0 6px rgba(255, 230, 0, 0.4); }
.share-card-name { font-family: var(--font-pixel); font-size: 14px; color: #FF1493; margin-bottom: var(--spacing-lg); text-shadow: 0 0 10px rgba(255, 20, 147, 0.5); }
.share-card-icons { display: flex; justify-content: center; gap: var(--spacing-md); margin-bottom: var(--spacing-lg); }

.share-card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.share-card-icon svg { width: 28px; height: 28px; fill: white; }

.share-card-waveform { background: #000; border: 1px solid #00E5FF; border-radius: var(--radius-md); padding: var(--spacing-sm); margin-bottom: var(--spacing-md); }
.share-card-waveform canvas { width: 100%; height: 60px; }

.action-buttons { display: flex; flex-direction: column; gap: var(--spacing-md); }

.action-btn {
  height: 56px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  font-family: var(--font-pixel);
  font-size: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-pixel);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.action-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pixel-hover); }
.action-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,0.8); }

.download-btn { background: #00FF88; color: #000; }
.share-btn { background: #00E5FF; color: #000; }
.remix-btn { background: #B24BF3; color: #fff; }

/* ========================================
   空状态
   ======================================== */
.empty-state { text-align: center; padding: var(--spacing-xl) var(--spacing-md); }
.empty-icon { font-size: 64px; margin-bottom: var(--spacing-md); }
.empty-text { font-size: 14px; color: #555; margin-bottom: var(--spacing-lg); }

/* 混音台空状态 */
.empty-mixer-state {
  text-align: center;
  padding: 60px var(--spacing-md) 40px;
  background: #0A0A0A;
  border: 2px dashed #333;
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}
.empty-mixer-icon { font-size: 80px; margin-bottom: 20px; }
.empty-mixer-title {
  font-size: 18px;
  color: #FF1493;
  margin-bottom: 12px;
  font-family: var(--font-chinese);
}
.empty-mixer-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.6;
}
.empty-mixer-desc b { color: #FFE600; }
.go-browse-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #FF1493;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-chinese);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3), var(--shadow-pixel);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.go-browse-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.8);
}

/* ========================================
   Toast 提示
   ======================================== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0A0A0A;
  border: 2px solid #00FF88;
  border-radius: var(--radius-xl);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 14px;
  font-weight: bold;
  color: #ddd;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease-out;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { border-color: #FF1493; box-shadow: 0 0 12px rgba(255, 20, 147, 0.3); }

/* ========================================
   底部导航
   ======================================== */
.bottom-nav {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 40%);
  padding: var(--spacing-sm) var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  display: flex;
  justify-content: center;
  z-index: 99;
}

.bottom-nav-inner { display: flex; gap: var(--spacing-md); }

.nav-btn {
  height: 40px;
  padding: 0 var(--spacing-xl);
  background: #0A0A0A;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: #555;
}

.nav-btn:hover { background: #141414; }
.nav-btn.active { border-color: #FFE600; color: #FFE600; box-shadow: 0 0 8px rgba(255, 230, 0, 0.3); }
.nav-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ========================================
   底部备案号
   ======================================== */
.site-footer {
  text-align: center;
  padding: 16px var(--spacing-md) 80px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.site-footer a {
  color: #444;
  text-decoration: none;
  opacity: 0.5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-footer a:hover {
  opacity: 0.8;
  color: #00E5FF;
}
.site-footer .beian-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 375px) {
  :root { --spacing-md: 12px; --spacing-lg: 20px; }
  .header-title { font-size: 12px; }
  .sound-card-name { font-size: 8px; }
  .bpm-value { font-size: 24px; }
  .sequencer-track-name { width: 60px; font-size: 9px; }
  .track-volume-name { width: 60px; font-size: 9px; }
  .sequencer-cell { min-width: 24px; }
  .sequencer-step-nums { padding-left: 68px; }
  .tape-deck-bar { gap: 6px; padding: 0 8px; }
  .tape-reel { width: 24px; height: 24px; }
  .tape-play-btn { padding: 5px 8px; font-size: 9px; }
}

@media (min-width: 429px) {
  body { background: #080812; }
  body::after {
    background:
      radial-gradient(ellipse at 50% 40%, rgba(255, 20, 147, 0.18) 0%, transparent 40%),
      radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.16) 0%, transparent 45%),
      radial-gradient(ellipse at 50% 60%, rgba(0, 229, 255, 0.14) 0%, transparent 40%),
      radial-gradient(ellipse at center, transparent 25%, rgba(0, 0, 0, 0.50) 100%);
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ 分享弹窗 ============ */
.share-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.share-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.share-modal-content { position: relative; width: 90%; max-width: 360px; background: #0A0A0A; border: 2px solid #00E5FF; border-radius: var(--radius-lg); padding: var(--spacing-lg); z-index: 1; box-shadow: 0 0 20px rgba(0,229,255,0.2); }
.share-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-md); }
.share-modal-title { font-family: var(--font-pixel); font-size: 14px; color: #00E5FF; text-shadow: 0 0 6px rgba(0,229,255,0.4); }
.share-modal-close { background: none; border: none; color: #555; font-size: 22px; cursor: pointer; padding: 0 4px; line-height: 1; }
.share-modal-close:hover { color: #FF1493; }
.share-modal-desc { font-size: 12px; color: #888; margin-bottom: var(--spacing-md); line-height: 1.6; }
.share-modal-link-row { display: flex; gap: 8px; align-items: center; }
.share-modal-link { flex: 1; background: #000; border: 1px solid #333; border-radius: var(--radius-md); color: #00E5FF; font-family: var(--font-pixel); font-size: 10px; padding: 10px 12px; outline: none; }
.share-modal-link:focus { border-color: #00E5FF; }
.share-modal-copy-btn { background: #FF1493; color: white; border: 2px solid rgba(255,255,255,0.7); border-radius: var(--radius-md); font-family: var(--font-pixel); font-size: 10px; padding: 10px 14px; cursor: pointer; white-space: nowrap; transition: all var(--transition-fast); box-shadow: 0 0 8px rgba(255,20,147,0.3); }
.share-modal-copy-btn:hover { transform: translate(-1px, -1px); box-shadow: 0 0 12px rgba(255,20,147,0.4); }
.share-modal-copy-btn:active { transform: translate(1px, 1px); }
.share-modal-copy-btn.copied { background: #00FF88; box-shadow: 0 0 8px rgba(0,255,136,0.3); }
.share-modal-native-btn { width: 100%; margin-top: var(--spacing-md); height: 44px; background: #00E5FF; color: #000; border: 2px solid rgba(255,255,255,0.7); border-radius: var(--radius-md); font-family: var(--font-pixel); font-size: 11px; cursor: pointer; }

/* ============ Header说明按钮 ============ */
.help-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  height: 26px;
  border-radius: 13px;
  background: rgba(255,20,147,0.85);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.6);
  font-family: var(--font-pixel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px 0 5px;
  box-shadow: 0 0 10px rgba(255,20,147,0.35);
  transition: all var(--transition-fast);
  z-index: 101;
  animation: helpBtnPulse 3s ease-in-out infinite;
}
.help-btn-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}
.help-btn-text {
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 1px;
}
@keyframes helpBtnPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,20,147,0.35); }
  50% { box-shadow: 0 0 18px rgba(255,20,147,0.6); }
}
.help-btn:hover {
  background: #FF1493;
  box-shadow: 0 0 20px rgba(255,20,147,0.6);
  transform: scale(1.05);
}
.help-btn:active { transform: scale(0.95); }

/* ============ 说明弹窗 ============ */
.help-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9998; display: flex; align-items: center; justify-content: center; }
.help-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.help-modal-content { position: relative; width: 90%; max-width: 340px; background: #0A0A0A; border: 2px solid #FFE600; border-radius: var(--radius-lg); padding: var(--spacing-lg); z-index: 1; box-shadow: 0 0 20px rgba(255,230,0,0.15); }
.help-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-lg); }
.help-modal-title { font-family: var(--font-pixel); font-size: 14px; color: #FFE600; text-shadow: 0 0 6px rgba(255,230,0,0.4); }
.help-modal-close { background: none; border: none; color: #555; font-size: 22px; cursor: pointer; padding: 0 4px; line-height: 1; }
.help-modal-close:hover { color: #FF1493; }
.help-step { display: flex; align-items: center; gap: var(--spacing-md); margin-bottom: var(--spacing-md); }
.help-step-num { width: 28px; height: 28px; border-radius: 50%; background: #FF1493; color: white; font-family: var(--font-pixel); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.7); box-shadow: 0 0 6px rgba(255,20,147,0.4); }
.help-step-text { font-size: 13px; color: #ccc; line-height: 1.5; }
.help-modal-ok-btn { width: 100%; margin-top: var(--spacing-lg); height: 44px; background: #FFE600; color: #000; border: 2px solid rgba(255,255,255,0.7); border-radius: var(--radius-md); font-family: var(--font-pixel); font-size: 11px; cursor: pointer; box-shadow: 0 0 8px rgba(255,230,0,0.3); transition: all var(--transition-fast); }
.help-modal-ok-btn:hover { transform: translate(-1px, -1px); box-shadow: 0 0 12px rgba(255,230,0,0.4); }
.help-modal-ok-btn:active { transform: translate(1px, 1px); }

/* ====== 黄色卡片（经济类）REC按钮反色处理 ====== */
.sound-card[data-category="economy"] .record-btn {
  border-color: #000;
  color: #000;
  text-shadow: none;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), inset 0 0 4px rgba(0, 0, 0, 0.1);
}
.sound-card[data-category="economy"] .record-btn::before {
  background: #000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}
.sound-card[data-category="economy"]:not(.in-cart) .record-btn:hover {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4), inset 0 0 6px rgba(0, 0, 0, 0.15);
}
.sound-card[data-category="economy"].in-cart .record-btn {
  background: #000;
  border-color: #000;
  color: #FFE600;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.sound-card[data-category="economy"].in-cart .record-btn::before {
  background: #FFE600;
  box-shadow: 0 0 4px rgba(255, 230, 0, 0.8);
}
.sound-card[data-category="economy"].in-cart .record-btn::after {
  content: 'ON';
  color: #FFE600;
}