/* 全局重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 网易云音乐风格主题变量 */
:root {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f0f0;
  --sidebar-bg: #121212;
  --player-bg: #282828;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --text-sidebar: #b3b3b3;
  --accent: #e83838;
  --accent-hover: #ff4a4a;
  --card-bg: #ffffff;
  --card-hover: #f0f0f0;
  --border-color: #dddddd;
  --scrollbar-thumb: #cccccc;
  --scrollbar-track: #f0f0f0;
}

/* 深色主题变量 */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;
  --sidebar-bg: #000000;
  --player-bg: #181818;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-light: #ffffff;
  --text-sidebar: #b3b3b3;
  --accent: #e83838;
  --accent-hover: #ff4a4a;
  --card-bg: #282828;
  --card-hover: #333333;
  --border-color: #333333;
  --scrollbar-thumb: #444444;
  --scrollbar-track: #2d2d2d;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  height: 100%;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* 应用容器 */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 左侧导航栏 */
.sidebar {
  width: 240px;
  background-color: var(--sidebar-bg);
  color: var(--text-sidebar);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.app-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--text-sidebar);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.nav-item.active .nav-link {
  background-color: rgba(232, 56, 56, 0.2);
  color: var(--accent);
}

.nav-icon {
  margin-right: 16px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 18px;
}

.username {
  font-weight: 500;
  color: var(--text-light);
}

/* 主内容区域 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* 顶部搜索栏/导航栏 */
.top-bar {
  position: sticky;
  top: 0;
  padding: 16px 24px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

/* 滚动时的样式变化 */
.top-bar.scrolled {
  padding: 10px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
  flex: 1;
  max-width: 500px;
  margin-right: 20px;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.top-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background-color: var(--card-hover);
}

/* 移动端导航栏调整 */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 999;
  }
  
  .top-bar.scrolled {
    padding: 8px 16px;
  }
  
  .search-container {
    max-width: 200px;
    margin-right: 10px;
  }
  
  .search-input {
    font-size: 13px;
    padding: 6px 12px 6px 36px;
  }
  
  .action-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .search-container {
    max-width: 150px;
  }
  
  .search-input {
    font-size: 12px;
    padding: 6px 8px 6px 32px;
  }
  
  .top-actions {
    gap: 8px;
  }
  
  .action-btn {
    width: 32px;
    height: 32px;
  }
}

/* 汉堡菜单 - 默认隐藏，在移动端显示 */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger-menu:active {
  transform: scale(0.9);
}

/* 移动端显示汉堡菜单 */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }
}

/* 内容区域 */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* 区域标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.see-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.see-more:hover {
  opacity: 0.8;
}

/* 主Banner */
.main-banner {
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  color: white;
}

.banner-content {
  flex: 1;
  margin-right: 32px;
}

.banner-subtitle {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.9;
}

.banner-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.banner-description {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.9;
  max-width: 400px;
}

.play-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.play-btn:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

.banner-image {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 歌曲卡片 */
.song-cards, .playlist-cards, .artist-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.song-card, .playlist-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.song-card:hover, .playlist-card:hover {
  transform: translateY(-4px);
  background-color: var(--card-hover);
}

.card-cover {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}

.card-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.song-card:hover .card-cover img, .playlist-card:hover .card-cover img {
  transform: scale(1.05);
}

.play-icon-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.song-card:hover .play-icon-btn, .playlist-card:hover .play-icon-btn {
  transform: translateY(0);
  opacity: 1;
}

.play-icon-btn:hover {
  background-color: var(--accent-hover);
  transform: scale(1.1);
}

.card-info {
  padding: 12px;
}

.song-title, .playlist-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist, .playlist-desc {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 艺术家卡片 */
.artist-card {
  text-align: center;
  cursor: pointer;
}

.artist-avatar {
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.artist-avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 底部迷你播放器 */
.bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--player-bg);
  padding: 10px 20px;
  z-index: 1000;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-top: 1px solid var(--border-color);
}

.player-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

/* 当前播放信息 */
.now-playing {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 300px;
}

.song-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.song-cover {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.song-cover:hover {
  transform: scale(1.05);
}

.song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.song-cover:hover img {
  filter: brightness(1.1);
}

.song-details {
  margin-left: 15px;
  overflow: hidden;
}

.song-details h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  color: var(--text-light);
}

.song-details p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--text-sidebar);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.favorite-btn {
  background: none;
  border: none;
  color: var(--text-sidebar);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  margin-left: 10px;
  transition: color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.favorite-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.favorite-btn.active {
  color: var(--accent);
  animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}

/* 播放控制 */
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 2;
  min-width: 400px;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.control-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  transform: scale(1.1);
}

