/* ====================================================================
   Pure Cycling Bike Fitting - 全局交互与现代响应式样式
   针对 Mac 桌面大屏与 iPad 平板触控专项优化
   ==================================================================== */

:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --accent-blue: #2563eb;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --border-dark: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* 顶部导航与玻璃拟态 */
.glass-nav {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* iPad 触控交互优化 */
button, input, select, textarea {
  touch-action: manipulation;
}

.touch-target {
  min-height: 42px;
  min-width: 42px;
}

/* A~O 徽章样式 */
.badge-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: #dc2626;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.4);
}

/* 图数联动发光脉冲动画 */
@keyframes pulse-badge {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px #dc2626);
  }
  50% {
    transform: scale(1.4);
    filter: drop-shadow(0 0 10px #2563eb);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px #dc2626);
  }
}

.active-badge-pulse {
  animation: pulse-badge 1.2s infinite ease-in-out;
  transform-box: fill-box;
}

/* 输入框聚焦联动动画 */
.spec-input-highlight {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
  background-color: #eff6ff !important;
  transition: all 0.3s ease;
}

/* 调整差值对比彩色药丸 Badge */
.delta-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}
.delta-up {
  background-color: #fee2e2;
  color: #dc2626;
}
.delta-down {
  background-color: #dbeafe;
  color: #2563eb;
}
.delta-same {
  background-color: #f1f5f9;
  color: #64748b;
}

/* 纸质档案预览卡片 */
.paper-sheet-preview {
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* 滚动条精致化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 媒体多文件上传拖拽区 */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.dropzone.dragover {
  border-color: #dc2626;
  background-color: #fef2f2;
}
