/* ===== 固件修复 (USB Flash) 页面样式 ===== */

h1 { font-size: 1.3em; }
button { width: 100%; }
.card h2 { font-size: 1em; color: var(--accent-dark); }

/* 浏览器兼容提示 */
.browser-notice {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 0; font-size: 0.92em; font-weight: 600;
}
.browser-notice.ok { color: var(--success); }
.browser-notice.fail { color: var(--danger); }
.notice-icon { font-size: 1.3em; }

/* 步骤列表 */
.steps-list { display: flex; flex-direction: column; gap: 14px; }
.step-item {
  display: flex; align-items: flex-start; gap: 14px;
}
.step-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9em; font-weight: 700; color: #fff;
  background: var(--accent);
}
.step-text strong { font-size: 0.92em; display: block; margin-bottom: 3px; }
.step-text p { font-size: 0.8em; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* 设备信息网格 */
.info-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.info-item {
  flex: 1; min-width: 140px;
  background: var(--bg-warm); border-radius: 10px; padding: 12px;
}
.info-label {
  display: block; font-size: 0.75em; color: var(--text-dim); margin-bottom: 4px;
}
.info-value {
  display: block; font-size: 1.05em; font-weight: 600; color: var(--text);
}

/* 文件输入 */
input[type=file] {
  width: 100%; padding: 10px 14px; border: 1px solid var(--card-border);
  border-radius: 10px; background: var(--bg); color: var(--text);
  font-size: 0.9em; cursor: pointer;
}
input[type=file]::-webkit-file-upload-button {
  padding: 6px 16px; border: none; border-radius: 8px;
  background: var(--accent-light); color: var(--accent-dark);
  font-weight: 600; font-size: 0.85em; cursor: pointer;
  margin-right: 10px; transition: background 0.2s;
}
input[type=file]::-webkit-file-upload-button:hover {
  background: var(--accent); color: #fff;
}

/* 进度条 */
.progress-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.progress-bar {
  flex: 1; height: 12px; background: var(--bg-warm);
  border-radius: 6px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 6px; transition: width 0.3s ease;
}
.progress-text {
  font-size: 0.95em; font-weight: 700; color: var(--accent-dark); min-width: 40px;
  text-align: right;
}
.progress-state {
  font-size: 0.85em; color: var(--text-dim); text-align: center;
}

/* 刷入结果 */
.flash-result {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 0; font-size: 0.95em; font-weight: 600;
}
.flash-result.success { color: var(--success); }
.flash-result.fail { color: var(--danger); }
.flash-result-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1em;
}
.flash-result.success .flash-result-icon { background: var(--success-light); }
.flash-result.fail .flash-result-icon { background: var(--danger-light); }
