/* ==========================================================================
   a2 POST · 博客文章单页「双栏专业指南」(2026-11-27, build 1)
   依赖 a2-43.css 的 token / .a2-btn / .a2-catbar / .a2-wrap、a2-blog-1.css 的 .a2-postcard
   命名空间：.a2-post-*
   ========================================================================== */

/* ---------- 0. 连字符与数字特性：主题 body 的 tnum 会把连字符撑成数字宽 ---------- */
.a2-post { font-feature-settings: "ss01" 1, "tnum" 0; }

/* ---------- 1. 阅读进度条：贴在吸顶页眉下沿（高度由 JS 量 --a2-hdr） ---------- */
.a2-post__prog {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--a2-hdr, 68px);
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.a2-post__prog i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--a2-blue);
  transform-origin: left center;
  transition: width 90ms linear;
}

/* ---------- 2. 双栏骨架 ---------- */
.a2-post__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 24px 64px;
}
.a2-post__grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) 280px;
  gap: 56px;
  align-items: start;
}
.a2-post__side {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (max-width: 1023px) {
  .a2-post__inner { padding: 22px 20px 52px; }
  .a2-post__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .a2-post__side { position: static; top: auto; }
}
@media (max-width: 560px) {
  .a2-post__inner { padding: 18px 16px 44px; }
}

/* ---------- 3. 文章头部 ---------- */
.a2 .a2-post__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--a2-mute);
}
.a2 .a2-post__crumb a {
  color: var(--a2-mute);
  text-decoration: none;
  border-bottom: 0;
  transition: color var(--a2-t-fast) var(--a2-ease-out);
}
.a2 .a2-post__crumb a:focus-visible { outline: 2px solid var(--a2-blue); outline-offset: 2px; border-radius: 2px; }
.a2 .a2-post__crumb span { color: var(--a2-line-strong); }
.a2 .a2-post__crumb em { font-style: normal; font-weight: 600; color: var(--a2-navy); }
@media (hover: hover) {
  .a2 .a2-post__crumb a:hover { color: var(--a2-blue); }
}

.a2 .a2-post__h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -.015em;
  font-weight: 700;
  color: var(--a2-navy);
  text-wrap: balance;
}
@media (max-width: 760px) { .a2 .a2-post__h1 { font-size: 27px; line-height: 1.22; } }

.a2 .a2-post__meta {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--a2-mute);
}
.a2 .a2-post__meta .a2-post__dot { color: var(--a2-line-strong); }

/* ---------- 4. 正文排版 ---------- */
.a2 .a2-post__content {
  margin-top: 26px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--a2-body);
}
@media (min-width: 1200px) {
  .a2 .a2-post__content { font-size: 17px; }
}
.a2 .a2-post__content > p,
.a2 .a2-post__content > ul,
.a2 .a2-post__content > ol {
  margin: 0 0 1.2em;
}
.a2 .a2-post__content p:last-child { margin-bottom: 0; }
.a2 .a2-post__content strong { color: var(--a2-navy); font-weight: 600; }

/* 内链：细下划线，不加粗，不抢视线 */
.a2 .a2-post__content a {
  color: var(--a2-blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(10, 77, 162, .30);
  text-underline-offset: 3px;
  border-bottom: 0;
  transition: text-decoration-color var(--a2-t-fast) var(--a2-ease-out);
}
.a2 .a2-post__content a:focus-visible { outline: 2px solid var(--a2-blue); outline-offset: 2px; border-radius: 2px; }
@media (hover: hover) {
  .a2 .a2-post__content a:hover { text-decoration-color: rgba(10, 77, 162, .9); }
}

/* 标题层级 + 防孤字 */
.a2 .a2-post__content h2,
.a2 .a2-post__content h3 {
  color: var(--a2-navy);
  text-wrap: balance;
}
.a2 .a2-post__content h2 {
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid #eef1f4;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.01em;
  scroll-margin-top: 100px;
}
.a2 .a2-post__content h2:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}
.a2 .a2-post__content h3 {
  margin: 32px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  scroll-margin-top: 100px;
}
@media (max-width: 560px) {
  .a2 .a2-post__content h2 { margin-top: 40px; padding-top: 22px; font-size: 21px; }
  .a2 .a2-post__content h3 { font-size: 17px; }
}

.a2 .a2-post__content ul,
.a2 .a2-post__content ol { padding-left: 22px; }
.a2 .a2-post__content li { margin: 0 0 .55em; }

.a2 .a2-post__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 10px;
}

