/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 顶部导航栏 */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #333;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: #f5f5f5;
  border-radius: 4px;
}

.logo-img {
  width: 32px;
  height: 32px;
}

.header-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.header-home-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  margin-left: 12px;
  white-space: nowrap;
}

.header-home-link:hover {
  background: #f5f5f5;
  color: #0366d6;
}

.header-home-link svg {
  flex-shrink: 0;
}

/* 移动端响应式：在小屏幕上隐藏文字，只显示图标 */
@media (max-width: 768px) {
  .header-home-link span {
    display: none;
  }
  
  .header-home-link {
    padding: 6px;
    margin-left: 8px;
  }
}

.header-link {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.header-link:hover {
  background: #f5f5f5;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* 右上角菜单 - 默认隐藏，只在移动端显示 */
.header-menu-wrapper {
  position: relative;
  display: none;
}

.header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  padding: 0;
}

.header-menu-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.header-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
  padding: 4px 0;
}

.header-menu-wrapper.active .header-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.header-menu-item:hover {
  background: #f5f5f5;
}

.header-menu-item svg {
  flex-shrink: 0;
  color: #666;
}

.header-menu-item:hover svg {
  color: #00a1d6;
}

.user-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.user-days {
  font-size: 14px;
  color: #666;
}

.header-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  color: #666;
}

