/* ==============================
   橘红轻奢主题 · 全站通用CSS
   首页 | 歌词列表 | 歌词详情 | 歌手列表 | 歌手详情 | 搜索
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main: #FF6B35;
  --main-light: #FF8B5C;
  --main-dark: #E05A2B;
  --orange: #FFA726;
  --white: #ffffff;
  --gray: #F7F8FA;
  --text: #333333;
  --text-light: #666;
  --radius: 16px;
  --shadow: 0 4px 12px rgba(255, 107, 53, 0.08);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--gray);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: 70px;
}

a {
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--main);
}

/* 顶部头部 */
header {
  background: linear-gradient(90deg, var(--main), var(--main-dark));
  color: var(--white);
  padding: 18px 0;
  text-align: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}
header h1 {
  font-size: 22px;
  font-weight: 500;
}

/* 导航 */
.nav {
  background: var(--white);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.nav a {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 15px;
}
.nav a.active,
.nav a:hover {
  background: #FFF2EB;
  color: var(--main);
}

/* 容器 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 卡片通用 */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 18px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.card-title::before {
  content: "";
  width: 5px;
  height: 18px;
  background: var(--main);
  border-radius: 2px;
}

/* 搜索框 */
.search-box {
  margin-bottom: 25px;
}
.search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.search-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
}
.search-form input:focus {
  border-color: var(--main);
}
.search-form button {
  padding: 14px 24px;
  background: var(--main);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
}
.search-form button:hover {
  background: var(--main-dark);
}

/* 歌词网格 */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.song-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid #F3F3F3;
  transition: 0.3s;
}
.song-card:hover {
  transform: translateY(-4px);
  border-color: var(--main-light);
  box-shadow: var(--shadow);
}
.song-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist {
  font-size: 13px;
  color: var(--text-light);
}

/* 歌手网格 */
.singer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.singer-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 10px;
  border: 1px solid #F3F3F3;
  transition: 0.3s;
}
.singer-card:hover {
  transform: translateY(-4px);
  border-color: var(--main);
}
.singer-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  border: 2px solid #FFF2EB;
}
.singer-name {
  font-size: 14px;
  font-weight: 500;
}

/* 歌词详情 */
.song-info {
  margin-bottom: 20px;
}
.song-info h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.song-info p {
  color: var(--text-light);
  font-size: 15px;
  margin: 4px 0;
}

/* 歌词切换 */
.tab-group {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.tab {
  padding: 10px 20px;
  background: #F5F5F5;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.tab.active {
  background: var(--main);
  color: #fff;
}
.lyric-content {
  padding: 10px 0;
  font-size: 15px;
  line-height: 2.1;
  white-space: pre-wrap;
  display: none;
}
.lyric-content.show {
  display: block;
}

/* 歌手详情 */
.singer-info-layout {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.singer-info-layout img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  object-fit: cover;
}
.singer-info-right {
  flex: 1;
  min-width: 280px;
}
.singer-desc {
  background: #FFF6F0;
  padding: 16px;
  border-radius: 12px;
  margin-top: 15px;
  font-size: 15px;
  color: #555;
}

/* ========= ✅ 已补全歌手资料样式 ========= */
.singer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 15px 0;
  font-size: 15px;
  color: #555;
}
.singer-meta div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.singer-avatar-large {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(255,107,53,0.1);
}

/* 歌曲竖列表 */
.song-list {
  list-style: none;
}
.song-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #F0F0F0;
}
.song-list li:last-child {
  border-bottom: none;
}
.song-list li a {
  font-size: 15px;
}

/* 底部 */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  color: #999;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  z-index: 99;
}

/* 响应式 */
@media (max-width:768px) {
  .song-grid {
    grid-template-columns: 1fr;
  }
  .singer-info-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .singer-meta {
    grid-template-columns: 1fr;
    text-align: center;
  }
}