/* ============================================================
   article-pro.css —— 资讯正文排版增强（全站文章 / 栏目 / 专题页共用）
   设计目标：
     1. 排版统一：标题层级、段落节奏、表格、引用、列表一套规范；
     2. 可读性：小节有视觉锚点、问答有 Q 标识、表格斑马纹、长文不疲劳；
     3. 品牌一致：与站点主色 #06b67a / #0f6f8f 对齐，浅色底、深色字。
   引入方式：由后端 ARTICLE_PAGE_TPL 在 <head> 引入，带 ?v= 版本号。
   注意：本文件为覆盖式增强，不改 style.css（红线：不直接改主样式表）。
   ============================================================ */

/* ---------- 正文基础节奏 ---------- */
.article-content {
  font-size: 16.5px;
  line-height: 1.92;
  color: #1f2d28;
  letter-spacing: .1px;
  word-break: break-word;
}

/* 首段（导语）稍加分量，形成阅读入口 */
.article-content > p:first-of-type {
  font-size: 17.5px;
  color: #14211c;
  background: linear-gradient(180deg, #f4fbf8, #ffffff);
  border-left: 3px solid #06b67a;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 4px 0 24px;
}

.article-content p {
  margin: 0 0 20px;
}

/* ---------- 二级标题：左侧色条 + 分隔线，形成章节锚点 ---------- */
.article-content h2 {
  position: relative;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 800;
  color: #12332a;
  margin: 42px 0 18px;
  padding: 0 0 12px 16px;
  border-bottom: 1px solid #e8efec;
  scroll-margin-top: 90px;
}

.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 14px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #06b67a, #0f6f8f);
}

.article-content h2:first-child {
  margin-top: 8px;
}

/* ---------- 三级标题：左侧细竖线，问答与普通小标题都适用 ---------- */
.article-content h3 {
  position: relative;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  color: #143b30;
  margin: 30px 0 12px;
  padding-left: 14px;
  border-left: 3px solid #a9dccd;
  scroll-margin-top: 90px;
}

.article-content h3::before {
  display: none;
}

.article-content h4 {
  font-size: 16.5px;
  margin: 22px 0 10px;
  color: #143b30;
}

/* ---------- 列表 ---------- */
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 4px;
  list-style: none;
}

.article-content ul > li,
.article-content ol > li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
  line-height: 1.88;
}

.article-content ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #06b67a;
  transform: rotate(45deg);
}

.article-content ol {
  counter-reset: art-ol;
}

.article-content ol > li {
  counter-increment: art-ol;
}

.article-content ol > li::before {
  content: counter(art-ol);
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  line-height: 19px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #0f6f8f;
  border-radius: 5px;
}

/* ---------- 引用：左侧粗条 + 淡底 ---------- */
.article-content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: #f3faf7;
  border-left: 4px solid #06b67a;
  border-radius: 0 10px 10px 0;
  color: #24443a;
  font-size: 16px;
}

.article-content blockquote p {
  margin: 0;
}

.article-content blockquote p + p {
  margin-top: 10px;
}

/* ---------- 表格：斑马纹 + 圆角 + 首列加粗 ---------- */
.article-content table,
.article-content table.art-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 15.5px;
  border: 1px solid #e3ebe7;
  border-radius: 12px;
  overflow: hidden;
}

.article-content thead th {
  background: #eef8f4;
  color: #12332a;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #dbe8e3;
}

.article-content tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef3f1;
  vertical-align: top;
  line-height: 1.8;
}

.article-content tbody tr:last-child td {
  border-bottom: none;
}

.article-content tbody tr:nth-child(even) {
  background: #fafcfb;
}

.article-content tbody tr:hover {
  background: #f2faf7;
}

.article-content tbody td:first-child {
  font-weight: 600;
  color: #143b30;
}

/* ---------- 链接 ---------- */
.article-content a {
  color: #0b7a5a;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 122, 90, .28);
  transition: border-color .15s, color .15s;
}

.article-content a:hover {
  color: #06b67a;
  border-bottom-color: #06b67a;
}

/* ---------- 图片 / 分隔线 ---------- */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 6px 22px rgba(16, 48, 40, .08);
}

.article-content hr {
  border: none;
  border-top: 1px dashed #dbe8e3;
  margin: 30px 0;
}

/* ============================================================
   本文看点（后端 _inject_anchors_and_keypoints 生成的 .art-keypoints）
   ============================================================ */
.art-keypoints {
  margin: 6px 0 26px;
  padding: 18px 22px 16px;
  background: linear-gradient(135deg, #f2fbf7, #f6fbff);
  border: 1px solid #dcefe8;
  border-radius: 14px;
}

.art-keypoints > h2 {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0b7a5a;
}

.art-keypoints > h2::before {
  display: none;
}

.art-keypoints ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.art-keypoints li {
  margin: 0;
  padding: 0;
}

.art-keypoints li::before {
  display: none;
}

.art-keypoints a {
  display: inline-block;
  padding: 6px 13px;
  font-size: 14px;
  line-height: 1.5;
  color: #145445;
  background: #fff;
  border: 1px solid #d3e9e0;
  border-radius: 999px;
  border-bottom-width: 1px;
  transition: all .15s;
}

.art-keypoints a:hover {
  color: #fff;
  background: #06b67a;
  border-color: #06b67a;
}

/* ============================================================
   文末品牌与本地服务区块（.article-foot）
   ============================================================ */
.article-foot {
  margin: 34px 0 10px;
  padding: 22px 24px;
  background: #f7fbf9;
  border: 1px solid #e2eee9;
  border-radius: 16px;
}

.article-foot .af-text strong {
  display: block;
  font-size: 17px;
  color: #12332a;
  margin-bottom: 6px;
}

.article-foot .af-text p {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #3c5148;
}

.article-foot .af-phone {
  font-weight: 700;
  color: #0b7a5a !important;
  letter-spacing: .3px;
}

/* 本地服务覆盖（13 区县）标签 */
.af-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
}

.af-areas li {
  margin: 0;
  padding: 3px 10px;
  font-size: 13px;
  color: #25605a;
  background: #eaf6f1;
  border: 1px solid #d6ebe3;
  border-radius: 999px;
}

.af-svc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.af-svc li {
  margin: 0;
  padding: 5px 12px;
  font-size: 13.5px;
  color: #145445;
  background: #fff;
  border: 1px dashed #bfe0d4;
  border-radius: 8px;
}

/* 阅读提示（字数 / 阅读时长） */
.article-meta .art-readinfo {
  color: #6b7c86;
}

/* ============================================================
   移动端
   ============================================================ */
@media (max-width: 720px) {
  .article-content {
    font-size: 16px;
    line-height: 1.88;
  }

  .article-content > p:first-of-type {
    font-size: 16.5px;
    padding: 14px 16px;
  }

  .article-content h2 {
    font-size: 20px;
    margin: 34px 0 14px;
    padding-left: 13px;
  }

  .article-content h3 {
    font-size: 17px;
    padding-left: 12px;
  }

  .article-content table {
    font-size: 14.5px;
  }

  .article-content thead th,
  .article-content tbody td {
    padding: 9px 10px;
  }

  .art-keypoints {
    padding: 15px 16px 13px;
  }

  .article-foot {
    padding: 18px 16px;
  }
}
