/* 月挽清风的小歌单 - 样式文件 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  background-color: #f4f5f7;
  color: #333;
  line-height: 1.6;
  padding-bottom: 40px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.banner {
  width: 100%;
  overflow: hidden;
  text-align: center;
  background-color: #fafafa;
}

.banner-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.header {
  background-color: #fff;
  padding: 18px;
  border-bottom: 1px solid #eee;
}

.header h1 {
  font-size: 18px;
  font-weight: normal;
  text-align: center;
  margin-bottom: 5px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  justify-content: center;
}

.tab {
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  color: #505050;
}

.tab.active {
  color: #fb7299;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: #fb7299;
}

.content {
  padding: 15px;
}

.song-section {
  margin-bottom: 30px;
  padding-top: 10px;
}

.main-title {
  color: #ff9900;
  text-align: center;
  font-size: 20px;
  margin: 20px 0;
  position: relative;
}

.main-title:before,
.main-title:after {
  content: '----------';
  color: #ff9900;
  position: relative;
  top: -3px;
  margin: 0 10px;
}

.category-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin: 25px 0 15px;
}

.category-title.ancient {
  color: #00ccff;
}

.category-title.pop {
  color: #ff6600;
}

.category-title.retro {
  color: #cc99ff;
}

.note {
  text-align: center;
  color: #cc99ff;
  font-weight: bold;
  margin: 15px 0;
  font-size: 14px;
}

.song-list {
  text-align: center;
  color: #808080;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 14px;
}

.song-list h3 {
  margin: 12px 0;
  font-size: 15px;
}

.song-group {
  margin-bottom: 15px;
  line-height: 1.8;
}

.song-group p {
  margin: 0;
  line-height: 1.8;
  word-break: break-word;
  hyphens: auto;
}

.song-group p.song-list-text {
  color: #606060;
  font-weight: normal;
}

.search-bar {
  display: flex;
  margin: 12px 15px;
  position: relative;
}

.search-bar input {
  flex-grow: 1;
  padding: 8px 15px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  outline: none;
}

.search-bar input:focus {
  border-color: #fb7299;
}

.search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
}

.commit-form {
  margin-top: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.commit-list {
  margin-top: 25px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.commit-list .record-date-title {
  font-size: 15px;
  margin-bottom: 10px;
  color: #fb7299;
}

.date-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-nav-btn {
  background-color: #f4f4f4;
  border: 1px solid #e0e0e0;
  color: #505050;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-nav-btn:hover:not([disabled]) {
  background-color: #fb7299;
  color: white;
  border-color: #fb7299;
}

.date-nav-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

#currentDateDisplay {
  font-size: 13px;
  color: #606060;
  font-weight: bold;
}

.commit-list-loading {
  text-align: center;
  padding: 15px;
  color: #666;
}

.commit-item {
  padding: 5px 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  line-height: 1.3;
}

.commit-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.commit-item .song-name {
  font-weight: bold;
  color: #333;
  width: 180px;
  margin-right: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.commit-item .singer {
  color: #606060;
  font-size: 13px;
  width: 170px;
  margin-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.commit-item .commiter {
  color: #606060;
  font-size: 13px;
  width: 180px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.commit-item .status {
  color: #505050;
  font-size: 13px;
  width: 140px;
  margin-right: 12px;
  text-align: center;
  font-weight: bold;
  flex-shrink: 0;
}

.commit-item .status.pending {
  color: #f39c12;
}

.commit-item .status.learning {
  color: #27ae60;
}

.commit-item .status.rejected {
  color: #e74c3c;
}

.commit-item .time {
  color: #909090;
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}

.commit-item .separator {
  color: #ddd;
  margin: 0 5px;
}

.commit-form h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #fb7299;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #505050;
}

.form-group input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
}

.btn {
  background-color: #fb7299;
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background-color: #e85d8b;
}

.btn-center {
  display: block;
  margin: 20px auto 0;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 15px;
  color: #666;
  font-size: 14px;
}

.error-message {
  text-align: center;
  padding: 8px;
  color: #e74c3c;
  font-size: 13px;
}

.success-message {
  text-align: center;
  padding: 8px;
  color: #2ecc71;
  font-size: 13px;
  margin-top: 8px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 添加歌单展示模式切换按钮样式 */
