/* ==================== 变量定义 ==================== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --accent: #06b6d4;
  --success: #10b981;
  --success-light: #34d399;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --danger: #ef4444;
  --danger-light: #f87171;
  
  --sidebar-bg: #0f172a;
  --sidebar-card: #1e293b;
  --sidebar-hover: #334155;
  --sidebar-text: #94a3b8;
  --sidebar-active: #e2e8f0;
  --main-bg: #f1f5f9;
  --card-bg: #ffffff;
  
  --text-dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --text-secondary: #cbd5e1;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.06);
  
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --sidebar-width: 280px;
  --step-circle-size: 42px;
  --step-circle-center: 21px;
}

/* ==================== 基础重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--main-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==================== 布局 ==================== */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 0 0 24px 0;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 32px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.logo-text {
  color: white;
}

.logo-title {
  font-size: 17px;
  font-weight: 600;
}

.logo-sub {
  font-size: 12px;
  color: var(--sidebar-text);
  margin-top: 3px;
}

/* ==================== 步骤标题 ==================== */
.steps-title {
  color: var(--sidebar-text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* ==================== 步骤导航 - 连接线系统 ==================== */
.steps-nav {
  padding: 0 24px;
  flex: 1;
  overflow-y: auto;
  position: relative;
}

/* 
 * 连接线修复方案：
 * ::before 是相对于 step-item 定位的，不是 steps-nav
 * 计算公式：
 *    - 圆圈尺寸: 42px
 *    - 圆心位置: 21px (圆圈半径)
 *    - step-item 的左边缘 = 圆圈的左边缘
 *    - 所以连接线 left = 圆圈半径 = 21px
 */

.step-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-item:last-child {
  padding-bottom: 0;
}

/* 
 * 连接线基础样式 - 灰色未完成状态
 * 使用 ::before 作为连接线，定位到圆心位置
 */
.step-item::before {
  content: '';
  position: absolute;
  /* 定位到圆心水平位置 - 相对于 step-item，圆圈从左边缘开始 */
  left: var(--step-circle-center);
  /* 从圆圈底部开始 */
  top: var(--step-circle-size);
  /* 延伸到步骤底部 */
  height: calc(100% - var(--step-circle-size) + 7px);
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  /* 向左偏移一半宽度使其居中 */
  transform: translateX(-50%);
  z-index: 0;
  transition: background 0.3s ease;
}

/* 最后一个步骤不显示连接线 */
.step-item:last-child::before {
  display: none;
}

/* 已完成步骤的连接线 - 绿色 */
.step-item.done::before {
  background: var(--success);
}

/* 步骤圆圈 */
.step-num {
  position: relative;
  width: var(--step-circle-size);
  height: var(--step-circle-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--sidebar-text);
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.step-item.active .step-num {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: white;
  box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.15), 0 4px 16px rgba(14, 165, 233, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.step-item.done .step-num {
  background: var(--success);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.step-item.done .step-num span {
  display: none;
}

.step-item.done .step-num::after {
  content: '✓';
  font-size: 16px;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.15), 0 4px 16px rgba(14, 165, 233, 0.4); 
  }
  50% { 
    box-shadow: 0 0 0 16px rgba(14, 165, 233, 0.05), 0 4px 16px rgba(14, 165, 233, 0.4); 
  }
}

/* 步骤切换按钮 */
.step-toggle-btn {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  outline: none;
  font-family: inherit;
}

.step-toggle-btn[data-checked="false"] {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.step-toggle-btn[data-checked="false"]:hover {
  background: rgba(245, 158, 11, 0.25);
}

.step-toggle-btn[data-checked="true"] {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.step-toggle-btn[data-checked="true"]:hover {
  background: rgba(16, 185, 129, 0.25);
}

.step-toggle-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.step-info {
  flex: 1;
  padding-top: 8px;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 12px;
  margin: -8px -12px;
  transition: all 0.2s ease;
}

.step-info:hover {
  background: rgba(255, 255, 255, 0.05);
}

.step-info:active {
  background: rgba(255, 255, 255, 0.08);
}

.step-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--sidebar-text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  margin-bottom: 4px;
}

.step-item.active .step-name,
.step-item.done .step-name {
  color: var(--sidebar-active);
}

.step-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.step-item.active .step-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* ==================== 侧边栏底部 ==================== */
.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.model-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--sidebar-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}

.model-icon {
  width: 36px;
  height: 36px;
  background: rgba(14, 165, 233, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-icon svg {
  color: var(--primary-light);
  width: 16px;
  height: 16px;
}

.model-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-label {
  font-size: 10px;
  color: var(--text-muted);
}

.model-value {
  font-size: 13px;
  color: white;
  font-weight: 500;
}

/* ==================== 主内容区 ==================== */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 40px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--text-dark), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc {
  font-size: 15px;
  color: var(--text-light);
}

/* ==================== 移动端头部 ==================== */
.mobile-bar {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.menu-btn {
  width: 44px;
  height: 44px;
  background: var(--sidebar-bg);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.menu-btn:hover {
  background: var(--sidebar-card);
}

.menu-btn i {
  font-size: 18px;
  color: white;
}

.mobile-title {
  font-weight: 600;
  font-size: 15px;
}

.mobile-sub {
  font-size: 12px;
  color: var(--text-light);
}

/* ==================== 卡片 ==================== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: none;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.5);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.card-body {
  padding: 24px;
}

/* ==================== 表单 ==================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* ==================== 复选框 ==================== */
.check-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--main-bg);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
  border: 2px solid transparent;
  user-select: none;
}

.check-item:hover {
  background: rgba(14, 165, 233, 0.05);
}

.check-item:has(input:checked) {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08));
  border-color: var(--primary);
}

.check-item input {
  display: none;
}

.check-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.check-item:has(input:checked) .check-box {
  background: var(--primary);
  border-color: var(--primary);
}

.check-box i {
  color: white;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

.check-item:has(input:checked) .check-box i {
  opacity: 1;
  transform: scale(1);
}

/* ==================== 上传区域 ==================== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(14, 165, 233, 0.01);
  position: relative;
  overflow: hidden;
}

/* 背景动画装饰 */
.upload-zone::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.03) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}

.upload-zone:hover::before {
  opacity: 1;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.02);
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.05);
  transform: scale(1.01);
  border-style: solid;
}

