/* 文章详情页样式（对齐 news-detail.html 原稿） */
.headline { background: linear-gradient(120deg, var(--green-800) 0%, var(--green-400) 100%); color: #fff; padding: 28px 0; }
.headline-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.headline-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.headline-text p { font-size: 14px; color: rgba(255,255,255,.92); }
.headline-cta { flex-shrink: 0; }
.headline-cta a { display: inline-flex; align-items: center; background: #fff; color: var(--green-800); font-size: 14px; font-weight: 700; padding: 10px 24px; border-radius: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.headline-cta a:hover { background: var(--green-50); }

.article-layout-section { padding-bottom: 32px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }

.article { background: #fff; }
.article .a-tag { display: inline-block; font-size: 12px; color: #fff; background: var(--coral-400); padding: 2px 10px; border-radius: 20px; margin-bottom: 12px; }
.article h1 { font-size: 26px; line-height: 1.4; margin-bottom: 14px; }
.article .a-meta { font-size: 12px; color: var(--text-hint); padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); margin-bottom: 18px; }
.article .a-meta a { color: var(--green-800); }
.article .a-meta a:hover { color: var(--green-400); }
.article .a-meta span { margin-right: 14px; }
.article .a-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); display: block; margin-bottom: 18px; }
.article .a-body { font-size: 15px; line-height: 1.9; color: #333; }
.article .a-body p { margin-bottom: 14px; }
.article .a-body h2 { font-size: 19px; margin: 24px 0 12px; padding-left: 12px; border-left: 4px solid var(--green-400); text-indent:0 !important;}
.article .a-body h3 { font-size: 17px; margin: 20px 0 10px; }
.article .a-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 12px 0; }
.article .a-body ul, .article .a-body ol { margin: 12px 0 12px 24px; }
.article .a-body li { margin-bottom: 6px; }
.article .a-body a { color: var(--green-800); text-decoration: underline; }
.article .a-body a:hover { color: var(--green-400); }
.article .a-body table { width: 100%; border-collapse: collapse; margin: 16px auto; font-size: 14px; }
.article .a-body th, .article .a-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article .a-body th { background: var(--gray-50); font-weight: 600; }

.a-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.a-tags .tag { font-size: 12px; color: var(--green-800); background: var(--green-50); padding: 4px 12px; border-radius: 20px; }
.a-tags .tag:hover { background: var(--green-400); color: #fff; }

.a-nav { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border-light); font-size: 13px; }
.a-nav a { color: var(--text-secondary); display: block; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-nav a span { display: block; color: var(--text-hint); font-size: 12px; margin-bottom: 2px; }
.a-nav a:hover { color: var(--green-800); }

/* 侧边栏复用 channel.css 中的 news-side 组件 */
.news-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 16px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; border-left: 4px solid var(--green-400); padding-left: 10px; }
.side-news { list-style: none; }
.side-news li { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border-light); font-size: 13px; line-height: 1.5; }
.side-news li:last-child { border-bottom: none; }
.side-news .idx { flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px; background: var(--green-50); color: var(--green-800); font-size: 11px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.side-news a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-secondary); }
.side-news a:hover { color: var(--green-800); }
.side-time { list-style: none; }
.side-time li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border-light); font-size: 13px; }
.side-time li:last-child { border-bottom: none; }
.side-time .t { flex-shrink: 0; color: var(--coral-400); font-weight: 600; }

.side-card .side-contact { display: flex; gap: 12px; align-items: flex-start; }
.side-card .sc-qr { width: 88px; height: 88px; flex-shrink: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-light); background: #fff; }
.side-card .sc-qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-card .sc-info { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.side-card .sc-info p { margin-bottom: 4px; }
.side-card .sc-info strong { color: var(--text); font-weight: 600; }
.side-card .sc-name { color: var(--coral-400); font-weight: 600; margin-top: 4px; }
.side-card .sc-lead { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }

.side-card.contact-card { background: linear-gradient(120deg, var(--green-800), var(--green-400)); border: none; box-shadow: 0 10px 28px rgba(14,158,104,.22); }
.side-card.contact-card h3 { color: #fff; }
.side-card.contact-card .sc-lead { color: rgba(255,255,255,.92); }
.side-card.contact-card .sc-info,
.side-card.contact-card .sc-info p { color: #fff; }
.side-card.contact-card .sc-info strong { color: #fff; }
.side-card.contact-card .sc-name { color: #FFE9DF; }
.side-card.contact-card .sc-qr { border-color: rgba(255,255,255,.6); }

.course-center { background: var(--green-50); border: 1px solid #B9E6D6; border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.08); position: sticky; top: 16px; z-index: 5; }
.course-center h3 { font-size: 16px; margin-bottom: 4px; border-left: 4px solid var(--green-400); padding-left: 10px; color: var(--green-800); }
.course-center .cc-trust { font-size: 12px; color: var(--text-secondary); padding-left: 14px; margin-bottom: 10px; }
.course-center .cc-group { font-size: 12px; /* color: var(--coral-400);  */font-weight: 600; margin: 8px 0 4px; }
.course-center .cc-list{padding-left:20px;}
.course-center .cc-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border-light); font-size: 13px; }
.course-center .cc-item:last-of-type { border-bottom: none; }
.course-center .cc-item .cc-name { color: var(--text); }
.course-center .cc-item .cc-tag { font-size: 11px; color: var(--text-hint); }
.course-center .cc-item.rec .cc-name { color: var(--coral-400); font-weight: 600; }
.course-center .cc-item.rec .cc-badge { font-size: 11px; background: var(--coral-400); color: #fff; padding: 1px 7px; border-radius: 10px; margin-left: 6px; }
.course-center .cc-link { display: inline-block; margin-top: 10px; color: var(--green-800); font-size: 13px; font-weight: 600;padding-left:20px; }
.course-center .cc-link:hover { color: var(--coral-400); }
.course-center .cc-section + .cc-section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-light); }

.related-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.related-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-list a { font-size: 14px; color: var(--text); }
.related-list a:hover { color: var(--green-400); }

@media (max-width: 768px) {
  .headline-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .headline-text h2 { font-size: 20px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .article h1 { font-size: 20px; }
  .article .a-cover { max-height: 200px; }
  .course-center { position: static; top: auto; }
  .article .a-body table { width: 100% !important; }
}
