/* 动漫音乐 - 样式文件 */
/* 查询关键词: 动漫音乐 www.animexiazai.cn 动漫歌曲大全 二次元音乐MV 动漫音乐在线听 */

/* ===== CSS 变量 ===== */
:root {
  --accent-color: #e91e63;
  --accent-light: #f48fb1;
  --accent-dark: #c2185b;
  --bg-primary: #fafafa;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-muted: #9e9e9e;
  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 64px;
}

/* ===== 重置样式 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== 布局容器 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 页头 ===== */
.header {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.logo span {
  color: var(--text-primary);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  width: 280px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
}

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

/* ===== Hero区域 ===== */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  outline: none;
}

.hero-search button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* ===== 面包屑 ===== */
.breadcrumb {
  background: var(--bg-secondary);
  padding: 1rem 0;
  font-size: 0.9rem;
}

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

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

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

.breadcrumb .current {
  color: var(--text-primary);
}

/* ===== 分类标签 ===== */
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.genre-tag {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.genre-tag:hover {
  background: white;
  color: var(--accent-color);
}

/* ===== 区块标题 ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 2px;
}

.section-more {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.section-more:hover {
  color: var(--accent-color);
}

/* ===== 内容区块 ===== */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

/* ===== 歌曲卡片 ===== */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.song-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.song-card:hover {
  box-shadow: var(--shadow-md);
}

.song-cover {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

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

.song-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.song-play:hover {
  background: var(--accent-dark);
}

/* ===== 歌曲网格 ===== */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.song-grid-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.song-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.song-grid-cover {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.song-grid-info {
  padding: 1rem;
}

.song-grid-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ===== 三栏布局 ===== */
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.column-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.column-list a {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.column-list a::before {
  content: '•';
  color: var(--accent-color);
}

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

/* ===== 文章页 - 歌曲详情 ===== */
.song-detail {
  padding: 2rem 0;
}

.song-header {
  text-align: center;
  margin-bottom: 3rem;
}

.song-header .cover {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-lg);
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-lg);
}

.song-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.song-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.song-details {
  max-width: 600px;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
}

.song-details dt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.song-details dd {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== 歌词展示 ===== */
.lyrics-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.lyrics-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.lyrics-content {
  text-align: center;
  line-height: 2;
  color: var(--text-primary);
  white-space: pre-line;
}

.lyrics-content .verse-label {
  color: var(--accent-color);
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

/* ===== 更多歌曲 ===== */
.more-songs {
  margin-top: 3rem;
}

/* ===== 分类页头部 ===== */
.category-header {
  background: var(--bg-secondary);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.category-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

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

/* ===== 排序选项 ===== */
.sort-options {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sort-options a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.pagination a {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

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

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

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 1rem;
}

/* ===== 推荐文章 ===== */
.recommended {
  background: var(--bg-secondary);
  padding: 2rem 0;
  margin-top: 3rem;
}

.recommended-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.recommended-links a {
  background: var(--bg-card);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.recommended-links a:hover {
  color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

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

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
  border-top: 1px solid #424242;
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== 404页面 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-color);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .three-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
  }

  .search-box {
    width: auto;
    flex: 1;
    margin-left: 1rem;
  }

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

  .hero-search {
    margin: 0 1rem;
  }

  .hero-search button {
    padding: 0 1rem;
  }

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

  .song-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .song-header .cover {
    width: 200px;
    height: 200px;
  }

  .lyrics-container {
    padding: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  .song-card {
    padding: 0.75rem;
  }

  .song-cover {
    width: 60px;
    height: 60px;
  }

  .song-title {
    font-size: 1rem;
  }

  .song-play {
    width: 40px;
    height: 40px;
  }

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

  .pagination a,
  .pagination span {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}
