:root {
  --blue: #1f6feb;
  --blue-dark: #1a5fd0;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #667085;
  --border: #e4e8ee;
  --green: #1a7f37;
  --amber: #b35900;
  --red: #cf222e;
  --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 10px 30px rgba(16,24,40,.10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }

/* ===== 顶部导航 ===== */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); }
.nav-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; color: #fff; font-size: 15px;
  background: linear-gradient(135deg, #2f80ff, #1f6feb);
}
.nav-link { font-size: 14px; color: var(--muted); }
.nav-link:hover { color: var(--blue); }

main { max-width: 880px; margin: 0 auto; padding: 0 20px 40px; }

/* ===== 首屏 ===== */
.hero {
  text-align: center; padding: 64px 16px 52px; margin: 0 -20px 8px;
  background:
    radial-gradient(1100px 380px at 50% -120px, #e8f0ff 0%, rgba(232,240,255,0) 70%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: 34px; line-height: 1.25; margin: 0 0 14px; letter-spacing: .5px;
  background: linear-gradient(120deg, #1f6feb, #4b9bff); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero .lead { color: #4a5568; font-size: 16px; margin: 0 auto 30px; max-width: 600px; }
.hero-form {
  display: flex; gap: 10px; max-width: 580px; margin: 0 auto;
  background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-form input { flex: 1; border: none; box-shadow: none; font-size: 16px; padding: 12px 14px; }
.hero-form input:focus { outline: none; }
.hero-form .btn { border-radius: 10px; }

.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; max-width: 640px; }
.feature {
  display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; color: #44505f; box-shadow: var(--shadow);
}
.feature .fi { color: var(--green); font-weight: 700; }

/* ===== 卡片 / 通用 ===== */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 12px; font-size: 16px; }
.card h2 .sub { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 8px; }

.btn {
  background: var(--blue); color: #fff; border: none; border-radius: 8px;
  padding: 12px 26px; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 7px 15px; font-size: 13px; font-weight: 500; }
.btn.ghost:hover { background: #f3f5f8; color: var(--text); }
input[type=text] {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 8px; outline: none; background: #fff;
}
input[type=text]:focus { border-color: var(--blue); }
.err { color: var(--red); font-size: 13px; min-height: 20px; margin: 10px 0 0; text-align: center; }

.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.badge.pass, .badge.complete, .badge.ok { background: #dafbe1; color: var(--green); }
.badge.warn, .badge.running, .badge.pending { background: #fff1e0; color: var(--amber); }
.badge.fail, .badge.failed, .badge.error { background: #ffebe9; color: var(--red); }
.badge.info, .badge.na { background: #eef1f5; color: var(--muted); }

.kv { display: flex; padding: 5px 0; font-size: 14px; }
.kv > span { width: 160px; flex-shrink: 0; color: var(--muted); }
.kv > b { font-weight: 600; word-break: break-all; }

table.checks { width: 100%; border-collapse: collapse; font-size: 14px; }
table.checks td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.checks td:first-child { width: 140px; white-space: nowrap; }
table.checks td:nth-child(2) { width: 70px; }
table.checks tr:last-child td { border-bottom: none; }
.detail { color: var(--muted); font-size: 13px; }

.score-wrap { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.score { font-size: 38px; font-weight: 800; min-width: 110px; text-align: center; border-radius: 10px; padding: 8px 0; }
.score.good { background: #dafbe1; color: var(--green); }
.score.mid { background: #fff1e0; color: var(--amber); }
.score.bad { background: #ffebe9; color: var(--red); }

.progress-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 15px; border-bottom: 1px dashed var(--border); }
.progress-line:last-child { border-bottom: none; }
.spinner { width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--blue); animation: spin .8s linear infinite; }
.dot { width: 15px; text-align: center; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.summary .good-li { color: var(--green); }
.summary .bad-li { color: var(--red); }
.summary ul { margin: 6px 0; padding-left: 22px; }
.summary li { margin: 4px 0; }
.disclaimer { color: var(--muted); font-size: 12px; margin-top: 10px; }

.ai-bar { background: #eef1f5; border-radius: 6px; height: 10px; width: 160px; display: inline-block; vertical-align: middle; }
.ai-bar > i { display: block; height: 100%; border-radius: 6px; background: var(--amber); }

.ps-wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.ps-col { flex: 1; min-width: 230px; }
.ps-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ps-col .score { display: inline-block; padding: 4px 0; }

.report-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 16px; flex-wrap: wrap; gap: 10px; }
.report-head h1 { font-size: 20px; margin: 0; word-break: break-all; }
.muted { color: var(--muted); }
.hidden { display: none; }

.site-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 16px 44px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--blue); }
.foot-sep { margin: 0 8px; opacity: .5; }

@media (max-width: 560px) {
  .hero { padding: 44px 12px 36px; }
  .hero h1 { font-size: 26px; }
  .hero-form { flex-direction: column; background: transparent; box-shadow: none; border: none; padding: 0; gap: 12px; }
  .hero-form input { border: 1px solid var(--border); border-radius: 10px; }
  .nav { padding: 12px 16px; }
}
/* 网页报告底部的二维码引导（屏幕显示，打印时隐藏，避免与 PDF 版重复）*/
/* SaaS 建站重大风险提示横幅 */
.saas-alert {
  background: #fff1f0; border: 2px solid var(--red); border-left: 6px solid var(--red);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 16px;
}
.saas-alert-title { font-size: 17px; font-weight: 800; color: var(--red); margin-bottom: 6px; }
.saas-alert p { margin: 0; font-size: 14px; color: #5c1d1a; line-height: 1.7; }
.saas-alert b { color: var(--red); }

.screen-cta {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #eef4ff, #f7faff);
  border: 1px solid #d6e4ff;
}
.screen-cta img { width: 124px; height: 124px; flex-shrink: 0; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; }
.screen-cta-text .cta-main { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.screen-cta-text .cta-sub { font-size: 13px; color: var(--muted); line-height: 1.7; }
@media (max-width: 520px) {
  .screen-cta { flex-direction: column; text-align: center; gap: 12px; }
}

/* 打印 / 存 PDF 专用的二维码引导（屏幕上隐藏，仅出现在 PDF 末尾）*/
.print-cta { display: none; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  main { max-width: 100%; padding: 0; }
  .print-cta {
    display: block; text-align: center; margin-top: 36px; padding-top: 24px;
    border-top: 1px solid #ccc; break-inside: avoid;
  }
  .print-cta img { width: 180px; height: 180px; object-fit: contain; }
  .print-cta .cta-main { font-size: 15px; font-weight: 700; color: #1f2328; margin: 14px 0 4px; }
  .print-cta .cta-sub { font-size: 13px; color: #44505f; margin: 0; }
}

/* ---------- 留资门控：露分数 + 详情打码 + 邮箱解锁 ---------- */
.locked-section { margin-top: 4px; }
.locked-blur { filter: blur(6px); pointer-events: none; user-select: none; opacity: .8; }

/* 标题旁露出的分数/结论 */
.locked-peek { font-weight: 700; font-size: 14px; margin-left: 8px; vertical-align: middle; }
.peek-score { display: inline-block; font-weight: 800; padding: 2px 11px; border-radius: 8px; }
.peek-score small, .peek-ps small { font-weight: 600; opacity: .6; font-size: 12px; }
.peek-score.good { background: #dafbe1; color: var(--green); }
.peek-score.mid  { background: #fff1e0; color: var(--amber); }
.peek-score.bad  { background: #ffebe9; color: var(--red); }
.peek-ps b { font-weight: 800; margin: 0 2px; }
.peek-num.good { color: var(--green); } .peek-num.mid { color: var(--amber); } .peek-num.bad { color: var(--red); }

/* 顶部邮箱横幅（不遮挡分数）*/
.lead-banner {
  background: linear-gradient(135deg, #eef4ff, #f7faff);
  border: 1.5px solid #cfe0ff; border-radius: 14px;
  padding: 22px 24px; margin: 8px 0 16px; text-align: center;
}
.lead-banner-head { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.lead-banner p { margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.lead-banner p b { color: var(--text); }
.lead-banner-row { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.lead-banner-row input {
  flex: 1; padding: 12px 14px; font-size: 15px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 9px; outline: none;
}
.lead-banner-row input:focus { border-color: var(--blue); }
.lead-banner-row .btn { white-space: nowrap; padding: 12px 22px; font-size: 15px; }
.lead-err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 8px; }
.locked-hint { margin-top: 10px; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .lead-banner-row { flex-direction: column; } }
