/*
 * shared-tools/seo_global.css — SEO 视觉模块库通用 CSS
 *
 * 配套：sites/shared-tools/seo_modules.py 中的所有视觉模块函数
 * 规范：SEO单页建站公共规范.md §2.13/§2.14/§2.16
 *
 * 使用方式：
 *   方案 A（推荐）：站点 css/global.css 复制本文件全部内容（保证未来同步）
 *   方案 B：直接在站点 HTML 引入本文件 <link rel="stylesheet" href="https://imqq.ijinshan.com/css/seo_global.css">
 *
 * 包含模块：
 *   - 基础布局（container/section/breadcrumb/footer）
 *   - 金山主导航 ks-header / ks-subnav
 *   - 视觉模块 v2（hero-v2/cta-primary/entity-card/hub-grid-v2/faq-v2/cta-section-v2 等）
 *   - 移动端响应式（768px 断点）
 */

:root {
  --blue:    #2563eb;
  --blue-dk: #1d4ed8;
  --blue-50: #eff6ff;
  --white:   #fff;
  --green:   #16a34a;
  --amber:   #f59e0b;
  --red:     #dc2626;
  --gray-50: #f9fafb;
  --gray-100:#f3f4f6;
  --gray-200:#e5e7eb;
  --gray-400:#9ca3af;
  --gray-600:#4b5563;
  --gray-700:#374151;
  --gray-900:#111827;
  --radius:  8px;
  --shadow:  0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);

  /* ── 换肤变量层（站点 theme.css 可覆盖，骨架不动）──────────────
     仅这几个变量允许各站覆盖，用于按软件品类做品牌区隔；
     默认值 = 通用蓝，等于不换肤。详见【SEO公共规范】§2.20。 */
  --brand:        var(--blue);                                   /* 主品牌色：主按钮/nav.active/链接 */
  --brand-dk:     var(--blue-dk);                                /* 主色加深：hover */
  --brand-shadow: rgba(37, 99, 235, .25);                        /* 主按钮投影色 */
  --hero-bg:      linear-gradient(180deg, #f0f9ff 0%, #fff 100%);/* hero 背景 */
  --cta-grad:     linear-gradient(135deg, #2563eb 0%, #1e40af 100%); /* 底部 CTA 区背景 */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 容器 ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── 顶部导航 ── */
.header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--gray-900);
  text-decoration: none;
}
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 6px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  text-decoration: none; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.nav a.active { background: var(--brand); color: #fff; }

/* ── 面包屑 ── */
.breadcrumb {
  padding: 12px 20px; font-size: 13px; color: var(--gray-600);
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 6px; color: var(--gray-200); }

/* ── Hero 区 ── */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff; padding: 72px 0;
  text-align: center;
}
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.hero .hero-sub {
  font-size: 18px; opacity: .9;
  max-width: 600px; margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 按钮 ── */
.btn {
  display: inline-block; padding: 11px 28px;
  border-radius: var(--radius); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }
.btn-primary  { background: var(--blue);  color: #fff; }
.btn-secondary { background: #fff; color: var(--blue); }

/* ── 通用 section ── */
.section { padding: 36px 0; }
.section-gray { background: var(--gray-50); }
.section-title {
  font-size: 28px; font-weight: 700; color: var(--gray-900);
  text-align: center; margin-bottom: 40px;
}

/* ── 卡片网格 ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  display: block; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 24px 20px;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
  text-decoration: none; color: inherit;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.card-icon { margin-bottom: 14px; width: 56px; height: 56px; }
.card-icon svg { width: 56px; height: 56px; display: block; }
.card h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.card p  { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.card-link { font-size: 13px; color: var(--blue); font-weight: 600; }

/* ── 内容布局（正文+侧栏）── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 20px;
  align-items: start;
}
.main-content { min-width: 0; }
.main-content h1 {
  font-size: 32px; font-weight: 800; color: var(--gray-900);
  margin-bottom: 16px; line-height: 1.3;
}
.main-content h2 {
  font-size: 22px; font-weight: 700; color: var(--gray-900);
  margin: 36px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
}
.main-content h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--gray-900); }
.main-content p  { margin-bottom: 14px; }
.main-content ul, .main-content ol { padding-left: 20px; margin-bottom: 14px; }
.main-content li { margin-bottom: 6px; }
.lead { font-size: 17px; color: var(--gray-600); margin-bottom: 28px !important; }

/* ── 侧栏 ── */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li { margin-bottom: 8px; }
.sidebar-card a { font-size: 14px; color: var(--gray-600); }
.sidebar-card a:hover { color: var(--blue); }

/* ── 表格 ── */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compare-table th {
  background: var(--gray-100); color: var(--gray-900);
  font-weight: 700; padding: 10px 14px; text-align: left;
  border-bottom: 2px solid var(--gray-200);
}
.compare-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.compare-table tr:hover td { background: var(--gray-50); }

/* ── 标签 ── */
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.tag-green  { background: #dcfce7; color: #166534; }
.tag-yellow { background: #fef9c3; color: #854d0e; }
.tag-red    { background: #fee2e2; color: #991b1b; }

/* ── 工具列表 ── */
.tool-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.tool-item {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 18px 20px;
}
.tool-item h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.tool-item p  { font-size: 14px; margin-bottom: 8px; }
.tool-item ul { padding-left: 18px; font-size: 14px; }

/* ── 工具对比卡片 ── */
.tool-compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.tool-card {
  border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px;
  text-align: center;
}
.tool-card.featured { border-color: var(--blue); border-width: 2px; }
.tool-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tool-card .score {
  font-size: 28px; font-weight: 800; color: var(--blue); margin: 8px 0;
}
.tool-card p { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; }
.tool-card ul { list-style: none; padding: 0; text-align: left; font-size: 13px; }
.tool-card li { padding: 3px 0; border-bottom: 1px solid var(--gray-100); }

/* ── 提示框 ── */
.tip-box {
  background: #eff6ff; border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px; margin: 16px 0; font-size: 14px;
}

/* ── 代码块 ── */
.code-block, pre.code-block {
  background: var(--gray-900); color: #e2e8f0;
  border-radius: var(--radius); padding: 16px 20px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px; line-height: 1.6; overflow-x: auto;
  white-space: pre; margin: 16px 0;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  background: var(--gray-50); padding: 14px 18px;
  font-weight: 700; font-size: 15px; color: var(--gray-900);
}
.faq-a { padding: 14px 18px; font-size: 14px; background: #fff; }

/* ── 排行榜 ── */
.rank-list { display: flex; flex-direction: column; gap: 14px; }
.rank-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px; border: 1px solid var(--gray-200); border-radius: 12px;
  background: #fff;
}
.rank-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-num { background: #fbbf24; color: #fff; }
.rank-item:nth-child(2) .rank-num { background: #9ca3af; color: #fff; }
.rank-item:nth-child(3) .rank-num { background: #cd7c3f; color: #fff; }
.rank-body { flex: 1; }
.rank-body h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.rank-body p  { font-size: 14px; color: var(--gray-600); }
.rank-score { font-size: 22px; font-weight: 800; color: var(--blue); flex-shrink: 0; }

/* ── 页脚 ── */
.footer { background: var(--gray-900); color: #9ca3af; padding: 48px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 8px; }
.footer-col a   { font-size: 14px; color: #9ca3af; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 20px; font-size: 13px; text-align: center; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero .hero-sub { font-size: 15px; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .section-title { font-size: 22px; }
  .main-content h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .nav { gap: 2px; }
  .nav a { padding: 5px 8px; font-size: 12px; }
  .hero { padding: 48px 0; }
}


/* ── imqq-tools 子站专属类（消除 .dl-*/.hub-*/.faq-list 未定义警告）── */
.breadcrumb + .section { padding-top: 0; }

.dl-hero {
  background: linear-gradient(180deg, #edfbff 0%, #fff 100%);
  padding: 40px 24px;
  border-radius: 12px;
  margin: 24px 0;
  text-align: center;
}
.dl-hero h2 { margin: 0 0 12px; font-size: 22px; color: #111; }
.dl-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  margin: 8px 0;
}
.dl-btn:hover { background: var(--brand-dk); color: #fff; }
.dl-meta { font-size: 13px; color: #666; margin: 8px 0; }
.dl-alt { margin-top: 16px; font-size: 13px; color: #999; }
.dl-alt a { color: #2563eb; text-decoration: none; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.hub-card {
  background: #fff;
  border: 1px solid #EFF4F8;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow .15s;
}
.hub-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.hub-card h3 { margin: 0 0 8px; font-size: 16px; }
.hub-card h3 a { color: #111; text-decoration: none; }
.hub-card h3 a:hover { color: #2563eb; }
.hub-card p { margin: 0; font-size: 14px; color: #666; line-height: 1.6; }

.faq-list { margin: 24px 0; }
.faq-list .faq-item { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #EFF4F8; }
.faq-list .faq-item h3 { margin: 0 0 8px; font-size: 16px; color: #111; }
.faq-list .faq-item p { margin: 0; font-size: 14px; color: #444; line-height: 1.7; }


/* ===========================================================
   页面体验模块（v2 - Bing 流量优化版）
   =========================================================== */

/* Hero 区域 */
.hero-v2 {
  background: var(--hero-bg);
  padding: 56px 0 24px;
  text-align: center;
}
.hero-v2 .container { max-width: 980px; margin: 0 auto; }
.hero-v2 .hero-icon { display: inline-block; width: 80px; height: 80px; margin: 0 auto 16px; }
.hero-v2 h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.3; font-weight: 700; color: #0f172a; }
.hero-v2 .hero-sub { margin: 0 auto 24px; max-width: 720px; font-size: 16px; line-height: 1.7; color: #475569; }
.hero-v2 .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 16px; }
.hero-v2 .cta-meta { font-size: 13px; color: #64748b; margin: 8px 0 24px; }

/* Hero 紧下方的下载面板包裹（方案 C：让 panel 紧贴 Hero，避免视觉断点） */
.panel-wrap {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 0 0 32px;
  margin-top: -8px;
}
.panel-wrap .duba-trust-panel { margin-top: 0; }

/* 主行动按钮 */
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--brand); color: #fff;
  font-size: 17px; font-weight: 600;
  border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 12px var(--brand-shadow);
  transition: background .15s, transform .15s, box-shadow .15s;
  min-height: 48px; box-sizing: border-box;
  white-space: nowrap;
}
.cta-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
.cta-primary:hover {
  background: var(--brand-dk); color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--brand-shadow);
}
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: #fff; color: #2563eb;
  font-size: 16px; font-weight: 500;
  border: 1.5px solid #cbd5e1; border-radius: 8px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
  min-height: 48px; box-sizing: border-box;
  white-space: nowrap;
}
.cta-secondary svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta-secondary:hover { border-color: #2563eb; color: #1d4ed8; }

/* Trust Badge 行 */
.trust-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 16px 0 0; }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.trust-badge svg { width: 16px; height: 16px; flex-shrink: 0; color: #16a34a; }

/* 实体数据卡片 */
.entity-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px 28px; margin: 32px 0; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.entity-card h2 { margin: 0 0 16px; font-size: 18px; color: #0f172a; }
.entity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.entity-grid > div { border-left: 3px solid #2563eb; padding-left: 12px; }
.entity-grid .entity-label { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.entity-grid .entity-value { font-size: 16px; font-weight: 600; color: #0f172a; }

/* Hub 卡片网格 */
.hub-grid-v2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0 40px; }
.hub-card-v2 {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px; text-decoration: none; color: inherit; display: block;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hub-card-v2:hover {
  border-color: #2563eb; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px); color: inherit;
}
.hub-card-v2 .card-icon {
  width: 44px; height: 44px; background: #eff6ff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: #2563eb;
}
.hub-card-v2 .card-icon svg { width: 22px; height: 22px; }
.hub-card-v2 h3 { margin: 0 0 8px; font-size: 17px; color: #0f172a; }
.hub-card-v2 p { margin: 0 0 12px; font-size: 14px; color: #64748b; line-height: 1.6; }
.hub-card-v2 .card-arrow { font-size: 13px; color: #2563eb; font-weight: 500; }

/* FAQ 视觉独立模块 */
.faq-v2 { background: #f8fafc; border-radius: 12px; padding: 32px; margin: 40px 0; }
.faq-v2 h2 { margin: 0 0 24px; font-size: 22px; color: #0f172a; }
.faq-v2 .faq-item-v2 {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 20px 24px; margin-bottom: 12px;
}
.faq-v2 .faq-item-v2:last-child { margin-bottom: 0; }
.faq-v2 .faq-q {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 16px; font-weight: 600; color: #0f172a;
  margin: 0 0 10px; line-height: 1.5;
}
.faq-v2 .faq-q::before {
  content: "Q"; display: inline-block; width: 22px; height: 22px;
  background: var(--brand); color: #fff; border-radius: 4px;
  text-align: center; font-size: 12px; font-weight: 700; line-height: 22px;
  flex-shrink: 0; margin-top: 1px;
}
.faq-v2 .faq-a { margin: 0; padding-left: 30px; font-size: 14px; line-height: 1.7; color: #475569; }

/* 底部转化区 */
.cta-section-v2 {
  background: var(--cta-grad);
  border-radius: 12px; padding: 40px 32px; text-align: center;
  margin: 40px 0; color: #fff;
}
.cta-section-v2 h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.cta-section-v2 p { margin: 0 0 20px; font-size: 14px; color: rgba(255,255,255,.85); }
.cta-section-v2 .cta-primary {
  background: #fff; color: #2563eb; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cta-section-v2 .cta-primary:hover { background: #eff6ff; color: #1d4ed8; }

/* 元数据条（E-E-A-T 信号） */
.meta-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
  margin: 16px 0 24px; font-size: 13px; color: #64748b;
}
.meta-bar span { display: inline-flex; align-items: center; gap: 4px; }
.meta-bar svg { width: 14px; height: 14px; flex-shrink: 0; }

/* 注意事项卡片 */
.notice-card {
  background: #fffbeb; border-left: 4px solid #f59e0b;
  padding: 16px 20px; border-radius: 6px; margin: 24px 0;
  font-size: 13px; line-height: 1.7; color: #78350f;
}
.notice-card strong { color: #b45309; }

/* 数据对比表 */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 16px 0 24px; font-size: 14px;
  border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden;
}
.compare-table thead { background: #f1f5f9; }
.compare-table th {
  padding: 12px 16px; text-align: left;
  font-weight: 600; color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9; color: #475569;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: #f8fafc; }

/* 步骤列表 */
.steps-v2 { list-style: none; padding: 0; margin: 16px 0 24px; counter-reset: step; }
.steps-v2 li {
  position: relative; padding: 16px 16px 16px 56px;
  margin-bottom: 12px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px;
  counter-increment: step;
}
.steps-v2 li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; background: var(--brand); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.steps-v2 li strong { color: #0f172a; }
.steps-v2 li code {
  background: #f1f5f9; padding: 2px 6px;
  border-radius: 3px; font-size: 13px; color: #1e40af;
}

/* 移动端响应 */
@media (max-width: 768px) {
  .hero-v2 { padding: 32px 0 24px; }
  .hero-v2 h1 { font-size: 24px; }
  .hero-v2 .hero-sub { font-size: 14px; }
  .hero-v2 .cta-row { flex-direction: column; align-items: center; }
  .cta-primary, .cta-secondary {
    width: 100%; max-width: 320px; justify-content: center; min-height: 48px;
  }
  .hub-grid-v2 { grid-template-columns: 1fr; gap: 12px; }
  .entity-grid { grid-template-columns: 1fr 1fr; }
  .faq-v2 { padding: 20px; }
  .cta-section-v2 { padding: 28px 20px; }
  .cta-section-v2 h2 { font-size: 20px; }

  /* 移动端下载面板 */
  .duba-trust-panel { padding: 16px; margin: 16px auto; }
  .trust-panel-brand-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trust-panel-btn { font-size: 15px; padding: 12px; }
  .trust-panel-badges { flex-direction: column; align-items: center; gap: 8px; }
}

/* ────────────────────────────────────────────────────────────────
   极简信任标一体化下载面板 (Scheme 5, 符合 §2.18)
   ──────────────────────────────────────────────────────────────── */
.duba-trust-panel {
  background: linear-gradient(180deg, #ffffff, #fafcfd);
  border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 20px 24px; max-width: 720px; width: 100%;
  margin: 0 auto 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.trust-panel-brand-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #6b7280; margin-bottom: 14px;
}

.trust-panel-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px 24px; font-size: 17px; font-weight: bold;
  color: #fff !important; border-radius: 8px; text-decoration: none;
  transition: all 0.2s; margin-bottom: 12px; border: none; outline: none;
  cursor: pointer;
}

.trust-panel-btn svg {
  width: 22px; height: 22px; margin-right: 10px;
  fill: currentColor; flex-shrink: 0;
}

.trust-btn-blue { background: linear-gradient(135deg, #1a80f0, #116ed4); }
.trust-btn-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.trust-btn-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.trust-btn-green { background: linear-gradient(135deg, #10b981, #059669); }

.trust-panel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15); opacity: 0.95;
}

.trust-panel-md5 {
  font-size: 11px; color: #64748b; text-align: center;
  margin-bottom: 12px; line-height: 1.5; word-break: break-all;
}

.trust-panel-md5 code {
  background: #f1f5f9; padding: 2px 6px; border-radius: 3px;
  font-family: monospace; color: #334155; font-size: 11px;
}

.trust-md5-copy, .trust-md5-help {
  color: #2563eb; text-decoration: none; font-weight: bold; margin-left: 6px;
}

.trust-md5-copy:hover, .trust-md5-help:hover { text-decoration: underline; }

.trust-panel-badges {
  display: flex; gap: 16px; justify-content: center; font-size: 12px; color: #475569;
}

.trust-panel-badges span { display: inline-flex; align-items: center; gap: 4px; }
.trust-panel-badges svg { width: 14px; height: 14px; color: #10b981; fill: none; }


/* ── compact_download_btn：紧凑合规下载行（内容页文末专用，方式丙）──
   按钮 + 合规标志同一行，无白卡片包裹，视觉体量 ≈ 普通段落一行。
   对应 seo_modules.py 的 compact_download_btn()，规范见 §2.18.1 方式丙。 */
.compact-download-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  margin: 20px 0;
}

.compact-dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-size: 15px; font-weight: 600;
  color: #fff !important; border-radius: 8px; text-decoration: none;
  white-space: nowrap; transition: all 0.2s; border: none; cursor: pointer;
  flex-shrink: 0;
}

.compact-dl-btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }

.compact-btn-blue   { background: linear-gradient(135deg, #1a80f0, #116ed4); }
.compact-btn-pink   { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.compact-btn-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.compact-btn-green  { background: linear-gradient(135deg, #10b981, #059669); }

.compact-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); opacity: 0.95; }

.compact-badges {
  font-size: 12px; color: #64748b; line-height: 1.5;
}

@media (max-width: 768px) {
  .compact-download-row { flex-direction: column; align-items: stretch; }
  .compact-dl-btn { width: 100%; min-height: 44px; }
  .compact-badges { text-align: center; }
}



/* === D1/D2/D3 Comparison Templates === */
.verdict{background:linear-gradient(135deg,#fffbeb,#fef3c7);border:1px solid var(--amber);border-radius:12px;padding:18px 22px;margin-bottom:24px;display:flex;gap:16px;align-items:center;}
.verdict .vic{flex-shrink:0;width:48px;height:48px;color:var(--amber);}
.verdict .badge{display:inline-block;background:var(--amber);color:#fff;font-size:11px;font-weight:700;padding:2px 9px;border-radius:20px;margin-bottom:6px;}
.verdict h3{font-size:17px;color:var(--gray-900);margin-bottom:4px;}.verdict p{font-size:13px;color:var(--gray-700);margin:0;}
.cmp-table{width:100%;border-collapse:collapse;font-size:13px;background:#fff;border-radius:10px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:24px;}
.cmp-table th{background:var(--gray-900);color:#fff;padding:12px 10px;text-align:left;font-size:13px;}
.cmp-table th.win{background:var(--blue);}
.cmp-table td{padding:11px 10px;border-top:1px solid var(--gray-200);text-align:center;}
.cmp-table tr td:first-child{font-weight:600;color:var(--gray-900);background:var(--gray-50);text-align:left;}
.cmp-table .star{color:var(--amber);}
.yes{color:var(--green);font-weight:700;}.no{color:var(--gray-400);}
.cmp-item{margin-bottom:16px;}.cmp-item h3{font-size:15px;color:var(--gray-900);margin-bottom:5px;}.cmp-item p{font-size:13px;color:var(--gray-600);margin:0;}
.vs-grid{display:grid;grid-template-columns:1fr 64px 1fr;gap:0;align-items:stretch;margin-bottom:24px;}
.vs-col{background:#fff;border:1px solid var(--gray-200);border-radius:14px;padding:24px 20px;box-shadow:var(--shadow);}
.vs-col.win{border-color:var(--blue);border-width:2px;}
.vs-mid{display:flex;align-items:center;justify-content:center;}
.vs-badge{width:48px;height:48px;border-radius:50%;background:var(--gray-900);color:#fff;font-weight:800;font-size:16px;display:flex;align-items:center;justify-content:center;}
.vs-head{text-align:center;margin-bottom:16px;}
.vs-ic{width:54px;height:54px;margin:0 auto 8px;color:var(--blue);}
.vs-name{font-size:17px;font-weight:800;color:var(--gray-900);}
.vs-tag{font-size:12px;color:var(--gray-400);}
.vs-sec{margin-bottom:12px;}
.vs-sec .lbl{font-size:11px;font-weight:700;color:var(--gray-400);text-transform:uppercase;margin-bottom:5px;}
.vs-sec ul{list-style:none;padding:0;}
.vs-sec li{font-size:13px;padding:3px 0 3px 18px;position:relative;}
.vs-sec li.pro::before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:700;}
.vs-sec li.con::before{content:"✕";position:absolute;left:0;color:var(--red);}
.vs-price{text-align:center;font-size:20px;font-weight:800;color:var(--gray-900);margin:10px 0;}
.vs-pick{display:block;text-align:center;padding:9px;border-radius:8px;font-weight:700;font-size:13px;}
.vs-pick.p{background:var(--blue);color:#fff;}.vs-pick.s{background:var(--gray-100);color:var(--gray-700);}
.vs-summary{background:var(--gray-50);border-radius:10px;padding:16px 20px;font-size:14px;}
.rank-card{display:flex;gap:16px;background:#fff;border:1px solid var(--gray-200);border-radius:14px;padding:18px;margin-bottom:14px;box-shadow:var(--shadow);align-items:center;}
.rank-card.top{border-color:var(--amber);border-width:2px;background:linear-gradient(135deg,#fffdf7,#fff);}
.rank-num{flex-shrink:0;width:42px;height:42px;border-radius:50%;background:var(--gray-200);color:var(--gray-700);font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center;}
.rank-card.top .rank-num{background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff;}
.rank-ic{flex-shrink:0;width:40px;height:40px;color:var(--blue);}
.rank-body{flex:1;}
.rank-body h3{font-size:16px;color:var(--gray-900);margin-bottom:3px;}
.rank-body .score{color:var(--amber);font-size:13px;font-weight:700;margin-bottom:4px;}
.rank-body p{font-size:13px;color:var(--gray-600);margin:0;}
.rank-meta{flex-shrink:0;text-align:right;}
.rank-meta .num{font-size:24px;font-weight:800;color:var(--blue);}
.rank-meta .unit{font-size:11px;color:var(--gray-400);}
.note{text-align:center;padding:22px;color:var(--gray-600);font-size:13px;line-height:1.8;}
@media(max-width:780px){.vs-grid{grid-template-columns:1fr;}.vs-mid{padding:10px 0;}}
@media(max-width:780px){.vs-grid{grid-template-columns:1fr !important;}.vs-mid{padding:10px 0;}}

/* === L1/L2/L3 Longform Templates === */
.main h1{font-size:27px;font-weight:800;color:var(--gray-900);margin-bottom:11px;line-height:1.3;}
.main h2{font-size:19px;font-weight:700;color:var(--gray-900);margin:26px 0 11px;padding-bottom:7px;border-bottom:2px solid var(--gray-100);}
.main p{margin-bottom:11px;}.main ol,.main ul{padding-left:20px;margin-bottom:11px;}.main li{margin-bottom:5px;}
.lead{font-size:15px;color:var(--gray-600);margin-bottom:18px;}
.dl-inline{margin-top:18px;padding:13px 16px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:8px;font-size:14px;}
.l1-layout{display:grid;grid-template-columns:210px 1fr;gap:34px;padding:30px 24px;align-items:start;}
.l1-toc{position:sticky;top:16px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:10px;padding:15px;}
.l1-toc h3{font-size:11px;font-weight:800;color:var(--gray-400);text-transform:uppercase;letter-spacing:.5px;margin-bottom:9px;}
.l1-toc ul{list-style:none;padding:0;}.l1-toc li{margin-bottom:2px;}
.l1-toc a{display:block;padding:6px 9px;font-size:13px;color:var(--gray-600);border-left:2px solid transparent;border-radius:0 4px 4px 0;}
.l1-toc a.active{color:var(--blue);border-left-color:var(--blue);background:#eff6ff;font-weight:600;}
.l2-wrap{max-width:780px;margin:0 auto;padding:32px 24px;}
.l2-toc{background:linear-gradient(135deg,#eff6ff,#f9fafb);border:1px solid var(--gray-200);border-radius:12px;padding:18px 22px;margin:18px 0 26px;}
.l2-toc h3{font-size:14px;font-weight:800;color:var(--gray-900);margin-bottom:11px;display:flex;align-items:center;gap:7px;}
.l2-toc ol{list-style:none;padding:0;counter-reset:toc;display:grid;grid-template-columns:1fr 1fr;gap:8px 24px;}
.l2-toc li{counter-increment:toc;font-size:13px;}
.l2-toc li::before{content:counter(toc);display:inline-flex;width:20px;height:20px;background:var(--blue);color:#fff;border-radius:50%;font-size:11px;font-weight:700;align-items:center;justify-content:center;margin-right:8px;}
.l2-toc a{color:var(--gray-700);}
.l3-wrap{max-width:760px;margin:0 auto;padding:32px 24px;}
.step-card{position:relative;display:flex;gap:18px;background:#fff;border:1px solid var(--gray-200);border-radius:14px;padding:20px 22px;margin-bottom:14px;box-shadow:var(--shadow);}
.step-card::before{content:"";position:absolute;left:41px;top:100%;width:2px;height:14px;background:var(--gray-200);}
.step-card:last-of-type::before{display:none;}
.step-num{flex-shrink:0;width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#1e40af,#3b82f6);color:#fff;font-weight:800;font-size:20px;display:flex;align-items:center;justify-content:center;}
.step-body{flex:1;}
.step-body .step-head{display:flex;align-items:center;gap:10px;margin-bottom:6px;}
.step-body .step-svg{width:26px;height:26px;color:var(--blue);flex-shrink:0;}
.step-body h3{font-size:16px;font-weight:700;color:var(--gray-900);}
.step-body p{font-size:14px;color:var(--gray-600);margin:0;}
.step-body .step-tip{margin-top:8px;font-size:12px;color:var(--gray-400);background:var(--gray-50);padding:6px 10px;border-radius:6px;}
@media(max-width:820px){.l1-layout{grid-template-columns:1fr;}.l1-toc{position:static;margin-bottom:18px;}.l2-toc ol{grid-template-columns:1fr;}}
@media(max-width:820px){.l1-layout{grid-template-columns:1fr !important;}.l1-toc{position:static;margin-bottom:18px;}.l2-toc ol{grid-template-columns:1fr;}}