.control-btn.active {
  color: var(--accent);
}

.play-pause-btn {
  background-color: var(--text-light);
  color: var(--player-bg);
  font-size: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.play-pause-btn:hover {
  background-color: var(--accent);
  color: white;
  transform: scale(1.05);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
  overflow: hidden;
}

.progress-bar:hover {
  height: 6px;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 2px;
  width: 0;
  position: relative;
  transition: width 0.1s ease;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--text-light);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-fill::after {
  opacity: 1;
}

.progress-bar:hover .progress-fill {
  background-color: var(--accent-hover);
}

.time {
  font-size: 12px;
  color: var(--text-sidebar);
  min-width: 40px;
  text-align: center;
}

/* 音量控制 */
.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 30%;
  justify-content: flex-end;
}

.volume-btn, .playlist-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.volume-btn:hover, .playlist-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  transform: scale(1.1);
}

.volume-slider-container {
  width: 120px;
  transition: width 0.3s ease;
}

#volume-slider {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: height 0.2s ease;
}

#volume-slider:hover {
  height: 6px;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-light);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-light);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* 播放列表面板 */
.playlist-panel {
  position: fixed;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-height: 500px;
  background-color: var(--player-bg);
  border-radius: 12px 12px 0 0;
  box-shadow: -2px -4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.playlist-panel.active {
  transform: translateY(0);
  opacity: 1;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.playlist-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-sidebar);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.close-btn:hover {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.1);
}

.playlist-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.playlist-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.playlist-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
  background-color: rgba(232, 56, 56, 0.1);
}

.playlist-item.active::before {
  content: '▶';
  position: absolute;
  left: 10px;
  color: var(--accent);
  font-size: 10px;
}

.playlist-item-number {
  width: 20px;
  text-align: center;
  color: var(--text-sidebar);
  font-size: 14px;
  margin-right: 12px;
}

.playlist-item-details {
  flex: 1;
  overflow: hidden;
}

.playlist-item-title {
  font-size: 14px;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-light);
}

