/**
 * AiDrumScore - AI驱动的鼓谱转录工具
 * Copyright (c) 2026 苏州市常熟市制谱修修信息技术服务有限责任公司. All rights reserved.
 *
 * 鼓谱师工作台样式 (Notion warm minimalism)
 */

body {
  background-color: #f3f4f6 !important;
}

/* ============================================================
   页面容器
   ============================================================ */
.db-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 104px 32px 80px;
}

/* ============================================================
   页面头部
   ============================================================ */
.db-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.db-title {
  font-family: var(--font-display, -apple-system, sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.db-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* ============================================================
   个人信息卡片
   ============================================================ */
.db-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg, 16px);
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.db-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0075de;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

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

.db-profile-name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.db-profile-desc {
  font-size: 12px;
  color: #6b7280;
}

.db-profile-edit-btn {
  flex-shrink: 0;
}

/* ============================================================
   按钮
   ============================================================ */
.db-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body, -apple-system, sans-serif);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

.db-btn-primary {
  background: #0075de;
  color: #ffffff;
}
.db-btn-primary:hover {
  background: #0065c0;
}
.db-btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.db-btn-outline {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #374151;
}
.db-btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.db-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body, -apple-system, sans-serif);
  cursor: pointer;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  transition: all 0.15s ease;
}
.db-btn-sm:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* ============================================================
   加载状态
   ============================================================ */
.db-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  color: #9ca3af;
  font-size: 14px;
}
.db-loading .spinner {
  margin: 0 auto 20px;
}

/* ============================================================
   统计概览
   ============================================================ */
.db-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .db-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .db-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.db-stat {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 16px);
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease;
}
.db-stat:hover {
  border-color: #d1d5db;
}

.db-stat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.db-stat-icon {
  font-size: 20px;
  line-height: 1;
}

.db-stat-value {
  font-family: var(--font-display, -apple-system, sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.03em;
}

.db-stat-label {
  font-size: 12px;
  color: #6b7280;
  padding-left: 28px;
}

/* ============================================================
   选项卡
   ============================================================ */
.db-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 16px);
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.db-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #6b7280;
  font-family: var(--font-body, -apple-system, sans-serif);
  transition: all 0.15s ease;
  position: relative;
}
.db-tab:hover {
  color: #374151;
  background: #f9fafb;
}
.db-tab.active {
  background: #0075de;
  color: #ffffff;
}

.db-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
}

/* ============================================================
   Tab 内容
   ============================================================ */
.db-tab-content {
  display: none;
}

/* ── 订单筛选 ── */
.db-order-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.db-filter-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-family: var(--font-body, -apple-system, sans-serif);
  transition: all 0.15s ease;
}
.db-filter-btn:hover {
  border-color: #d1d5db;
  color: #374151;
}
.db-filter-btn.active {
  background: #0075de;
  color: #ffffff;
  border-color: #0075de;
}

/* ── 订单列表 ── */
.db-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-order-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 12px);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.db-order-item:hover {
  border-color: #d1d5db;
}
.db-order-item.db-order-item-expanded {
  border-color: #0075de;
  box-shadow: 0 0 0 1px rgba(0, 117, 222, 0.2);
}

/* 别人已接的订单：淡灰色只读展示 */
.db-order-item-others {
  opacity: 0.75;
  background: #f9fafb;
  border-color: #e5e7eb;
  border-style: dashed;
}
.db-order-item-others:hover {
  opacity: 0.90;
  border-color: #d1d5db;
}

/* 别人已接的订单接单人标识 */
.db-order-badge-others {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.db-order-expand-icon {
  font-size: 10px;
  color: #9ca3af;
  margin-left: auto;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.db-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.db-order-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.db-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.db-order-badge.order-status--pending_payment { background: rgba(202, 138, 4, 0.1); color: #ca8a04; }
.db-order-badge.order-status--pending { background: rgba(202, 138, 4, 0.1); color: #ca8a04; }
.db-order-badge.order-status--in_progress { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.db-order-badge.order-status--delivered { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
.db-order-badge.order-status--completed { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.db-order-badge.order-status--cancelled { background: rgba(156, 163, 175, 0.1); color: #9ca3af; }

.db-order-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.db-order-tier {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  background: #f3f4f6;
  color: #6b7280;
}

.db-order-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

/* ── 展开详情区域 ── */
.db-order-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  animation: dbDetailSlideIn 0.2s ease;
}

@keyframes dbDetailSlideIn {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 600px; }
}

.db-detail-section {
  margin-bottom: 10px;
}
.db-detail-section:last-child {
  margin-bottom: 0;
}

.db-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.db-detail-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.db-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.db-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ── 文件列表 ── */
.db-file-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#files-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-file-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.db-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.04);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  width: fit-content;
  max-width: 100%;
  flex: 1;
}
.db-file-link:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.db-file-dl-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

/* ── 文件删除按钮 ── */
.db-file-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #ef4444;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}
.db-file-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.db-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm, 8px);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body, -apple-system, sans-serif);
  transition: all 0.15s ease;
  border: none;
}

.db-order-btn-accept {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.db-order-btn-accept:hover {
  background: rgba(37, 99, 235, 0.2);
}

.db-order-btn-deliver {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.db-order-btn-deliver:hover {
  background: rgba(22, 163, 74, 0.2);
}

.db-order-btn-upload {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.db-order-btn-upload:hover {
  background: rgba(37, 99, 235, 0.2);
}

.db-order-btn-finalize {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.db-order-btn-finalize:hover {
  background: rgba(22, 163, 74, 0.2);
}

/* ── 通知列表 ── */
.db-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.db-notif-count {
  font-size: 13px;
  color: #6b7280;
}

.db-notif-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.db-notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 12px);
  cursor: pointer;
  transition: all 0.15s ease;
}
.db-notif-item:hover {
  border-color: #d1d5db;
}
.db-notif-item.db-notif-unread {
  background: rgba(0, 117, 222, 0.03);
  border-color: rgba(0, 117, 222, 0.15);
}

.db-notif-left {
  flex-shrink: 0;
  padding-top: 4px;
}

.db-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.db-notif-dot-unread {
  background: #0075de;
}

.db-notif-content {
  flex: 1;
  min-width: 0;
}

.db-notif-title {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 2px;
}

.db-notif-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 4px;
}

.db-notif-meta {
  font-size: 11px;
  color: #9ca3af;
}

.db-notif-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  background: #0075de;
  color: #ffffff;
  flex-shrink: 0;
  height: fit-content;
}

/* ── 上传鼓谱表单 ── */
.db-upload-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.db-upload-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 117, 222, 0.06);
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 20px;
}