.display-mode-tabs {
  text-align: center;
  margin: 15px 0 20px;
  padding: 8px 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.mode-tab {
  color: #666;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
  user-select: none;
}

.mode-tab:hover {
  color: #fb7299;
  background-color: rgba(251, 114, 153, 0.1);
}

.mode-tab.active {
  color: #fb7299;
  background-color: rgba(251, 114, 153, 0.15);
  font-weight: bold;
}

.mode-separator {
  color: #ddd;
  margin: 0 8px;
  font-size: 14px;
}

/* 按歌手分组的卡片式布局 */
.singer-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0;
  justify-content: flex-start;
}

.singer-card {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  min-width: 180px;
  max-width: 100%;
  flex: 1 1 auto;
}

.singer-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--theme-color, #fb7299);
}

.singer-name-tag {
  color: var(--theme-color, #fb7299);
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  position: relative;
  padding-left: 6px;
}

.singer-name-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 2px;
  height: 14px;
  background: var(--theme-color, #fb7299);
  border-radius: 2px;
}

.singer-songs {
  color: #666;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}

.singer-songs .song-item {
  display: inline;
  margin-right: 2px;
  position: relative;
}

.singer-songs .song-item:not(:last-child)::after {
  content: ' / ';
  color: #bbb;
  margin: 0 4px;
}

/* 搜索结果样式 */
.search-result-header {
  background: linear-gradient(135deg, #fb7299 0%, #f45a7a 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(251, 114, 153, 0.3);
}

.search-result-info {
  font-size: 14px;
  font-weight: bold;
}

.clear-search-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.search-highlight {
  background: rgba(251, 114, 153, 0.2);
  color: #fb7299;
  font-weight: bold;
  padding: 1px 2px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .container {
    border-radius: 0;
    box-shadow: none;
  }
  
  .tab {
    padding: 10px 8px;
    font-size: 14px;
  }
  
  .main-title:before,
  .main-title:after {
    content: '------';
  }
  
  .song-list {
    font-size: 13px;
  }
  
  .song-list h3 {
    font-size: 14px;
  }
  
  /* 移动端展示模式按钮样式 */
  .display-mode-tabs {
    padding: 6px 10px;
    margin: 10px 0 15px;
  }
  
  .mode-tab {
    font-size: 13px;
    padding: 4px 6px;
  }
  
  .mode-separator {
    margin: 0 6px;
    font-size: 13px;
  }
  
  /* 移动端歌手卡片样式 */
  .singer-cards-container {
    gap: 12px;
    margin: 15px 0;
  }
  
  .singer-card {
    min-width: 180px;
    max-width: 100%;
    padding: 14px 16px;
    border-radius: 6px;
  }
  
  .singer-name-tag {
    font-size: 13px;
    margin-bottom: 8px;
    padding-left: 6px;
  }
  
  .singer-name-tag::before {
    width: 2px;
    height: 14px;
    top: 1px;
  }
  
  .singer-songs {
    font-size: 12px;
    line-height: 1.6;
  }
  
  /* 移动端点学记录样式 */
  .commit-item .song-name {
    width: 120px;
    font-size: 13px;
  }
  
  .commit-item .singer {
    width: 120px;
    font-size: 12px;
  }
  
  .commit-item .commiter {
    width: 90px;
    font-size: 12px;
  }
  
  .commit-item .status {
    width: 60px;
    font-size: 12px;
  }
  
  .commit-item .time {
    font-size: 11px;
  }
}

/* B站风格弹窗 */
.bili-dialog-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bili-dialog-mask.show {
  opacity: 1;
  visibility: visible;
}

.bili-dialog {
  background: white;
  border-radius: 8px;
  width: 360px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.bili-dialog-mask.show .bili-dialog {
  transform: translateY(0);
}

.bili-dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.bili-dialog-body {
  padding: 20px;
  font-size: 14px;
  color: #505050;
  line-height: 1.5;
}

.bili-dialog-footer {
  padding: 10px 20px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.bili-btn {
  padding: 8px 20px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bili-btn-cancel {
  background-color: #f4f4f4;
  color: #666;
}

.bili-btn-cancel:hover {
  background-color: #e8e8e8;
}

.bili-btn-primary {
  background-color: #fb7299;
  color: white;
}

.bili-btn-primary:hover {
  background-color: #fc8bab;
  box-shadow: 0 2px 8px rgba(251, 114, 153, 0.3);
}

/* 成功和错误图标 */
.bili-dialog-body .success-icon,
.bili-dialog-body .error-icon {
  font-size: 18px;
  margin-right: 8px;
  position: relative;
  top: 2px;
}

.bili-dialog-body .success-icon {
  color: #2ecc71;
}

.bili-dialog-body .error-icon {
  color: #e74c3c;
}