/* RankUp 独立站工具与诊断 - 共享样式 */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #f8fafc;
  --card: #ffffff;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-soft: #eff6ff;
  --accent: #b45309;
  --accent-soft: #fffbeb;
  --success: #047857;
  --success-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --fail: #b91c1c;
  --fail-soft: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; letter-spacing: -.5px;
}
.brand-logo {
  width: 46px; height: 40px;
  object-fit: contain; object-position: left center;
  flex-shrink: 0; display: block;
}
.brand-hero { display: flex; align-items: center; gap: 26px; }
.brand-hero-logo { width: 96px; height: auto; flex-shrink: 0; }
.brand-name { font-size: 19px; font-weight: 750; letter-spacing: -.4px; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: .3px; margin-top: -4px; }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-2); }
.site-nav a {
  padding: 8px 11px; border-radius: 8px; line-height: 1.2; white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.site-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.site-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 650; }
/* 语言切换图标：独立于主导航，圆形地球按钮 */
.lang-switch { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); background: #fff; text-decoration: none; transition: background .18s, color .18s, border-color .18s; }
.lang-switch:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.lang-switch svg { width: 17px; height: 17px; display: block; }
.header-inner { gap: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta {
  background: var(--primary); color: #fff; padding: 9px 18px;
  border-radius: 9px; font-size: 14px; font-weight: 650; white-space: nowrap;
}
.header-cta:hover { background: var(--primary-dark); color: #fff; }

/* 通用区块 */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { margin-bottom: 30px; }
.kicker {
  font-size: 12px; font-weight: 750; letter-spacing: 1.4px;
  color: var(--primary); text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: 30px; line-height: 1.35; letter-spacing: -.7px; margin: 0 0 10px; font-weight: 760; }
.section-desc { color: var(--ink-3); margin: 0; max-width: 660px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* 首屏 */
.hero { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); border-bottom: 1px solid var(--line); padding: 68px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  background: var(--primary-soft); color: var(--primary); padding: 6px 13px;
  border-radius: 999px; font-weight: 650; margin-bottom: 20px;
}
.hero h1 { font-size: 46px; line-height: 1.22; letter-spacing: -1.5px; margin: 0 0 18px; font-weight: 780; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lead { font-size: 17px; color: var(--ink-2); margin: 0 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-notes { display: flex; gap: 22px; margin-top: 26px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); display: inline-block; }

/* 报告预览卡 */
.preview-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 26px; }
.preview-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; margin-bottom: 18px; }
.preview-title { font-size: 15px; font-weight: 700; }
.preview-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.preview-score { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.score-ring {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: conic-gradient(var(--primary) 0 72%, #e2e8f0 72% 100%);
  display: grid; place-items: center;
}
.score-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.score-num { position: relative; z-index: 1; font-size: 25px; font-weight: 780; }
.score-num small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.score-text strong { display: block; font-size: 16px; margin-bottom: 4px; }
.score-text span { font-size: 13px; color: var(--ink-3); }
.preview-list { display: grid; gap: 9px; }
.preview-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 9px 11px; background: var(--bg); border-radius: 8px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.pass { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.fail { background: var(--fail-soft); color: var(--fail); }
.preview-foot { margin-top: 16px; font-size: 12px; color: var(--ink-4); border-top: 1px dashed var(--line); padding-top: 12px; }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 24px; font-weight: 780; letter-spacing: -.5px; }
.stat span { font-size: 12px; color: var(--ink-3); }

/* 工具导航 */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-nav a { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); }
.cat-nav a:hover { border-color: var(--primary); color: var(--primary); }
.cat-block { margin-bottom: 38px; scroll-margin-top: 90px; }
.cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 15px; }
.cat-head h3 { font-size: 18px; margin: 0; font-weight: 720; }
.cat-head span { font-size: 12px; color: var(--ink-4); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px;
  display: flex; gap: 13px; align-items: flex-start; transition: .18s ease;
}
.tool-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); transform: translateY(-1px); }
.tool-logo {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 780; font-size: 14px;
}
.tool-card h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; }
.tool-card p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.tool-tag { font-size: 10px; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; margin-left: 6px; font-weight: 700; }
.tool-card.featured { border-color: #bfdbfe; background: linear-gradient(135deg, #fff 60%, var(--primary-soft)); }

/* 卡片与网格 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--ink-3); font-size: 14px; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center; font-weight: 750; margin-bottom: 14px;
}
.note-box { background: var(--accent-soft); border: 1px solid #fde68a; border-radius: 10px; padding: 14px 16px; font-size: 13px; color: #78350f; }

/* 工具页 */
.tool-layout { display: grid; grid-template-columns: 1.45fr .55fr; gap: 28px; align-items: start; }
.check-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.check-form h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.7px; }
.check-form > p { color: var(--ink-3); margin: 0 0 24px; }
.input-row { display: flex; gap: 10px; }
.input-wrap { position: relative; flex: 1; }
.input-wrap span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-4); font-size: 14px; }
.input-wrap input {
  width: 100%; padding: 13px 14px 13px 74px; border: 1px solid var(--line);
  border-radius: 10px; outline: none; font-size: 15px;
}
.input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-hint { font-size: 12px; color: var(--ink-4); margin-top: 10px; }
.progress-box { display: none; margin-top: 24px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.progress-box.show { display: block; }
.progress-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); padding: 5px 0; }
.progress-step .dot { background: var(--ink-4); }
.progress-step.done { color: var(--ink); }
.progress-step.done .dot { background: var(--success); }
.progress-bar { height: 5px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .5s ease; }
.result-reveal { display: none; margin-top: 22px; padding: 18px; background: var(--success-soft); border: 1px solid #a7f3d0; border-radius: 10px; }
.result-reveal.show { display: block; }
.result-reveal strong { display: block; margin-bottom: 4px; }
.result-reveal p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.check-list { display: grid; gap: 10px; }
.check-item { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; }
.check-item i { width: 20px; height: 20px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 750; flex-shrink: 0; }
.check-item span { color: var(--ink-3); display: block; font-size: 12px; }

/* 留资模块 */
.lead-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.lead-box h3 { margin: 0 0 6px; font-size: 17px; }
.lead-box p { color: var(--ink-3); font-size: 13px; margin: 0 0 14px; }
.lead-box input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; outline: none; font-size: 14px; }
.lead-box input:focus { border-color: var(--primary); }
.lead-ok { display: none; font-size: 13px; color: var(--success); background: var(--success-soft); padding: 10px 12px; border-radius: 8px; }
.lead-ok.show { display: block; }
.lead-err { display: none; font-size: 13px; color: var(--fail); background: var(--fail-soft); padding: 10px 12px; border-radius: 8px; }
.lead-err.show { display: block; }
button:disabled { opacity: .6; cursor: not-allowed; }

