* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  padding-bottom: 70px; /* 给底部播放器留空间 */
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 12px; }

/* ---------- 顶部栏 ---------- */
.topbar {
  background: #f5455f;
  background: linear-gradient(90deg, #f5455f, #ff5d7a);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 12px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo {
  background: #fff; color: #f5455f; font-weight: 700;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.brand-name { font-size: 15px; font-weight: 600; }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { padding: 4px 2px; opacity: .92; }
.nav a:hover, .nav a.active { opacity: 1; border-bottom: 2px solid #fff; }
.search { display: flex; margin-left: auto; }
.search input {
  border: none; outline: none; padding: 6px 10px; width: 160px;
  border-radius: 4px 0 0 4px; font-size: 13px;
}
.search button {
  border: none; background: #d83553; color: #fff;
  padding: 0 14px; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 13px;
}
.user-area { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.user-area a { padding: 5px 12px; border-radius: 4px; }
.btn-login { border: 1px solid #fff; }
.btn-register { background: #fff; color: #f5455f; }
.user-area .uname { font-weight: 600; }

/* ---------- 轮播图 ---------- */
.carousel {
  position: relative; margin-top: 16px; border-radius: 6px;
  overflow: hidden; background: #222; height: 300px;
}
.carousel-track { display: flex; height: 100%; transition: transform .5s ease; }
.carousel-track .slide {
  min-width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color: #fff; border: none;
  width: 40px; height: 56px; font-size: 26px; cursor: pointer;
}
.carousel-arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.carousel-arrow.next { right: 0; border-radius: 4px 0 0 4px; }
.carousel-arrow:hover { background: rgba(0,0,0,.55); }
.carousel-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.carousel-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
}
.carousel-dots span.active { background: #fff; }

/* ---------- 歌曲列表 ---------- */
.songs { background: #fff; margin-top: 18px; border-radius: 6px; padding: 16px 20px; }
.songs-head { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.songs-head h2 { font-size: 18px; color: #f5455f; }
.tabs { display: flex; gap: 8px; }
.tab { font-size: 13px; padding: 3px 12px; border-radius: 14px; cursor: pointer; color: #666; }
.tab.active { background: #f5455f; color: #fff; }
.more { margin-left: auto; color: #999; font-size: 13px; }
.song-list { list-style: none; margin-top: 6px; }
.song-list li {
  display: flex; align-items: center; padding: 11px 6px;
  border-bottom: 1px solid #f2f2f2; font-size: 14px; cursor: pointer;
}
.song-list li:hover { background: #fff5f7; }
.song-list li.playing { background: #ffeef2; }
.song-list li.playing .s-title { color: #f5455f; font-weight: 600; }
.song-list .rank { width: 36px; color: #f5455f; font-weight: 700; }
.song-list .s-title { flex: 1; }
.song-list .s-artist { width: 160px; color: #666; }
.song-list .s-genre { width: 120px; color: #999; }
.song-list .s-play {
  width: 60px; text-align: right; color: #f5455f; font-size: 18px;
}

/* ---------- 底部播放器 ---------- */
.player {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #2b2b33; color: #fff; height: 60px;
  display: flex; align-items: center; gap: 16px; padding: 0 18px; z-index: 50;
}
.player-info { min-width: 200px; display: flex; flex-direction: column; }
.player-title { font-size: 14px; font-weight: 600; }
.player-artist { font-size: 12px; color: #aaa; }
.player audio { flex: 1; height: 36px; }

/* ---------- 页脚 ---------- */
.footer { background: #fff; border-top: 1px solid #eee; margin-top: 24px; padding: 22px 0 10px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 12px; text-align: center; color: #888; font-size: 12px; line-height: 1.9; }
.footer-links a { color: #666; }
.footer-links a:hover { color: #f5455f; }
.footer-links span { margin: 0 8px; color: #ddd; }
.footer-info { margin-top: 10px; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.auth-card {
  background: #fff; width: 360px; padding: 30px 28px; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.auth-card h2 { text-align: center; color: #f5455f; margin-bottom: 22px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.auth-card input {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd;
  border-radius: 4px; font-size: 14px; outline: none;
}
.auth-card input:focus { border-color: #f5455f; }
.auth-card .submit {
  width: 100%; padding: 11px; background: #f5455f; color: #fff;
  border: none; border-radius: 4px; font-size: 15px; cursor: pointer; margin-top: 4px;
}
.auth-card .submit:hover { background: #e23552; }
.auth-card .switch { text-align: center; margin-top: 14px; font-size: 13px; color: #888; }
.auth-card .switch a { color: #f5455f; }
.auth-msg { text-align: center; font-size: 13px; margin-bottom: 12px; min-height: 18px; color: #e23552; }
.auth-msg.ok { color: #2e9e4f; }

@media (max-width: 768px) {
  .brand-name { display: none; }
  .nav { display: none; }
  .carousel { height: 180px; }
  .song-list .s-artist, .song-list .s-genre { display: none; }
}
