/* 主体样式搬自 发给客户/Windows/自检.html，新加的在后半段 */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0; padding: 32px 24px 64px;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: #f5f6f8; color: #1b1f24;
}
.wrap { max-width: 960px; margin: 0 auto; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 16px; margin: 28px 0 10px; font-weight: 650; }
.sub { color: #5b6470; font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
#verdict {
  padding: 22px 24px; border-radius: 10px; margin-bottom: 20px;
  font-size: 26px; font-weight: 700; letter-spacing: .5px;
  background: #e8eaee; color: #444; transition: background .2s;
}
#verdict.ok   { background: #d8f5e0; color: #12703a; }
#verdict.warn { background: #fff3cc; color: #7a5b00; }
#verdict.bad  { background: #ffe0e0; color: #a11414; }
#verdict small { display: block; font-size: 14px; font-weight: 500; margin-top: 8px; opacity: .85; line-height: 1.6; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
th, td { padding: 11px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
th { background: #fafbfc; font-weight: 600; color: #5b6470; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
tr:last-child td { border-bottom: none; }
th.c-name { width: 26%; }
th.c-verdict { width: 90px; }
td.v { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; word-break: break-all; }
td.v .msg { display: block; margin-top: 4px; font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; font-size: 13px; color: #a11414; }
td.v .msg.s { color: #7a5b00; font-weight: 400; }
.p  { color: #12703a; font-weight: 700; }
.f  { color: #a11414; font-weight: 700; }
.s  { color: #8a6d00; font-weight: 700; }
.i  { color: #5b6470; font-weight: 600; }
.bar { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
button {
  padding: 9px 18px; border-radius: 8px; border: 1px solid #cfd4da;
  background: #fff; font-size: 14px; cursor: pointer; font-family: inherit; color: inherit;
}
button:hover { background: #f0f2f5; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: #1b5fd6; border-color: #1b5fd6; color: #fff; }
button.primary:hover { background: #164fb3; }
.hint { color: #5b6470; font-size: 13px; }

/* ---- 新加：准入（按来源 IP；不在名单只显示「非权限IP」） ---- */
#gate { max-width: 960px; margin: 0 auto; color: #5b6470; font-size: 15px; }
#gate.denied { margin-top: 18vh; text-align: center; font-size: 28px; font-weight: 700; color: #1b1f24; }
#gate.err { color: #a11414; }
#gate button { margin-left: 12px; }
.line { color: #5b6470; font-size: 13px; margin: -10px 0 16px; }
.hidden { display: none !important; }

/* ---- 新加：断开演练 ---- */
.drill { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.drill ol { margin: 0 0 14px; padding-left: 22px; line-height: 1.9; font-size: 14px; }
.drill li.now { font-weight: 700; }
.drill li.done { color: #5b6470; }
.drill .status { font-size: 14px; margin-top: 12px; line-height: 1.6; }
#redbar {
  position: sticky; top: 0; z-index: 10; margin: -32px -24px 20px; padding: 12px 24px;
  background: #c62828; color: #fff; font-weight: 700; font-size: 15px; text-align: center;
}

.privacy { color: #5b6470; font-size: 12px; line-height: 1.7; margin-top: 32px; border-top: 1px solid #e3e6ea; padding-top: 14px; }
.privacy code { font-size: 12px; }

@media (max-width: 600px) {
  body { padding: 20px 16px 48px; }
  #redbar { margin: -20px -16px 16px; }
  #verdict { font-size: 22px; padding: 18px; }
  th, td { padding: 9px 10px; }
}
