/* ===== 固件更新 (OTA) 页面样式 ===== */

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

/* 设备信息网格 */
.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);
}

/* 版本对比 */
.update-info { text-align: center; }
.version-compare {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 10px;
}
.ver-old {
  font-size: 1.1em; font-weight: 600; color: var(--text-dim);
  background: var(--bg-warm); padding: 6px 14px; border-radius: 8px;
}
.ver-arrow { font-size: 1.2em; color: var(--accent); }
.ver-new {
  font-size: 1.1em; font-weight: 700; color: var(--success);
  background: var(--success-light); padding: 6px 14px; border-radius: 8px;
}
.update-meta {
  font-size: 0.82em; color: var(--text-dim); margin-bottom: 10px;
}
.update-changelog {
  background: var(--bg-warm); border-radius: 8px; padding: 10px 14px;
  font-size: 0.85em; color: var(--text-mid); line-height: 1.6;
  text-align: left; white-space: pre-wrap;
}

/* 按钮行 */
.btn-row { display: flex; gap: 8px; }
.btn-row button { flex: 1; }
.btn-outline-danger {
  background: transparent; color: var(--danger);
  border: 1px solid var(--danger-light);
}
.btn-outline-danger:hover:not(:disabled) { background: var(--danger-light); }

/* 进度条 */
.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;
}

/* 已是最新 */
.no-update {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 0; font-size: 0.95em; color: var(--success); font-weight: 600;
}
.no-update-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--success-light); display: flex; align-items: center;
  justify-content: center; font-size: 1em;
}
