/* 学习中心文章排版 */
.lc-article {
    background: rgba(255,255,255,0.66); border: 1px solid rgba(255,255,255,0.85); border-radius: 22px;
    padding: 34px 42px 28px; box-shadow: 0 14px 44px rgba(80,70,200,0.08);
}
.lc-article-head { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 24px; }
.lc-article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.lc-article-cat { color: var(--brand); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(124,92,255,0.09); }
.lc-article-head h1 { font-size: 34px; line-height: 1.3; letter-spacing: -.5px; margin-top: 12px; }
.lc-article-summary { color: var(--text-soft); font-size: 15px; line-height: 1.75; margin-top: 10px; }
.lc-article-cover { margin: 0 0 24px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.lc-article-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }

/* 正文 */
.lc-content { color: #2b303b; font-size: 15.5px; line-height: 1.9; word-break: break-word; }
.lc-content > :first-child { margin-top: 0 !important; }
.lc-content > :last-child { margin-bottom: 0 !important; }
.lc-content p { margin: 0 0 16px; }
.lc-content h1, .lc-content h2, .lc-content h3, .lc-content h4, .lc-content h5, .lc-content h6 {
    color: var(--text); line-height: 1.4; margin: 32px 0 14px; letter-spacing: -.2px;
}
.lc-content h1 { font-size: 27px; }
.lc-content h2 { font-size: 23px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.lc-content h3 { font-size: 19px; }
.lc-content h4 { font-size: 17px; }
.lc-content h5, .lc-content h6 { font-size: 15.5px; }
.lc-content ul, .lc-content ol { margin: 0 0 16px; padding-left: 26px; }
.lc-content li { margin: 6px 0; }
.lc-content li > ul, .lc-content li > ol { margin: 6px 0; }
.lc-content blockquote {
    margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--brand);
    background: rgba(124,92,255,0.06); border-radius: 0 10px 10px 0; color: var(--text-soft);
}
.lc-content blockquote p:last-child { margin-bottom: 0; }
.lc-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.lc-content a:hover { color: var(--brand-2); }
.lc-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 18px auto; border: 1px solid var(--border); }
.lc-content figure { margin: 20px 0; }
.lc-content figcaption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.lc-content hr { border: 0; height: 1px; background: var(--border); margin: 28px 0; }
.lc-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13.5px; background: #f1f2f7; color: #4b3fa8; padding: 2px 6px; border-radius: 5px;
}
.lc-content pre {
    background: #17181d; color: #e6e8ee; padding: 16px 18px; border-radius: 12px;
    overflow: auto; margin: 18px 0; line-height: 1.65; font-size: 13.5px;
}
.lc-content pre code { background: transparent; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }
.lc-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; display: block; overflow-x: auto; }
.lc-content table th, .lc-content table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.lc-content table th { background: #f6f7fb; font-weight: 700; white-space: nowrap; }
.lc-content table tr:nth-child(even) td { background: rgba(246,247,251,0.5); }
.lc-content iframe { max-width: 100%; }

/* 栏目介绍 */
.lc-cat-intro {
    margin-top: 20px; padding: 26px 30px; border-radius: 18px;
    background: rgba(255,255,255,0.52); border: 1px solid rgba(255,255,255,0.8);
}

/* 文末 */
.lc-article-foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.lc-article-end { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .3em; margin-bottom: 18px; }
.lc-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lc-neighbor {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px;
    background: rgba(124,92,255,0.05); border: 1px solid rgba(124,92,255,0.12); transition: all .2s ease; min-width: 0;
}
.lc-neighbor:hover { background: rgba(124,92,255,0.09); border-color: rgba(124,92,255,0.3); }
.lc-neighbor span { font-size: 11.5px; color: var(--muted); }
.lc-neighbor b { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-neighbor.is-next { text-align: right; align-items: flex-end; }

@media (max-width: 700px) {
    .lc-article { padding: 24px 20px 20px; border-radius: 18px; }
    .lc-article-head h1 { font-size: 26px; }
    .lc-content { font-size: 15px; line-height: 1.85; }
    .lc-content h2 { font-size: 20px; }
    .lc-content h3 { font-size: 17.5px; }
    .lc-cat-intro { padding: 20px; }
    .lc-neighbors { grid-template-columns: 1fr; }
    .lc-neighbor.is-next { text-align: left; align-items: flex-start; }
}