* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #2f6bff;
  --primary-dark: #1e52d6;
  --bg: #f3f6fc;
  --card: #ffffff;
  --text: #1f2f56;
  --muted: #8a94a6;
  --danger: #e5484d;
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #eaf0ff 0%, var(--bg) 260px);
  color: var(--text);
  min-height: 100vh;
}
.page { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
.hidden { display: none !important; }

.hero { text-align: center; padding: 18px 0 22px; }
.hero h1 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.hero p { margin-top: 8px; font-size: 13px; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.08);
  margin-bottom: 16px;
}

.input-row { display: flex; gap: 10px; }
#number {
  flex: 1; height: 48px; border: 1.5px solid #e3e8f2; border-radius: 12px;
  padding: 0 14px; font-size: 17px; letter-spacing: 1px; outline: none;
}
#number:focus { border-color: var(--primary); }
.btn-primary {
  width: 88px; height: 48px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.tip { margin-top: 10px; font-size: 13px; color: var(--danger); min-height: 18px; }

/* 结果 */
.result-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed #eef2f8; }
.result-label { font-size: 13px; color: var(--muted); }
.result-number { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.result-summary { padding: 14px 0; font-size: 14px; }
.result-summary .ok { color: #17a673; font-weight: 700; }
.platform-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.platform-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 1.5px solid #eef2f8; border-radius: 14px; background: #fafcff;
}
.platform-card .pc-main { display: flex; flex-direction: column; gap: 4px; }
.platform-card .pc-name { font-size: 16px; font-weight: 700; }
.platform-card .pc-tag { font-size: 12px; color: var(--danger); }
.platform-card .pc-btn {
  border: none; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 700;
  background: var(--primary); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.platform-card .pc-btn.disabled { background: #c7cfdd; cursor: default; }

.foot { text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.stats { display: inline-block; font-size: 14px; color: var(--muted); background: transparent; border-radius: 0; padding: 0; margin-bottom: 12px; box-shadow: none; }
.stats-num { color: var(--primary); font-weight: 800; font-size: 17px; margin: 0 2px; }

/* 滑块弹窗 */
.mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; z-index: 99; padding: 16px;
}
.captcha-box { background: #fff; border-radius: 16px; padding: 18px; width: 344px; max-width: 100%; }
.captcha-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.captcha-stage { position: relative; width: 310px; max-width: 100%; margin: 0 auto; border-radius: 8px; overflow: hidden; background: #eef2f8; }
.captcha-bg { display: block; width: 310px; max-width: 100%; user-select: none; -webkit-user-drag: none; }
.captcha-puzzle { position: absolute; top: 0; left: 0; height: auto; user-select: none; -webkit-user-drag: none; }
.captcha-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }

.slider-bar {
  position: relative; margin: 16px auto 0; width: 310px; max-width: 100%; height: 40px;
  background: #eef2f8; border-radius: 20px; overflow: hidden;
}
.slider-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: rgba(47, 107, 255, .25); }
.slider-track-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.slider-handle {
  position: absolute; left: 0; top: 0; width: 44px; height: 40px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; cursor: pointer;
  box-shadow: 0 2px 8px rgba(47, 107, 255, .4);
}
.captcha-msg { margin-top: 12px; font-size: 13px; color: var(--danger); min-height: 18px; text-align: center; }
.captcha-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn-ghost { flex: 1; height: 40px; border: 1.5px solid #e3e8f2; background: #fff; border-radius: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