.upload-zone.has-file {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.02);
  border-style: solid;
}

.upload-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
  position: relative;
  z-index: 1;
}

.upload-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.upload-zone.has-file .upload-icon {
  background: linear-gradient(135deg, var(--success), #059669);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.upload-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.upload-hint {
  font-size: 14px;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.file-info {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.upload-zone.has-file .upload-title,
.upload-zone.has-file .upload-hint {
  display: none;
}

.upload-zone.has-file .file-info {
  display: flex;
}

.file-uploaded-icon {
  font-size: 24px;
  color: var(--success);
}

.file-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.file-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.file-remove:hover {
  background: var(--danger);
  color: white;
  transform: scale(1.1);
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

/* 按钮光泽效果 */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(14, 165, 233, 0.05);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ==================== 进度条 ==================== */
.progress-box {
  margin-bottom: 20px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
}

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==================== 进度状态 ==================== */
.progress-status {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(14, 165, 233, 0.04);
  border-radius: var(--radius);
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.3s;
}

.progress-status #statusText {
  font-weight: 500;
}

.status-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(14, 165, 233, 0.04);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 500;
}

.status-msg svg {
  width: 18px;
  height: 18px;
}

/* ==================== 日志容器 ==================== */
.log-container {
  margin-top: 20px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.log-title {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-title svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.btn-log-clear {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-log-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

.log-output {
  background: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.log-entry {
  padding: 4px 0;
  color: #cbd5e1;
}

.log-entry.log-info {
  color: #38bdf8;
}

.log-entry.log-success {
  color: #4ade80;
}

.log-entry.log-warning {
  color: #fbbf24;
}

.log-entry.log-error {
  color: #f87171;
}

/* ==================== 统计卡片 ==================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

.stat-box {
  padding: 24px 20px;
  background: var(--main-bg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* 增加背景图标 */
.stat-box::before {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-family: "Font Awesome 5 Free";
  font-size: 60px;
  opacity: 0.05;
  font-weight: 900;
}
.stat-box.success::before { content: "\f00c"; color: var(--success); }
.stat-box.danger::before { content: "\f06a"; color: var(--danger); }
.stat-box.warning::before { content: "\f071"; color: var(--warning); }
.stat-box.info::before { content: "\f0eb"; color: var(--primary); }

.stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.stat-box.success .stat-value { color: var(--success); }
.stat-box.danger .stat-value { color: var(--danger); }
.stat-box.warning .stat-value { color: var(--warning); }
.stat-box.info .stat-value { color: var(--primary); }

/* ==================== 问题列表 ==================== */
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.issue-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border-left: 4px solid;
  transition: all 0.3s;
  background: rgba(255,255,255,0.5);
}

.issue-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.issue-row.critical {
  background: rgba(239, 68, 68, 0.03);
  border-color: var(--danger);
}

.issue-row.major {
  background: rgba(245, 158, 11, 0.03);
  border-color: var(--warning);
}

.issue-row.minor {
  background: rgba(14, 165, 233, 0.03);
  border-color: var(--primary);
}

.issue-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.issue-row.critical .issue-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.issue-row.major .issue-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.issue-row.minor .issue-icon {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

.issue-content {
  flex: 1;
}

.issue-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.issue-desc {
  font-size: 13px;
  color: var(--text-light);
}

/* ==================== 表格 ==================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
}

th {
  background: var(--main-bg);
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

td {
  border-top: 1px solid var(--border);
}

tr:hover td {
  background: rgba(14, 165, 233, 0.02);
}

/* ==================== 标签 ==================== */
.tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.tag-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.tag-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* ==================== 下载卡片 ==================== */
.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(5, 150, 105, 0.03) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.download-name {
  font-size: 15px;
  font-weight: 600;
}

.download-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

/* ==================== 遮罩层 ==================== */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}

.overlay.show {
  display: block;
  opacity: 1;
}

/* ==================== 隐藏类 ==================== */
.hidden {
  display: none !important;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
  }
  
  .sidebar {
    position: fixed;
    left: -280px;
    width: 280px;
    transition: left 0.3s ease;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .main {
    margin-left: 0;
    padding: 20px;
    padding-top: 80px;
  }
  
  .mobile-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 16px 20px;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  
  .page-header {
    margin-bottom: 24px;
  }
  
  .page-title {
    font-size: 22px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-row {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .upload-zone {
    padding: 32px 20px;
  }
  
  .upload-icon {
    width: 56px;
    height: 56px;
  }
  
  .upload-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .upload-title {
    font-size: 16px;
  }
  
  .check-wrap {
    flex-direction: column;
  }
  
  .check-item {
    width: 100%;
  }
}
