/* 基础重置和全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

.main-nav,.banner,.content {
  max-width: 1400px; 
  margin-left: auto;
  margin-right: auto;
}

/* 导航栏样式 */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #2d2d2d;
  color: white;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* 音乐网格布局 */
.grid-container {
  width: 100%;
  margin-top: 70px; 
}
.grid-title {
    height: 80px;
    padding-left: 20px;
  }
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.music-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  transition: transform 0.3s ease;
  text-align: center;
}

.music-card:hover {
  transform: translateY(-5px);
  cursor: pointer;
}

.cover-art {
  width: 264px;
  height: 264px;
  object-fit: cover;
  margin: 0 auto !important;
}

.music-card p {
  display: flex;
  align-items: center; 
  justify-content: center;
  line-height: 21px;
}

/* banner */
.banner {
  /* position: relative; */
  width: 100%;
  height: 340px;
  /* overflow: hidden; */
}
.swiper{
    /* --swiper-theme-color: #ff6600; */
    --swiper-pagination-color: #00ff33;/* 两种都可以 */
  }

/* 播放器 */
.aplayer-container {
  margin-top: 70px;
  width: 100%; 
}
.aplayer-title {
  height: 80px;
  padding-left: 20px;
}
.aplayer-footer {
  width: 100%;
  max-width: 700px;
  min-width: 350px; 
  margin: 0 auto !important;
}

/* 底部 */
.footer {
  margin-top: 70px;
  text-align: center;
  padding: 1rem 0; 
  background: #2d2d2d;
  color: white;
  width: 100%;
  max-width: 100% !important;
  height: 300px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .music-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}