/* ============================================
   移动端面板 - 玻璃卡片风格
   ============================================ */

#mobile-control {
  display: none;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2;
}

.mob-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px 24px 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.mob-emoji {
  font-size: 40px;
  margin-bottom: 10px;
}

.mob-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.mob-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-bottom: 20px;
}

.mob-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  margin-bottom: 16px;
  letter-spacing: 2px;
  -webkit-tap-highlight-color: transparent;
}
.mob-btn:active {
  transform: scale(0.97);
}

/* ----- 移动端配置选项 ----- */
.mob-config {
  margin-bottom: 12px;
}

.mob-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.mob-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  margin-right: 8px;
}

.mob-opts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mob-opt {
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mob-opt.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(102,126,234,0.35), rgba(118,75,162,0.35));
  border-color: rgba(102,126,234,0.5);
  box-shadow: 0 0 16px rgba(102,126,234,0.15);
}

.mob-opt:active {
  transform: scale(0.93);
}

/* ----- 底部信息 ----- */
.mob-footer-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mob-footer-info p {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}

.mob-footer-info a {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
}

/* ============================================
   移动端更新界面 - 通用
   ============================================ */

.mob-update-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================
   iOS 更新界面
   ============================================ */
#screen-ios {
  background: #000;
}

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

#screen-ios .ios-apple-logo {
  margin-bottom: 32px;
}

#screen-ios .ios-apple-logo svg {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}

#screen-ios .ios-stage {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

#screen-ios .ios-progress-track {
  width: 180px;
  max-width: 60vw;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}

#screen-ios .ios-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transition: width 0.5s ease;
}

/* ============================================
   Android 更新界面
   ============================================ */
#screen-android {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

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

#screen-android .android-logo {
  margin-bottom: 28px;
}

#screen-android .android-logo svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

#screen-android .android-title {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

#screen-android .android-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
}

#screen-android .android-percent {
  font-size: 32px;
  font-weight: 700;
  color: #3ddc84;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

#screen-android .android-percent-sign {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
}

#screen-android .android-stage {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

#screen-android .android-progress-track {
  width: 200px;
  max-width: 65vw;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

#screen-android .android-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: #3ddc84;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.3);
}

/* ============================================
   iPadOS 更新界面 (复用 iOS 样式)
   ============================================ */
#screen-ipados {
  background: #000;
}

/* ============================================
   MIUI (Xiaomi) 更新界面
   ============================================ */
#screen-miui {
  background: linear-gradient(180deg, #1a1a2e 0%, #2d1b4e 100%);
}
#screen-miui .miui-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 32px;
  text-align: center;
}
#screen-miui .miui-logo {
  margin-bottom: 28px;
}
#screen-miui .miui-logo svg {
  width: 56px;
  height: 56px;
}
#screen-miui .miui-title {
  font-size: 20px;
  font-weight: 700;
  color: #ff6a00;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
#screen-miui .miui-stage {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
#screen-miui .miui-progress-track {
  width: 200px;
  max-width: 65vw;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
#screen-miui .miui-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f7971e, #ffd200);
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(247,151,30,0.3);
}
#screen-miui .miui-percent {
  font-size: 28px;
  font-weight: 700;
  color: #ff6a00;
  font-variant-numeric: tabular-nums;
}
#screen-miui .miui-warning {
  position: fixed;
  bottom: 60px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-align: center;
  padding: 0 32px;
  line-height: 1.6;
}

/* ============================================
   HarmonyOS (Huawei) 更新界面
   ============================================ */
#screen-harmonyos {
  background: linear-gradient(180deg, #0a0e1a 0%, #1a0a0e 100%);
}
#screen-harmonyos .harmonyos-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 32px;
  text-align: center;
}
#screen-harmonyos .harmonyos-logo {
  margin-bottom: 30px;
}
#screen-harmonyos .harmonyos-logo svg {
  width: 58px;
  height: 58px;
}
#screen-harmonyos .harmonyos-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 2px;
}
#screen-harmonyos .harmonyos-version {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 24px;
}
#screen-harmonyos .harmonyos-stage {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
#screen-harmonyos .harmonyos-progress-track {
  width: 200px;
  max-width: 65vw;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
#screen-harmonyos .harmonyos-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: #ce1126;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(206,17,38,0.3);
}
#screen-harmonyos .harmonyos-percent {
  font-size: 22px;
  font-weight: 600;
  color: #ce1126;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   One UI (Samsung) 更新界面
   ============================================ */
#screen-oneui {
  background: linear-gradient(180deg, #142b44 0%, #0a1628 100%);
}
#screen-oneui .oneui-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 32px;
  text-align: center;
}
#screen-oneui .oneui-logo {
  margin-bottom: 28px;
}
#screen-oneui .oneui-logo svg {
  width: 64px;
  height: 64px;
}
#screen-oneui .oneui-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
#screen-oneui .oneui-stage {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
#screen-oneui .oneui-progress-track {
  width: 200px;
  max-width: 65vw;
  height: 4px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
#screen-oneui .oneui-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 12px;
  background: #1a8cff;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(26,140,255,0.3);
}
#screen-oneui .oneui-percent {
  font-size: 26px;
  font-weight: 700;
  color: #1a8cff;
  font-variant-numeric: tabular-nums;
}
#screen-oneui .oneui-hint {
  position: fixed;
  bottom: 60px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

/* ============================================
   移动端 - 屏幕底部退出提示
   ============================================ */
.mob-exit-overlay {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  text-align: center;
  pointer-events: none;
}

.mob-exit-overlay span {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.5px;
}
