/* ========== 全局重置与基础 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1a1a1a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  color: #e0e0e0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.01em;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* ========== 头部 ========== */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Logo图片样式 */
.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Logo加载失败时的备用图标 */
.logo-icon-fallback {
  font-size: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand {
  font-size: 1.8rem;
  font-weight: 600;
  color: #d0d0d0;
  letter-spacing: -0.5px;
}

.sub-tag {
  font-size: 0.85rem;
  color: #888;
  margin-left: 0.3rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
}

.header-motto {
  font-size: 0.9rem;
  color: #666;
}

/* ========== 资讯板块 ========== */
.news-section {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 1.6rem 2rem;
  margin-bottom: 2.8rem;
}

.news-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 1rem;
}

.news-content {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
  color: #ccc;
  word-break: break-word;
}

.news-content a {
  color: #7eb8ff;
  text-decoration: underline;
  word-break: break-all;
}

.loading-placeholder {
  color: #666;
  font-style: italic;
}

.error-message {
  color: #e07070;
  background: rgba(255, 100, 100, 0.06);
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  display: inline-block;
}

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

.section-title {
  font-weight: 500;
  font-size: 1.5rem;
  color: #ccc;
}

/* ========== 卡片网格 ========== */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 0.8rem;
}

/* ========== 卡片设计 ========== */
.release-card {
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.release-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.6);
}

/* 封面区域：1:1 正方形 */
.card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片加载失败时的占位样式 */
.cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 2.5rem;
  gap: 0.3rem;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.cover-placeholder .track-initial {
  font-size: 2rem;
  font-weight: 600;
  color: #666;
}

/* 状态徽章 */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.badge.upcoming {
  color: #d4a83a;
  background: rgba(212, 168, 58, 0.15);
  border: 1px solid rgba(212, 168, 58, 0.3);
}

.badge.new-release {
  color: #4caf84;
  background: rgba(76, 175, 132, 0.15);
  border: 1px solid rgba(76, 175, 132, 0.3);
}

/* 卡片信息区 */
.card-info {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.track-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e8e8e8;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.artist-name {
  font-size: 0.9rem;
  color: #999;
}

.release-date {
  font-size: 0.75rem;
  color: #777;
}

/* 播放按钮 */
.card-footer {
  padding: 0.8rem 1.2rem 1.2rem;
  margin-top: auto;
}

.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 0.65rem 1.2rem;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-play:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  color: #666;
  padding: 2.5rem;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* ========== 页脚 ========== */
.footer-note {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: #555;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 1.8rem;
}

/* ========== 响应式 ========== */
@media (max-width: 600px) {
  body {
    padding: 1.2rem 1rem;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .releases-grid {
    grid-template-columns: 1fr;
  }
}