/* ===== 复刻站补充样式：替代原站 jquery 交互，SSR 下也能工作 ===== */

/* 顶部导航二级菜单：原站用 jquery hover slideDown，这里改纯 CSS */
.nav li:hover > .xlnav {
  display: block;
}
.nav li .xlnav {
  transition: none;
}

/* 顶部「扫码试用」二维码 */
.headr a dd {
  display: none;
}
.headr a:hover dd {
  display: block;
}

/* 顶部「微信客服」二维码 */
.topl li dl {
  display: none;
}
.topl li:hover dl {
  display: block;
}

/* SPA 渲染容器不吃原站的浮动影响 */
#root {
  width: 100%;
}

/* 保证内容区最小高度，避免短页 footer 上浮 */
.ny_ban + * {
  min-height: 1px;
}


/* ================= GEO：首屏结论区（H1 + 30-200 字直接答案） =================
   ★H1 必须真实可见：用 sr-only / display:none 藏起来属于 cloaking，
     爬虫判作弊、人也看不到，比没有 H1 更糟。
   ★只写 padding-top/bottom，不写 padding 简写 —— 简写会连 .container 的左右内边距一起清零。 */
.geo-intro {
  padding-top: 26px;
  padding-bottom: 4px;
}
.geo-intro h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  color: #1d5fa8;
  text-align: center;
}
.geo-intro p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  text-align: justify;
}
@media screen and (max-width: 900px) {
  .geo-intro {
    padding: 18px 14px 2px !important;
  }
  .geo-intro h1 {
    font-size: 19px;
    text-align: left;
  }
  .geo-intro p {
    font-size: 14px;
    line-height: 1.85;
    text-align: left;
  }
}

/* ★.oneA（20/20/20/10/100 统计条）原本靠 margin-top:-65px 上浮压住 banner 底部，
   这是原站「统计条骑在 banner 上」的设计。插入 .geo-intro 之后它前面不再是 banner，
   负边距会把说明段最后一行直接盖掉（白底、position:relative，肉眼看着像文字被截断）。
   只在「紧跟在 .geo-intro 之后」时取消上浮 —— 不影响其它任何页面。 */
.geo-intro + .oneA {
  margin-top: 10px !important;
}
@media screen and (max-width: 900px) {
  .geo-intro + .oneA {
    margin-top: 12px !important;
  }
}


/* ================= 文章正文排版（.con .cont） =================
   ★背景（2026-11-13 客户要求「首行缩进之类的格式全部要处理」）：
     style.css 顶部有 `* { margin:0; padding:0 }` 和 `li { list-style:none }`，
     所以正文段落既没有首行缩进、也没有段间距，全都黏成一片；列表符号被清零，
     只靠 mdToHtml 写进 HTML 的内联 `list-style:decimal` 勉强显示。
     另外 h2/h3 被 `h2,h3{font-weight:normal}` 去掉加粗，标题和正文几乎没有层级差。

   ★为什么选择器要写 `.con .cont` 两级、还大量用 !important：
     1) site-fix.css 在 mobile-v2.css **之前**加载，同特异性会被后者覆盖，
        提高特异性才能在两个断点都稳定生效；
     2) 249 篇历史文章的 <p> 自带内联 font-size/line-height/color（抓取残留），
        内联优先级高于任何类选择器 —— 渲染层 index.mjs 已剥掉，
        这里再用 !important 兜一层，双保险；
     3) HTML 里的 `<ol style="padding-left:22px">` 是内联的，只能 !important 压。

   ★只作用于 `.con .cont`（文章详情页正文），不影响首页/列表页/其它页面。 */

