
:root {
  --sys-primary: #0057c2;
  --sys-text: #191c1e;
  --sys-muted: #5b6472;
  --sys-line: rgba(0, 87, 194, .12);
}

* { box-sizing: border-box; }

.sys-tool-page {
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  color: var(--sys-text);
  font-family: "Manrope", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sys-tool-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 30px;
}

.sys-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sys-tool-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--sys-line);
  box-shadow: 0 10px 26px rgba(0, 89, 199, .08);
}

.lang-switch button {
  min-width: 72px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #515f74;
  font-weight: 800;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--sys-primary);
  color: #fff;
}

.sys-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 26px;
  padding: 13px 15px;
  border: 1px solid #e1edff;
  border-radius: 8px;
  background: #f0f7ff;
  color: #394252;
  box-shadow: 0 12px 28px rgba(20, 55, 100, .06);
}

.sys-notice i { color: var(--sys-primary); }

.sys-tip-section {
  margin-top: 2rem;
  padding: 1rem;
  background: #f0f7ff;
  border: 1px solid #e1edff;
  border-radius: 0.5rem;
  color: #2d5b99;
  font-size: 0.875rem;
}

.sys-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sim-card {
  padding: 0;
  border: 1px solid rgba(16, 42, 79, .10);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 16px 38px rgba(20, 55, 100, .11);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sim-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 87, 194, .22);
  box-shadow: 0 22px 48px rgba(20, 55, 100, .18);
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #111;
}

.thumb::before,
.thumb::after {
  content: "";
  position: absolute;
}

.sim-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
}

.sim-meta b {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.2;
}

.sim-meta em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--sys-primary);
  background: rgba(0, 87, 194, .09);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.thumb-win11-update,
.thumb-win10-update {
  background: #0067c0;
}

