/* =====================================================================
 * article-page.css — 康复知识库文章页共用样式(v20260803-v1)
 * 配合 common.css 品牌变量使用;正文组件:提示框/表格/FAQ/来源/免责声明
 * ===================================================================== */

.article-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 18px 48px;
  color: var(--lp-navy, #2e332e);
}

/* 站点头部(所有知识页共用) */
.knowledge-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-mint-line, #e5e9e2);
}
.knowledge-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.knowledge-header .kh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.knowledge-header .kh-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(60, 45, 20, 0.08);
}
.knowledge-header .kh-brand strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--lp-navy, #2e332e);
  display: block;
  line-height: 1.1;
}
.knowledge-header .kh-brand small {
  font-size: 12px;
  color: #8c8578;
  display: block;
}
.knowledge-header .kh-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.knowledge-header .kh-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-navy-soft, #3c423b);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.knowledge-header .kh-nav a:hover,
.knowledge-header .kh-nav a:focus-visible {
  background: var(--lp-mint-soft, #e9f0ea);
  color: var(--lp-teal, #5b8065);
  outline: none;
}
@media (max-width: 640px) {
  .knowledge-header .kh-nav a.kh-hide-mobile { display: none; }
}

/* 返回康复知识库按钮（文章页醒目返回入口） */
.kb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--lp-teal, #5b8065);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(91, 128, 101, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}
.kb-back-btn:hover,
.kb-back-btn:focus-visible {
  background: var(--lp-teal-dark, #3a4659);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

/* 面包屑 */
.knowledge-breadcrumb {
  font-size: 13px;
  color: #8a9188;
  margin: 18px 0 8px;
}
.knowledge-breadcrumb a {
  color: var(--lp-teal, #5b8065);
  text-decoration: none;
  font-weight: 600;
}
.knowledge-breadcrumb a:hover { text-decoration: underline; }

/* 文章头部 */
.article-header {
  margin: 14px 0 20px;
}
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lp-teal, #5b8065);
  background: var(--lp-mint-soft, #e9f0ea);
  border: 1px solid var(--lp-mint-line, #c9dccd);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.article-title {
  font-size: clamp(24px, 4.2vw, 34px);
  line-height: 1.3;
  font-weight: 850;
  color: var(--lp-navy, #2e332e);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.article-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #5f665d;
  margin: 0 0 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
  color: #8a9188;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lp-mint-line, #e5e9e2);
  margin-bottom: 24px;
}
.article-meta .am-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: #faf8f3;
  color: #5f665d;
  font-weight: 600;
}

/* 正文排版 */
.article-body { font-size: 15.5px; line-height: 1.9; color: #2e332e; }
.article-body h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--lp-navy, #2e332e);
  margin: 34px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--lp-teal, #5b8065);
  line-height: 1.4;
}
.article-body h3 {
  font-size: 17px;
  font-weight: 750;
  color: var(--lp-navy, #2e332e);
  margin: 24px 0 8px;
}
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 7px; }
.article-body strong { font-weight: 750; color: #22201c; }
.article-body a { color: var(--lp-teal, #5b8065); font-weight: 600; }

/* 表格(里程碑/习得顺序等) */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(91, 70, 35, 0.06);
}
.article-table th {
  background: var(--lp-teal, #5b8065);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  font-size: 13.5px;
}
.article-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e9e2;
  vertical-align: top;
}
.article-table tr:nth-child(even) td { background: #faf8f3; }
.article-table tr:last-child td { border-bottom: none; }

/* 提示框 */
.highlight-box {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--lp-mint-soft, #e9f0ea);
  border: 1px solid var(--lp-mint-line, #c9dccd);
  font-size: 14.5px;
  line-height: 1.75;
  color: #2f4437;
}
.highlight-box .hb-title {
  font-weight: 800;
  color: var(--lp-teal, #5b8065);
  display: block;
  margin-bottom: 4px;
}
.warn-box {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6ebdd;
  border: 1px solid #edd7b8;
  font-size: 14.5px;
  line-height: 1.75;
  color: #6b4a26;
}
.warn-box .wb-title {
  font-weight: 800;
  color: #a96f33;
  display: block;
  margin-bottom: 4px;
}

/* FAQ */
.article-faq { margin: 26px 0 8px; }
.article-faq details {
  border: 1px solid var(--lp-mint-line, #e5e9e2);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  padding: 4px 16px;
}
.article-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--lp-navy, #2e332e);
  padding: 12px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--lp-teal, #5b8065);
  transition: transform 0.2s ease;
}
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq details p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.8; color: #5f665d; }

/* 参考来源与免责声明 */
.article-sources {
  margin: 30px 0 0;
  padding: 16px 18px;
  background: #f4f1ea;
  border: 1px dashed #e2e6df;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #8a9188;
}
.article-sources strong { display: block; margin-bottom: 4px; color: #5f665d; font-size: 13px; }
.article-sources ul { margin: 0; padding-left: 18px; }
.article-disclaimer {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #faf6ee;
  border: 1px solid #f0e2cc;
  font-size: 13px;
  line-height: 1.75;
  color: #7a5c33;
}
.article-disclaimer strong { color: #a96f33; }

/* 相关文章 */
.related-articles {
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--lp-mint-line, #e5e9e2);
}
.related-articles h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--lp-navy, #2e332e);
  margin: 0 0 12px;
  border: none;
  padding: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.related-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--lp-mint-line, #e5e9e2);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(91, 70, 35, 0.1);
}
.related-card .rc-cat {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lp-teal, #5b8065);
  display: block;
  margin-bottom: 6px;
}
.related-card .rc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-navy, #2e332e);
  line-height: 1.5;
}

/* CTA */
.article-cta {
  margin: 28px 0 0;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #5b8065, #46654e);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.article-cta strong { font-size: 16px; display: block; margin-bottom: 2px; }
.article-cta span { font-size: 13.5px; opacity: 0.92; }
.article-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--lp-teal, #5b8065);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(6, 72, 70, 0.25);
}
.article-cta .cta-btn:hover { transform: translateY(-1px); }

/* 页脚 */
.knowledge-footer {
  border-top: 1px solid var(--lp-mint-line, #e5e9e2);
  margin-top: 40px;
  padding: 22px 18px 34px;
  text-align: center;
  font-size: 13px;
  color: #8a9188;
  line-height: 1.8;
}
.knowledge-footer a { color: var(--lp-teal, #5b8065); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .related-card, .article-cta .cta-btn { transition: none; }
}
