/*
 * 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 0; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px; padding-bottom: 44px;
}
.footer-col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 12px; }
.footer-col a   { font-size: 14px; color: #9ca3af; line-height: 1.6; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #64748b;
  padding: 28px 0 32px;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.footer-bottom a { color: #9ca3af; text-decoration: none; margin-left: 14px; }
.footer-bottom a:hover { color: #fff; }
.footer-company { margin-top: 8px; }
.footer-divider { margin-left: 14px; color: #cbd5e1; }

/* ── 响应式 ── */
@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; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .footer-bottom { text-align: left; }
  .footer-bottom a { margin-left: 0; }
  .footer-copyright, .footer-company { display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .footer-divider { display: none; }
}
@media (max-width: 480px) {
  .nav { gap: 2px; }
  .nav a { padding: 5px 8px; font-size: 12px; }
  .hero { padding: 48px 0; }
  .footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding-bottom: 32px; }
  .footer-col h4 { font-size: 15px; }
}


/* ── 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; }
}

.workflow-visual{margin:24px 0;padding:24px;border:1px solid #dbe5ef;border-radius:8px;background:#f8fbfd;overflow:hidden}.workflow-visual h2{margin:0 0 8px;font-size:24px}.workflow-visual p{margin:0 0 18px;color:#526174}.workflow-visual svg{display:block;width:100%;height:auto;min-height:150px}.workflow-visual .flow-box{fill:#fff;stroke:#15958d;stroke-width:2}.workflow-visual .flow-arrow{stroke:#f28c28;stroke-width:3;fill:none}.workflow-visual text{font-family:Arial,"Microsoft YaHei",sans-serif;fill:#172033;font-size:16px;font-weight:700}.highlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.highlight-card{padding:18px;border:1px solid #dbe5ef;border-top:3px solid #15958d;border-radius:6px;background:#fff}.highlight-card h3{margin:0 0 8px;font-size:18px}.highlight-card p{margin:0;color:#526174}.handoff-section{margin:30px 0;padding-top:24px;border-top:1px solid #dbe5ef}.handoff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.handoff-link{display:block;padding:16px;border:1px solid #dbe5ef;border-radius:6px;background:#fff;text-decoration:none;color:#172033}.handoff-link strong,.handoff-link span{display:block}.handoff-link span{margin-top:6px;color:#526174;font-size:14px}.handoff-link:hover{border-color:#15958d;box-shadow:0 6px 18px rgba(21,149,141,.1)}.entity-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:20px 0;background:#dbe5ef;border:1px solid #dbe5ef;border-radius:6px;overflow:hidden}.entity-strip div{padding:14px;background:#fff}.entity-strip span,.entity-strip strong{display:block}.entity-strip span{font-size:13px;color:#657386}.entity-strip strong{margin-top:5px;overflow-wrap:anywhere}.content-module{margin:30px 0}.content-module h2{padding-bottom:10px;border-bottom:1px solid #dbe5ef}.content-p{font-weight:400}.content-list,.content-steps{padding-left:24px}.content-list li,.content-steps li{margin:10px 0}.table-wrap{max-width:100%;overflow-x:auto}.compare-table{width:100%;border-collapse:collapse;table-layout:fixed}.compare-table th,.compare-table td{padding:14px;border:1px solid #dbe5ef;text-align:left;vertical-align:top;overflow-wrap:anywhere}.compare-table th{background:#f1f6f8}.download-note{margin:18px 0;padding:16px;border-left:4px solid #f28c28;background:#fff8ef}.module-kicker{color:#15958d;font-weight:700}.product-intro-module{margin:22px 0;padding:22px;border:1px solid #dbe5ef;border-radius:8px;background:#fff}.product-intro-module h2{margin:4px 0 10px}
@media(max-width:760px){.highlight-grid,.handoff-grid{grid-template-columns:1fr}.entity-strip{grid-template-columns:1fr 1fr}.workflow-visual{padding:16px}.workflow-visual svg{min-width:680px}.workflow-visual{overflow-x:auto}.compare-table{min-width:680px}.ks-subnav-inner{overflow-x:auto}.ks-subnav-inner a{flex:0 0 auto}.ks-header-inner{overflow-x:auto}.ks-nav{min-width:max-content}}
.content-steps{list-style:none;counter-reset:none}.step-number{display:inline-block;min-width:1.6em;color:#15958d;font-weight:700}
@media(max-width:760px){.ks-header-inner{overflow:visible!important;height:52px!important}.ks-nav{display:none!important;min-width:0!important}.ks-subnav-inner{overflow-x:auto!important;scrollbar-width:none;-ms-overflow-style:none}.ks-subnav-inner::-webkit-scrollbar{display:none;width:0;height:0}}

/* Python站点视觉层：沿用汽水音乐的版式节奏，保留Python专属配色。 */
:root{--brand:#2563eb;--brand-dk:#1d4ed8;--brand-shadow:rgba(37,99,235,.2);--hero-bg:linear-gradient(180deg,#eef7ff 0%,#ffffff 100%);--cta-grad:linear-gradient(135deg,#172033 0%,#334155 100%)}
.hero-v2{background:var(--hero-bg)}.hero-v2 .hero-icon{color:#2563eb;background:#e2efff}.hero-v2 h1{letter-spacing:0}.hero-v2 .hero-sub{font-weight:400}
.product-intro-module{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:28px;align-items:center;padding:28px 0;margin:28px 0;border-top:1px solid #dce4ed;border-bottom:1px solid #dce4ed;background:transparent}
.product-intro-module h2{margin:4px 0 12px;font-size:24px;color:#111827}.product-intro-module p{margin:0}.module-kicker{color:#2563eb;font-size:13px;font-weight:700;margin:0}.intro-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.intro-points span{padding:5px 10px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:6px;font-size:13px}.product-mark{width:72px;height:72px;display:grid;place-items:center;border-radius:8px;background:#172033;color:#f2b134;font:700 25px/1 Consolas,monospace}
.product-visual-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.7fr);gap:26px;align-items:center;margin:30px 0 36px;padding:24px;background:#111827;color:#fff;border-radius:8px;overflow:hidden}.product-visual-card figcaption{display:flex;flex-direction:column;gap:10px}.product-visual-card figcaption strong{font-size:21px;line-height:1.35}.product-visual-card figcaption span{color:#cbd5e1;font-size:14px;line-height:1.8}.terminal-window{min-height:248px;border:1px solid #334155;border-radius:6px;background:#0b1220;overflow:hidden}.terminal-bar{height:42px;display:flex;align-items:center;gap:7px;padding:0 14px;background:#202938;color:#94a3b8}.terminal-bar span{width:10px;height:10px;border-radius:50%;background:#ef6a5b}.terminal-bar span:nth-child(2){background:#f2b134}.terminal-bar span:nth-child(3){background:#20a39e}.terminal-bar strong{margin-left:auto;font:600 12px/1 Consolas,monospace}.terminal-body{display:grid;gap:15px;padding:25px 22px}.terminal-line{display:flex;align-items:center;gap:12px;min-width:0}.terminal-prompt{color:#f2b134;font:700 15px/1 Consolas,monospace}.terminal-line code{color:#dbeafe;background:transparent;padding:0;overflow-wrap:anywhere;white-space:normal}
.highlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0 38px}.highlight-card{padding:20px;border:1px solid #dce4ed;border-top:3px solid #20a39e;border-radius:6px;background:#fff}.highlight-card:nth-child(2){border-top-color:#f2b134}.highlight-card:nth-child(3){border-top-color:#2563eb}.highlight-card h3{margin:0 0 7px;font-size:17px;color:#111827}.highlight-card p{margin:0;font-size:14px;color:#526071}
.content-module{margin:34px 0}.content-module h2{margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid #dce4ed}.content-module h3{margin:24px 0 8px;font-weight:700}.content-p{font-weight:400}.content-steps{list-style:none;padding:0!important;display:grid;gap:12px}.content-steps li{position:relative;min-height:56px;padding:15px 18px 15px 58px;border:1px solid #dce4ed;border-radius:6px;background:#fff}.step-number{position:absolute;left:16px;top:14px;width:28px;height:28px;display:grid;place-items:center;min-width:28px;background:#2563eb;color:#fff;border-radius:50%;font-size:0;font-weight:700}.step-number::first-letter{font-size:13px}.content-list{display:grid;gap:8px;padding-left:22px!important}
.table-wrap{width:100%;overflow-x:auto;margin:20px 0 28px;border:1px solid #dce4ed;border-radius:6px}.table-wrap .compare-table{min-width:680px;margin:0;border:0;border-radius:0;table-layout:fixed}.table-wrap .compare-table th,.table-wrap .compare-table td{padding:13px 16px;vertical-align:top;line-height:1.55;overflow-wrap:anywhere}.table-wrap .compare-table th{background:#f4f7fa}.table-wrap .compare-table.cols-2 th:first-child,.table-wrap .compare-table.cols-2 td:first-child{width:28%}.table-wrap .compare-table.cols-3 th:first-child,.table-wrap .compare-table.cols-3 td:first-child{width:24%}.table-wrap .compare-table.cols-4 th:first-child,.table-wrap .compare-table.cols-4 td:first-child{width:20%}
.handoff-module{margin:44px 0 30px;padding:28px 0;border-top:1px solid #dce4ed;border-bottom:1px solid #dce4ed}.handoff-head h2{margin:4px 0 6px;font-size:23px}.handoff-head>p:last-child{margin:0 0 18px;color:#64748b}.handoff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.handoff-card{display:flex;flex-direction:column;gap:5px;min-height:112px;padding:17px;border:1px solid #dce4ed;border-radius:6px;color:#111827;text-decoration:none}.handoff-card:hover{border-color:#2563eb;text-decoration:none}.handoff-card span{color:#64748b;font-size:13px;line-height:1.6}.conversion-anchor{margin-top:16px;padding:13px 16px;background:#fff7df;border-left:4px solid #f2b134;font-size:14px}.entity-card,.hub-card-v2,.duba-trust-panel,.cta-section-v2{border-radius:8px}.entity-grid>div{border-left-color:#20a39e}.hub-card-v2 .card-icon{color:#2563eb;background:#eff6ff}.hub-card-v2:hover{border-color:#2563eb;box-shadow:0 8px 22px rgba(37,99,235,.1)}
@media(max-width:768px){html,body{width:100%;max-width:100%;overflow-x:hidden}.ks-header{position:static;max-width:100%;overflow-x:auto}.ks-header-inner{width:max-content!important;min-width:100%;max-width:none;padding:0 12px;overflow:visible!important;height:56px!important}.ks-nav{display:flex!important;flex:0 0 auto;min-width:max-content!important}.ks-nav-item>a,.ks-nav-item>span{padding:0 11px}.ks-subnav{top:0;max-width:100%;overflow-x:auto}.ks-subnav-inner{width:max-content;min-width:max-content;padding:0 12px;overflow:visible!important}.ks-header,.ks-subnav{scrollbar-width:none}.ks-header::-webkit-scrollbar,.ks-subnav::-webkit-scrollbar{display:none}.hero-v2,.hero-v2 .container{width:100%;max-width:100%;min-width:0}.hero-v2 h1{width:calc(100% - 40px);max-width:100%;margin-left:auto;margin-right:auto;padding:0;font-size:22px;overflow-wrap:anywhere}.hero-v2 .hero-sub{width:calc(100% - 32px);max-width:100%;padding:0;overflow-wrap:anywhere}.product-intro-module{grid-template-columns:minmax(0,1fr) 64px;gap:16px}.product-mark{width:56px;height:56px;font-size:19px}.product-visual-card{grid-template-columns:1fr;padding:16px;gap:16px}.product-visual-card figcaption strong{font-size:18px}.terminal-window{min-height:220px}.highlight-grid,.handoff-grid{grid-template-columns:1fr}.handoff-card{min-height:0}.table-wrap .compare-table{min-width:620px}.footer-grid{grid-template-columns:1fr}}
