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

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

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

/* ============================================================
   页面头部
   ============================================================ */
.tr-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  gap: 20px;
}

.tr-header-content {
  flex: 1;
}

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

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

.tr-header-stats {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
}

.tr-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #0075de;
}

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

/* ============================================================
   卡片网格
   ============================================================ */
.tr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* ============================================================
   单个卡片
   ============================================================ */
.tr-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tr-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ── 铂金卡片动效 ── */
.tr-card-platinum {
  border-color: rgba(107, 91, 149, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, rgba(107, 91, 149, 0.03) 50%, #ffffff 100%);
  position: relative;
}
.tr-card-platinum::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #6b5b95, #a78bfa, #6b5b95, #8b7db5);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: platinumShimmer 3s ease-in-out infinite;
  pointer-events: none;
}
.tr-card-platinum:hover {
  border-color: #8b7db5;
  box-shadow: 0 8px 30px rgba(107, 91, 149, 0.15);
}

@keyframes platinumShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── 卡片头部 ── */
.tr-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
}

.tr-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  background: rgba(191, 90, 242, 0.12);
  color: #0075de;
  flex-shrink: 0;
}

.tr-card-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tr-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-card-realname {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 官方认证徽章 ── */
.tr-card-certified {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.tr-card-level {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 9999px;
  border: 1px solid;
  width: fit-content;
}

/* ── 铂金等级徽章动效 ── */
.tr-card-level-platinum {
  animation: levelPulse 2s ease-in-out infinite;
}

@keyframes levelPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 91, 149, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(107, 91, 149, 0.1); }
}

/* ── 卡片主体 ── */
.tr-card-body {
  padding: 12px 20px;
}

.tr-card-rating {
  color: #f59e0b;
  font-size: 13px;
  margin-bottom: 6px;
}

.tr-card-rating-num {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px;
}

.tr-card-specialty {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tr-card-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.tr-card-bio {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ── 升级进度条 ── */
.tr-level-progress {
  margin-bottom: 8px;
}

.tr-level-progress-text {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 4px;
  font-weight: 500;
}

.tr-level-progress-bar {
  width: 100%;
  height: 4px;
  background: #f3f4f6;
  border-radius: 2px;
  overflow: hidden;
}

.tr-level-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ── 卡片底部统计 ── */
.tr-card-footer {
  display: flex;
  border-top: 1px solid #f3f4f6;
  padding: 14px 20px;
}

.tr-card-stat {
  flex: 1;
  text-align: center;
}

.tr-card-stat + .tr-card-stat {
  border-left: 1px solid #f3f4f6;
}

.tr-card-stat-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 2px;
}

.tr-card-stat-label {
  font-size: 11px;
  color: #9ca3af;
}

/* ============================================================
   空状态
   ============================================================ */
.tr-empty {
  text-align: center;
  padding: 80px 20px;
}

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

.tr-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
}

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

/* ============================================================
   分页
   ============================================================ */
.tr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.tr-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  transition: all 0.15s ease;
  font-family: var(--font-body, -apple-system, sans-serif);
}
.tr-page-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #d1d5db;
}
.tr-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.tr-page-info {
  font-size: 13px;
  color: #6b7280;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .tr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .transcribers-page {
    padding: 84px 16px 64px;
  }

  .tr-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .tr-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tr-card-header {
    padding: 16px 16px 0;
  }

  .tr-card-body {
    padding: 10px 16px;
  }

  .tr-card-footer {
    padding: 12px 16px;
  }
}
