/* ota-updater.css — OTA 模态样式（Claymorphism 风格）*/

.ota-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  animation: otaFadeIn 0.25s ease;
}

.ota-modal.hidden {
  display: none !important;
}

@keyframes otaFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ota-modal-card {
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
  border-radius: 24px;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 20px;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  animation: otaSlideUp 0.3s ease;
}

@keyframes otaSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.ota-modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.ota-modal-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.ota-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: 0.5px;
}

.ota-modal-body {
  margin-bottom: 22px;
}

.ota-modal-notice {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #6366f1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #2d3748;
  white-space: pre-wrap;
  margin-bottom: 14px;
}

.ota-modal-meta {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}

.ota-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #4a5568;
}

.ota-meta-row strong {
  color: #1a202c;
  font-weight: 700;
}

.ota-progress {
  margin-top: 14px;
}

.ota-progress.hidden {
  display: none !important;
}

.ota-progress-bar {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ota-progress-fill {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.ota-progress-text {
  font-size: 12px;
  color: #6366f1;
  font-weight: 600;
  text-align: center;
}

.ota-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ota-btn {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.ota-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ota-btn-cancel {
  background: rgba(0, 0, 0, 0.05);
  color: #4a5568;
}

.ota-btn-cancel:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.ota-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.ota-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.ota-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}