/* 管理端样式 */

.admin-container {
  min-height: 100vh;
  background: #f0f2f5;
}

.admin-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.admin-header h1 {
  font-size: 20px;
  color: #262626;
}

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

.admin-content {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  background: white;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header h2 {
  font-size: 24px;
  color: #262626;
}

.toolbar {
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-group label {
  font-size: 14px;
  color: #595959;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.data-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #fafafa;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #262626;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #595959;
}

.data-table tr:hover {
  background: #fafafa;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-buttons button {
  padding: 4px 12px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit {
  background: #1890ff;
  color: white;
}

.btn-edit:hover {
  background: #40a9ff;
}

.btn-delete {
  background: #f5222d;
  color: white;
}

.btn-delete:hover {
  background: #ff4d4f;
}

.btn-disable {
  background: #faad14;
  color: white;
}

.btn-disable:hover {
  background: #ffc53d;
}

.btn-enable {
  background: #52c41a;
  color: white;
}

.btn-enable:hover {
  background: #73d13d;
}

.pagination {
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-info {
  font-size: 14px;
  color: #595959;
}

.pagination-controls {
  display: flex;
  gap: 8px;
}

.pagination-controls button {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pagination-controls button:hover:not(:disabled) {
  border-color: #1890ff;
  color: #1890ff;
}

.pagination-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-controls .active {
  background: #1890ff;
  color: white;
  border-color: #1890ff;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  color: #262626;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #8c8c8c;
}

.modal-body {
  margin-bottom: 20px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #262626;
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}

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

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card .label {
  font-size: 14px;
  color: #8c8c8c;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 600;
  color: #262626;
}

.stat-card.primary .value {
  color: #1890ff;
}

.stat-card.success .value {
  color: #52c41a;
}

.stat-card.warning .value {
  color: #faad14;
}

.stat-card.danger .value {
  color: #f5222d;
}

/* 快速生成密钥区域 */
.quick-generate-section {
  background: white;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-generate-section .section-title {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  margin: 0;
  white-space: nowrap;
}

.quick-generate-section .generate-result {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quick-generate-section .generated-key {
  flex: 1;
  padding: 10px 16px;
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 18px;
  font-weight: 600;
  color: #1890ff;
  text-align: center;
  min-width: 140px;
  letter-spacing: 2px;
}

.quick-generate-section .generated-key.empty {
  color: #8c8c8c;
  font-weight: normal;
  font-size: 14px;
  letter-spacing: normal;
}

.quick-generate-section .btn-copy {
  padding: 10px 20px;
  background: #52c41a;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.quick-generate-section .btn-copy:hover {
  background: #73d13d;
}

.quick-generate-section .btn-copy:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-header {
    padding: 0 12px;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  .admin-header h1 {
    font-size: 16px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .admin-header .user-info {
    gap: 10px;
  }
  
  .admin-nav {
    padding: 0 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .admin-nav a {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .admin-content {
    padding: 12px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .stat-card {
    padding: 14px;
  }
  
  .stat-card .label {
    font-size: 12px;
  }
  
  .stat-card .value {
    font-size: 22px;
  }
  
  .page-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .page-header h2 {
    font-size: 18px;
  }
  
  .page-header .btn {
    width: 100%;
  }
  
  /* 快速生成区域移动端适配 */
  .quick-generate-section {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  
  .quick-generate-section .section-title {
    align-self: flex-start;
  }
  
  .quick-generate-section .generate-result {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .quick-generate-section .generated-key {
    width: 100%;
    font-size: 20px;
    padding: 14px;
  }
  
  .quick-generate-section .btn-copy,
  .quick-generate-section .btn {
    width: 100%;
    padding: 12px;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }
  
  .search-box {
    max-width: none;
    min-width: auto;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-group select {
    flex: 1;
  }
  
  .toolbar .btn {
    width: 100%;
  }
  
  .data-table {
    font-size: 12px;
    border-radius: 6px;
  }
  
  .data-table th,
  .data-table td {
    padding: 10px 6px;
  }
  
  .data-table th:first-child,
  .data-table td:first-child {
    padding-left: 10px;
  }
  
  .data-table code {
    font-size: 11px;
    word-break: break-all;
  }
  
  .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  
  .action-buttons button {
    padding: 8px 12px;
    font-size: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  
  .pagination {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pagination-controls button {
    padding: 8px 12px;
  }
  
  /* 模态框移动端适配 */
  .modal-content {
    width: 95%;
    padding: 16px;
    margin: 10px;
    max-height: 90vh;
  }
  
  .modal-header h3 {
    font-size: 16px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
  .admin-header h1 {
    font-size: 14px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-card .value {
    font-size: 20px;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 4px;
    font-size: 11px;
  }
  
  /* 超小屏幕适配：隐藏部分表格列以节省空间 */
  .data-table th:nth-child(4),
  .data-table td:nth-child(4),
  .data-table th:nth-child(5),
  .data-table td:nth-child(5),
  .data-table th:nth-child(6),
  .data-table td:nth-child(6) {
    display: none;
  }
  
  /* 超小屏幕操作按钮适配 */
  .action-buttons button {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ==================== 资源上传样式 ==================== */
.upload-section {
  background: white;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.upload-section .section-title {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  margin: 0 0 16px 0;
}

.upload-area {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
}

.upload-area:hover {
  border-color: #1890ff;
  background: #e6f7ff;
}

.upload-area.drag-over {
  border-color: #1890ff;
  background: #e6f7ff;
  transform: scale(1.01);
}

.upload-area .upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upload-area p {
  margin: 8px 0;
  color: #595959;
  font-size: 14px;
}

.upload-area .upload-hint {
  color: #8c8c8c;
  font-size: 12px;
}

.upload-progress {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1890ff, #52c41a);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 14px;
  color: #1890ff;
  font-weight: 600;
  min-width: 45px;
}

.uploaded-files {
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.uploaded-files h4 {
  font-size: 14px;
  color: #262626;
  margin: 0 0 12px 0;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}

.file-item .file-icon {
  font-size: 24px;
}

.file-item .file-info {
  flex: 1;
  min-width: 0;
}

.file-item .file-name {
  font-size: 14px;
  color: #262626;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item .file-size {
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 2px;
}

.file-item .file-url {
  flex: 2;
  min-width: 0;
}

.file-item .file-url input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 12px;
  color: #595959;
  background: white;
}

.file-item .file-actions {
  display: flex;
  gap: 8px;
}

.file-item .btn-copy-url,
.file-item .btn-preview,
.file-item .btn-delete-file {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-item .btn-copy-url {
  background: #1890ff;
  color: white;
}

.file-item .btn-copy-url:hover {
  background: #40a9ff;
}

.file-item .btn-preview {
  background: #52c41a;
  color: white;
}

.file-item .btn-preview:hover {
  background: #73d13d;
}

.file-item .btn-delete-file {
  background: #f5222d;
  color: white;
}

.file-item .btn-delete-file:hover {
  background: #ff4d4f;
}

/* 上传区域移动端适配 */
@media (max-width: 768px) {
  .upload-section {
    padding: 16px;
  }
  
  .upload-area {
    padding: 30px 15px;
  }
  
  .upload-area .upload-icon {
    font-size: 36px;
  }
  
  .file-item {
    flex-wrap: wrap;
  }
  
  .file-item .file-url {
    width: 100%;
    order: 3;
    margin-top: 8px;
  }
  
  .file-item .file-actions {
    order: 2;
  }
}

/* ==================== 资源管理页面样式 ==================== */

.page-header .page-desc {
  color: #8c8c8c;
  font-size: 14px;
  margin-top: 8px;
}

.upload-form {
  margin-bottom: 20px;
}

.upload-form .form-row {
  margin-bottom: 16px;
}

.upload-form .form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #262626;
}

.upload-form .form-row label .required {
  color: #f5222d;
}

.upload-form .form-row input,
.upload-form .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.upload-form .form-row input:focus,
.upload-form .form-row textarea:focus {
  border-color: #1890ff;
  outline: none;
}

.upload-form .form-hint {
  display: block;
  margin-top: 6px;
  color: #8c8c8c;
  font-size: 12px;
}

/* 海报上传区域 */
.poster-upload-area {
  width: 200px;
  height: 112px;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.poster-upload-area:hover {
  border-color: #1890ff;
}

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.poster-placeholder .poster-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.poster-placeholder p {
  margin: 0;
  font-size: 12px;
  color: #8c8c8c;
}

.poster-placeholder .poster-hint {
  font-size: 11px;
  color: #bfbfbf;
  margin-top: 2px;
}

.poster-preview {
  width: 100%;
  height: 100%;
  position: relative;
}

.poster-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.poster-remove:hover {
  background: rgba(245, 34, 45, 0.8);
}

.upload-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

/* 选中的文件列表 */
.selected-files {
  margin-top: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e8e8e8;
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.file-item:hover {
  border-color: #1890ff;
  background: #fafafa;
}

.file-item-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

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

.file-item-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: #ff4d4f;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.file-item-remove:hover {
  background: #ff7875;
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

.selected-file .file-preview {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-file .file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-file .file-preview .preview-icon {
  font-size: 36px;
}

.selected-file .file-details {
  flex: 1;
}

.selected-file .file-name {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
}

.selected-file .file-meta {
  font-size: 12px;
  color: #8c8c8c;
}

/* 已上传资源区域 */
.uploaded-section {
  background: white;
  padding: 20px 24px;
  border-radius: 8px;
  margin-top: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.search-input {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  width: 200px;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.resource-card:hover {
  border-color: #1890ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

.resource-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.resource-thumbnail .thumbnail-icon {
  font-size: 28px;
}

.resource-info {
  flex: 1;
  min-width: 0;
}

.resource-name {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #8c8c8c;
  flex-wrap: wrap;
}

.resource-remark {
  font-size: 12px;
  color: #595959;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-column {
  color: #722ed1;
  background: #f9f0ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.resource-poster-tag {
  font-size: 11px;
  color: #1890ff;
  margin-top: 4px;
}

.resource-actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-action:hover {
  transform: scale(1.1);
}

.btn-action.btn-preview:hover {
  background: #e6f7ff;
}

.btn-action.btn-copy:hover {
  background: #f6ffed;
}

.btn-action.btn-delete:hover {
  background: #fff1f0;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8c8c8c;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state p {
  margin: 8px 0;
}

.empty-state .empty-hint {
  font-size: 12px;
}

/* 预览模态框 */
.modal-large {
  max-width: 800px;
}

.preview-container {
  text-align: center;
  margin-bottom: 16px;
}

.preview-container img,
.preview-container video {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
}

.preview-container .audio-preview {
  padding: 40px;
}

.preview-container .audio-preview .audio-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.preview-info {
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
}

.preview-info .info-row {
  display: flex;
  margin-bottom: 8px;
  font-size: 14px;
}

.preview-info .info-row:last-child {
  margin-bottom: 0;
}

.preview-info .info-row label {
  color: #8c8c8c;
  width: 80px;
  flex-shrink: 0;
}

.preview-info .info-row span {
  color: #262626;
}

.preview-info .url-row input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 12px;
}

.preview-info .preview-poster {
  max-width: 150px;
  max-height: 84px;
  border-radius: 4px;
  object-fit: cover;
}

/* 进度条优化 */
.upload-progress .progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.upload-progress .progress-filename {
  color: #595959;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

/* 资源管理页移动端适配 */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .section-actions {
    width: 100%;
  }
  
  .search-input {
    flex: 1;
  }
  
  .resource-card {
    flex-wrap: wrap;
  }
  
  .resource-info {
    flex: 1 1 calc(100% - 80px);
  }
  
  .resource-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
  
  .selected-file {
    flex-direction: column;
    text-align: center;
  }
  
  .upload-actions {
    flex-direction: column;
  }
  
  .upload-actions .btn {
    width: 100%;
  }
}

/* 歌曲排序管理样式 */
.sort-hint {
  font-size: 13px;
  color: #888;
  margin: 0 0 16px 0;
  padding: 0 4px;
}

.song-sort-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100px;
}

.song-sort-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  cursor: grab;
  transition: all 0.2s ease;
}

.song-sort-item:hover {
  background: #e9ecef;
  border-color: #d0d0d0;
}

.song-sort-item.dragging {
  opacity: 0.5;
  background: #e0e7ff;
  border-color: #667eea;
}

.song-sort-item.drag-over {
  border-color: #667eea;
  border-style: dashed;
}

.song-sort-handle {
  color: #999;
  font-size: 18px;
  cursor: grab;
}

.song-sort-order {
  width: 50px;
  padding: 6px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

.song-sort-order:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.song-sort-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.song-sort-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #888;
}

.song-sort-count {
  background: #e6f7ff;
  color: #1890ff;
  padding: 2px 8px;
  border-radius: 10px;
}

.song-sort-actions {
  display: flex;
  gap: 8px;
}

.song-sort-actions .btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* 展开/折叠功能样式 */
.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-right: 8px;
  font-size: 12px;
}

.toggle-icon.collapsed {
  transform: rotate(-90deg);
}

.section-title {
  user-select: none;
  display: flex;
  align-items: center;
}

.section-title:hover {
  opacity: 0.8;
}

.section-content-collapsed {
  display: none;
}

/* 批量删除工具栏样式 */
.sort-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.sort-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #595959;
}

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

.selected-count {
  font-size: 13px;
  color: #1890ff;
  font-weight: 500;
}

.song-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.sort-toolbar .sort-hint {
  margin: 0;
  font-size: 13px;
  color: #888;
}

