/* ==========================================================================
   慕容子诚 个人网站 & 3D粒子音乐空间 - 核心样式设计系统
   ========================================================================== */

:root {
  --bg-paper: #080605;       /* 极深幽暗墨夜黑 (与 3D 粒子系统背景和谐统一) */
  --text-dark: #e2d9cd;       /* 高可读性亮沙石灰 */
  --color-primary: #e8401c;   /* 烈焰红高科技指示色 */
  --color-accent: #d2a45a;    /* 亮琥珀金，提升暗色模式下的易读性和品质感 */
  --color-border: rgba(226, 217, 205, 0.12); /* 亮沙石半透明极细线 */
  --color-weak: #181410;      /* 极深棕炭黑，用于弱化区块背景 */
  
  /* 映射渐变色：在暗色模式下使颜色更带发光霓虹感 */
  --glow-cyan: linear-gradient(135deg, #e8401c 0%, #ff5e3a 100%);
  --glow-orange: linear-gradient(135deg, #d2a45a 0%, #ffbe59 100%);
  --glow-purple: linear-gradient(135deg, #080605 0%, #e8401c 100%);
  --glow-green: linear-gradient(135deg, #d2a45a 0%, rgba(226, 217, 205, 0.3) 100%);

  /* 玻璃拟态 (Glassmorphism) 深邃版 */
  --glass-bg: rgba(16, 12, 10, 0.65);
  --glass-border: rgba(226, 217, 205, 0.08);
  --glass-border-hover: rgba(232, 64, 28, 0.4);
  
  --shadow-neon-cyan: 0 15px 35px rgba(232, 64, 28, 0.15);
  --shadow-neon-orange: 0 15px 35px rgba(210, 164, 90, 0.15);

  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-paper);
}

body {
  width: 100%;
  color: var(--text-dark);
  font-family: 'Outfit', 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  background-color: var(--bg-paper);
}

/* 2. 背景 WebGL Canvas 粒子固定层 */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.global-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}

/* ==========================================================================
   顶部固定导航栏 (Global Header)
   ========================================================================== */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 6% 36px; /* 底部留出 36px 空间给贯穿的常驻提示栏 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(8, 6, 5, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.global-header.header-scrolled {
  padding: 12px 6% 28px; /* 滚动时底部保留 28px */
  background: rgba(8, 6, 5, 0.92);
  border-bottom: 1px solid var(--color-border);
}

.brand-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.brand-logo i {
  color: var(--color-primary);
  font-style: italic;
}

.brand-logo:hover {
  color: var(--color-primary);
}

/* 3D 维度切换按钮控制面板 */
.floating-engine-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(226, 217, 205, 0.04);
  border: 1px solid var(--color-border);
  padding: 6px 16px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.floating-engine-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  opacity: 0.6;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-engine-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  opacity: 0.8;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 12px;
  transition: var(--transition-fast);
}

.floating-engine-btn:hover {
  opacity: 1;
  background: rgba(226, 217, 205, 0.08);
}

.floating-engine-btn.active {
  color: #ffffff;
  background: var(--color-primary);
  opacity: 1;
  text-shadow: none;
}

/* 导航项 */
.desktop-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dark);
  opacity: 0.8;
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 4px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
  opacity: 1;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
  padding: 4px;
}

.mobile-menu-btn .bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  transform: rotate(-45deg);
}

/* 移动端导航抽屉 */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(2, 2, 5, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav-panel.active {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  color: #00f2fe;
  transform: scale(1.1);
}

/* ==========================================================================
   单页滑动 Section 基础定义
   ========================================================================== */
.scroll-section {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8% 80px;
}

.content-section {
  background: rgba(16, 12, 10, 0.55);
  border-top: 1px solid var(--color-border);
}

/* 模块标题通用组件 */
.section-title-wrapper {
  margin-bottom: 56px;
  position: relative;
}

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-primary);
  text-shadow: none;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-dark);
}

/* ==========================================================================
   Section 1: Hero Player (落地极客控制台播放器)
   ========================================================================== */
#player-hero {
  padding-top: 100px;
  align-items: center;
  justify-content: center;
}

