/* 文章详情页样式（绿色体系） */
.post-page { padding: calc(var(--header-h) + 34px) 0 80px; background: var(--bg); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }

.crumb { font-size: 13.5px; color: var(--ink-400); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.crumb a { color: var(--ink-400); }
.crumb a:hover { color: var(--brand-600); }
.crumb em { font-style: normal; color: var(--ink-200); }

.post-title { font-size: 34px; line-height: 1.4; color: var(--ink-900); font-weight: 800; letter-spacing: -.3px; margin-bottom: 16px; }
.post-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-400); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.post-cover { margin: 26px 0 6px; border-radius: var(--radius); overflow: hidden; }
.post-cover img { width: 100%; }

.post-content { font-size: 16.5px; color: var(--ink-700); line-height: 1.95; padding-top: 20px; }
.post-content h2 { font-size: 23px; color: var(--ink-900); font-weight: 700; margin: 38px 0 14px; padding-left: 14px; border-left: 4px solid var(--brand-500); }
.post-content h3 { font-size: 19px; color: var(--ink-900); font-weight: 700; margin: 28px 0 12px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 20px; padding-left: 22px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--brand-500); }
.post-content img { border-radius: var(--radius-s); margin: 22px 0; }
.post-content blockquote {
  margin: 24px 0; padding: 16px 20px; background: var(--brand-50);
  border-left: 4px solid var(--brand-500); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-700); font-size: 16px;
}
.post-content code { background: var(--bg-soft-2); padding: 2px 6px; border-radius: 5px; font-size: 14.5px; }
.post-content pre { background: var(--ink-900); color: #e8f5ee; padding: 18px 20px; border-radius: var(--radius-s); overflow-x: auto; margin: 22px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-content th { background: var(--bg-soft); font-weight: 700; }

.post-share { margin-top: 34px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-400); }
.post-cta {
  margin-top: 26px; padding: 28px 30px; border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.post-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.post-cta p { font-size: 14.5px; opacity: .88; }
.post-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.post-cta .btn-light { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }

.post-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h4 { font-size: 15.5px; color: var(--ink-900); font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rel-list { display: grid; gap: 14px; }
.rel-item { display: block; }
.rel-item .rel-tag { display: inline-block; font-size: 11.5px; color: var(--brand-700); background: var(--brand-50); padding: 2px 8px; border-radius: 5px; margin-bottom: 6px; }
.rel-item b { display: block; font-size: 14.5px; color: var(--ink-700); font-weight: 600; line-height: 1.6; }
.rel-item:hover b { color: var(--brand-600); }
.rel-item em { font-size: 12px; color: var(--ink-400); font-style: normal; }
.rel-empty { font-size: 13.5px; color: var(--ink-400); }

.side-card.side-green { background: var(--brand-50); border-color: var(--brand-100); }
.side-plan { display: grid; gap: 10px; margin-bottom: 16px; }
.side-plan li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-700); }
.side-plan span { color: var(--ink-400); white-space: nowrap; }

@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; }
  .post-title { font-size: 27px; }
}