.thumb-win10-update { background: #005a9e; }

.thumb-win11-update::before,
.thumb-win10-update::before {
  width: 34px;
  height: 34px;
  left: calc(50% - 17px);
  top: calc(50% - 28px);
  border: 3px solid rgba(255, 255, 255, .85);
  border-left-color: transparent;
  border-radius: 50%;
}

.thumb-win11-update::after,
.thumb-win10-update::after {
  left: 0;
  right: 0;
  top: calc(50% + 20px);
  height: 12px;
  margin: auto;
  width: 118px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 0 rgba(255, 255, 255, .75);
}

.thumb-win7-update {
  background: radial-gradient(circle at 50% 44%, #24588f 0, #0c2342 54%, #061021 100%);
}

.thumb-win7-update::before {
  width: 46px;
  height: 46px;
  left: calc(50% - 23px);
  top: 24%;
  background:
    linear-gradient(90deg, #f25022 0 48%, transparent 48% 52%, #7fba00 52%),
    linear-gradient(#0000 0 48%, transparent 48% 52%, #0000 52%);
  box-shadow: 0 24px 0 #00a4ef, 24px 24px 0 #ffb900;
  transform: scale(.7);
}

.thumb-win7-update::after {
  left: 50%;
  bottom: 22%;
  width: 140px;
  height: 9px;
  margin-left: -70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
}

.thumb-modern-bsod {
  background: #0078d7;
}

.thumb-modern-bsod::before {
  content: ":(";
  left: 12%;
  top: 14%;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 42px;
  font-weight: 300;
}

.thumb-modern-bsod::after {
  left: 12%;
  right: 12%;
  top: 55%;
  height: 7px;
  background: #fff;
  box-shadow: 0 18px 0 #fff, 0 36px 0 rgba(255, 255, 255, .82);
}

.thumb-win7-bsod {
  background: #0000aa;
}

.thumb-win7-bsod::before {
  inset: 16px;
  background: repeating-linear-gradient(to bottom, #fff 0 2px, transparent 2px 10px);
  opacity: .9;
}

.thumb-macos-update {
  background: #0b0b0d;
}

.thumb-macos-update::before {
  content: "";
  left: 0;
  right: 0;
  top: 23%;
  color: #fff;
  text-align: center;
  font-size: 48px;
}

.thumb-macos-update::after {
  left: 50%;
  bottom: 25%;
  width: 120px;
  height: 6px;
  margin-left: -60px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2f2f2 42%, #3b3b3f 42%);
}

.thumb-macos-panic {
  background: #111;
}

.thumb-macos-panic::before {
  inset: 22% 12%;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
}

.thumb-macos-panic::after {
  left: 18%;
  right: 18%;
  top: 35%;
  height: 8px;
  background: #eee;
  box-shadow: 0 20px 0 #cfcfcf, 0 40px 0 #aaa;
}

.thumb-uos-update {
  background: radial-gradient(circle at 50% 35%, #176d8a 0, #07121f 62%);
}

.thumb-uos-update::before {
  width: 50px;
  height: 50px;
  left: calc(50% - 25px);
  top: 25%;
  border-radius: 16px;
  background: linear-gradient(145deg, #40e1ef, #1677ff);
}

.thumb-uos-update::after {
  left: 50%;
  bottom: 24%;
  width: 128px;
  height: 7px;
  margin-left: -64px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 35%, rgba(255, 255, 255, .24) 35%);
}

.sim-stage {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.sim-stage.active { display: block; }
.sim-content, .screen { width: 100%; height: 100%; }

.screen {
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  user-select: none;
  cursor: none;
}

.win-update {
  background: #005a9e;
  font-family: "Segoe UI", Arial, sans-serif;
}

.win-update.win11 { background: #0067c0; }
.win-update .center { text-align: center; transform: translateY(-2vh); }

.dot-spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto 34px;
  position: relative;
  animation: rotateSpinner 1.8s linear infinite;
}

.dot-spinner span {
  position: absolute;
  left: 27px;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  transform-origin: 2px 26px;
}

.dot-spinner span:nth-child(2) { transform: rotate(45deg); opacity: .88; }
.dot-spinner span:nth-child(3) { transform: rotate(90deg); opacity: .76; }
.dot-spinner span:nth-child(4) { transform: rotate(135deg); opacity: .64; }
.dot-spinner span:nth-child(5) { transform: rotate(180deg); opacity: .52; }
.dot-spinner span:nth-child(6) { transform: rotate(225deg); opacity: .40; }
.dot-spinner span:nth-child(7) { transform: rotate(270deg); opacity: .30; }
.dot-spinner span:nth-child(8) { transform: rotate(315deg); opacity: .22; }

@keyframes rotateSpinner { to { transform: rotate(360deg); } }

.update-percent { margin: 0; font-size: 24px; font-weight: 400; }
.update-line { margin: 14px 0 0; font-size: 21px; font-weight: 400; }
.update-subline { position: absolute; left: 0; right: 0; bottom: 11vh; text-align: center; font-size: 20px; }

.win7-update {
  background: radial-gradient(circle at 50% 42%, rgba(97, 175, 255, .28), transparent 20rem), linear-gradient(145deg, #071326 0%, #173a69 52%, #0a162c 100%);
  font-family: "Segoe UI", Arial, sans-serif;
}

.win7-panel { width: min(540px, 86vw); text-align: center; }
.win7-logo { width: 86px; height: 86px; margin: 0 auto 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .34)); }
.win7-logo span:nth-child(1) { background: #f25022; }
.win7-logo span:nth-child(2) { background: #7fba00; }
.win7-logo span:nth-child(3) { background: #00a4ef; }
.win7-logo span:nth-child(4) { background: #ffb900; }
.win7-text { margin-top: 22px; font-size: 20px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.win7-small { margin-top: 18px; color: rgba(255, 255, 255, .84); }

.progress-bar { width: min(420px, 70vw); height: 8px; margin: 0 auto; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .24); }
.progress-bar span { display: block; width: var(--progress-width, 0%); height: 100%; border-radius: inherit; background: #fff; transition: width 1.2s ease; }

.mac-screen { background: #0b0b0d; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; }
.apple-mark { margin-bottom: 52px; font-size: 86px; line-height: 1; }
.mac-progress { width: min(330px, 58vw); height: 6px; border-radius: 999px; background: #3b3b3f; overflow: hidden; }
.mac-progress span { display: block; width: var(--progress-width, 0%); height: 100%; border-radius: inherit; background: #f2f2f2; transition: width 1.4s ease; }
.mac-note { margin-top: 30px; color: #c7c7cc; font-size: 16px; }

.mac-panic { align-content: center; justify-items: center; padding: 8vw; background: #111; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.panic-box { max-width: 740px; color: #f1f1f1; font-size: clamp(20px, 3vw, 34px); line-height: 1.42; }
.panic-dim { margin-top: 28px; color: #b8b8b8; font-size: clamp(14px, 1.8vw, 20px); line-height: 1.75; }

.bsod-modern { display: block; padding: 8vh 10vw; background: #0078d7; font-family: "Segoe UI", Arial, sans-serif; }
.sad-face { margin: 0 0 28px; font-size: clamp(74px, 12vw, 138px); font-weight: 300; }
.bsod-title { max-width: 900px; margin: 0 0 26px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.34; font-weight: 300; }
.bsod-modern .percent { margin: 0 0 34px; font-size: clamp(18px, 2vw, 24px); }
.bsod-row { display: flex; gap: 18px; align-items: flex-start; }
.fake-qr { width: 96px; height: 96px; flex: 0 0 auto; background: linear-gradient(90deg, #fff 50%, transparent 0) 0 0 / 16px 16px, linear-gradient(#fff 50%, transparent 0) 0 0 / 16px 16px, #0078d7; border: 8px solid #fff; image-rendering: pixelated; }
.bsod-info { max-width: 620px; font-size: 15px; line-height: 1.55; }

.bsod-legacy { display: block; padding: 4vh 5vw; background: #0000aa; color: #fff; font-family: "Lucida Console", Consolas, "Courier New", monospace; font-size: clamp(14px, 1.65vw, 22px); line-height: 1.3; white-space: pre-wrap; }
.legacy-cursor { display: inline-block; width: .62em; height: 1em; background: #fff; animation: blinkCursor 1s steps(2, start) infinite; vertical-align: text-bottom; }
@keyframes blinkCursor { 50% { opacity: 0; } }

.uos-screen { background: radial-gradient(circle at 50% 34%, rgba(29, 188, 214, .22), transparent 20rem), linear-gradient(140deg, #082237, #07121f 62%, #03101a); font-family: "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
.uos-panel { text-align: center; }
.uos-logo { width: 76px; height: 76px; margin: 0 auto 28px; border-radius: 24px; background: linear-gradient(145deg, #40e1ef, #1677ff); box-shadow: 0 22px 46px rgba(12, 153, 210, .32); position: relative; }
.uos-logo::after { content: ""; position: absolute; inset: 21px; border: 4px solid rgba(255, 255, 255, .9); border-left-color: transparent; border-radius: 50%; animation: rotateSpinner 1.4s linear infinite; }
.uos-title { font-size: 24px; margin-bottom: 18px; }
.uos-subtitle { color: rgba(255, 255, 255, .76); margin-top: 20px; }

.screen-flicker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, .025) 50%, rgba(0, 0, 0, .025) 50%); background-size: 100% 4px; opacity: .18; }

@media (max-width: 960px) {
  .sys-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .sys-tool-shell { width: min(100% - 22px, 1180px); padding-top: 84px; }
  .sys-tool-header { align-items: flex-start; flex-direction: column; }
  .lang-switch { width: 100%; }
  .lang-switch button { flex: 1; }
  .sys-card-grid { grid-template-columns: 1fr; gap: 12px; }
  .sys-notice { font-size: 14px; }
  .bsod-modern { padding: 7vh 7vw; }
  .bsod-row { flex-direction: column; }
}

.win11 .update-percent {
  font-size: 22px; /* Win11 专属更小的字体，优先级更高 */
}
/* 仅修改 Win10 背景色，不影响 Win11 */
.thumb-win10-update { background: #0067b8; }

/* Win 通用样式 - 仅调整 Win10 背景（通过层级控制不影响 Win11） */
.win-update {
  background: #0067b8;
  font-family: "Segoe UI", Arial, sans-serif;
}
/* Win11 背景色保持原有值，优先级高于通用样式 */
.win-update.win11 { background: #0067c0; }

.win-update .center { 
  text-align: center; 
  transform: translateY(-2vh); 
  /* 缩小行间距：添加行高控制 */
  line-height: 1.2;
}

.win-update:not(.win11) .update-line { 
  margin: 0 0 8px 0; /* 进一步减少上下外边距 */
  font-size: 21px; 
  font-weight: 400;
  line-height: 0.9; /* 从 1 降到 0.9，行间距更小（可按需调至 0.85/0.8） */
}
.win-update:not(.win11) .update-percent { 
  margin: 0 0 10px 0; /* 减少下边距 */
  font-size: 21px; 
  font-weight: 400;
  line-height: 0.9; /* 同步缩小行高 */
}
.win-update:not(.win11) .update-subline { 
  position: static;
  text-align: center; 
  font-size: 21px;
  margin-top: 8px; /* 减少上边距 */
  line-height: 0.9; /* 同步缩小行高 */
}
.win-update:not(.win11) .dot-spinner {
  margin-bottom: 1em; /* 改为相对单位，匹配文字行高（1em = 文字字号） */
}

/* 蓝屏二维码样式 - 与文字垂直居中对齐 */
.bsod-row {
  display: flex;
  align-items: center; /* 垂直居中对齐 */
  gap: 24px; /* 二维码和文字之间的间距 */
  margin-top: 40px;
}

.bsod-qr {
  width: auto;
  height: 120px; /* 根据文字高度调整，确保上下对齐 */
  object-fit: contain;
  flex-shrink: 0; /* 防止图片被压缩 */
}

.bsod-info {
  display: flex;
  flex-direction: column;
  justify-content: center; /* 文字垂直居中 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .bsod-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .bsod-qr {
    height: 100px;
  }
}

.bsod-title {
  font-size: 24px !important;
   line-height: 1.35!important;
}

/* 专门针对 Win11 更新界面，缩小圆圈与文字的间距 */
.win-update.win11 .dot-spinner {
  margin-bottom: 5px; /* 使用负值可以让圆圈向下移动，紧贴文字；可根据视觉反馈微调 */
}

/* 专门针对 Win11 更新界面，缩短文字之间的行距 */
.win-update.win11 .center { 
  /* 缩小整体容器的行高，让内部元素更紧凑 */
  line-height: 1.1; 
}

.win-update.win11 .update-percent {
  /* 针对百分比数字，减小其上下间距 */
  margin-bottom: 0; 
  line-height: 1.1; /* 极限压缩行高 */
}

.win-update.win11 .update-line {
  /* 针对中间提示文字，减小上下边距 */
  margin: 0 0 2px 0; /* 仅保留极小的底部间距 */
  line-height: 1.1; /* 极限压缩行高 */
}

.win-update.win11 .update-subline {
  /* 针对底部提示文字，减小顶部间距 */
  margin-top: 2px; /* 仅保留极小的顶部间距 */
  line-height: 1.1; /* 极限压缩行高 */
}

.win-update.win11 .center,
.win-update.win11 .update-percent,
.win-update.win11 .update-line,
.win-update.win11 .update-subline {
  line-height: 1.35;
}


/* 卡片相对定位，用来放 badge */
.sim-card {
  position: relative;
}

/* 热门徽标 */
.hot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 4px 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
  color: #fff;

  background: rgba(0, 87, 194, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: 0 4px 14px rgba(0, 87, 194, .35);
  animation: hotPulse 2.6s ease-in-out infinite;
}

/* 小火焰图标 */
.hot-badge i {
  font-size: 13px;
  color: #ff9500;
}

/* 呼吸动画（很轻） */
@keyframes hotPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(0, 87, 194, .35);
  }
  50% {
    box-shadow: 0 4px 18px rgba(0, 87, 194, .55);
  }
}


/* 修复 Win11/10 蓝屏界面在部分浏览器中内容居中的问题 */
.bsod-modern {
  text-align: left !important; 
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important; /* 强制 flex 子元素靠左 */
}

.bsod-modern .bsod-row {
  width: 100%;
  display: flex !important;
  justify-content: flex-start !important; /* 强制二维码和信息行的容器靠左 */
  align-items: flex-start !important;
  text-align: left !important;
}

.bsod-modern .bsod-info {
  text-align: left !important; /* 强制右侧的错误代码等信息靠左 */
}

.bsod-modern .bsod-title,
.bsod-modern .percent {
  text-align: left !important; /* 强制标题和百分比进度靠左 */
}