.db-upload-info-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.db-upload-info p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

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

.db-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.db-form-input,
.db-form-select,
.db-form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm, 8px);
  font-size: 14px;
  font-family: var(--font-body, -apple-system, sans-serif);
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.db-form-input:focus,
.db-form-select:focus,
.db-form-textarea:focus {
  border-color: #0075de;
}

.db-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

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

.db-upload-zone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-upload-hint {
  font-size: 13px;
  color: #9ca3af;
}

.db-file-item {
  padding: 4px 8px;
  font-size: 12px;
  color: #6b7280;
}

/* ── 多文件上传列表 ── */
.db-file-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.db-file-item-row:hover {
  background: #f3f4f6;
}

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

.db-file-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.db-file-item-size {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}

.db-file-preview-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  min-width: 65px;
  flex-shrink: 0;
}
.db-file-preview-label span {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}
.db-file-preview-cb {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.db-file-item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #ef4444;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.15s ease;
}
.db-file-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.db-file-add-btn {
  color: #0075de !important;
  border-color: #0075de !important;
}
.db-file-add-btn:hover {
  background: rgba(0, 117, 222, 0.06) !important;
}

.db-format-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.db-form-error {
  color: #ef4444;
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.06);
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 12px;
}

.db-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ── 空状态 ── */
.db-empty {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 12px);
}

.db-empty-text {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* ── 修改建议醒目标志 ── */
.db-revision-alert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #d97706;
  white-space: nowrap;
  cursor: help;
  flex-shrink: 0;
}

/* ── 订单卡片修改状态高亮 ── */
.db-order-item.db-order-item-revision {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
  background: rgba(251, 191, 36, 0.02);
}

/* ── 交付模式选择弹窗 ── */
.transcriber-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.transcriber-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 480px;
  overflow: hidden;
}
.transcriber-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.transcriber-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}
.transcriber-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  line-height: 1;
}
.transcriber-modal-body {
  padding: 20px 24px 24px;
}
.transcriber-modal-footer {
  padding: 0 24px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── 我的鼓谱 ── */
.db-scores-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6b7280;
}

.db-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.db-score-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.db-score-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.db-score-cover {
  position: relative;
  width: 100%;
  height: 140px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.db-score-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.db-score-cover-placeholder {
  font-size: 36px;
  color: #d1d5db;
}

.db-score-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.db-score-badge-active {
  background: rgba(22, 163, 74, 0.9);
  color: #ffffff;
}
.db-score-badge-offline {
  background: rgba(156, 163, 175, 0.85);
  color: #ffffff;
}
.db-score-badge-pending {
  background: rgba(202, 138, 4, 0.85);
  color: #ffffff;
}

.db-score-info {
  padding: 12px 14px;
}

.db-score-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-score-artist {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-score-tags {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.db-score-tag {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  background: #f3f4f6;
  color: #6b7280;
}

.db-score-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.db-score-stat-item {
  font-size: 12px;
  color: #6b7280;
}

.db-score-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.db-score-price {
  font-family: var(--font-display, -apple-system, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #0075de;
}

.db-score-date {
  font-size: 11px;
  color: #9ca3af;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .db-page {
    padding: 84px 16px 64px;
  }

  .db-header {
    flex-direction: column;
  }

  .db-title {
    font-size: 22px;
  }

  .db-stat-value {
    font-size: 18px;
  }

  .db-tabs {
    overflow-x: auto;
    gap: 0;
  }

  .db-tab {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
  }

  .db-order-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .db-upload-form {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .db-stat {
    padding: 12px 14px;
  }

  .db-stat-value {
    font-size: 16px;
  }

  .db-order-item {
    padding: 12px 14px;
  }

  .db-order-detail {
    margin-top: 10px;
    padding-top: 10px;
  }

  .db-file-link {
    font-size: 12px;
    padding: 5px 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .db-detail-tag {
    font-size: 11px;
  }
}

/* ============================================================
   提现
   ============================================================ */
.db-withdraw-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.db-withdraw-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: #374151;
}

.db-withdraw-info strong {
  font-size: 18px;
  color: #10b981;
}

.db-withdraw-hint {
  font-size: 12px;
  color: #9ca3af;
}

.db-withdraw-balance-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm, 8px);
  padding: 14px 16px;
}

.db-withdraw-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #374151;
  padding: 4px 0;
}

.db-withdraw-info-text {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm, 8px);
}

.db-withdraw-info-text p {
  margin: 0;
  font-size: 12px;
  color: #92400e;
  line-height: 1.6;
}

/* 提现记录列表 */
.db-withdrawal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-withdrawal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm, 8px);
  transition: all 0.15s ease;
}

.db-withdrawal-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.db-withdrawal-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-withdrawal-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.db-withdrawal-status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.db-withdrawal-status-paid {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.db-withdrawal-status-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.db-withdrawal-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
