/* 主体样式搬自 发给客户/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;
}

/* ---- 新加：说明（这页在测什么、每一项为什么测） ---- */
.about { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-size: 13px; line-height: 1.75; color: #3a414b; }
.about p { margin: 0 0 8px; }
.about p:last-child { margin-bottom: 0; }
.about .limit { color: #5b6470; font-size: 12px; }
td.v details.why { margin-top: 6px; font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; font-size: 13px; word-break: normal; }
td.v details.why summary { cursor: pointer; color: #1b5fd6; font-size: 12px; list-style: none; }
td.v details.why summary::-webkit-details-marker { display: none; }
td.v details.why summary::before { content: '▸ '; }
td.v details.why[open] summary::before { content: '▾ '; }
td.v details.why p { margin: 6px 0 0; color: #3a414b; line-height: 1.7; }

.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; }

/* ---- 新加：重要程度和判定标签 ---- */
.lv { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 1px; border: 1px solid; }
.lv-k { color: #a11414; border-color: #e8a3a3; background: #fff1f1; }
.lv-m { color: #8a5a00; border-color: #e6c98a; background: #fff8e6; }
.lv-n { color: #5b6470; border-color: #d3d8de; background: #f6f7f9; }
.lv-sev { color: #fff; border-color: #c62828; background: #c62828; }
.legend { font-size: 12px; color: #5b6470; margin: -8px 0 14px; line-height: 2; }
.legend .lv { margin: 0 4px 0 0; }
.legend .lv:not(:first-child) { margin-left: 14px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.pill.p { background: #d8f5e0; }
.pill.f { background: #c62828; color: #fff; }
.pill.s { background: #fff3cc; }
.pill.i { background: transparent; }
tr.row-f td { background: #fff5f5; }
tr.row-s td { background: #fffcf0; }

@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; }
}
