/* ============================================================
   文章正文排版规范 —— 只作用于 .detailed（文章详情页）
   目标：以人为本，长时间阅读不累眼
   1. 控制行宽：每行约 40-45 汉字，视线不来回扫
   2. 拉开层级：h2 主色竖条、h3 加粗、段落留白
   3. 表格可读：细边框 + 表头浅底 + 隔行浅色 + 足够内边距
   4. 还原列表符号与链接色
   日期：2026-11-15
   ============================================================ */

/* ---------- 桌面端：限宽居中 ---------- */
@media (min-width: 1200px) {
  .detailed .tit,
  .detailed .info {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }
  .detailed .info { margin-top: 26px; }
}

/* ---------- 标题区 ---------- */
.detailed .tit { padding-bottom: 18px; }
.detailed .tit h1,
.detailed .tit h4 {
  font-size: 27px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1d21;
  letter-spacing: .3px;
  text-align: center;
}
.detailed .tit p {
  background: none;
  border-bottom: 1px solid #eceef1;
  padding-bottom: 14px;
  margin-top: 14px;
  line-height: 1.6;
}
.detailed .tit span {
  font-size: 13px;
  color: #9aa0a6;
  margin: 0 8px;
}

/* ---------- 正文基础 ---------- */
.detailed .info {
  font-size: 17px;
  line-height: 1.85;
  color: #2f3337;
  letter-spacing: .2px;
  word-break: break-word;
}
.detailed .info p {
  margin: 0 0 1.05em;
  text-align: left;
}
.detailed .info p:last-child { margin-bottom: 0; }
.detailed .info p:empty { display: none; }

/* ---------- 小标题：用主色竖条建立层级 ---------- */
.detailed .info h2 {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1d21;
  margin: 2em 0 .75em;
  padding-left: 12px;
  border-left: 4px solid #178ee8;
}
.detailed .info h3 {
  font-size: 17.5px;
  line-height: 1.6;
  font-weight: 700;
  color: #24282c;
  margin: 1.6em 0 .6em;
}
.detailed .info h4 {
  font-size: 17px;
  font-weight: 700;
  color: #24282c;
  margin: 1.4em 0 .5em;
}
.detailed .info h2:first-child,
.detailed .info h3:first-child { margin-top: 0; }

/* ---------- 表格：细边框卡片式 ---------- */
.detailed .info table {
  width: 100% !important;
  border-collapse: collapse;
  border: 1px solid #e4e7eb;
  margin: 1.4em 0;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
}
.detailed .info th {
  background: #f5f7fa;
  color: #1f2937;
  font-weight: 700;
  text-align: left;
  padding: 11px 13px;
  border: 1px solid #e4e7eb;
  white-space: nowrap;
}
.detailed .info td {
  padding: 11px 13px;
  border: 1px solid #eaedf1;
  color: #3a4046;
  vertical-align: top;
}
.detailed .info tr:nth-child(even) td { background: #fafbfc; }

/* ---------- 列表：还原符号 ---------- */
.detailed .info ul,
.detailed .info ol {
  margin: 1em 0 1.2em;
  padding-left: 1.6em;
}
.detailed .info ul li { list-style-type: disc; }
.detailed .info ol li { list-style-type: decimal; }
.detailed .info li {
  margin: .45em 0;
  line-height: 1.8;
}
.detailed .info li > ul,
.detailed .info li > ol { margin: .4em 0; }

/* ---------- 行内链接：一眼看出可点 ---------- */
.detailed .info a,
.detailed .info p a {
  color: #178ee8;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 142, 232, .35);
  transition: color .15s ease, border-color .15s ease;
}
.detailed .info a:hover {
  color: #0d6fbb;
  border-bottom-color: #0d6fbb;
}

/* ---------- 强调与引用 ---------- */
.detailed .info strong,
.detailed .info b { font-weight: 700; color: #1a1d21; }
.detailed .info blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  background: #f7f9fb;
  border-left: 3px solid #cfd6dd;
  color: #4a5056;
  font-size: 16px;
}
.detailed .info blockquote p:last-child { margin-bottom: 0; }
.detailed .info hr {
  border: 0;
  border-top: 1px solid #eceef1;
  margin: 2em 0;
}

/* ---------- 图片 ---------- */
.detailed .info img {
  display: block;
  max-width: 100% !important;
  height: auto;
  margin: 1.5em auto;
  border-radius: 6px;
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 1199px) {
  .detailed .info {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    letter-spacing: .2px;
  }
  .detailed .info p { margin: 0 0 .95em; }
  .detailed .info h2 {
    font-size: 19px;
    margin: 1.7em 0 .65em;
    padding-left: 10px;
    border-left-width: 3px;
  }
  .detailed .info h3 { font-size: 17px; margin: 1.4em 0 .55em; }
  .detailed .info table {
    font-size: 14px;
    margin: 1.2em 0;
    display: block;
    overflow-x: auto;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
  }
  .detailed .info th,
  .detailed .info td { padding: 8px 10px; }
  .detailed .info th,
  .detailed .info td { white-space: normal; }
  .detailed .info th:first-child,
  .detailed .info td:first-child {
    white-space: nowrap;
    width: 1%;
  }
  .detailed .tit h1,
  .detailed .tit h4 { font-size: 21px; line-height: 1.45; }
  .detailed .tit p { padding-bottom: .14rem; }
  .detailed .tit span {
    display: inline-block;
    line-height: 1.6;
    font-size: 12px;
    color: #9aa0a6;
  }
  .detailed .tit span + span::before {
    content: "·";
    margin: 0 6px;
    color: #c8ccd1;
  }
}