/* 报告页 */
.report-head { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin-bottom: 22px; }
.report-head-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.report-domain { font-size: 26px; font-weight: 760; margin: 0 0 4px; letter-spacing: -.5px; }
.report-meta { font-size: 12px; color: var(--ink-3); }
.report-summary { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; margin-top: 22px; }
.report-grid { display: grid; grid-template-columns: 1.5fr .5fr; gap: 22px; align-items: start; }
.result-item { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
.result-item:first-child { padding-top: 4px; }
.result-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.result-item-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
.result-item-head h3 { font-size: 15px; margin: 0; font-weight: 700; }
.result-find { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.result-advice { font-size: 13px; color: var(--primary); margin: 0; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.side-card h3 { font-size: 15px; margin: 0 0 12px; }
.side-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.side-row:last-child { border-bottom: 0; }
.side-row span:last-child { color: var(--ink-3); }

/* 内容列表与文章 */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-bar button { border: 1px solid var(--line); background: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.filter-bar button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.post-list { display: grid; gap: 14px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; transition: .18s ease; }
.post-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); }
.post-cat { font-size: 11px; color: var(--primary); font-weight: 700; letter-spacing: .4px; }
.post-card h3 { font-size: 17px; margin: 6px 0 7px; line-height: 1.45; }
.post-card p { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; }
.post-meta { font-size: 12px; color: var(--ink-4); display: flex; gap: 14px; }
.side-list { display: grid; gap: 10px; }
.side-link { display: block; font-size: 13px; padding: 9px 11px; background: var(--bg); border-radius: 8px; border: 1px solid var(--line-soft); }

.article-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 42px 48px; max-width: 860px; margin: 0 auto; }
.crumb { font-size: 12px; color: var(--ink-4); margin-bottom: 20px; }
.crumb a:hover { color: var(--primary); }
.article-wrap h1 { font-size: 32px; line-height: 1.35; letter-spacing: -.7px; margin: 0 0 14px; }
.article-meta { font-size: 12px; color: var(--ink-4); border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.article-body h2 { font-size: 21px; margin: 34px 0 12px; letter-spacing: -.3px; }
.article-body h3 { font-size: 17px; margin: 24px 0 8px; }
.article-body p { color: var(--ink-2); margin: 0 0 14px; }
.article-body ul { color: var(--ink-2); padding-left: 22px; margin: 0 0 16px; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0 22px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article-body th { background: var(--bg); font-weight: 700; }
.inline-cta { background: var(--primary-soft); border: 1px solid #bfdbfe; border-radius: 12px; padding: 20px 22px; margin: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.inline-cta h3 { margin: 0 0 4px; font-size: 16px; }
.inline-cta p { margin: 0; font-size: 13px; color: var(--ink-3); }
.article-author { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: 13px; color: var(--ink-3); }
.article-author strong { color: var(--ink-1); }
.article-author p { color: var(--ink-3); margin: 6px 0 0; line-height: 1.75; }
.article-author .author-sources { font-size: 12px; margin-top: 12px; }
.article-author .author-sources a { color: var(--primary); }

/* 页脚 */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-grid h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 2px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-soft); }
.footer-grid p, .footer-grid a { font-size: 13px; color: var(--ink-3); display: block; margin-bottom: 7px; }
/* 底部导航链接列：引导点与悬停反馈 */
.footer-grid > div:not(:first-child) a { position: relative; width: fit-content; text-decoration: none; padding-left: 14px; transition: color .18s ease, transform .18s ease; }
.footer-grid > div:not(:first-child) a::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--line); transition: background .18s ease; }
.footer-grid > div:not(:first-child) a:hover { color: var(--primary); transform: translateX(2px); }
.footer-grid > div:not(:first-child) a:hover::before { background: var(--primary); }
.footer-desc { margin-top: 14px; line-height: 1.7; }