.header-icon-btn:hover {
  background: #f5f5f5;
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff4757;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

/* 主容器 */
.main-container {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* 左侧导航栏 */
.sidebar {
  width: 200px;
  background: #fff;
  border-right: 1px solid #e5e5e5;
  padding: 16px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-btn {
  padding: 12px 20px;
  background: #00a1d6;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex; /* PC端显示左侧边栏的投稿按钮 */
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  box-sizing: border-box;
}

.sidebar-btn:hover {
  background: #0090c0;
}

.submit-btn {
  width: calc(100% - 24px);
  margin: 0 12px 16px;
  border-radius: 4px;
}

.sidebar-nav {
  padding: 0 12px;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-item:hover {
  background: #f5f5f5;
}

.nav-item.active {
  background: #e6f7ff;
  color: #00a1d6;
  font-weight: 500;
}

/* 主内容区 */
.content-area {
  flex: 1;
  padding: 24px;
  background: #f5f5f5;
  min-height: calc(100vh - 64px);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 4px;
}

.content-tabs {
  display: flex;
  gap: 0;
}

.content-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.content-tab:hover {
  color: #00a1d6;
}

.content-tab.active {
  color: #00a1d6;
  border-bottom-color: #00a1d6;
  font-weight: 500;
}

.content-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  padding: 8px 12px 8px 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #00a1d6;
}

/* 状态标签 */
.status-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  padding: 0 20px;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.status-tab {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  position: relative;
}

.status-tab:hover {
  color: #00a1d6;
}

.status-tab.active {
  color: #00a1d6;
  border-bottom-color: #00a1d6;
  font-weight: 500;
}

.count {
  margin-left: 4px;
  color: #999;
  font-weight: normal;
}

.status-tab.active .count {
  color: #00a1d6;
}

/* 歌词列表 */
.lyrics-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lyric-item {
  background: #fff;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  gap: 16px;
  transition: box-shadow 0.2s;
}

.lyric-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lyric-thumbnail {
  width: 160px;
  height: 90px;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.lyric-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lyric-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
}

.lyric-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  color: #fff;
}

.lyric-tag.cooperation {
  background: #00a1d6;
}

.lyric-tag.activity {
  background: #ff6699;
}

.lyric-tag.private {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lyric-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lyric-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.lyric-meta {
  font-size: 12px;
  color: #999;
}

.lyric-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-item svg {
  width: 14px;
  height: 14px;
}

.lyric-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.action-btn {
  padding: 4px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  border-color: #00a1d6;
  color: #00a1d6;
}

.more-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.more-btn:hover {
  border-color: #00a1d6;
  color: #00a1d6;
}

/* 加载动画 */
.loading-container {
  text-align: center;
  padding: 40px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #00a1d6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border-radius: 4px;
}

.page-btn {
  padding: 6px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: #00a1d6;
  color: #00a1d6;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 14px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 顶部导航栏优化 */
  .top-header {
    padding: 0 12px;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
  }

  .header-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 100px);
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }

  /* 主容器优化 */
  .main-container {
    flex-direction: column;
    min-height: calc(100vh - 56px);
  }

  /* 侧边栏在移动端改为底部导航 - 隐藏内容管理，因为已在右上角菜单中 */
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    border-right: none;
    border-top: 1px solid #e5e5e5;
    padding: 8px 0;
    z-index: 100;
    background: #fff;
    display: none; /* 移动端隐藏底部导航栏，改用右上角菜单 */
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    max-height: 60px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .nav-section {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0;
    justify-content: space-around;
  }

  .nav-item {
    flex: 1;
    flex-direction: column;
    padding: 8px 4px;
    text-align: center;
    gap: 4px;
    font-size: 12px;
    min-width: 0;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
    margin: 0 auto;
  }

  .nav-item-text {
    display: block;
    margin-top: 2px;
    font-size: 11px;
  }

  /* 确保导航项在移动端正确显示 */
  .nav-item {
    justify-content: center;
  }

  .sidebar-btn {
    display: none; /* 移动端隐藏投稿按钮，可以通过导航项访问 */
  }

  .mobile-menu-btn {
    display: block;
  }

  /* 移动端显示右上角菜单 */
  .header-menu-wrapper {
    display: block;
  }

  /* 移动端右上角菜单优化 */
  .header-menu-dropdown {
    right: 0;
    min-width: 140px;
  }

  .header-menu-item {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* 主内容区优化 */
  .content-area {
    padding: 12px;
    width: 100%;
    margin-bottom: 0; /* 底部导航栏已隐藏，不需要留空间 */
    min-height: calc(100vh - 56px);
  }

  .content-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 12px;
  }

  .content-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content-actions {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  /* 状态标签优化 */
  .status-tabs {
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .status-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .status-tab {
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 歌词列表优化 */
  .lyrics-list {
    gap: 12px;
  }

  .lyric-item {
    flex-direction: column;
    padding: 12px;
  }

  .lyric-thumbnail {
    width: 100%;
    height: 180px;
  }

  .lyric-content {
    width: 100%;
  }

  /* 上传区域优化 */
  .upload-area {
    padding: 20px 12px;
    margin-bottom: 0;
  }

  .upload-container {
    max-width: 100%;
  }

  .upload-zone {
    padding: 40px 20px;
  }

  .upload-icon svg {
    width: 60px;
    height: 60px;
  }

  .upload-text {
    font-size: 14px;
  }

  /* 投稿表单优化 */
  .submit-area {
    margin-bottom: 0;
  }

  .submit-form-container {
    padding: 16px 12px;
    margin: 0;
    border-radius: 0;
  }

  .submit-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .submit-form {
    gap: 16px;
  }

  .form-group {
    gap: 6px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* 防止iOS自动缩放 */
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column;
    gap: 8px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px;
  }

  /* 分页优化 */
  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .page-btn {
    flex: 1;
    min-width: 80px;
  }

  /* 文件名和元数据显示优化 */
  .filename-display,
  .metadata-display {
    padding: 10px;
    font-size: 12px;
  }

  .metadata-item {
    flex-direction: column;
    gap: 4px;
  }

  .metadata-label {
    min-width: auto;
    max-width: 100%;
  }

  /* 歌词搜索优化 */
  .lyric-search-input-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .lyric-search-btn {
    width: 100%;
  }

  .lyric-search-results {
    max-height: 200px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .top-header {
    padding: 0 8px;
  }

  .header-title {
    font-size: 13px;
    max-width: calc(100vw - 80px);
  }

  .content-area {
    padding: 8px;
  }

  .content-header {
    padding: 8px;
  }

  .status-tabs {
    padding: 0 8px;
  }

  .status-tab {
    padding: 8px 10px;
    font-size: 12px;
  }

  .submit-form-container {
    padding: 12px 8px;
  }

  .upload-zone {
    padding: 30px 16px;
  }
}

/* 暗色主题支持 */
[data-theme="dark"] body {
  background: #1a1a1a;
  color: #fff;
}

[data-theme="dark"] .top-header,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .content-header,
[data-theme="dark"] .status-tabs,
[data-theme="dark"] .lyric-item,
[data-theme="dark"] .pagination {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

[data-theme="dark"] .header-title,
[data-theme="dark"] .lyric-title {
  color: #fff;
}

[data-theme="dark"] .header-link,
[data-theme="dark"] .nav-item,
[data-theme="dark"] .content-tab,
[data-theme="dark"] .status-tab {
  color: #ccc;
}

[data-theme="dark"] .search-input,
[data-theme="dark"] .action-btn,
[data-theme="dark"] .more-btn,
[data-theme="dark"] .page-btn {
  background: #333;
  border-color: #444;
  color: #fff;
}

[data-theme="dark"] .lyric-thumbnail {
  background: #333;
}

[data-theme="dark"] .header-menu-btn {
  color: #ccc;
}

[data-theme="dark"] .header-menu-btn:hover {
  background: #333;
  color: #fff;
}

[data-theme="dark"] .header-menu-dropdown {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

[data-theme="dark"] .header-menu-item {
  color: #fff;
}

[data-theme="dark"] .header-menu-item:hover {
  background: #333;
}

[data-theme="dark"] .header-menu-item svg {
  color: #999;
}

[data-theme="dark"] .header-menu-item:hover svg {
  color: #00a1d6;
}

/* 上传区域样式 */
.upload-area {
  background: #f5f5f5;
  min-height: calc(100vh - 64px);
  padding: 40px 24px;
}

.upload-container {
  max-width: 800px;
  margin: 0 auto;
}

.upload-zone {
  background: #fff;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 80px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.upload-zone:hover {
  border-color: #00a1d6;
  background: #fafafa;
}

.upload-zone.drag-over {
  border-color: #00a1d6;
  background: #e6f7ff;
}

.upload-icon {
  color: #999;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.upload-zone:hover .upload-icon {
  color: #00a1d6;
}

.upload-text {
  font-size: 16px;
  color: #666;
  margin: 0 0 24px 0;
}

.upload-btn {
  padding: 10px 32px;
  background: #00a1d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.upload-btn:hover {
  background: #0090c0;
}

.upload-hint {
  margin-top: 24px;
}

.hint-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #d4edda;
  color: #155724;
  border-radius: 12px;
  font-size: 12px;
}

.upload-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
}

.upload-progress .spinner {
  margin: 0;
}

.upload-progress p {
  color: #666;
  margin: 0;
}

/* 投稿表单样式 */
.submit-area {
  background: #f5f5f5;
  min-height: calc(100vh - 64px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.submit-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.submit-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 24px 0;
  color: #333;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.form-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.form-label.required::after {
  content: ' *';
  color: #ff4757;
}

.form-input,
.form-textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #00a1d6;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-row-4 {
  grid-template-columns: repeat(2, 1fr);
}

.char-count {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin-top: -4px;
}

/* 单选框组 */
.radio-group {
  display: flex;
  gap: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 标签输入 */
.tag-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #e6f7ff;
  color: #00a1d6;
  border-radius: 4px;
  font-size: 12px;
}

.tag-remove {
  background: none;
  border: none;
  color: #00a1d6;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.tag-remove:hover {
  color: #ff4757;
}

.tag-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tag-hint {
  font-size: 12px;
  color: #999;
}

/* 表单操作按钮 */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.btn-primary,
.btn-secondary {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #00a1d6;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #0090c0;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
  border-color: #00a1d6;
  color: #00a1d6;
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 提交状态 */
.submit-status {
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}

.submit-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.submit-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.submit-status.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* 文件名显示样式 */
.filename-display {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.filename-value {
  color: #0369a1;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  word-break: break-all;
}

/* 元数据显示样式 */
.metadata-display {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.metadata-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metadata-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.metadata-label {
  color: #666;
  font-weight: 500;
  min-width: 120px;
  max-width: 120px;
  flex-shrink: 0;
}

.metadata-value {
  color: #333;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 歌词检查结果样式 */
.lyric-check-result {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}

.check-result {
  padding: 12px 16px;
}

.check-result.success {
  background: #d4edda;
  border-color: #28a745;
}

.check-result.error {
  background: #f8d7da;
  border-color: #dc3545;
}

.check-result.parse-error {
  background: #fff3cd;
  border-color: #ffc107;
}

.check-result.loading {
  background: #f6f8fa;
  border-color: #e1e4e8;
}

.check-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.check-icon {
  font-size: 16px;
  font-weight: bold;
}

.check-result.success .check-icon {
  color: #28a745;
}

.check-result.error .check-icon,
.check-result.parse-error .check-icon {
  color: #dc3545;
}

.check-result-content {
  font-size: 13px;
  line-height: 1.6;
}

.check-result-content p {
  margin: 0 0 8px 0;
}

.check-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  color: #666;
  font-size: 12px;
}

.check-error-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  max-height: 200px;
  overflow-y: auto;
}

.check-error-list li {
  padding: 6px 10px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  border-left: 3px solid #dc3545;
  font-size: 12px;
  line-height: 1.5;
}

/* 暗色主题支持 */
[data-theme="dark"] .filename-display {
  background: #1a3a4a;
  border-color: #0ea5e9;
}

[data-theme="dark"] .filename-value {
  color: #7dd3fc;
}

[data-theme="dark"] .metadata-display {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .metadata-label {
  color: #999;
}

[data-theme="dark"] .metadata-value {
  color: #fff;
}

/* 原始歌词搜索样式 */
.lyric-search-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lyric-search-input-wrapper {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lyric-search-input-wrapper .form-input {
  flex: 1;
  min-width: 0;
}

.lyric-search-btn {
  padding: 8px 16px;
  background: #0090c0;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}

.lyric-search-btn:hover {
  background: #007aa3;
}

.lyric-search-results {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: #fff;
}

.lyric-search-item {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}

.lyric-search-item:hover {
  background: #f8f9fa;
}

.lyric-search-item:last-child {
  border-bottom: none;
}

.lyric-search-item-title {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.lyric-search-item-meta {
  font-size: 12px;
  color: #666;
}

.selected-original-lyric {
  border: 1px solid #bae6fd;
  border-radius: 4px;
  background: #f0f9ff;
  padding: 12px;
}

.selected-lyric-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selected-lyric-title {
  font-weight: 500;
  color: #0369a1;
}

.selected-lyric-meta {
  font-size: 13px;
  color: #666;
}

.remove-selected-lyric-btn {
  align-self: flex-start;
  padding: 4px 12px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.remove-selected-lyric-btn:hover {
  background: #dc2626;
}

/* 暗色主题支持 */
[data-theme="dark"] .lyric-search-results {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .lyric-search-item {
  border-bottom-color: #444;
}

[data-theme="dark"] .lyric-search-item:hover {
  background: #333;
}

[data-theme="dark"] .lyric-search-item-title {
  color: #fff;
}

[data-theme="dark"] .lyric-search-item-meta {
  color: #999;
}

[data-theme="dark"] .selected-original-lyric {
  background: #1a3a4a;
  border-color: #0ea5e9;
}

[data-theme="dark"] .selected-lyric-title {
  color: #7dd3fc;
}

[data-theme="dark"] .selected-lyric-meta {
  color: #999;
}

/* 投稿按钮激活状态 */
.sidebar-btn.active {
  background: #0090c0;
}

/* 暗色主题支持 */
[data-theme="dark"] .submit-form-container {
  background: #2a2a2a;
}

[data-theme="dark"] .submit-title,
[data-theme="dark"] .form-label {
  color: #fff;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .tag-input {
  background: #333;
  border-color: #444;
  color: #fff;
}

[data-theme="dark"] .tag-item {
  background: #1a3a4a;
  color: #4fc3f7;
}

[data-theme="dark"] .btn-secondary {
  background: #333;
  border-color: #444;
  color: #fff;
}

[data-theme="dark"] .form-actions {
  border-top-color: #444;
}

/* 上传区域暗色主题 */
[data-theme="dark"] .upload-area {
  background: #1a1a1a;
}

[data-theme="dark"] .upload-zone {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .upload-zone:hover {
  background: #333;
  border-color: #00a1d6;
}

[data-theme="dark"] .upload-zone.drag-over {
  background: #1a3a4a;
  border-color: #00a1d6;
}

[data-theme="dark"] .upload-icon {
  color: #999;
}

[data-theme="dark"] .upload-text {
  color: #ccc;
}

[data-theme="dark"] .hint-badge {
  background: #1a3a4a;
  color: #4fc3f7;
}

