:root {
    --article-accent: #1a56db;
    --article-bg: #fafbfc;
    --article-text: #1a1a2e;
    --article-muted: #6b7280;
    --article-rule: #e5e7eb;
}

body.article-page {
    background: var(--article-bg);
    color: var(--article-text);
}

.article-page-wrap,
.movie-page-wrap {
    max-width: 1140px;
    margin: 52px auto 2.5rem;
    padding: 0 1rem;
}

body.article-page .post-top-nav a:hover {
    color: var(--article-accent);
}

body.article-page .post-inlinks-sidebar .inlink-cat-list li.is-current a,
body.article-page .post-inlinks-sidebar .inlink-cat-list a:hover,
body.article-page .inlink-hot-list a:hover,
body.article-page .inlink-tag-cloud .cloud-tag:hover,
body.article-page .inlink-quick a:hover,
body.article-page .inlink-pager .pager-item:hover .pager-title,
body.article-page .inlink-related-text a:hover .related-text-title {
    color: var(--article-accent);
}

body.article-page .inlink-cat-list li.is-current a,
body.article-page .inlink-cat-list a:hover {
    background: #eff6ff;
}

/* 纯文字文章头 */
.article-header {
    padding: 0 0 1.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--article-rule);
}

.article-cat-link {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--article-accent);
    text-decoration: none;
    margin-bottom: 0.85rem;
}

.article-cat-link:hover {
    text-decoration: underline;
}

.article-title {
    font-family: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
}

.article-deck {
    font-size: 1.12rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-byline {
    font-size: 0.84rem;
    color: var(--article-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.article-byline .dot {
    opacity: 0.5;
}

.article-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.article-tags-inline a {
    font-size: 0.78rem;
    color: #374151;
    text-decoration: none;
    padding: 0.18rem 0.55rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
}

.article-tags-inline a:hover {
    border-color: var(--article-accent);
    color: var(--article-accent);
}

/* 目录 */
.article-toc-box {
    background: #fff;
    border: 1px solid var(--article-rule);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.toc-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--article-muted);
    margin-bottom: 0.65rem;
}

.toc-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.3rem;
}

.toc-list a {
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.toc-list a:hover {
    color: var(--article-accent);
    text-decoration: underline;
}

.toc-level-3 {
    margin-left: 0.85rem;
    list-style-type: circle;
}

/* 正文 */
.article-prose {
    font-family: Georgia, 'Times New Roman', 'PingFang SC', 'Microsoft YaHei', serif;
    font-size: 1.125rem;
    line-height: 1.95;
    color: #1f2937;
    max-width: 100%;
}

.article-prose p {
    margin-bottom: 1.25rem;
}

.article-prose h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    color: #111827;
    scroll-margin-top: 80px;
}

.article-prose h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: #1f2937;
    scroll-margin-top: 80px;
}

.article-prose a {
    color: var(--article-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-prose a:hover {
    color: #1e40af;
}

.article-prose blockquote {
    margin: 1.75rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 3px solid #9ca3af;
    color: #4b5563;
    font-style: italic;
}

.article-prose ul,
.article-prose ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

.article-prose li {
    margin-bottom: 0.4rem;
}

.article-prose code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.88em;
    background: #f3f4f6;
    padding: 0.12rem 0.35rem;
    border-radius: 3px;
}

.article-prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1.25rem 0;
}

.article-prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 纯文字：不展示正文内图片 */
.article-prose img {
    display: none !important;
}

.article-tag-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 1.25rem 0 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--article-rule);
}

.article-tag-footer > span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--article-muted);
    margin-right: 0.25rem;
}

.article-tag-footer a {
    font-size: 0.8rem;
    color: #374151;
    text-decoration: none;
    padding: 0.2rem 0.55rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.article-tag-footer a:hover {
    border-color: var(--article-accent);
    color: var(--article-accent);
}

.article-page .download-card,
.article-download-zone .download-card {
    margin-top: 1.5rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
}

.article-download-zone {
    margin-top: 1.5rem;
    clear: both;
}

/* 下载区沿用 post.css 折叠面板样式，避免被正文纯文字规则影响 */
.article-page .article-download-zone .dl-accordion,
.article-page .article-download-zone .dl-panel-head,
.article-page .article-download-zone .dl-action-btn,
.article-page .article-download-zone .dl-download-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 文章分类列表：纯文字列表，无封面 */
.article-list-plain {
    display: grid;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.article-list-item {
    display: block;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-item:hover {
    background: #f9fafb;
}

.article-list-item .item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.article-list-item:hover .item-title {
    color: var(--article-accent);
}

.article-list-item .item-excerpt {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.55;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-item .item-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .article-page-wrap {
        margin-top: 48px;
        padding: 0 0.75rem;
    }

    .article-prose {
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .article-title {
        font-size: 1.55rem;
    }
}
