/* ============================================================
   KINGPO 技术文章页样式（kp-art.css）
   仅新增文章专有组件，不覆盖既有组件；加载于 kp-ui-v2.css 之后
   配色沿用主站令牌：#0b4b8f / #0f6db8 / #25b7ff，浅底深字（对比度 ≥4.5:1）
   ============================================================ */

/* ---------- 1. 面包屑 ---------- */
.art-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  max-width: 1180px; margin: 18px auto 0; padding: 0 22px;
  font-size: 13.5px; color: #5d6a7e;
}
.art-crumb a { color: #0b4b8f; text-decoration: none; font-weight: 600; }
.art-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-crumb span[aria-hidden], .art-crumb > span:not(:last-child) { color: #a9b8ca; }

/* ---------- 2. 文章 hero ---------- */
.art-hero h1 { max-width: 22em; }
.art-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin: 18px 0 0; font-size: 13.5px; color: #5d6a7e;
}
.art-meta span { position: relative; padding-left: 15px; }
.art-meta span::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #0f6db8, #25b7ff);
}
.art-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* ---------- 3. GEO 直答块 ---------- */
.art-answer {
  background: linear-gradient(160deg, #f4fbff, #ffffff 60%);
  border: 1px solid #cfe3f2; border-left: 4px solid #0f6db8;
  border-radius: 14px; padding: 22px 26px;
  box-shadow: 0 8px 26px #0f23410f;
}
.art-answer p { margin: 0; font-size: 17px; line-height: 1.85; color: #172033; }
.art-answer .eyebrow { margin: 0 0 10px; }

/* ---------- 4. 目录 ---------- */
.art-toc {
  margin: 26px 0 0; padding: 20px 26px;
  border: 1px dashed #cfe3f2; border-radius: 14px; background: #fbfdff;
}
.art-toc .eyebrow { margin: 0 0 12px; }
.art-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 34px; }
.art-toc li { margin: 6px 0; break-inside: avoid; }
.art-toc a { color: #0b4b8f; text-decoration: none; font-weight: 600; font-size: 15px; }
.art-toc a:hover { color: #0f6db8; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .art-toc ol { columns: 1; } }

/* ---------- 5. 正文阅读节奏 ---------- */
main .section > p, main .band > p { max-width: 78ch; }
main .section h2 { scroll-margin-top: 84px; }
main .section h3 {
  margin: 26px 0 10px; font-size: 18.5px; color: #0b4b8f;
  padding-left: 12px; border-left: 3px solid #25b7ff;
}
main .section p { line-height: 1.9; margin: 0 0 14px; color: #22303f; }
.art-strong {
  font-weight: 700; color: #0b4b8f !important;
  border-left: 3px solid #0f6db8; padding-left: 14px; background: #f7fbfe;
  border-radius: 0 8px 8px 0; padding: 12px 16px;
}

/* ---------- 6. 表格 ---------- */
.art-table-wrap { overflow-x: auto; margin: 18px 0 8px; }
.art-table-wrap .data-table { width: 100%; min-width: 520px; }
.art-table-wrap .data-table th:first-child { white-space: nowrap; width: 34%; }
.art-table-cap { font-size: 13px; color: #5d6a7e; margin: 6px 0 18px; }

/* ---------- 7. 步骤链 ---------- */
ol.art-steps { list-style: none; margin: 18px 0; padding: 0; counter-reset: s; }
ol.art-steps > li {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid #eef4fa;
}
ol.art-steps > li:last-child { border-bottom: none; }
ol.art-steps .step-no {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0b4b8f, #0f6db8);
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 16px #0b4b8f2e;
}
ol.art-steps strong { display: block; color: #0b4b8f; margin-bottom: 4px; }
ol.art-steps p { margin: 0 !important; color: #3d4c5e; }

/* ---------- 8. 要点框 ---------- */
.art-callout {
  margin: 20px 0; padding: 18px 22px; border-radius: 12px;
  background: #f2f8fd; border: 1px solid #cfe3f2;
}
.art-callout .eyebrow { margin: 0 0 8px; }
.art-callout p:last-child { margin: 0 !important; color: #172033; font-weight: 600; }

/* ---------- 9. FAQ ---------- */
.art-faq { display: grid; gap: 10px; margin: 18px 0; }
.art-faq details {
  border: 1px solid #e2ebf4; border-radius: 12px; background: #fdfdfe;
  padding: 0; overflow: hidden; transition: border-color .2s ease, background .2s ease;
}
.art-faq details[open] { border-color: #25b7ff59; background: #fbfdff; }
.art-faq summary {
  cursor: pointer; padding: 15px 20px; font-weight: 700; color: #0b4b8f;
  font-size: 15.5px; list-style: none; position: relative; padding-right: 44px;
}
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 700; color: #0f6db8; line-height: 1;
}
.art-faq details[open] summary::after { content: "−"; }
.art-faq details p { margin: 0 !important; padding: 0 20px 17px; color: #3d4c5e; line-height: 1.85; }

/* ---------- 10. 工程经验 ---------- */
ul.art-exp { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
ul.art-exp li {
  position: relative; padding: 14px 18px 14px 46px;
  background: #ffffffcf; border: 1px solid #e2ebf4; border-radius: 12px;
  line-height: 1.8; color: #22303f;
}
ul.art-exp li::before {
  content: ""; position: absolute; left: 18px; top: 22px;
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #0f6db8, #25b7ff);
  box-shadow: 0 0 0 4px #25b7ff24;
}

/* ---------- 11. 参考资料 ---------- */
ol.art-refs { margin: 16px 0; padding-left: 22px; display: grid; gap: 9px; }
ol.art-refs li { color: #3d4c5e; line-height: 1.8; font-size: 14.5px; }
.art-note {
  margin-top: 14px !important; padding: 14px 18px;
  background: #fbfdff; border: 1px dashed #cfe3f2; border-radius: 10px;
  font-size: 13.5px !important; color: #5d6a7e !important;
}

/* ---------- 12. 索引页文章卡 ---------- */
.art-card { display: flex; flex-direction: column; gap: 8px; }
.art-card h3 { font-size: 17px; line-height: 1.5; }
.art-card h3 a { color: #0b4b8f; text-decoration: none; }
.art-card h3 a:hover { color: #0f6db8; }
.art-card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #3d4c5e; }
.art-card-meta { font-size: 13px !important; color: #5d6a7e !important; margin-top: auto !important; }
.art-card-meta a { color: #0f6db8; font-weight: 600; text-decoration: none; }
.art-card-meta a:hover { text-decoration: underline; }