.playlist-item-artist {
  font-size: 12px;
  color: var(--text-sidebar);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-duration {
  color: var(--text-sidebar);
  font-size: 12px;
  margin-left: 10px;
}

/* 滚动条样式 */
.playlist-content::-webkit-scrollbar {
  width: 6px;
}

.playlist-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-content::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

.playlist-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计优化 */
@media (max-width: 1024px) {
  .bottom-player {
    padding: 10px;
  }
  
  .now-playing {
    width: 35%;
  }
  
  .player-controls {
    width: 35%;
  }
  
  .volume-control {
    width: 30%;
  }
  
  .volume-slider-container {
    width: 80px;
  }
  
  .control-buttons {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .bottom-player {
    padding: 8px 12px;
    backdrop-filter: blur(10px);
  }
  
  .player-container {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .now-playing {
    width: 100%;
    justify-content: space-between;
    padding: 0 8px;
  }
  
  .song-info {
    flex: 1;
    gap: 10px;
  }
  
  .song-cover {
    width: 48px;
    height: 48px;
  }
  
  .song-details h4 {
    font-size: 13px;
  }
  
  .song-details p {
    font-size: 11px;
  }
  
  .favorite-btn {
    font-size: 18px;
  }
  
  .player-controls {
    width: 100%;
    gap: 8px;
  }
  
  .control-buttons {
    gap: 16px;
    justify-content: center;
  }
  
  .control-btn {
    font-size: 16px;
    width: 36px;
    height: 36px;
  }
  
  .play-pause-btn {
    width: 52px;
    height: 52px;
    font-size: 28px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  }
  
  .progress-container {
    gap: 8px;
    padding: 0 4px;
  }
  
  .time {
    font-size: 11px;
    min-width: 35px;
  }
  
  .volume-control {
    width: 100%;
    justify-content: space-between;
    padding: 0 8px;
  }
  
  .volume-slider-container {
    width: 100px;
    flex: 1;
    max-width: 120px;
    margin: 0 4px;
  }
  
  .volume-btn, .playlist-btn {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .bottom-player {
    padding: 6px 10px;
  }
  
  .player-container {
    gap: 6px;
  }
  
  .now-playing {
    gap: 8px;
    padding: 0;
  }
  
  .song-info {
    gap: 8px;
  }
  
  .song-cover {
    width: 44px;
    height: 44px;
  }
  
  .song-details h4 {
    font-size: 12px;
  }
  
  .song-details p {
    font-size: 10px;
  }
  
  .favorite-btn {
    font-size: 16px;
  }
  
  .control-buttons {
    gap: 12px;
  }
  
  .control-btn {
    font-size: 14px;
    width: 32px;
    height: 32px;
  }
  
  .play-pause-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  
  .progress-container {
    gap: 6px;
  }
  
  .time {
    font-size: 10px;
    min-width: 30px;
  }
  
  .volume-slider-container {
    max-width: 80px;
  }
  
  .volume-btn, .playlist-btn {
    font-size: 14px;
  }
}

/* 横屏移动设备优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .bottom-player {
    height: auto;
    min-height: 60px;
    padding: 4px 8px;
  }
  
  .player-container {
    flex-direction: row;
    gap: 4px;
    align-items: center;
  }
  
  .now-playing {
    width: 25%;
    min-width: 160px;
    gap: 8px;
  }
  
  .song-cover {
    width: 40px;
    height: 40px;
  }
  
  .song-details {
    flex: 1;
  }
  
  .song-details h4 {
    font-size: 11px;
    margin-bottom: 2px;
  }
  
  .song-details p {
    font-size: 9px;
  }
  
  .favorite-btn {
    font-size: 14px;
    display: none;
  }
  
  .player-controls {
    width: 50%;
    gap: 4px;
  }
  
  .control-buttons {
    gap: 8px;
  }
  
  .control-btn {
    font-size: 12px;
    width: 28px;
    height: 28px;
  }
  
  .play-pause-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .progress-container {
    gap: 4px;
  }
  
  .time {
    font-size: 9px;
    min-width: 25px;
  }
  
  .volume-control {
    width: 25%;
    gap: 8px;
    min-width: 100px;
  }
  
  .volume-slider-container {
    display: none;
  }
  
  .playlist-btn {
    display: none;
  }
}

/* 非常小的设备优化 */
@media (max-width: 360px) {
  .bottom-player {
    padding: 4px 8px;
  }
  
  .now-playing {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .song-info {
    width: calc(100% - 32px);
  }
  
  .song-cover {
    width: 40px;
    height: 40px;
  }
  
  .favorite-btn {
    align-self: center;
  }
  
  .control-buttons {
    gap: 8px;
  }
  
  .control-btn {
    font-size: 12px;
    width: 28px;
    height: 28px;
  }
  
  .play-pause-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  
  .progress-container {
    gap: 4px;
  }
}

/* 针对不同方向的优化 */
@media (max-width: 768px) and (orientation: portrait) {
  .volume-control {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .volume-slider-container {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
  }
  
  #volume-slider {
    height: 3px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .bottom-player {
    padding: 6px 8px;
  }
  
  .player-container {
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  
  .now-playing {
    width: 30%;
    min-width: 140px;
  }
  
  .player-controls {
    width: 40%;
  }
  
  .volume-control {
    width: 30%;
  }
  
  .volume-slider-container {
    max-width: 60px;
  }
}

/* 快捷入口样式 */
.quick-access {
  margin: 40px 0;
}

.quick-access__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.quick-access__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.quick-access__item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-access__item:hover {
  transform: translateY(-5px);
  background-color: var(--card-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quick-access__cover {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.quick-access__cover img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.quick-access__play-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.quick-access__item:hover .quick-access__play-icon {
  transform: translateY(0);
  opacity: 1;
}

.quick-access__item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.quick-access__item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* 响应式设计 */
/* 汉堡菜单样式 */
.hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 24px;
  padding: 8px;
}

/* 响应式导航菜单 */
@media (max-width: 1024px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    order: -1;
  }
  
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }
  
  .nav-list {
    display: flex;
    gap: 10px;
  }
  
  .nav-item {
    margin-bottom: 0;
  }
  
  .nav-link {
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
  }
  
  .main-content {
    height: calc(100vh - 80px);
  }
  
  .bottom-player {
    padding: 10px;
  }
  
  .now-playing {
    width: 40%;
  }
  
  .player-controls {
    width: 30%;
  }
  
  .volume-control {
    width: 30%;
  }
  
  .volume-slider-container {
    width: 80px;
  }
}

@media (max-width: 768px) {
  .header__container {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  /* 汉堡菜单在移动设备上显示 */
  .hamburger-menu {
    display: block;
  }
  
  /* 导航菜单在移动设备上默认隐藏 */
  .header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
  }
  
  /* 导航菜单打开时的样式 */
  .header__nav.nav-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  
  /* 导航链接在移动设备上的样式 */
  .header__nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .header__search {
    order: 3;
    width: 100%;
  }
  
  .header__search-input {
    width: 100%;
  }
  
  .header__search-input:focus {
    width: 100%;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .hero__image {
    width: 150px;
    height: 150px;
  }
  
  .hero__title {
    font-size: 32px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  
  /* 底部播放器响应式 */
  .player-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .now-playing {
    width: 100%;
    justify-content: center;
  }
  
  .player-controls {
    width: 100%;
  }
  
  .volume-control {
    width: 100%;
    justify-content: center;
  }
  
  .main-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .banner-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  
  .track-list__header,
  .track-list__item {
    grid-template-columns: 30px 1fr 80px;
  }
  
  .track-list__album {
    display: none;
  }
  
  .content {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .header__nav {
    gap: 16px;
  }
  
  .header__nav-link {
    font-size: 14px;
  }
  
  .section__title {
    font-size: 24px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .song-cards, 
  .playlist-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .banner__title {
    font-size: 24px;
  }
  
  .banner__content {
    padding: 20px;
  }
  
  .now-playing {
    gap: 10px;
  }
  
  .song-cover {
    width: 48px;
    height: 48px;
  }
  
  .song-details h4 {
    font-size: 12px;
  }
  
  .song-details p {
    font-size: 10px;
  }
  
  .control-buttons {
    gap: 12px;
  }
  
  .play-pause-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .sidebar-footer {
    padding: 10px 16px;
  }
  
  .full-player__album-art {
    width: 200px;
    height: 200px;
  }
  
  .full-player__title {
    font-size: 20px;
  }
}

/* 横屏移动设备优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    display: none;
  }
  
  .main-content {
    height: calc(100vh - 60px);
  }
  
  .bottom-player {
    height: 60px;
    padding: 8px;
  }
  
  .song-cover {
    width: 40px;
    height: 40px;
  }
  
  .play-pause-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* 标签样式 */
.tag {
  display: inline-block;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: var(--accent);
  color: var(--bg-primary);
  transform: scale(1.05);
}

.tag.active {
  background-color: var(--accent);
  color: var(--bg-primary);
}