/* 由模板内联样式迁移而来 */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article-main { background: #fff; border-radius: 16px; padding: 48px 60px; box-shadow: 0 4px 24px rgba(10,55,111,.08); }
.article-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; box-shadow: 0 4px 24px rgba(10,55,111,.08); }
.sidebar-title { font-size: 1.1rem; font-weight: 700; color: #0a376f; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--pink); }
.article-header { text-align: center; padding-bottom: 32px; border-bottom: 1px solid #f0f2f5; margin-bottom: 32px; }
.article-title { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 700; color: #0a376f; line-height: 1.4; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 24px; color: #5b6b85; font-size: .95rem; flex-wrap: wrap; }
.article-image { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 36px; }
.article-content { font-size: 1.05rem; line-height: 2; color: #1c3452; }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 1.4rem; color: #0a376f; margin: 40px 0 20px; padding-left: 16px; border-left: 4px solid var(--pink); }
.article-content h3 { font-size: 1.2rem; color: #1c3452; margin: 28px 0 14px; }
.article-content ul,.article-content ol { margin: 16px 0; padding-left: 28px; }
.article-content li { margin-bottom: 12px; }
.highlight-box { background: #fff5f8; border-left: 4px solid var(--pink); padding: 24px 28px; margin: 28px 0; border-radius: 0 12px 12px 0; }
.article-tags { display: flex; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid #f0f2f5; flex-wrap: wrap; align-items: center; }
.article-nav { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid #f0f2f5; gap: 20px; }
.nav-link { display: flex; align-items: center; gap: 8px; color: #6b7b8f; font-size: .95rem; max-width: 45%; }
.nav-link:hover { color: var(--pink); }
.nav-link.prev::before { content: "←"; flex-shrink: 0; }
.nav-link.next::after { content: "→"; flex-shrink: 0; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; padding: 14px 28px; background: #e8107a; color: #fff; border-radius: 8px; transition: all .3s ease; }
/* ===== 底部相关内容（相关文章 / 相关案例）图文卡片 ===== */
.related-block { padding-top: 8px; }
.related-group { margin-bottom: 44px; }
.related-group:last-child { margin-bottom: 0; }
.related-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #f0f2f5; }
.related-head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; color: #0a2d5e; display: flex; align-items: center; gap: 10px; }
.related-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, #f472b6, #e8107a); }
.related-more { font-size: .85rem; color: #5b6b85; text-decoration: none; transition: color .2s ease; }
.related-more:hover { color: var(--pink); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(10,55,111,.08); transition: transform .25s ease, box-shadow .25s ease; }
.related-card a { display: block; color: inherit; text-decoration: none; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(10,55,111,.14); }
.related-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f6f8fb; }
.related-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.related-card:hover .related-image img { transform: scale(1.05); }
.related-badge { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 10px; background: rgba(10, 45, 94, .82); color: #fff; font-size: .72rem; line-height: 1.6; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-card-body { padding: 16px 18px 18px; }
.related-card-body h3 { margin: 0 0 10px; font-size: .98rem; font-weight: 600; line-height: 1.55; color: #1c3452; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s ease; }
.related-card:hover .related-card-body h3 { color: var(--pink); }
.related-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .78rem; color: #8a97a8; }
.related-meta span:last-child { margin-left: auto; color: #5b6b85; }

/* 相关文章：一行 3 项的分组轮播（滚一屏停一下） */
.related-carousel { position: relative; }
.related-viewport { overflow: hidden; padding: 10px 0 26px; }
.related-track { display: flex; gap: 24px; transition: transform .75s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.related-track > .related-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; }
.carousel-nav { position: absolute; top: 38%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; padding: 0; border: 1px solid #f4d5e7; border-radius: 50%; background: rgba(255, 255, 255, .96); color: #a3246a; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(10, 55, 111, .12); transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease; }
.carousel-nav:hover { background: var(--pink); border-color: var(--pink); color: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-nav:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: -6px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #e6e9ef; cursor: pointer; transition: width .28s ease, background .28s ease; }
.carousel-dot:hover { background: #f7b6d4; }
.carousel-dot.is-active { width: 24px; background: linear-gradient(90deg, #f472b6, #e8107a); }

@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .related-track { gap: 20px; }
    .related-track > .related-card { flex: 0 0 calc((100% - 20px) / 2); }
    .carousel-prev { left: -8px; }
    .carousel-next { right: -8px; }
}
@media (max-width: 640px) {
    .related-grid { grid-template-columns: 1fr; }
    .related-group { margin-bottom: 32px; }
    .related-track { gap: 14px; }
    .related-track > .related-card { flex: 0 0 100%; }
    .carousel-nav { width: 32px; height: 32px; top: 34%; }
    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }
}
@media (max-width:1024px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { position: static; } .related-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:768px) { .article-main { padding: 28px 24px; } .article-image { height: 220px; } .related-grid { grid-template-columns: 1fr; } }
.hot-news-list { list-style: none; padding: 0; }
.hot-news-list li { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f2f5; }
.hot-news-list li:last-child { border-bottom: none; }
.hot-news-list a { color: #3c4a5f; font-size: .95rem; line-height: 1.5; display: block; }
.hot-news-list a:hover { color: var(--pink); }
.hot-news-list .date { font-size: .8rem; color: #5b6b85; margin-top: 6px; }

/* ===== Article enhancements ===== */
.article-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: #e8107a; z-index: 9999; transition: width .15s ease; }
.article-share { display: flex; align-items: center; gap: 12px; margin: 32px 0 0; padding: 18px 22px; background: #fff5f8; border-radius: 14px; border: 1px solid rgba(232,16,122,.1); flex-wrap: wrap; }
.article-share .label { font-weight: 600; color: #0a2d5e; font-size: .92rem; margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 24px; background: #fff; border: 1px solid #eef1f5; color: #3c4a5f; font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .25s ease; text-decoration: none; }
.share-btn:hover { background: var(--pink); color: #fff; border-color: var(--pink); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(232,16,122,.25); }
.share-btn svg { width: 16px; height: 16px; }
.article-tags .tag { display: inline-flex; align-items: center; padding: 7px 17px 7px 14px; background: #fff; border: 1px solid #f3d7e7; border-radius: 999px; font-size: .88rem; font-weight: 500; line-height: 1.6; color: #3c4a5f; text-decoration: none; box-shadow: 0 2px 8px rgba(10, 55, 111, .05); transition: all .25s ease; cursor: pointer; }
.article-tags .tag .tag-hash { margin-right: 3px; color: var(--pink); font-weight: 700; transition: color .25s ease; }
.article-tags .tag:hover { background: linear-gradient(135deg, #f472b6, #e8107a); border-color: transparent; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(232, 16, 122, .28); }
.article-tags .tag:hover .tag-hash { color: rgba(255, 255, 255, .85); }
.article-toc { position: sticky; top: 100px; background: #fff; border-radius: 16px; padding: 24px 26px; box-shadow: 0 4px 24px rgba(10,55,111,.08); margin-bottom: 24px; }
.article-toc h3 { font-size: 1rem; font-weight: 700; color: #0a376f; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--pink); display: flex; align-items: center; gap: 8px; }
.article-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: tocItem; }
.article-toc li { counter-increment: tocItem; margin-bottom: 8px; }
.article-toc a { display: flex; gap: 8px; padding: 8px 12px; color: #3c4a5f; font-size: .88rem; line-height: 1.5; border-radius: 8px; transition: all .2s ease; text-decoration: none; border-left: 2px solid transparent; }
.article-toc a::before { content: counter(tocItem) ". "; color: var(--pink); font-weight: 700; flex-shrink: 0; }
.article-toc a:hover, .article-toc a.active { background: #fff5f8; color: var(--pink); border-left-color: var(--pink); }
.article-toc.indent-h3 li.h3 { padding-left: 16px; font-size: .82rem; }
.reading-time { display: inline-flex; align-items: center; gap: 4px; }
.copy-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: #0a2d5e; color: #fff; padding: 12px 24px; border-radius: 30px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 9999; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 1024px) { .article-toc { display: none; } }
