/*
 * 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; }
}

/* SpaceSniffer theme */
:root {
  --ss-ink: #10233e;
  --ss-muted: #5f7189;
  --ss-blue: #1769d2;
  --ss-blue-dark: #0c4fa8;
  --ss-cyan: #e9f7ff;
  --ss-orange: #f59e0b;
  --ss-line: #dbe7f2;
  --ss-soft: #f6f9fc;
}

html { scroll-behavior: smooth; }
body { color: var(--ss-ink); background: #fff; overflow-x: hidden; }

/* 汽水音乐参考：统一、克制的页面标题区。 */
.hero-v2 {
  background: #f3f8fd;
  border-bottom: 1px solid var(--ss-line);
  padding: 52px 24px 38px;
  text-align: center;
}
.hero-v2 .container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.hero-v2 .hero-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  color: var(--ss-blue);
  background: #e3f0fd;
}
.hero-v2 .hero-icon svg { width: 50px; height: 50px; }
.hero-v2 h1 {
  max-width: 850px;
  margin: 0 auto 14px;
  color: #10233e;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.hero-v2 .hero-sub {
  max-width: 760px;
  margin: 0 auto;
  color: #52667f;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.site-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ss-line);
  backdrop-filter: blur(12px);
}
.site-header-inner {
  max-width: 1200px; min-height: 66px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 26px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ss-ink);
  font-size: 19px; font-weight: 800; text-decoration: none; flex: 0 0 auto;
}
.site-brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-header .site-nav-shell.ks-subnav {
  position: static; top: auto; z-index: auto; width: 100%; min-width: 0; max-width: 100%;
  overflow: hidden; background: transparent; border: 0;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: #40526a; text-decoration: none; white-space: nowrap; padding: 9px 11px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
}
.site-nav a:hover, .site-nav a.active { color: var(--ss-blue); background: #edf6ff; }

.breadcrumb { padding-top: 16px !important; padding-bottom: 10px !important; font-size: 13px; color: var(--ss-muted); }
.breadcrumb a { color: var(--ss-blue); }

.ss-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(39,165,255,.18), transparent 28%),
    linear-gradient(135deg, #f5fbff 0%, #edf6ff 56%, #fff8e8 100%);
  border-bottom: 1px solid var(--ss-line);
}
.ss-hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 58px 20px 50px;
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 46px; align-items: center;
}
.ss-kicker { color: var(--ss-blue); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.ss-hero h1 { margin: 12px 0 16px; font-size: clamp(34px, 5vw, 55px); line-height: 1.08; letter-spacing: -.035em; color: #0b2342; }
.ss-hero p { margin: 0; max-width: 720px; color: #52667f; font-size: 17px; line-height: 1.85; }
.ss-hero-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 12px; }
.ss-btn {
  min-height: 46px; padding: 0 20px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; font-weight: 750;
}
.ss-btn-primary { color: #fff !important; background: linear-gradient(135deg,var(--ss-blue),var(--ss-blue-dark)); box-shadow: 0 9px 22px rgba(23,105,210,.22); }
.ss-btn-secondary { color: var(--ss-blue) !important; background: #fff; border: 1px solid #bcd8f2; }
.ss-hero-card {
  background: #0c2748; color: #fff; border-radius: 20px; padding: 25px;
  box-shadow: 0 22px 52px rgba(16,35,62,.18); overflow: hidden;
}
.ss-hero-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ss-hero-card strong { display: block; margin-top: 16px; font-size: 18px; }
.ss-hero-card span { display: block; margin-top: 7px; color: #bad3ed; line-height: 1.6; font-size: 13px; }

.ss-meta { max-width: 1120px; margin: 0 auto; padding: 16px 20px; color: var(--ss-muted); font-size: 13px; }
.ss-capability { max-width: 1120px; margin: 20px auto 34px; padding: 0 20px; }
.ss-capability-head { display: block; margin-bottom: 18px; }
.ss-capability-head p { margin: 0; color: var(--ss-blue); font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.ss-capability-head h2 { margin: 7px 0 0; color: #102b4d; font-size: 25px; }
.ss-capability-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ss-capability-card {
  min-width: 0; padding: 20px; border: 1px solid #d7e5f2; border-radius: 15px;
  background: linear-gradient(155deg,#fff 0%,#f5faff 100%);
  box-shadow: 0 10px 26px rgba(21,73,126,.07);
}
.ss-capability-card > span {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; background: #e8f4ff; color: var(--ss-blue); font-weight: 800; font-size: 12px;
}
.ss-capability-card strong { display: block; margin-top: 15px; color: #12345a; font-size: 17px; }
.ss-capability-card p { margin: 8px 0 0; color: #60758d; font-size: 13px; line-height: 1.65; }
.ss-content { max-width: 900px; margin: 0 auto; padding: 10px 20px 70px; }
.ss-content > p, .main-content > p { font-weight: 400; color: #334a64; line-height: 1.9; }
.ss-content h2, .main-content h2 { scroll-margin-top: 90px; color: #102b4d; margin-top: 44px; }
.ss-content h3, .main-content h3 { color: #173c67; }
.ss-content ul, .ss-content ol, .main-content ul, .main-content ol { color: #334a64; line-height: 1.85; }
.ss-content code, .main-content code { overflow-wrap: anywhere; background: #eef4f9; color: #a84a00; border-radius: 5px; padding: 2px 5px; }

.ss-visual {
  max-width: 900px; margin: 28px auto 34px; padding: 0 20px;
}
.ss-visual figure { margin: 0; }
.ss-visual img { width: 100%; height: auto; border-radius: 15px; border: 1px solid #cbdceb; box-shadow: 0 18px 45px rgba(32,66,101,.12); }
.ss-visual figcaption { color: var(--ss-muted); font-size: 13px; line-height: 1.6; margin-top: 10px; }

.ss-flow {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px;
  padding: 22px; border-radius: 16px; background: #f3f8fd; border: 1px solid var(--ss-line);
}
.ss-flow > div { position: relative; padding: 18px 14px; border-radius: 12px; background: #fff; border: 1px solid #d8e7f4; min-width: 0; }
.ss-flow span { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ss-blue); color: #fff; font-weight: 800; }
.ss-flow strong { display: block; margin-top: 12px; font-size: 15px; }
.ss-flow small { display: block; margin-top: 7px; color: var(--ss-muted); line-height: 1.55; }

.official-actions {
  max-width: 900px; margin: 26px auto 8px; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.official-actions a {
  display: block; padding: 20px; border-radius: 14px; text-decoration: none;
  border: 1px solid #cbddec; background: #fff; color: var(--ss-ink);
}
.official-actions a:first-child { background: #0f3158; color: #fff; border-color: #0f3158; }
.official-actions strong { display: block; font-size: 17px; }
.official-actions span { display: block; margin-top: 7px; line-height: 1.6; color: inherit; opacity: .78; font-size: 13px; }

.download-shell { max-width: 900px; margin: 26px auto 14px; padding: 0 20px; }
.download-note { margin-top: 10px; color: var(--ss-muted); font-size: 12px; line-height: 1.65; }
.duba-trust-panel { border-radius: 16px !important; border: 1px solid #c9def2 !important; box-shadow: 0 15px 38px rgba(23,105,210,.1); }

.table-wrap { width: 100%; overflow-x: auto; margin: 20px 0 30px; border: 1px solid var(--ss-line); border-radius: 12px; }
.table-wrap table { width: 100%; min-width: 560px; margin: 0 !important; border-collapse: collapse; table-layout: fixed; }
.table-wrap th, .table-wrap td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid #e4edf5; overflow-wrap: anywhere; }
.table-wrap th { background: #edf6ff; color: #173c67; }
.table-wrap tr:last-child td { border-bottom: 0; }

.faq-v2 { margin-top: 42px; }
.faq-v2 .faq-item, .faq-item { border: 1px solid var(--ss-line); border-radius: 12px; padding: 16px 18px; margin: 12px 0; background: #fff; }

.l1-layout { align-items: start; padding-top: 34px !important; padding-bottom: 70px !important; }
.l1-layout .main-content { min-width: 0; }
.l1-toc { top: 90px !important; max-height: calc(100vh - 115px); overflow-y: auto; }
.l1-toc a { overflow-wrap: anywhere; }

.site-footer { background: #0b1f36; color: #c6d4e4; margin-top: 0; }
.site-footer-inner { max-width: 1160px; margin: 0 auto; padding: 54px 20px 28px; }
.site-footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 34px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.site-footer-grid a { display: block; color: #b8cae0; text-decoration: none; line-height: 2.1; font-size: 14px; }
.site-footer-grid a:hover, .site-footer-bottom a:hover { color: #fff; }
.site-footer-bottom { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: #8fa5bd; font-size: 12px; line-height: 1.7; }
.site-footer-bottom p { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 7px 0; }
.site-footer-bottom a { color: #a9bed5; text-decoration: none; }

.handoff-module { max-width: 980px; margin: 0 auto 64px; padding: 0 20px; }
.handoff-inner {
  padding: 28px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg,#0b2a4c 0%,#123f70 100%);
  box-shadow: 0 18px 42px rgba(12,45,80,.16);
}
.handoff-inner h2 { margin: 0 0 17px; color: #fff; font-size: 23px; }
.handoff-inner > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.handoff-inner a {
  min-width: 0; padding: 16px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px;
  color: #fff; text-decoration: none; background: rgba(255,255,255,.06);
}
.handoff-inner a:hover { background: rgba(255,255,255,.12); }
.handoff-inner strong { display: block; }
.handoff-inner span { display: block; margin-top: 7px; color: #bfd4e9; font-size: 13px; line-height: 1.55; }

@media (max-width: 900px) {
  .site-header-inner {
    width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden;
    align-items: stretch; flex-direction: column; gap: 8px; padding-top: 12px; padding-bottom: 9px;
  }
  .site-brand { align-self: flex-start; }
  .site-nav { width: 100%; min-width: 0; max-width: 100%; }
  .ss-capability-grid { grid-template-columns: 1fr 1fr; }
  .ss-hero-inner { grid-template-columns: 1fr; padding-top: 42px; }
  .ss-hero-card { max-width: 620px; }
  .ss-flow { grid-template-columns: 1fr 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .site-header-inner { padding-left: 14px; padding-right: 14px; }
  .site-nav a { padding: 8px 10px; }
  .ss-hero-inner { padding: 34px 16px 38px; gap: 28px; }
  .ss-hero h1 { font-size: 34px; }
  .ss-hero p { font-size: 15px; }
  .ss-hero-actions { flex-direction: column; }
  .ss-btn { width: 100%; }
  .ss-visual, .ss-content, .ss-capability, .official-actions, .download-shell { padding-left: 16px; padding-right: 16px; }
  .ss-capability-head { display: block; }
  .ss-capability-head h2 { margin-top: 7px; font-size: 22px; }
  .ss-capability-grid { grid-template-columns: 1fr; }
  .official-actions { grid-template-columns: 1fr; }
  .ss-flow { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .site-footer-bottom p { display: block; }
  .site-footer-bottom span, .site-footer-bottom a { display: block; margin-top: 7px; }
  .handoff-module { padding-left: 16px; padding-right: 16px; }
  .handoff-inner { padding: 22px 18px; }
  .handoff-inner > div { grid-template-columns: 1fr; }
  .hero-v2 { padding: 34px 16px 28px; }
  .hero-v2 .hero-icon { width: 60px; height: 60px; margin-bottom: 14px; }
  .hero-v2 .hero-icon svg { width: 40px; height: 40px; }
  .hero-v2 h1 { font-size: 24px; line-height: 1.38; }
  .hero-v2 .hero-sub { font-size: 14px; line-height: 1.75; }
}

/* 参照 qishui-tools：金山毒霸主导航 + 子站二级导航。 */
@media (max-width: 768px) {
  .ks-header {
    position: static !important;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ks-header-inner {
    width: max-content;
    min-width: 100%;
    max-width: none !important;
    padding: 0 12px !important;
  }
  .ks-nav { flex: 0 0 auto; }
  .ks-nav-item > a,
  .ks-nav-item > span { padding-left: 11px !important; padding-right: 11px !important; }
  .ks-drop { display: none !important; }
  .ks-subnav {
    top: 0 !important;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ks-subnav-inner {
    width: max-content;
    min-width: max-content;
    padding: 0 12px !important;
  }
  .ks-header::-webkit-scrollbar,
  .ks-subnav::-webkit-scrollbar { display: none; }
}

