/* 民族乐器 - 样式文件 */
/* 主色调: #e91e63 (歌词风格强调色) */

:root {
  --accent-color: #e91e63;
  --accent-light: #f8bbd9;
  --accent-dark: #c2185b;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-primary: #fff;
  --bg-secondary: #f5f5f5;
  --bg-dark: #2c2c2c;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 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;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

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

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

/* Header */
.header {
  background: var(--bg-primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

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

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

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

.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-secondary);
  border-radius: 24px;
  padding: 8px 16px;
  width: 240px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-search input {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  box-shadow: var(--shadow-hover);
}

/* Genre Tags */
.genre-tags {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.genre-tag {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 500;
  transition: all 0.3s;
}

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

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

.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  width: 100%;
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 48px;
}

.card-body {
  padding: 20px;
}

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

.card-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* List Items */
.list-item {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  transition: box-shadow 0.3s;
}

.list-item:hover {
  box-shadow: var(--shadow-hover);
}

.list-item-img {
  width: 120px;
  height: 90px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 32px;
  flex-shrink: 0;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.list-item-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.list-item-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Three Column Layout */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.col-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.col-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-light);
}

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

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

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

.col-list a {
  color: var(--text-primary);
  display: block;
  transition: color 0.3s;
}

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

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-secondary);
  padding: 16px 20px;
  margin-bottom: 30px;
  border-radius: var(--radius);
}

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

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

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

.breadcrumb strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Category Header */
.category-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.category-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Sort Bar */
.sort-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.sort-bar a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
}

.sort-bar a:hover,
.sort-bar a.active {
  background: var(--accent-color);
  color: #fff;
}

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

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s;
}

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

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

.pagination span {
  background: var(--accent-color);
  color: #fff;
}

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

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-image {
  width: 200px;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 80px;
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-info {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
}

.article-info-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.article-info-item:last-child {
  border-bottom: none;
}

.article-info-label {
  font-weight: 600;
  color: var(--text-primary);
}

.article-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 40px;
  line-height: 2;
}

.article-content h3 {
  font-size: 20px;
  margin: 30px 0 16px;
  color: var(--accent-color);
}

.article-content p {
  margin-bottom: 16px;
  text-indent: 2em;
}

/* Related Section */
.related-section {
  margin-top: 40px;
}

.related-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.related-item {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.related-item:hover {
  background: var(--accent-light);
}

.related-item-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.related-item-title {
  font-weight: 600;
  color: var(--text-primary);
}

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

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

.error-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.error-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.error-btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 40px 20px;
  margin-top: 60px;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.8);
}

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

.footer-copy {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

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

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

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

  .nav {
    order: 3;
    width: 100%;
    margin-top: 16px;
    gap: 16px;
    overflow-x: auto;
  }

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

  .hero {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

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

  .list-item {
    flex-direction: column;
  }

  .list-item-img {
    width: 100%;
    height: 160px;
  }

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

  .article-content {
    padding: 24px;
  }

  .error-code {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 22px;
  }

  .category-title {
    font-size: 26px;
  }

  .article-title {
    font-size: 24px;
  }

  .sort-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .sort-bar a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}