.con .cont {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---- 段落：首行缩进 2 字符（中文排版规范）+ 适度段间距 ---- */
.con .cont > p,
.con .cont > div > p {
  margin: 0 0 10px !important;
  padding: 0 !important;
  text-indent: 2em !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #333 !important;
  text-align: justify;
}
/* 段落里只有图片时不缩进（text-indent 会把图片整体右推 2 字符） */
.con .cont p:has(> img) {
  text-indent: 0 !important;
  text-align: center !important;
  margin: 18px 0 !important;
}
/* 空段落不占位 */
.con .cont p:empty {
  display: none !important;
}
/* ★历史正文里有大量 <span style="font-size:14px"> 包裹的片段（抓取残留），
   mobile-v2.css 又给 `.con span` 写死 15px。统一让 span 跟随所在段落字号，
   否则同一段里会大小不一。 */
.con .cont span {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

/* ---- 标题层级：h2 带左侧色条，和正文拉开距离 ---- */
.con .cont h2 {
  margin: 30px 0 14px !important;
  padding: 0 0 0 12px !important;
  border-left: 4px solid #1d5fa8;
  font-size: 20px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-indent: 0 !important;
}
.con .cont h3 {
  margin: 24px 0 12px !important;
  padding: 0 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-indent: 0 !important;
}
.con .cont h4 {
  margin: 20px 0 10px !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  color: #333 !important;
  text-indent: 0 !important;
}
/* 正文第一个元素就是标题时，不要顶上留 30px 空白 */
.con .cont > h2:first-child,
.con .cont > h3:first-child {
  margin-top: 0 !important;
}

/* 老站文章用 <p> 模拟的小标题（「1.xxx」「•xxx」），由 index.mjs 渲染期打上 .cont-h。
   不缩进、加粗、上方留白，和正文区分开。 */
.con .cont > p.cont-h,
.con .cont > div > p.cont-h {
  text-indent: 0 !important;
  margin: 18px 0 8px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
}

/* ---- 列表：恢复项目符号（全局 li{list-style:none} 清掉了） ---- */
.con .cont ul,
.con .cont ol {
  margin: 12px 0 14px !important;
  padding-left: 2em !important;
  text-indent: 0 !important;
}
.con .cont ul > li {
  list-style: disc outside !important;
}
.con .cont ol > li {
  list-style: decimal outside !important;
}
.con .cont li {
  margin: 6px 0 !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #333 !important;
  text-indent: 0 !important;
}
/* 二级列表用空心圆 / 小写字母，层级更清楚 */
.con .cont ul ul > li {
  list-style: circle outside !important;
}
.con .cont ol ol > li {
  list-style: lower-alpha outside !important;
}
.con .cont li > p {
  margin: 0 !important;
  text-indent: 0 !important;
}

/* ---- 图片 ----
   ★必须给 max-height：正文配图多是竖构图（实测 1728×2304），
     按 848 宽等比展开后高 1131px，一张图吃掉两屏，读者要滑很久才见到下文。
   ★width/height 都要 !important：抓下来的 <img> 带内联 `width:820px;height:443px`，
     不压住的话窄屏会横向溢出、比例也会被拉变形。 */
.con .cont img {
  max-width: 100% !important;
  max-height: 620px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 6px;
}

/* ---- 链接：和正文区分开（原站 <a> 与正文同色 #333，读者点不到） ---- */
.con .cont a {
  color: #1d5fa8 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 95, 168, 0.35);
  overflow-wrap: anywhere;
}
.con .cont a:hover {
  border-bottom-color: #1d5fa8;
}

/* ---- 引用块 ---- */
.con .cont blockquote {
  margin: 16px 0 !important;
  padding: 12px 16px !important;
  background: #f5f8fc;
  border-left: 4px solid #1d5fa8;
  color: #555 !important;
  text-indent: 0 !important;
}
.con .cont blockquote p {
  margin: 0 0 6px !important;
  text-indent: 0 !important;
  font-size: 15.5px !important;
  color: #555 !important;
}
.con .cont blockquote p:last-child {
  margin-bottom: 0 !important;
}

/* ---- 表格 ---- */
.con .cont table {
  width: 100% !important;
  margin: 18px 0 !important;
  border-collapse: collapse !important;
  font-size: 15px !important;
}
.con .cont th,
.con .cont td {
  border: 1px solid #e2e6ea !important;
  padding: 9px 12px !important;
  line-height: 1.7 !important;
  text-indent: 0 !important;
  vertical-align: top;
}
.con .cont th {
  background: #f5f7fa !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
}

/* ---- 强调 / 分隔线 ---- */
.con .cont strong,
.con .cont b {
  font-weight: 700 !important;
  color: #1a1a1a;
}
.con .cont hr {
  margin: 26px 0 !important;
  border: 0;
  border-top: 1px solid #e8e8e8;
}

/* ---- 移动端：字号略降、间距收紧，缩进规则不变 ---- */
@media screen and (max-width: 900px) {
  .con .cont {
    font-size: 15.5px;
    line-height: 1.85;
    text-align: left;
  }
  .con .cont > p,
  .con .cont > div > p {
    margin-bottom: 8px !important;
    font-size: 15.5px !important;
    line-height: 1.85 !important;
    text-align: left;
  }
  .con .cont h2 {
    margin: 24px 0 12px !important;
    padding-left: 10px !important;
    border-left-width: 3px;
    font-size: 18px !important;
  }
  .con .cont h3 {
    margin: 20px 0 10px !important;
    font-size: 16.5px !important;
  }
  .con .cont h4 {
    font-size: 15.5px !important;
  }
  .con .cont li {
    font-size: 15.5px !important;
    line-height: 1.85 !important;
  }
  .con .cont ul,
  .con .cont ol {
    padding-left: 1.6em !important;
  }
  .con .cont table {
    font-size: 13.5px !important;
  }
  .con .cont th,
  .con .cont td {
    padding: 7px 8px !important;
  }
  .con .cont img {
    border-radius: 4px;
    max-height: 420px !important;
  }
  .con .cont p:has(> img) {
    margin: 14px 0 !important;
  }
}