.music-console-panel {
  position: fixed;
  top: 22px;
  right: 320px; /* 桌面端靠右边对齐 */
  left: auto;
  z-index: 1005;
  width: 58px;
  height: 58px;
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
              height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-radius 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
              padding 0.4s ease, 
              opacity 0.4s ease, 
              top 0.4s ease, 
              transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.global-header.header-scrolled ~ .music-console-panel {
  top: 14px; /* 滚动时平滑上移 */
}

/* 展开态类名 - 设置面板 */
.music-console-panel.expanded {
  width: 320px;
  height: 430px; /* 容纳设置与歌单 */
  border-radius: 20px;
  padding: 24px 20px 16px;
  overflow: hidden;
}

.music-console-panel:hover {
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px rgba(232, 64, 28, 0.15);
}

/* 播放时沉浸式半隐藏（折叠态隐退为微光球） */
.music-console-panel.panel-hidden {
  opacity: 0.35;
  transform: scale(0.92);
}

.music-console-panel.panel-hidden:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* ==========================================================================
   胶囊式极简播放控制栏 (未展开态)
   ========================================================================== */
.music-console-panel:not(.expanded) {
  width: 220px;
  height: 38px;
  border-radius: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.music-console-panel:not(.expanded) .console-mini-indicator {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 1;
  pointer-events: auto;
}

/* 胶囊内的播放按钮 */
.capsule-play-btn {
  background: var(--color-primary);
  border: none;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 10px;
  flex-shrink: 0;
}

.capsule-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(232, 64, 28, 0.4);
}

/* 胶囊内的歌曲名 */
.capsule-song-info {
  flex: 1;
  margin: 0 10px;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.capsule-song-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  width: 100%;
  text-align: left;
}

/* 胶囊内的设置按钮 */
.capsule-settings-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  opacity: 0.65;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition-fast);
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.capsule-settings-btn:hover {
  opacity: 1;
  color: var(--color-primary);
  transform: rotate(45deg);
}

/* 展开态下的内容层 */
.console-expanded-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.music-console-panel.expanded .console-expanded-content {
  opacity: 1;
  pointer-events: auto;
}

/* 展开态右上角收起按钮 */
.console-close-trigger-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dark);
  opacity: 0.5;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-fast);
  padding: 4px;
  z-index: 2;
}

.console-close-trigger-btn:hover {
  opacity: 1;
  color: var(--color-primary);
  transform: translateY(2px);
}

/* 极简折叠态星轨播放指示器 */
.console-mini-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  opacity: 1;
  z-index: 3;
}

.music-console-panel.expanded .console-mini-indicator {
  opacity: 0;
  pointer-events: none;
}

.mini-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  position: absolute;
  bottom: 8px;
  height: 8px;
}