/* 响应式 */
@media (max-width: 960px) {
  .hero-grid, .tool-layout, .report-grid, .content-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .tool-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .tool-grid, .grid-2, .grid-3, .stats { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 31px; }
  .input-row { flex-direction: column; }
  .article-wrap { padding: 24px 20px; }
  .article-wrap h1 { font-size: 26px; }
  .report-summary { grid-template-columns: 1fr; }
}

/* ===== 扩展：工具导航、工具箱、轻量工具、留资 ===== */
.tool-search { width: 100%; max-width: 420px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; outline: none; font-size: 14px; }
.tool-search:focus { border-color: var(--primary); }
.cat-nav { gap: 8px; }
.cat-nav button { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; }
.cat-nav button:hover { border-color: var(--primary); color: var(--primary); }
.cat-nav button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tool-card img.tool-logo { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; object-fit: contain; }
.tool-card:hover { text-decoration: none; }
.tool-card h4 { color: var(--ink); }
.tool-card:hover h4 { color: var(--primary); }

.box-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.box-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: .18s ease; display: block; }
.box-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.box-card.featured { border-color: #bfdbfe; background: linear-gradient(150deg, #fff 55%, var(--primary-soft)); }
.box-num { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 1px; margin-bottom: 10px; }
.box-card h3 { font-size: 16px; margin: 0 0 8px; line-height: 1.45; }
.box-card p { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; min-height: 40px; }
.box-go { font-size: 13px; color: var(--primary); font-weight: 650; }

.mini-tool { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.mini-tool label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.mini-tool input, .mini-tool textarea, .mini-tool select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; font-size: 14px; margin-bottom: 14px; font-family: inherit; }
.mini-tool textarea { min-height: 96px; resize: vertical; }
.mini-tool input:focus, .mini-tool textarea:focus, .mini-tool select:focus { border-color: var(--primary); }
.mini-result { display: none; margin-top: 16px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.mini-result.show { display: block; }
.mini-result pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.serp-demo { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; }
.serp-url { font-size: 12px; color: #3c4043; }
.serp-title-demo { color: #1a0dab; font-size: 19px; line-height: 1.4; margin: 3px 0; }
.serp-desc-demo { color: #4d5156; font-size: 13px; line-height: 1.6; }

.mail-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.mail-fold { border: 1px solid var(--line); border-radius: 9px; background: var(--bg); margin: 12px 0; }
.mail-fold summary { cursor: pointer; padding: 12px 15px; font-size: 13px; font-weight: 650; color: var(--primary); list-style: none; display: flex; align-items: center; gap: 8px; user-select: none; }
.mail-fold summary::-webkit-details-marker { display: none; }
.mail-fold summary::before { content: "+"; flex: none; width: 18px; height: 18px; border: 1px solid var(--primary); border-radius: 5px; line-height: 16px; text-align: center; font-size: 13px; font-weight: 500; }
.mail-fold[open] summary::before { content: "−"; }
.mail-fold .fold-hint { font-size: 12px; font-weight: 400; color: var(--ink-4); margin-left: auto; }
.mail-template { background: var(--bg); border: 1px dashed var(--line); border-radius: 9px; padding: 15px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; color: var(--ink-2); }
.mail-fold .mail-template { margin: 0 !important; border: none; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.mail-to { font-size: 14px; font-weight: 700; color: var(--primary); }
.lead-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-choice > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.optional-tag { font-size: 11px; color: var(--ink-4); font-weight: 500; margin-left: 5px; }

/* 微信二维码与联系表单 */
.wechat-card { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 14px 0; }
.wechat-qr { width: 148px; height: 148px; object-fit: contain; flex-shrink: 0; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; }
/* 报告页侧栏较窄，微信卡片改为纵向，避免文字被二维码挤压成竖排 */
.lead-choice .wechat-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
.lead-choice .wechat-qr { width: 132px; height: 132px; }
.required-mark { color: var(--fail); font-weight: 700; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 12px 0; }
.contact-form label { font-size: 12px; font-weight: 650; color: var(--ink-2); display: block; margin-bottom: 10px; }
.contact-form label:last-of-type { margin-bottom: 14px; }
.contact-form label input, .contact-form label textarea { display: block; margin-top: 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; outline: none; font-size: 12px; font-family: inherit; color: var(--ink); background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; line-height: 1.5; }
.contact-form .btn { justify-self: start; }

@media (max-width: 960px) {
  .box-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-choice { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .box-grid { grid-template-columns: 1fr; }
}

/* ===== 移动端优化：以下规则覆盖此前的响应式定义 ===== */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: .92em; overflow-wrap: anywhere; }
pre { overflow-wrap: anywhere; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 520px; }

/* 汉堡按钮与移动菜单仅窄屏显示；桌面端始终保持隐藏 */
.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-2); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle span { transition: transform .2s ease, opacity .2s ease; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .header-inner { gap: 12px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 8px; font-size: 13px; }
  .hero-grid { gap: 36px; }
}

@media (max-width: 960px) {
  .header-inner { height: 62px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { padding: 8px 12px; font-size: 13px; }
  .mobile-nav {
    display: block; max-height: 0; overflow: hidden;
    border-top: 1px solid transparent; transition: max-height .22s ease;
  }
  .mobile-nav.open { max-height: 460px; border-top-color: var(--line); }
  .mobile-nav-inner { padding: 6px 0 14px; display: grid; }
  .mobile-nav a {
    display: flex; align-items: center; min-height: 46px;
    font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft);
  }
  .mobile-nav a.active { color: var(--primary); font-weight: 650; background: var(--primary-soft); border-radius: 8px; padding-left: 10px; padding-right: 10px; }
  .mobile-nav a.mobile-cta {
    justify-content: center; margin: 8px 0 2px; background: var(--primary); color: #fff;
    border: 0; border-radius: 10px; font-weight: 650;
  }
  .section { padding: 52px 0; }
  .section-tight { padding: 36px 0; }
  .hero { padding: 50px 0 56px; }
  .hero-grid, .tool-layout, .report-grid, .content-layout { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 34px; }
  .tool-grid, .grid-3, .box-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .tool-search { max-width: none; }
  .cat-block { scroll-margin-top: 76px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 42px 0; }
  .section-tight { padding: 32px 0; }
  .section-title { font-size: 25px; }
  .section-desc { font-size: 14px; }
  .hero { padding: 38px 0 44px; }
  .hero h1 { font-size: 29px; letter-spacing: -.8px; }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 160px; min-height: 46px; }
  .hero-notes { gap: 10px 16px; margin-top: 20px; }
  .preview-card { padding: 18px; }
  .preview-score { gap: 14px; }
  .score-ring { width: 82px; height: 82px; }
  .score-ring::before { inset: 9px; }
  .score-num { font-size: 22px; }
  .tool-grid, .grid-2, .grid-3, .box-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat strong { font-size: 20px; }
  .check-form, .mini-tool, .card { padding: 18px; }
  .check-form h1 { font-size: 25px; }
  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; min-height: 46px; }
  .input-wrap input { padding-top: 12px; padding-bottom: 12px; font-size: 16px !important; }
  .mini-tool input, .mini-tool textarea, .mini-tool select, .lead-box input, .tool-search { font-size: 16px !important; }
  .btn { min-height: 44px; }
  .report-head { padding: 18px; }
  .report-domain { font-size: 22px; overflow-wrap: anywhere; }
  .report-head-top > div:last-child { width: 100%; }
  .report-head-top .btn { width: 100%; }
  .report-summary { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .report-summary > div:last-child { width: 100%; }
  .result-item-head { flex-wrap: wrap; }
  .preview-row, .side-row { flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; }
  .preview-row > span:first-child, .side-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .lead-choice { gap: 14px; }
  .lead-choice > div { padding: 18px; }
  .article-wrap { padding: 22px 18px; border-radius: 12px; }
  .article-wrap h1 { font-size: 25px; }
  .article-body h2 { font-size: 19px; margin-top: 28px; }
  .article-body p, .article-body li { font-size: 15px; }
  .inline-cta { padding: 18px; }
  .inline-cta .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .mail-template { font-size: 12px; }
  /* 部分页面标题使用内联字号，此处以同等优先级覆盖 */
  .section-title { font-size: 25px !important; }
  .hero h1 { font-size: 29px !important; }
  .check-form h1, .mini-tool h1 { font-size: 25px !important; }
  .report-domain { font-size: 22px !important; }
}

@media (max-width: 480px) {
  .header-cta { display: none; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-logo { width: 34px; height: 30px; }
  .brand-hero { gap: 16px; }
  .brand-hero-logo { width: 70px; }
  .wechat-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wechat-qr { width: 132px; height: 132px; }
  .hero h1 { font-size: 26px; }
  .hero-badge { font-size: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .preview-score { flex-direction: column; align-items: flex-start; }
  .cat-nav button, .filter-bar button { font-size: 12px; padding: 8px 12px; }
  .tool-card { padding: 14px; }
  .tool-card img.tool-logo, .tool-logo { width: 34px; height: 34px; }
  .box-card { padding: 18px; }
  .box-card p { min-height: 0; }
  .post-card { padding: 16px; }
  .article-wrap { padding: 20px 15px; }
  .table-scroll table { min-width: 460px; }
  .hero h1 { font-size: 26px !important; }
}

@media print {
  .site-header, .site-footer, .no-print, .lead-choice, .mail-panel, .contact-form { display: none !important; }
  body { background: #fff; }
  .container { width: 100%; }
  .card, .report-head { border: 1px solid #ddd; box-shadow: none; }
}

/* ===== 备案号展示 ===== */
.footer-icp { border-top: 1px solid var(--line-soft); margin-top: 16px; padding-top: 14px; font-size: 12px; color: var(--ink-4); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-icp a { color: var(--ink-4); text-decoration: none; }
.footer-icp a:hover { color: var(--primary); }

/* ===== 联系方式区域：统一字号与视觉权重（置于末尾以覆盖响应式规则） ===== */
.lead-choice, .contact-zone { font-size: 12px; }
.lead-choice h3, .contact-zone h2 { font-size: 13px; font-weight: 700; letter-spacing: 0; margin: 0 0 8px; }
.lead-choice p, .contact-zone p { font-size: 12px; line-height: 1.6; margin: 0 0 6px; }
.lead-choice .small, .contact-zone .small { font-size: 12px; }
.lead-choice .kicker, .contact-zone .kicker { font-size: 12px; margin-bottom: 6px; }
.lead-choice .btn, .contact-zone .btn { font-size: 12px; padding: 7px 14px; border-radius: 7px; font-weight: 650; }
.lead-choice .btn-block { width: 100%; }
.lead-choice .wechat-card, .contact-zone .wechat-card { padding: 14px; gap: 14px; margin: 10px 0; }
.lead-choice .wechat-qr, .contact-zone .wechat-qr { width: 108px; height: 108px; }
.lead-choice .mail-panel, .contact-zone .mail-panel { padding: 16px; }
.lead-choice .mail-to { font-size: 13px; }
.lead-choice .mail-fold summary { font-size: 12px; padding: 10px 12px; }
.lead-choice .mail-template { font-size: 12px; }
.lead-choice .fold-hint { font-size: 11px; }
.lead-ok, .lead-err { font-size: 12px; padding: 8px 10px; }
.contact-zone .contact-form label { font-size: 12px; margin-bottom: 10px; }
.contact-zone .contact-form label:last-of-type { margin-bottom: 14px; }
.contact-zone .contact-form input, .contact-zone .contact-form textarea { font-size: 12px; padding: 8px 10px; }

/* ===== 联系方式区域：加大留白，缓解排列过紧（末尾规则 + !important 覆盖内联 margin） ===== */
/* 三种方式卡片之间、与下方侧栏卡片之间 */
.lead-choice { gap: 22px !important; margin-bottom: 22px !important; }
.lead-choice > div { padding: 22px !important; }
.lead-choice .kicker { margin-bottom: 12px !important; }
/* 方式一：二维码与文案 */
.lead-choice .wechat-card { margin: 14px 0 !important; padding: 18px !important; gap: 18px !important; }
.lead-choice .wechat-card p { margin-bottom: 10px !important; }
/* 方式二：表单与说明 */
.lead-choice .contact-form { margin: 14px 0 12px !important; }
.lead-choice > div > p.small.muted { margin: 14px 0 0 !important; }
/* 方式三：邮箱、折叠面板、响应时间与复制按钮 */
.lead-choice .mail-panel { padding: 20px !important; }
.lead-choice .mail-panel > p:first-child { margin: 0 0 14px !important; }
.lead-choice .mail-to { margin-bottom: 16px !important; }
.lead-choice .mail-fold { margin: 16px 0 !important; }
.lead-choice .mail-fold summary { padding: 12px 14px !important; }
.lead-choice .mail-panel > p:last-of-type { margin: 18px 0 14px !important; }
.lead-choice .mail-panel .btn { margin-top: 2px !important; }
/* 侧栏卡片之间 */
.side-card { margin-bottom: 20px !important; }