/* 临床提示框 */
.a2 .a2-post__content blockquote,
.a2 .a2-post__content .a2-callout,
.a2 .a2-callout {
  margin: 26px 0;
  padding: 16px 20px;
  background: #f8fafc;
  border-left: 3px solid var(--a2-teal-ink);
  border-radius: 0 10px 10px 0;
  color: var(--a2-navy);
  font-size: 16px;
  line-height: 1.65;
}
.a2 .a2-post__content blockquote > :last-child,
.a2 .a2-post__content .a2-callout > :last-child,
.a2 .a2-callout > :last-child { margin-bottom: 0; }
.a2 .a2-post__content blockquote p { margin: 0 0 .8em; }

/* 表格：与首页 .a2-mini 同体系，窄屏横滑 */
.a2 .a2-post-table,
.a2 .a2-post__content figure.wp-block-table {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid #eef1f4;
  border-radius: 12px;
  background: #fff;
}
.a2 .a2-post__content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}
.a2 .a2-post__content th,
.a2 .a2-post__content td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eef1f4;
}
.a2 .a2-post__content thead th {
  background: #f8fafc;
  color: var(--a2-navy);
  font-weight: 700;
  white-space: nowrap;
}
.a2 .a2-post__content tbody tr:last-child th,
.a2 .a2-post__content tbody tr:last-child td { border-bottom: 0; }
.a2 .a2-post__content figcaption {
  padding: 10px 14px 12px;
  font-size: 12.5px;
  color: var(--a2-mute);
}

/* 目录里点进来的定位留白 */
.a2 .a2-post__content h2,
.a2 .a2-post__content h3 { position: relative; }

/* ---------- 5. 侧栏：目录 ---------- */
.a2-post__toc {
  border-top: 1px solid var(--a2-line-strong);
  padding-top: 16px;
}
.a2 .a2-post__toc-h {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--a2-mute);
}
.a2-post__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--a2-line);
}
.a2-post__toc li { margin: 0; }
.a2 .a2-post__toc a {
  display: block;
  padding: 6px 0 6px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.45;
  color: var(--a2-mute);
  text-decoration: none;
  border-bottom: 0;
  transition: color var(--a2-t-fast) var(--a2-ease-out), border-color var(--a2-t-fast) var(--a2-ease-out);
}
.a2 .a2-post__toc a.is-active {
  color: var(--a2-navy);
  font-weight: 600;
  border-left-color: var(--a2-blue);
}
.a2 .a2-post__toc a:focus-visible { outline: 2px solid var(--a2-blue); outline-offset: 2px; }
@media (hover: hover) {
  .a2 .a2-post__toc a:hover { color: var(--a2-navy); }
}

/* ---------- 6. 侧栏：转化卡 ---------- */
.a2-post__quote {
  background: #fff;
  border: 1px solid #e2e7ec;
  border-radius: 14px;
  padding: 20px 18px;
}
.a2 .a2-post__quote-h {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--a2-navy);
}
.a2 .a2-post__quote-p {
  margin: 8px 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--a2-body);
}
.a2-post__quote .a2-btn + .a2-btn { margin-top: 8px; }

/* ---------- 7. 文末 BOQ 横幅 + 关联指南 ---------- */
.a2 .a2-post__cta { margin-top: 52px; }
.a2 .a2-post__cta .a2-catbar { margin: 0; }
/* 700px 正文栏里，a2-catbar 的 auto 按钮列会把文案列挤到 160px 宽（实测 160/452），
   这里在文章页强制单列：文案在上、按钮在下 */
.a2 .a2-post__cta .a2-catbar { grid-template-columns: minmax(0, 1fr); }
.a2 .a2-post__cta .a2-catbar .a2-cta-row { flex-wrap: wrap; }

.a2 .a2-post__more { margin-top: 48px; }
.a2 .a2-post__more > h2 {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--a2-navy);
}
.a2-post__more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) { .a2-post__more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .a2-post__more-grid { grid-template-columns: minmax(0, 1fr); } }
.a2-post__more .a2-postcard { display: flex; flex-direction: column; }
.a2-post__more .a2-postcard__foot { margin-top: auto; }

@media (prefers-reduced-motion: reduce) {
  .a2-post__prog i,
  .a2 .a2-post__crumb a,
  .a2 .a2-post__toc a,
  .a2 .a2-post__content a { transition-duration: 1e-05s; }
}

/* ---------- 8. 手机/平板：目录从侧栏搬到正文头部（JS 移动，无 JS 时留在文末也不报错） ---------- */
@media (max-width: 1023px) {
  .a2-post .a2-post__toc {
    border-top: 0;
    border-bottom: 1px solid var(--a2-line);
    padding: 0 0 16px;
    margin: 0 0 4px;
  }
  .a2-post .a2-post__toc a { padding: 7px 0 7px 12px; font-size: 13.5px; }
}