.mini-bar {
  width: 2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.music-console-panel.playing-anim .mini-bar {
  animation: jumpEqualizer 0.8s ease-in-out infinite alternate;
}

.music-console-panel.playing-anim .mini-bar:nth-child(1) { animation-delay: 0.1s; }
.music-console-panel.playing-anim .mini-bar:nth-child(2) { animation-delay: 0.3s; }
.music-console-panel.playing-anim .mini-bar:nth-child(3) { animation-delay: 0.2s; }

.mini-control-icon {
  font-size: 20px;
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.music-console-panel.playing-anim .mini-control-icon i {
  animation: rotateDisc 4s linear infinite;
}

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

.mini-song-info {
  position: absolute;
  right: 58px;
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.console-mini-indicator:hover .mini-song-info {
  opacity: 1;
  transform: translateX(0);
}

.music-meta-info {
  text-align: center;
  margin-bottom: 12px;
}

.music-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 进度槽 */
.console-progress-wrapper {
  width: 100%;
  height: 4px;
  background: rgba(226, 217, 205, 0.12);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  margin-bottom: 8px;
}

.console-progress-fill {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(232, 64, 28, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.console-progress-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 0 8px rgba(232, 64, 28, 0.6);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.console-progress-wrapper:hover .console-progress-handle {
  transform: translate(-50%, -50%) scale(1);
}

.console-progress-wrapper:hover {
  height: 6px;
}

.console-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-dark);
  opacity: 0.6;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* 按钮行 */
.console-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.console-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  opacity: 0.7;
  font-size: 13px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.console-btn:hover {
  color: var(--color-primary);
  background: rgba(232, 64, 28, 0.05);
  opacity: 1;
}

.console-btn.active-loop {
  color: var(--color-primary);
  opacity: 1;
  text-shadow: none;
}

.console-btn.media-step {
  font-size: 16px;
}

.console-btn-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text-dark);
  border: none;
  color: var(--bg-paper);
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.console-btn-play:hover {
  transform: scale(1.08);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(232, 64, 28, 0.25);
}

/* ==========================================================================
   滚动歌词模块 (Lyrics Glass Scroll System)
   ========================================================================== */
.player-lyrics-window {
  width: 100%;
  height: 30px;
  overflow: hidden;
  position: relative;
  margin-top: -4px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  /* 制作歌词上下边缘羽化淡出的半透明渐变罩 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.lyrics-scroll-wrap {
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lyric-line {
  font-size: 11px;
  line-height: 24px;
  color: var(--text-dark);
  opacity: 0.35;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  text-align: center;
}

.lyric-line.active {
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  color: var(--color-primary);
  text-shadow: 0 0 12px rgba(232, 64, 28, 0.5);
  transform: scale(1.05);
}

/* ==========================================================================
   粒子切换模块 (Particle Switcher Row)
   ========================================================================== */
.particle-effect-control-row {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  margin-bottom: 10px;
}

.particle-control-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-dark);
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.particle-control-buttons {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mini-particle-btn {
  background: rgba(226, 217, 205, 0.02);
  border: 1px solid rgba(226, 217, 205, 0.06);
  color: var(--text-dark);
  opacity: 0.6;
  font-size: 9px;
  padding: 4px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.mini-particle-btn:hover {
  background: rgba(232, 64, 28, 0.05);
  border-color: rgba(232, 64, 28, 0.2);
  opacity: 1;
}

.mini-particle-btn.active {
  background: rgba(232, 64, 28, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
  opacity: 1;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(232, 64, 28, 0.12);
}

/* ==========================================================================
   播放列表模块 (Playlist Glass Styles)
   ========================================================================== */
.playlist-wrapper {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}

.playlist-toggle-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  opacity: 0.6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 6px 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.playlist-toggle-btn {
  pointer-events: none;
}

.playlist-toggle-btn:hover {
  opacity: 0.6;
}

.playlist-toggle-btn i {
  display: none; /* 隐藏原小箭头 */
}

.playlist-container {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              opacity 0.4s ease, 
              margin-top 0.4s ease;
}

/* 常驻展开态面板默认显示播放列表歌单 */
.music-console-panel.expanded .playlist-container {
  max-height: 120px;
  margin-top: 8px;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

/* 歌曲项 */
.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(226, 217, 205, 0.02);
  border: 1px solid rgba(226, 217, 205, 0.04);
  cursor: pointer;
  transition: var(--transition-fast);
}

.playlist-item:hover {
  background: rgba(232, 64, 28, 0.04);
  border-color: rgba(232, 64, 28, 0.15);
  transform: translateX(4px);
}

.playlist-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.playlist-item-meta {
  display: flex;
  flex-direction: column;
}

.playlist-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.playlist-item-artist {
  font-size: 9px;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-top: 2px;
}

.playlist-item-right {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  opacity: 0.6;
  background: rgba(226, 217, 205, 0.04);
  border: 1px solid rgba(226, 217, 205, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

/* 激活状态 */
.playlist-item.active {
  background: rgba(232, 64, 28, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(232, 64, 28, 0.08);
}

.playlist-item.active .playlist-item-title {
  color: var(--color-primary);
  font-weight: 700;
  text-shadow: none;
}

.playlist-item.active .playlist-item-right {
  color: var(--color-primary);
  border-color: rgba(232, 64, 28, 0.25);
  background: rgba(232, 64, 28, 0.06);
  text-shadow: none;
}

/* 正在播放的 CSS 音频律动波形 (Equalizer Jump Waves) */
.eq-bars-anim {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 12px;
  height: 12px;
}

.eq-bar {
  width: 2px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
  animation: jumpEqualizer 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { animation-delay: 0.1s; height: 10px; }
.eq-bar:nth-child(2) { animation-delay: 0.35s; height: 6px; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; height: 8px; }

@keyframes jumpEqualizer {
  from {
    height: 2px;
  }
  to {
    height: 12px;
  }
}

/* 自定义发光滚动条 */
.playlist-container::-webkit-scrollbar {
  width: 3px;
}

.playlist-container::-webkit-scrollbar-track {
  background: rgba(226, 217, 205, 0.02);
}

.playlist-container::-webkit-scrollbar-thumb {
  background: rgba(226, 217, 205, 0.15);
  border-radius: 10px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ==========================================================================
   启动/播放防静音提示覆盖层 (面板全遮罩)
   ========================================================================== */
.player-action-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: rgba(8, 6, 5, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;

  /* 默认在折叠的音乐小圆球中彻底隐形，避免文字和遮罩溢出截断 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 仅在控制面板处于展开状态（.expanded）且用户尚未点击唤醒时显示遮罩 */
.music-console-panel.expanded .player-action-overlay:not(.dismissed) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.player-action-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.prompt-icon {
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 14px;
  animation: pulseIcon 1.8s infinite ease-in-out;
}

.prompt-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.prompt-subtitle {
  font-size: 11px;
  color: var(--text-dark);
  opacity: 0.6;
  letter-spacing: 1.5px;
}

/* 滚动探索提示 */
.scroll-discover-hint {
  position: absolute;
  bottom: 4vh;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.scroll-discover-hint:hover {
  color: var(--color-primary);
  opacity: 1;
}

.hint-text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hint-arrow {
  font-size: 12px;
  animation: bounceArrow 2s infinite;
}

/* ==========================================================================
   Section 2: ABOUT (关于作者)
   ========================================================================== */
.about-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.about-card-left {
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  padding: 48px;
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.about-name {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-bio {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
}

.about-detail-p {
  font-size: 14.5px;
  color: var(--text-dark);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 30px;
}

.about-quote {
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--text-dark);
}

/* 跑分数据卡片 */
.about-stats-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-box {
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease, text-shadow 0.3s ease;
}

.stat-box:nth-child(1) .stat-number { color: var(--color-primary); }
.stat-box:nth-child(2) .stat-number { color: var(--text-dark); }
.stat-box:nth-child(3) .stat-number { color: var(--color-accent); }

.stat-label {
  font-size: 12px;
  color: var(--text-dark);
  opacity: 0.7;
  letter-spacing: 2px;
  font-weight: 500;
}

/* ==========================================================================
   Section 3: RESOURCES (资源卡片)
   ========================================================================== */
.resource-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.resource-card {
  position: relative;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--color-border);
  padding: 40px 36px;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.resource-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(232, 64, 28, 0.05), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.resource-card:hover .resource-card-glow {
  opacity: 1;
}

.resource-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-neon-cyan);
}

.resource-card.recommend-c:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-neon-orange);
}

.resource-content {
  transform: translateZ(40px);
}

.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.resource-category {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-dark);
  opacity: 0.6;
}

.resource-badge {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
}

.resource-badge.badge-rec {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(210, 164, 90, 0.12);
}

.resource-badge.badge-hot {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(232, 64, 28, 0.12);
}

.resource-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.resource-desc {
  font-size: 13.5px;
  color: var(--text-dark);
  opacity: 0.75;
  line-height: 1.7;
  margin-bottom: 28px;
}

.resource-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 12px;
}

.resource-meta {
  color: var(--text-dark);
  opacity: 0.6;
}

.resource-meta strong {
  color: var(--text-dark);
  font-family: 'DM Mono', monospace;
}

.resource-download-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.resource-card.recommend-c .resource-download-btn {
  color: var(--color-accent);
}

.resource-card:hover .resource-download-btn {
  transform: translateX(4px);
}

/* ==========================================================================
   Section 4: TUTORIALS (教程卡片)
   ========================================================================== */
.tutorial-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.tutorial-card {
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
}

.tutorial-card:hover {
  background: rgba(232, 64, 28, 0.02);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(26, 18, 8, 0.05);
  transform: translateX(8px);
}

.tutorial-left-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tutorial-icon {
  font-size: 26px;
  width: 54px;
  height: 54px;
  background: rgba(226, 217, 205, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.tutorial-card:hover .tutorial-icon {
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(232, 64, 28, 0.15);
}

.tutorial-texts {
  max-width: 650px;
}

.tutorial-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  opacity: 0.6;
  margin-bottom: 6px;
  display: flex;
  gap: 16px;
}

.tutorial-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tutorial-excerpt {
  font-size: 13px;
  color: var(--text-dark);
  opacity: 0.75;
  line-height: 1.6;
}

.tutorial-enter-arrow {
  font-size: 16px;
  color: var(--text-dark);
  opacity: 0.5;
  transition: var(--transition-fast);
}

.tutorial-card:hover .tutorial-enter-arrow {
  color: var(--color-primary);
  opacity: 1;
  transform: translateX(4px);
}


/* ==========================================================================
   Section 6: CONTACT (页脚联系反馈)
   ========================================================================== */
.contact-box-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 80px;
  width: 100%;
}

.contact-form-side {
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  padding: 40px 36px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.contact-notice {
  font-size: 14px;
  color: var(--text-dark);
  opacity: 0.8;
  margin-bottom: 24px;
}

.contact-label-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

/* 极极简反馈输入栏 */
.feedback-input-row {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  background: rgba(226, 217, 205, 0.03);
  overflow: hidden;
  padding: 4px;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

.feedback-input-row:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(232, 64, 28, 0.15);
}

.feedback-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-dark);
  padding: 10px 20px;
  font-size: 13.5px;
}

.feedback-submit-btn {
  background: rgba(226, 217, 205, 0.1);
  border: none;
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.feedback-submit-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(232, 64, 28, 0.4);
}

.feedback-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.agreement-checkbox {
  margin-top: 4px;
  accent-color: var(--color-primary);
}

.agreement-label {
  font-size: 10px;
  color: var(--text-dark);
  opacity: 0.6;
  line-height: 1.4;
  cursor: pointer;
}

/* 合作详情 */
.contact-details-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.social-link-item {
  position: relative;
}

.social-link-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dark);
  font-size: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 微信专属品牌绿 */
.social-link-item.weixin a:hover {
  background: rgba(7, 193, 96, 0.1);
  border-color: #07c160;
  color: #07c160;
  box-shadow: 0 8px 25px rgba(7, 193, 96, 0.3), inset 0 0 10px rgba(7, 193, 96, 0.2);
  text-shadow: 0 0 10px rgba(7, 193, 96, 0.5);
  transform: translateY(-4px);
}

/* 抖音极光青 */
.social-link-item.tiktok a:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.3), inset 0 0 10px rgba(0, 242, 254, 0.2);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transform: translateY(-4px);
}

/* 小红书热情红 */
.social-link-item.redbook a:hover {
  background: rgba(255, 36, 66, 0.1);
  border-color: #ff2442;
  color: #ff2442;
  box-shadow: 0 8px 25px rgba(255, 36, 66, 0.3), inset 0 0 10px rgba(255, 36, 66, 0.2);
  text-shadow: 0 0 10px rgba(255, 36, 66, 0.5);
  transform: translateY(-4px);
}

.social-link-item.redbook a .redbook-text {
  font-size: 10px;
  font-weight: 900;
  font-family: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  letter-spacing: -1.5px;
  display: inline-block;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-link-item.redbook a:hover .redbook-text {
  transform: scale(1.05);
}

/* QQ极速蓝 */
.social-link-item.qq a:hover {
  background: rgba(18, 183, 245, 0.1);
  border-color: #12b7f5;
  color: #12b7f5;
  box-shadow: 0 8px 25px rgba(18, 183, 245, 0.3), inset 0 0 10px rgba(18, 183, 245, 0.2);
  text-shadow: 0 0 10px rgba(18, 183, 245, 0.5);
  transform: translateY(-4px);
}

/* 邮箱温暖橙 */
.social-link-item.email a:hover {
  background: rgba(255, 153, 0, 0.1);
  border-color: #ff9900;
  color: #ff9900;
  box-shadow: 0 8px 25px rgba(255, 153, 0, 0.3), inset 0 0 10px rgba(255, 153, 0, 0.2);
  text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
  transform: translateY(-4px);
}

/* Tooltip 气泡动效 */
.social-link-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(16, 12, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.social-link-item::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: rgba(16, 12, 10, 0.95) transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
}

.social-link-item:hover::after,
.social-link-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .contact-social-links {
    justify-content: center;
    gap: 12px;
  }
  .social-link-item a {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

/* 页面底部 */
.footer-details-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.footer-slogan {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dark);
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.footer-bottom-row {
  display: flex;
  justify-content: center;
}

.copyright-text {
  font-size: 10px;
  color: var(--text-dark);
  opacity: 0.6;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   磨砂玻璃模态框 (Modal Style)
   ========================================================================== */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 120;
  display: none; /* 由 JS 激活 */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-wrapper.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 6, 5, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  background: rgba(16, 12, 10, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 48px;
  overflow-y: auto;
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(232, 64, 28, 0.04);
  animation: modalScaleIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-dark);
  opacity: 0.6;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--color-primary);
  opacity: 1;
}

.modal-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.modal-category-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--color-primary);
  border: 1px solid rgba(232, 64, 28, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(232, 64, 28, 0.05);
}

.modal-main-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-dark);
}

.modal-body-content {
  font-size: 14px;
  color: var(--text-dark);
  opacity: 0.85;
  line-height: 1.8;
}

.modal-body-content p {
  margin-bottom: 16px;
}

.modal-body-content strong {
  color: var(--text-dark);
  font-weight: 700;
}

.modal-body-content .code-block {
  background: rgba(226, 217, 205, 0.04);
  border: 1px solid var(--color-border);
  color: var(--text-dark);
  padding: 16px;
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12.5px;
  margin: 16px 0;
  white-space: pre-wrap;
  word-break: break-all;
}


/* ==========================================================================
   动画定义 (Keyframes)
   ========================================================================== */
@keyframes pulseIcon {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(232, 64, 28, 0.4));
  }
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   响应式适配媒体查询 (Media Queries)
   ========================================================================== */

/* 平板与大屏手势 */
@media (max-width: 992px) {
  .global-header {
    padding: 20px 5%;
  }

  .floating-engine-control {
    display: none; /* 中屏幕隐藏 3D 控制以防紧凑排版溢出 */
  }

  .about-grid-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .resource-grid-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }


  .contact-box-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* 手机适配层 */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .scroll-section {
    padding: 100px 5% 60px;
  }

  .music-console-panel {
    position: fixed;
    top: 14px;
    right: 60px; /* 靠在汉堡菜单左侧 */
    left: auto;
    width: 170px; /* 手机端胶囊稍微缩窄，防溢出 */
    height: 38px;
    padding: 0;
  }

  .music-console-panel.expanded {
    position: fixed;
    top: 80px;
    left: 20px;
    right: 20px;
    width: calc(100vw - 40px);
    height: 420px; /* 展开态设置与歌单面板高度 */
    padding: 24px 20px 16px;
    overflow: hidden;
  }

  .playlist-item {
    padding: 10px 14px;
  }


  .modal-card {
    padding: 30px 24px;
  }
}

