/**
 * 详情页专用样式 — 中国红极简风格
 */

/* 面包屑 */
.breadcrumb {
    padding: 16px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--fg);
}

.breadcrumb span {
    margin: 0 6px;
    color: var(--muted);
}

/* 文章布局 */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 24px 0 64px;
}

/* 文章正文区 */
.article {
    padding-bottom: 0;
}

/* 文章头部 */
.article-header {
    margin-bottom: 32px;
}

.article-tag {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.article-header h1 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    align-items: center;
}

.article-meta .author {
    color: var(--fg);
    font-weight: 500;
}

/* 文章正文 */
.article-body {
    font-size: 15px;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 12px;
}

.article-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 8px;
}

.article-body p {
    margin: 0 0 14px;
    color: #333;
}

.article-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 6px;
    color: #333;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-body table th,
.article-body table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.article-body table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 13px;
}

.article-body .tip {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body .tip strong {
    color: var(--accent);
}

/* 上一篇/下一篇 */
.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.prev-next a,
.prev-next span {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.12s;
}

.prev-next a:hover {
    border-color: var(--fg);
}

.prev-next .disabled {
    opacity: 0.4;
    cursor: default;
}

.prev-next .pn-label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
}

.prev-next .pn-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.prev-next .next {
    text-align: right;
}

/* 相关文章 */
.related {
    margin-top: 40px;
}

.related h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fg);
}

.related .rel-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.related .rel-item:hover {
    background: var(--bg);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--radius);
}

.related .rel-title {
    font-size: 14px;
    line-height: 1.4;
}

.related .rel-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* 侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .article-layout {
        padding: 16px 0 40px;
    }
    .article-header h1 {
        font-size: clamp(22px, 4vw, 28px);
    }
    .article-meta {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 12px;
    }
    .prev-next {
        grid-template-columns: 1fr;
    }
    .prev-next .next {
        text-align: left;
    }
    .article-body {
        font-size: 14px;
    }
    .article-body h2 {
        font-size: 19px;
    }
    .article-body table {
        font-size: 13px;
    }
    .article-body table th,
    .article-body table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .article-body {
        font-size: 14px;
    }
    .article-body h2 {
        font-size: 18px;
    }
    .article-body h3 {
        font-size: 15px;
    }
    .prev-next a,
    .prev-next span {
        padding: 12px 14px;
    }
}