/* 播放器 - 复古音乐风格 */
:root {
  --accent-color: #e91e63;
  --accent-light: #f48fb1;
  --accent-dark: #c2185b;
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #0f3460;
  --text-primary: #eaeaea;
  --text-secondary: #a0a0a0;
  --text-muted: #6c757d;
  --border-color: #2d3748;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(233, 30, 99, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Header */
.header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  content: "♪";
  font-size: 1.8rem;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  border: 1px solid var(--border-color);
}

.search-box input {
  background: none;
  border: none;
  color: var(--text-primary);
  outline: none;
  width: 200px;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 1.1rem;
}

/* Main Container */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 50px;
  border: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-search input {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.hero-search button {
  padding: 15px 30px;
  background: var(--accent-color);
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-search button:hover {
  background: var(--accent-dark);
}

/* Genre Tags */
.genre-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.genre-tag {
  padding: 12px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.genre-tag:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Song Cards */
.songs-section {
  margin-bottom: 50px;
}

.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.song-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.song-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.song-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.song-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.song-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.song-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.song-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.song-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Article Lists */
.articles-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.article-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 25px;
  border: 1px solid var(--border-color);
}

.article-list h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.article-list ul {
  list-style: none;
}

.article-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  color: var(--text-secondary);
  display: block;
  transition: color 0.3s ease;
}

.article-list a:hover {
  color: var(--accent-color);
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

/* Category Header */
.category-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.category-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.category-header p {
  color: var(--text-secondary);
}

/* Sort Options */
.sort-options {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.sort-options span {
  color: var(--text-muted);
}

.sort-options a {
  color: var(--text-secondary);
  font-weight: 500;
}

.sort-options a.active,
.sort-options a:hover {
  color: var(--accent-color);
}

/* Song List (Category Page) */
.song-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 30px;
}

.song-list-item {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.song-list-item:last-child {
  border-bottom: none;
}

.song-list-item:hover {
  background: rgba(233, 30, 99, 0.05);
}

.song-number {
  width: 40px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.song-details {
  flex: 1;
}

.song-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.song-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.song-album {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  padding: 10px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.pagination .current {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Article Page */
.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.album-cover {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-radius: var(--radius-lg);
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  box-shadow: var(--shadow-hover);
}

.song-title-section {
  text-align: center;
  margin-bottom: 40px;
}

.song-title-section h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.song-artist-meta {
  color: var(--text-secondary);
  font-size: 1rem;
}

.song-artist-meta span {
  margin: 0 10px;
  color: var(--text-muted);
}

.song-info-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 25px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}

.song-info-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.song-info-list {
  list-style: none;
}

.song-info-list li {
  padding: 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.song-info-list li:last-child {
  border-bottom: none;
}

.song-info-list strong {
  color: var(--text-primary);
  margin-right: 10px;
}

/* Lyrics Section */
.lyrics-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.lyrics-section h3 {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--accent-color);
}

.lyrics-content {
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--text-secondary);
  white-space: pre-line;
}

.lyrics-content .verse-label {
  color: var(--accent-color);
  font-weight: 600;
  margin: 25px 0 15px;
  display: block;
}

/* Related Songs */
.related-section {
  margin-bottom: 40px;
}

.related-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.related-card .mini-cover {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-radius: var(--radius-sm);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 100px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-color);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .articles-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
    gap: 20px;
  }

  .search-box {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .articles-section {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .song-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .song-number {
    width: auto;
  }

  .album-cover {
    width: 180px;
    height: 180px;
    font-size: 3.5rem;
  }

  .lyrics-section {
    padding: 25px;
  }

  .lyrics-content {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 15px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .genre-tags {
    justify-content: center;
  }

  .genre-tag {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .songs-grid {
    grid-template-columns: 1fr;
  }

  .error-code {
    font-size: 5rem;
  }
}
