/* ============================================
   更新界面样式合集 — Win10 / Win11 / macOS / Ubuntu / BIOS
   ============================================ */

/* ----- 所有更新界面共用 ----- */
.update-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  display: none;
}

.update-screen .update-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.update-screen .update-status {
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-top: 20px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

/* ============================================
   Windows 10 — 经典蓝色更新
   ============================================ */
#screen-win10 {
  background: linear-gradient(135deg, #106ebe 0%, #1b6ec2 40%, #0078d7 100%);
}

#screen-win10 .win10-logo {
  margin-bottom: 40px;
}

#screen-win10 .win10-logo svg {
  width: 56px; height: 56px;
  filter: brightness(3);
}

#screen-win10 .win10-dots {
  position: relative;
  width: 56px; height: 56px;
  margin: 0 auto 32px;
}

#screen-win10 .win10-ring {
  width: 100%; height: 100%;
  animation: win10-ring-spin 3s infinite linear;
}

#screen-win10 .win10-dot {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
}

#screen-win10 .win10-dot::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%; top: 0;
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  transform: translateX(-50%);
}

#screen-win10 .win10-dot:nth-child(1) { transform: rotate(0deg); }
#screen-win10 .win10-dot:nth-child(2) { transform: rotate(60deg); }
#screen-win10 .win10-dot:nth-child(3) { transform: rotate(120deg); }
#screen-win10 .win10-dot:nth-child(4) { transform: rotate(180deg); }
#screen-win10 .win10-dot:nth-child(5) { transform: rotate(240deg); }
#screen-win10 .win10-dot:nth-child(6) { transform: rotate(300deg); }

@keyframes win10-ring-spin {
  100% { transform: rotate(360deg); }
}

#screen-win10 .win10-progress {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

#screen-win10 .win10-percent {
  font-size: 28px;
  font-weight: 700;
  min-width: 50px;
  text-align: right;
}

#screen-win10 .win10-percent-sign {
  font-size: 16px;
  font-weight: 300;
  opacity: 0.7;
}

#screen-win10 .win10-stage {
  font-size: 14px;
  opacity: 0.7;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

#screen-win10 .win10-hint {
  font-size: 12px;
  opacity: 0.4;
  margin-top: 4px;
}

/* ============================================
   Windows 11 — 现代深色更新
   ============================================ */
#screen-win11 {
  background: #1c1c1c;
  color: #fff;
}

#screen-win11 .win11-ring-container {
  position: relative;
  width: 140px; height: 140px;
  margin-bottom: 36px;
}

#screen-win11 .win11-ring-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

#screen-win11 .win11-ring-progress {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* 进度通过 JS 的 conic-gradient 控制 */
  transition: background 0.4s ease;
  /* 遮罩切出圆环 */
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 62%);
  mask: radial-gradient(circle, transparent 58%, #000 62%);
}

#screen-win11 .win11-ring-progress::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 8px; height: 8px;
  background: #60cdff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(96, 205, 255, 0.6);
}

@keyframes win11-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#screen-win11 .win11-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

#screen-win11 .win11-message {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

#screen-win11 .win11-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   macOS — 深色 Apple 风格
   ============================================ */
#screen-macos {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

#screen-macos .mac-logo-box {
  margin-bottom: 24px;
}

#screen-macos .mac-logo-box img {
  width: 90px;
  height: auto;
  opacity: 0.75;
  filter: grayscale(0.2);
}

#screen-macos .mac-prog-track {
  width: 280px;
  max-width: 80vw;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

#screen-macos .mac-prog-bar {
  width: 0%;
  max-width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #c0c0c0, #e0e0e0);
  box-shadow: 0 0 10px rgba(255,255,255,0.08);
  transition: width 0.5s ease;
}

#screen-macos .mac-message {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  max-width: 360px;
  line-height: 1.6;
}

/* ============================================
   Ubuntu — 紫色脉冲风格
   ============================================ */
#screen-ubuntu {
  background: linear-gradient(135deg, #2c001e 0%, #3a0028 50%, #4a0030 100%);
}

#screen-ubuntu .ubuntu-logo {
  margin-bottom: 36px;
}

#screen-ubuntu .ubuntu-logo svg {
  width: 64px; height: 64px;
  opacity: 0.85;
}

#screen-ubuntu .ubuntu-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

#screen-ubuntu .ubuntu-dots span {
  width: 12px; height: 12px;
  background: #e95420;
  border-radius: 50%;
  animation: ubuntu-pulse 1.4s ease-in-out infinite both;
}

#screen-ubuntu .ubuntu-dots span:nth-child(1) { animation-delay: 0s; }
#screen-ubuntu .ubuntu-dots span:nth-child(2) { animation-delay: 0.2s; }
#screen-ubuntu .ubuntu-dots span:nth-child(3) { animation-delay: 0.4s; }
#screen-ubuntu .ubuntu-dots span:nth-child(4) { animation-delay: 0.6s; }
#screen-ubuntu .ubuntu-dots span:nth-child(5) { animation-delay: 0.8s; }

@keyframes ubuntu-pulse {
  0%, 100% { transform: scale(0.6); opacity: 0.3; }
  50%      { transform: scale(1);   opacity: 1; }
}

#screen-ubuntu .ubuntu-stage {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}

#screen-ubuntu .ubuntu-percent {
  font-size: 26px;
  font-weight: 700;
  color: #e95420;
  margin-bottom: 2px;
}

#screen-ubuntu .ubuntu-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   BIOS — 经典蓝底白字
   ============================================ */
#screen-bios {
  background: #0000aa;
  color: #fff;
  font-family: 'Courier New', 'Consolas', monospace;
}

#screen-bios .bios-content {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
}

#screen-bios .bios-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 24px;
  letter-spacing: 1px;
  color: #fff;
}

#screen-bios .bios-line {
  margin-bottom: 4px;
  opacity: 0.85;
}

#screen-bios .bios-line .bios-label {
  color: #ffff00;
}

#screen-bios .bios-line .bios-value {
  color: #0f0;
}

#screen-bios .bios-line .bios-status {
  color: #0ff;
}

#screen-bios .bios-progress-row {
  margin: 16px 0 8px;
}

#screen-bios .bios-progress-track {
  width: 100%;
  height: 14px;
  background: #000070;
  border: 1px solid #aaa;
  position: relative;
  margin: 6px 0;
}

#screen-bios .bios-progress-bar {
  height: 100%;
  background: #aaa;
  width: 0%;
  transition: width 0.3s;
}

#screen-bios .bios-progress-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

#screen-bios .bios-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #f00;
  font-weight: bold;
}

#screen-bios .bios-warning {
  margin-top: 20px;
  font-size: 13px;
  color: #ff0;
}

/* ============================================
   底部提示 — 所有界面共用
   ============================================ */
.update-footer-tip {
  position: fixed;
  bottom: 5vh;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
  z-index: 15;
  pointer-events: none;
  transition: opacity 0.4s;
}

/* ============================================
   重启过渡动画
   ============================================ */
.restart-flash {
  animation: restart-flash 0.6s ease-in-out;
}

@keyframes restart-flash {
  0%   { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.02); }
  50%  { opacity: 0; }
  75%  { opacity: 0.3; }
  100% { opacity: 1; transform: scale(1); }
}