/* ==========================================================================
   深度增强自动隐藏与沉浸模式 (Immersive Mode & Wakeup Bubble & Toast)
   ========================================================================== */

/* 沉浸式按钮激活态 */
.console-btn.active-immersive {
  color: var(--color-primary);
  opacity: 1;
}

/* 全屏粒子唤醒悬浮球容器 */
.console-wakeup-wrapper {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.5s;
}

/* 激活展示 */
.console-wakeup-wrapper.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 呼吸发光玻璃球 */
.wakeup-circle-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 12, 10, 0.9);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 15px rgba(232, 64, 28, 0.15);
  transition: all 0.3s ease;
  animation: wakeupPulse 2s infinite ease-in-out;
}

.wakeup-circle-icon i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.wakeup-circle-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 25px rgba(232, 64, 28, 0.3);
  transform: scale(1.1);
  color: #ffffff;
}

.wakeup-circle-icon:hover i {
  transform: rotate(45deg);
}

/* 悬停说明气泡标签 */
.wakeup-bubble-label {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(16, 12, 10, 0.95);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(232, 64, 28, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.console-wakeup-wrapper:hover .wakeup-bubble-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 极客风磨砂玻璃 Toast 提示框 */
.cyber-toast {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(16, 12, 10, 0.95);
  border: 1px solid var(--color-border);
  color: var(--text-dark);
  font-family: 'DM Mono', 'Noto Sans SC', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 24px;
  border-radius: 30px;
  z-index: 9999;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 64, 28, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.cyber-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cyber-toast.toast-info {
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 64, 28, 0.15);
}

/* 呼吸发光动画 */
@keyframes wakeupPulse {
  0% {
    box-shadow: 0 0 15px rgba(232, 64, 28, 0.1);
    border-color: var(--color-border);
  }
  50% {
    box-shadow: 0 0 25px rgba(232, 64, 28, 0.2);
    border-color: var(--color-primary);
  }
  100% {
    box-shadow: 0 0 15px rgba(232, 64, 28, 0.1);
    border-color: var(--color-border);
  }
}

/* 手机自适应唤醒球定位 */
@media (max-width: 768px) {
  .console-wakeup-wrapper {
    bottom: 18%; /* 手机端拉高一些，避免被返回顶部或其他提示遮挡 */
  }
}

/* ==========================================================================
   弹幕系统样式层 (Barrage/Danmaku Floating & UI Styles)
   ========================================================================== */
.danmaku-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* 绝对不能阻碍用户点击底下的元素 */
  z-index: 5; /* 飘在 Three.js 粒子背景之上，但在普通 UI 菜单之下 */
  overflow: hidden;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  will-change: transform;
  pointer-events: none;
  animation: danmakuMove 10s linear forwards;
}

/* 用户弹幕尊贵样式：带有淡淡发光微晶描边 */
.danmaku-user-item {
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(232, 64, 28, 0.25);
  animation: danmakuMove 9s linear forwards; /* 用户弹幕略微走得快一点点 */
}

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

/* 弹幕输入框容器（毛玻璃、居中对齐） */
.danmaku-input-container {
  position: absolute;
  bottom: 110px; /* 在发现引导字样的上方 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 5px 5px 16px;
  border-radius: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.02);
  width: 340px;
  max-width: 85vw;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.danmaku-input-container:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 10px 35px rgba(232, 64, 28, 0.18), inset 0 0 16px rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.06);
}

/* 弹幕发送成功时的瞬间提示色霓虹发光动效 */
.danmaku-input-container.success-pulse {
  border-color: #00ff88 !important;
  box-shadow: 0 10px 35px rgba(0, 255, 136, 0.35), inset 0 0 16px rgba(0, 255, 136, 0.15) !important;
  background: rgba(0, 255, 136, 0.05) !important;
}

.danmaku-input-container.success-pulse button {
  background: #00ff88 !important;
  color: #080605 !important;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5) !important;
}

.danmaku-input-container input {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 12px;
  flex: 1;
  outline: none;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.danmaku-input-container input::placeholder {
  color: rgba(226, 217, 205, 0.35);
}

.danmaku-input-container button {
  background: var(--text-dark);
  border: none;
  color: var(--bg-paper);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 11px;
}

.danmaku-input-container button:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: scale(1.06) rotate(-15deg);
  box-shadow: 0 4px 15px rgba(232, 64, 28, 0.3);
}

.danmaku-input-container button:active {
  transform: scale(0.96);
}

/* 手机端输入框稍微拉窄，防溢出 */
@media (max-width: 480px) {
  .danmaku-input-container {
    bottom: 95px;
    width: 280px;
    padding-left: 12px;
  }
  .danmaku-input-container input {
    font-size: 11px;
  }
}

/* 弹幕一键清理微型按钮 */
.danmaku-clear-btn {
  background: none !important;
  border: none !important;
  color: var(--text-dark) !important;
  opacity: 0.35;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 12px;
  width: 28px !important;
  height: 28px !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.danmaku-clear-btn:hover {
  opacity: 1 !important;
  color: #ff3366 !important; /* 警告型亮粉红 */
  transform: scale(1.12);
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
}

.danmaku-clear-btn:active {
  transform: scale(0.92);
}

/* 静态提示词容器（在标题底部流动） */
.danmaku-hints-container {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 28px; /* 精致窄条 */
  background: rgba(16, 12, 10, 0.45); /* 稍微深一丁点的黑底带，呈现出红框框起的条框效果 */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(226, 217, 205, 0.08); /* 顶部极细分隔线，突出边界 */
  padding: 0 6%;
  display: flex;
  align-items: center;
  z-index: 99;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.global-header.header-scrolled .danmaku-hints-container {
  height: 24px; /* 滚动时条带更窄更细 */
}

.danmaku-hints-container .hint-prefix {
  color: var(--color-primary);
  margin-right: 6px;
  opacity: 0.85;
  flex-shrink: 0;
}

/* 跑马灯视口，占满剩余全宽并提供边缘羽化遮罩 */
.hint-flow-viewport {
  flex: 1; /* 占满剩余全屏空间 */
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

/* 跑马灯流动轨道，执行无缝平移 */
.hint-flow-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-flow 25s linear infinite; /* 25秒的平滑匀速循环流动 */
}

.hint-flow-span {
  display: inline-block;
  padding-right: 40px; /* 两组文本之间的间距 */
  color: var(--text-dark);
  opacity: 0.65;
  font-size: 10px;
}

@keyframes marquee-flow {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0); /* 跑过总宽的一半时实现无缝循环 */
  }
}

/* 手机端标语微调，自适应全宽流动 */
@media (max-width: 768px) {
  .danmaku-hints-container {
    padding: 0 5%; /* 匹配手机端 header 左右边距 */
  }
}
