:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #1f2937;
  --ink-2: #6b7280;
  --ink-3: #9ca3af;
  --line: #e5e7eb;
  --primary: #4f6ef7;
  --primary-dark: #3b5bdb;
  --error: #ef4444;
  --warning: #f59e0b;
  --notice: #3b82f6;
  --pass: #10b981;
  --info: #8b95a5;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 8px 24px rgba(17, 24, 39, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 头部 ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #7c5cf7);
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-weight: 700; font-size: 17px; display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-size: 10px; color: var(--ink-3); font-weight: 500; letter-spacing: 1px; }
.badge {
  font-size: 12px; color: var(--primary);
  background: rgba(79, 110, 247, 0.1);
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
}

/* ---------- 输入区 ---------- */
.hero { text-align: center; padding: 56px 0 30px; }
.hero h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: -0.5px; }
.sub { color: var(--ink-2); margin: 0 auto 28px; max-width: 640px; font-size: 15.5px; }
.scan-form {
  display: flex; gap: 10px; max-width: 620px; margin: 0 auto;
  background: var(--card); padding: 8px; border-radius: 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.scan-form input {
  flex: 1; border: 0; outline: 0; font-size: 16px;
  padding: 12px 14px; background: transparent; color: var(--ink); min-width: 0;
}
.scan-form button {
  border: 0; border-radius: 11px; background: var(--primary);
  color: #fff; font-size: 16px; font-weight: 600;
  padding: 0 26px; cursor: pointer; transition: background 0.15s;
  white-space: nowrap;
}
.scan-form button:hover { background: var(--primary-dark); }
.scan-form button:disabled { background: #a5b0f5; cursor: not-allowed; }
.examples { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.examples a { margin: 0 4px; color: var(--ink-2); border-bottom: 1px dashed var(--ink-3); }
.examples a:hover { color: var(--primary); }

.loading { display: none; align-items: center; justify-content: center; gap: 10px; color: var(--ink-2); margin-top: 26px; font-size: 14.5px; }
.loading:not([hidden]) { display: flex; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(79, 110, 247, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-box {
  margin: 24px auto 0; max-width: 620px;
  background: #fef2f2; color: #b91c1c;
  border: 1px solid #fecaca; border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 18px;
}
.report { padding-bottom: 40px; animation: fadeUp 0.35s ease; scroll-margin-top: 76px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 报告头（深色审计风格） ---------- */
.report-head {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #16213e 0%, #1d2d55 48%, #24397a 100%);
  border: 1px solid #2c4278;
  border-radius: 18px; box-shadow: 0 12px 32px rgba(22, 33, 62, 0.25);
  padding: 30px 32px; margin-bottom: 20px;
  color: #fff;
}
.report-head::before {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 132, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.report-head::after {
  content: ""; position: absolute; left: 40%; bottom: -90px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 247, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.score-block { position: relative; width: 148px; height: 148px; flex-shrink: 0; z-index: 1; }
.score-ring { transform: rotate(-90deg); filter: drop-shadow(0 0 10px rgba(99, 132, 255, 0.35)); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 11; }
.ring-fg {
  fill: none; stroke: var(--pass); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s ease, stroke 0.4s;
}
.score-num {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
}
.score-num strong { font-size: 46px; line-height: 1; font-weight: 800; color: #fff; letter-spacing: -1px; }
.score-num span {
  font-size: 14px; color: rgba(255, 255, 255, 0.9); font-weight: 700;
  margin-top: 4px; letter-spacing: 2px;
}
.report-meta { flex: 1; min-width: 260px; z-index: 1; }
.report-meta h2 {
  margin: 0 0 6px; font-size: 21px; color: #fff; letter-spacing: -0.3px;
  overflow-wrap: anywhere; word-break: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta-url { margin: 0 0 4px; font-size: 13.5px; color: #8fb0ff; overflow-wrap: anywhere; font-weight: 600; }
.meta-line { margin: 0 0 12px; font-size: 12.5px; color: rgba(255, 255, 255, 0.62); }
.summary-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-chips .s {
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px; font-weight: 600;
  background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.summary-chips .s.error { background: rgba(239, 68, 68, 0.24); color: #ffb4b4; border-color: rgba(239, 68, 68, 0.35); }
.summary-chips .s.warning { background: rgba(245, 158, 11, 0.22); color: #ffd699; border-color: rgba(245, 158, 11, 0.35); }
.summary-chips .s.notice { background: rgba(59, 130, 246, 0.24); color: #b9d4ff; border-color: rgba(59, 130, 246, 0.35); }
.summary-chips .s.pass { background: rgba(16, 185, 129, 0.22); color: #a7f3d0; border-color: rgba(16, 185, 129, 0.35); }
.report-actions { display: flex; flex-direction: column; gap: 8px; z-index: 1; }
.report-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.92);
}
.report-actions .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6); color: #fff; background: rgba(255, 255, 255, 0.16);
}
.trust-line {
  display: flex; align-items: center; gap: 7px;
  margin: 12px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.55);
}
.trust-line .lock { flex-shrink: 0; }
.report-meta .trend-count { color: rgba(255, 255, 255, 0.6); }

/* ---------- 模块得分 ---------- */
.module-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.module-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px 16px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.module-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--pass);
}
.module-card[data-level="low"]::before { background: var(--error); }
.module-card[data-level="mid"]::before { background: var(--warning); }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17, 24, 39, 0.1); }
.module-card .m-name {
  font-size: 12.5px; color: var(--ink-2); display: flex; justify-content: space-between;
  font-weight: 600; letter-spacing: 0.3px;
}
.module-card .m-score { font-size: 30px; font-weight: 800; margin: 8px 0 10px; letter-spacing: -0.5px; }
.module-card[data-level="low"] .m-score { color: var(--error); }
.module-card[data-level="mid"] .m-score { color: #b45309; }
.module-card[data-level="high"] .m-score { color: #047857; }
.module-card .m-bar { height: 6px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.module-card .m-bar i { display: block; height: 100%; border-radius: 99px; transition: width 0.9s ease; background: var(--pass); }
.module-card .m-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.module-card[data-level="low"] .m-bar i { background: var(--error); }
.module-card[data-level="mid"] .m-bar i { background: var(--warning); }
.module-card[data-level="high"] .m-bar i { background: var(--pass); }

/* ---------- 通用幽灵按钮 ---------- */
.btn-ghost {
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); font-size: 13.5px; padding: 8px 14px;
  border-radius: 9px; cursor: pointer; transition: 0.15s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.section-head h3 {
  margin: 0; font-size: 16.5px; letter-spacing: -0.2px;
  display: flex; align-items: center; gap: 10px;
}
.section-head h3::before {
  content: ""; width: 4px; height: 17px; border-radius: 99px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--primary), #7c5cf7);
}
.section-head .count { font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* ---------- 站点资产 ---------- */
.asset-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.asset-row {
  display: flex; gap: 14px; padding: 10px 2px;
  border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.55;
}
.asset-row:last-child, .asset-row:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.asset-row .k { flex: 0 0 100px; color: var(--ink-3); }
.asset-row .v { flex: 1; min-width: 0; word-break: break-all; font-weight: 500; color: var(--ink); }
.asset-row .v.warn { color: #b45309; font-weight: 600; }
.asset-row .v.bad { color: #dc2626; font-weight: 600; }
@media (max-width: 640px) {
  .asset-table { grid-template-columns: 1fr; }
  .asset-row { flex-direction: column; gap: 2px; }
  .asset-row .k { flex: none; }
}
.filters { display: flex; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--card);
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  cursor: pointer; color: var(--ink-2); display: flex; align-items: center; gap: 5px;
}
.chip b { font-weight: 700; }
.chip.active { color: #fff; border-color: transparent; }
.chip.chip-error.active { background: var(--error); }
.chip.chip-warning.active { background: var(--warning); }
.chip.chip-notice.active { background: var(--notice); }
.chip:not(.active):hover { border-color: var(--ink-3); }

/* ---------- 问题列表 ---------- */
.issue-list { list-style: none; padding: 0; margin: 10px 0 0; }
.issue-item { border-top: 1px solid var(--line); padding: 14px 0; transition: background 0.15s; }
.issue-item:first-child { border-top: 0; }
.issue-item summary {
  cursor: pointer; list-style: none; display: flex;
  gap: 10px; align-items: flex-start; user-select: none;
  border-radius: 10px; padding: 4px 6px; margin: -4px -6px;
}
.issue-item summary:hover { background: #f6f8fd; }
.issue-item summary::-webkit-details-marker { display: none; }
.sev {
  font-size: 11.5px; font-weight: 700; padding: 2.5px 9px;
  border-radius: 7px; flex-shrink: 0; margin-top: 2px; letter-spacing: 1px;
}
.sev.error { background: #fef2f2; color: var(--error); }
.sev.warning { background: #fffbeb; color: #b45309; }
.sev.notice { background: #eff6ff; color: var(--notice); }
.issue-name { font-weight: 600; font-size: 15px; flex: 1; }
.issue-mod {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 5px;
  margin-left: 8px; vertical-align: 2px; letter-spacing: .2px; white-space: nowrap;
  background: #eef2f7; color: var(--ink-3);
}
.issue-mod.mod-seo { background: #eff4ff; color: #2563eb; }
.issue-mod.mod-performance { background: #fff7ed; color: #c2410c; }
.issue-mod.mod-security { background: #fef2f2; color: #dc2626; }
.issue-mod.mod-health { background: #f0fdf4; color: #15803d; }
.issue-mod.mod-geo { background: #f5f3ff; color: #7c3aed; }
.issue-arrow { color: var(--ink-3); transition: transform 0.2s; font-size: 13px; margin-top: 4px; }
details[open] > summary .issue-arrow { transform: rotate(90deg); }
.issue-body { padding: 10px 0 2px 56px; }
.issue-msg { margin: 0 0 10px; font-size: 14.5px; color: var(--ink); }
.issue-fix {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #14532d;
}
.issue-fix b { display: block; font-size: 12.5px; color: #047857; margin-bottom: 4px; letter-spacing: 1px; }
.issue-detail { font-size: 13px; color: var(--ink-3); margin-top: 8px; word-break: break-all; }

/* ---------- 通过 / 信息列表 ---------- */
.collapsible summary { cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ink-2); }
.pass-list, .info-list { list-style: none; padding: 0; margin: 14px 0 0; columns: 2; column-gap: 24px; }
.pass-list li, .info-list li {
  font-size: 13.5px; color: var(--ink-2); padding: 5px 0;
  break-inside: avoid; display: flex; gap: 7px; align-items: flex-start;
}
.pass-list li::before { content: "✓"; color: var(--pass); font-weight: 700; }
.info-list li::before { content: "ℹ"; color: var(--info); font-weight: 700; }
.pass-list li span, .info-list li span { flex: 1; }
.pass-list .sub-detail { display: block; color: var(--ink-3); font-size: 12px; }
.pass-list.muted li::before { content: "—"; color: var(--ink-3); }
.empty { text-align: center; color: var(--pass); padding: 24px 0 8px; font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; margin-top: 20px; }
.site-footer p { margin: 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.site-footer .footer-inner { text-align: center; }
.site-footer .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0; }
.site-footer .footer-nav a { color: var(--ink-2); font-size: 12.5px; }
.site-footer .footer-nav a:hover { color: var(--primary); text-decoration: underline; }
.site-footer .footer-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 付费墙 ---------- */
.paywall { border-color: #c7d2fe; background: linear-gradient(180deg, #f8faff 0%, #ffffff 60%); margin: 18px 0; }
.paywall-top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.paywall-copy h3 { margin: 0 0 6px; font-size: 18px; }
.paywall-price { text-align: right; }
.paywall-price strong { display: block; font-size: 26px; color: var(--primary-dark); line-height: 1.2; }
.paywall-body { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.paywall-includes { flex: 1 1 260px; margin: 0; padding-left: 20px; }
.paywall-includes li { font-size: 13.5px; margin-bottom: 6px; }
.paywall-includes li::marker { color: var(--primary); }
.paywall-checkout { flex: 1 1 260px; min-width: 240px; }
.paywall-checkout .btn-primary { width: 100%; padding: 12px; font-size: 15px; }
.paywall-status { margin: 10px 0; min-height: 1em; }
.paywall-redeem { display: flex; gap: 8px; margin-top: 12px; }
.paywall-redeem input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.paywall-fine { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; margin: 12px 0 0; }
.paywall-fine a { text-decoration: underline; }
.paywall-fine.paywall-demo { color: var(--warning); }
.paywall-done { border-color: var(--pass); }
#paywall-done strong { font-size: 16px; }
#paywall-done code { padding: 2px 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
#paypal-button-container { margin-top: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: 26px; }
  .paywall-price { text-align: left; }
  .paywall-price strong { font-size: 22px; }
  .scan-form { flex-direction: column; padding: 12px; }
  .scan-form button { padding: 13px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .pass-list, .info-list { columns: 1; }
  .report-head { gap: 16px; padding: 22px 20px; }
  .report-actions { flex-direction: row; width: 100%; flex-wrap: wrap; }
  .report-actions .btn-ghost { flex: 1; }
  .issue-body { padding-left: 0; }
  .header-nav .badge { display: none; }
}

/* ---------- V2：导航 ---------- */
.header-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link {
  font-size: 13.5px; color: var(--ink-2); padding: 6px 11px;
  border-radius: 8px; font-weight: 600;
}
.nav-link:hover { background: #f3f4f6; color: var(--ink); }
.nav-link.active { background: rgba(79, 110, 247, 0.1); color: var(--primary); }
.lang-toggle {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

.view-head { text-align: center; padding: 40px 0 24px; }
.view-head h1 { font-size: 28px; margin: 0 0 8px; }
.view-head .sub { margin-bottom: 0; }

.scan-options { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.scan-options label { display: inline-flex; align-items: center; gap: 8px; }
.scan-options select {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  font-size: 13.5px; background: var(--card); color: var(--ink);
}
.pages-hint { margin-left: 10px; font-size: 12.5px; color: var(--ink-3); }
.hero-compact { padding: 26px 0 18px; }
.hero-compact h1, .hero-compact .sub, .hero-compact .examples, .hero-compact .scan-options { display: none; }

/* ---------- V2：任务清单 ---------- */
.hint { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.task-bar { height: 8px; background: #eef1f7; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.task-bar i { display: block; height: 100%; background: var(--pass); border-radius: 99px; transition: width 0.4s; }
.task-list { list-style: none; padding: 0; margin: 8px 0 0; columns: 2; column-gap: 24px; }
.task-item { break-inside: avoid; display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.task-item input { accent-color: var(--pass); width: 16px; height: 16px; cursor: pointer; }
.task-item label { cursor: pointer; color: var(--ink-2); }
.task-item input:checked + label { text-decoration: line-through; color: var(--ink-3); }

/* ---------- V2：数据表格 ---------- */
.table-wrap { overflow-x: auto; margin-top: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600;
  padding: 8px 10px; border-bottom: 2px solid var(--line); letter-spacing: 0.5px;
  white-space: nowrap;
}
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fafbfe; }
.page-link { font-size: 13px; word-break: break-all; }
.tag {
  font-size: 10.5px; background: rgba(79, 110, 247, 0.1); color: var(--primary);
  border-radius: 5px; padding: 1px 6px; margin-left: 6px; font-weight: 700; vertical-align: 1px;
}
.sub-detail { display: block; color: var(--ink-3); font-size: 12px; }
.btn-mini {
  font-size: 12.5px; padding: 4px 10px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); margin-right: 6px;
}
a.btn-mini { display: inline-block; }
.btn-mini:hover { border-color: var(--primary); color: var(--primary); }
.btn-mini.danger:hover { border-color: var(--error); color: var(--error); }
.btn-primary {
  border: 0; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 9px; cursor: pointer; transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: #a5b0f5; cursor: not-allowed; }
.issue-pages {
  font-size: 11.5px; background: #f3f4f6; color: var(--ink-2);
  border-radius: 6px; padding: 2px 7px; font-weight: 700; flex-shrink: 0;
}
.issue-pages-list { margin-top: 8px; font-size: 12.5px; }
.issue-pages-list b { display: block; color: var(--ink-3); font-size: 12px; margin-bottom: 3px; }
.issue-pages-list code {
  display: block; background: #f6f8fc; border-radius: 6px; padding: 3px 8px;
  margin: 2px 0; color: var(--ink-2); word-break: break-all; font-size: 12px;
}
.issue-pages-more { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }

/* ---------- V2：趋势图 ---------- */
.trend-chart { margin-top: 8px; }
.trend-svg { width: 100%; height: auto; max-height: 180px; }
.trend-grid { stroke: #eef1f7; stroke-width: 1; }
.trend-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.trend-dot { fill: var(--primary); stroke: #fff; stroke-width: 2; }
.trend-dot.current { fill: var(--pass); }

/* ---------- V2：PageSpeed ---------- */
.psi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.psi-cell {
  background: #f6f8fc; border-radius: 10px; padding: 12px; text-align: center;
}
.psi-cell b { display: block; font-size: 26px; font-weight: 800; }
.psi-cell span { font-size: 12px; color: var(--ink-3); }

/* ---------- V2：弹窗 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
  cursor: pointer;
}
.modal:not([hidden]) { display: flex; }
.modal-box { max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto; cursor: default; }
.modal .section-head { position: relative; }
.modal .section-head .btn-ghost {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 14px; padding: 8px 18px; font-weight: 600;
}
#card-canvas { width: 100%; height: auto; border-radius: 12px; display: block; margin-top: 10px; }

/* ---------- V2：批量 / 监控 ---------- */
.batch-input, .monitor-form input[type="text"] {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: #fbfcfe; resize: vertical;
}
.batch-input:focus, .monitor-form input:focus { outline: 2px solid rgba(79, 110, 247, 0.3); border-color: var(--primary); }
.monitor-form { display: flex; gap: 10px; margin-bottom: 14px; align-items: stretch; }
.monitor-form input[type="text"] { flex: 1; min-width: 0; }
.monitor-form input[type="number"] {
  width: 110px; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; font-size: 14px; color: var(--ink);
}

/* ---------- V2：对比 ---------- */
.cmp-head { display: flex; gap: 20px; align-items: baseline; font-size: 22px; font-weight: 800; }
.cmp-head .delta { font-size: 34px; }
#compare-body h4 { margin: 18px 0 6px; font-size: 14.5px; color: var(--ink-2); }
.cmp-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.cmp-list li { font-size: 13.5px; padding: 4px 0; break-inside: avoid; color: var(--ink-2); }
.cmp-list.good li::before { content: "✓ "; color: var(--pass); font-weight: 700; }
.cmp-list.bad li::before { content: "✗ "; color: var(--error); font-weight: 700; }
.cmp-list:not(.good):not(.bad) li::before { content: "• "; color: var(--ink-3); }

/* ---------- V2：执行摘要 ---------- */
.executive-summary { background: linear-gradient(135deg, #16213e 0%, #24397a 100%); color: #fff; border-color: #2c4278; }
.executive-summary .section-head h3 { color: #fff; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0; }
.summary-item { text-align: center; }
.summary-label { font-size: 13px; opacity: 0.9; margin-bottom: 8px; }
.summary-value { font-size: 32px; font-weight: 800; }
.summary-value.error { color: #ff6b6b; }
.summary-text { font-size: 14px; line-height: 1.8; opacity: 0.95; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }

/* ---------- V2：优先级路线图 ---------- */
.priority-roadmap { background: #f8f9fa; }
.roadmap-content { margin-top: 15px; }
.roadmap-phase { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 12px; border-left: 4px solid var(--primary); }
.roadmap-phase.critical { border-left-color: var(--error); }
.roadmap-phase.important { border-left-color: var(--warning); }
.roadmap-phase.suggestion { border-left-color: var(--notice); }
.roadmap-phase h4 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.roadmap-phase .phase-time { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.roadmap-phase ul { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.roadmap-phase li { margin: 4px 0; }
.roadmap-impact { font-size: 12px; color: var(--pass); font-weight: 600; margin-top: 8px; }

/* ---------- V2：打印 ---------- */
@media print {
  .site-header, .site-footer, .report-actions, .scan-options, .examples,
  #psi-card, #task-card, .filters, .modal, #hero, .nav-link { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .report { padding-bottom: 0; }
  details { open: true; }
  details > *:not(summary) { display: block !important; }
  details summary { list-style: none; cursor: default; }
  details summary::-webkit-details-marker { display: none; }
  .issue-arrow { display: none; }
  .issue-item { break-inside: avoid; }
  .issue-body { display: block !important; padding-left: 0; }
  a { color: inherit; text-decoration: none; }
  #pages-card, #trend-card { break-inside: avoid; }

  /* 执行摘要和路线图在打印时显示 */
  .executive-summary, .priority-roadmap { display: block !important; break-inside: avoid; }
  .executive-summary { background: #1d2d55 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .summary-grid { grid-template-columns: repeat(4, 1fr); }
  .roadmap-phase { break-inside: avoid; page-break-inside: avoid; }
}

/* ============ 定价与账号（商业化 V3） ============ */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.plan-card.plan-pro {
  border: 2px solid #4f6ef7;
  position: relative;
}
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-head b { font-size: 17px; }
.plan-price strong { font-size: 30px; margin-right: 6px; }
.plan-features { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; color: var(--ink-2, #475569); }
.plan-features li { padding: 3px 0; }
.plan-buy { margin-top: auto; }
.cycle-btn { font-size: 13px; padding: 6px 14px; }
#auth-modal .modal-box { max-width: 420px; }
#auth-modal input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
}

/* ============ 免费转化横幅 / AI 建议 ============ */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, #eef2ff, #f0f9ff);
  border: 1px solid #c7d2fe;
  padding: 14px 20px;
}
.banner-text { display: flex; flex-direction: column; gap: 2px; }
.banner-text b { font-size: 15px; color: #4338ca; }
.banner-text span { font-size: 13px; color: var(--ink-2, #475569); }
.ai-item { border-bottom: 1px solid var(--line, #e2e8f0); padding: 12px 0; }
.ai-item:last-child { border-bottom: 0; }
.ai-issue { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ai-suggestion { font-size: 13.5px; color: var(--ink-2, #334155); white-space: pre-wrap; background: #f8fafc; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.ai-copy { font-size: 12px; padding: 4px 12px; }
.ai-text { white-space: pre-wrap; font-size: 14px; line-height: 1.8; background: #f8fafc; border-radius: 8px; padding: 14px 16px; }

/* ============ 修复优先级矩阵 / 评分徽章 ============ */
.top-list { list-style: none; margin: 10px 0 0; padding: 0; }
.top-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line, #e2e8f0);
  font-size: 14px;
}
.top-item:last-child { border-bottom: 0; }
.gain-chip {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.roadmap-phase.top { border-left-color: #4f6ef7; background: #f8faff; }

/* ============ 分数趋势条 ============ */
.trend-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.trend-delta {
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.trend-delta.up { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.trend-delta.down { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.trend-delta.same { color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; }
#trend-spark { flex-shrink: 0; }
.trend-count { font-size: 12px; }

/* ============ 域名所有权验证 ============ */
.verify-box {
  margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.verify-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.verify-head-text { min-width: 0; }
.verify-head-text strong { font-size: 14px; }
.verify-lead { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.verify-head .btn-ghost { flex: none; }
.verify-body { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.verify-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verify-form input {
  flex: 1 1 240px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; font-family: inherit;
}
.verify-form a { font-size: 12.5px; white-space: nowrap; }
.verify-status { font-size: 12.5px; margin: 10px 0 0; padding: 8px 10px; border-radius: 7px; background: var(--bg); color: var(--ink-2); }
.verify-status.ok { background: #f0fdf4; color: #15803d; }
.verify-status.bad { background: #fef2f2; color: #b91c1c; }
.verify-methods { display: grid; gap: 10px; margin-top: 12px; }
.verify-method {
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: #fbfcff;
}
.verify-method h4 { margin: 0 0 5px; font-size: 13px; }
.verify-method p { margin: 0 0 8px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.verify-method .kv { font-size: 11px; color: var(--ink-3); word-break: break-all; }
.verify-method .verify-value {
  display: flex; gap: 8px; align-items: center; margin-top: 6px;
}
.verify-method code {
  flex: 1; min-width: 0; padding: 7px 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; font-size: 12px; word-break: break-all;
}
.verify-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.verify-actions .hint { font-size: 11.5px; color: var(--ink-3); }
.scan-mode-note {
  margin: 8px 0 0; padding: 7px 10px; border-radius: 7px; font-size: 12px;
  background: #f8faff; border: 1px solid #dbe3ff; color: #3b4a80; line-height: 1.6;
}
.scan-mode-note.verified { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
@media (max-width: 760px) {
  .verify-head { flex-direction: column; }
  .verify-method .verify-value { flex-direction: column; align-items: stretch; }
}
