/* ============================================================
   文章详情页样式
   ============================================================ */

/* 文章详情页容器 */
.article-detail {
    padding: 140px 0 80px;
    background: var(--bg-primary);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: #999;
}

.breadcrumb .current {
    color: var(--gold);
}

/* 文章布局 */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

/* 文章主体 */
.article-main {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 60px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gold-muted);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--gold);
    margin-right: 6px;
}

.article-featured-image {
    margin-bottom: 40px;
}

.article-featured-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* 文章正文 */
.article-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.9;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
    padding-left: 8px;
}

.article-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* 文章标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.article-tag {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

.article-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* 收藏按钮 */
.article-collect {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-collect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-collect:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-collect.collected {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.btn-collect i {
    font-size: 1rem;
}

/* 上下篇 */
.article-pages {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.page-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #666;
}

.page-line span:first-child {
    flex-shrink: 0;
    color: #999;
}

.page-line a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-line a:hover {
    color: var(--gold);
}

.text-muted {
    color: #ccc !important;
}

.sidebar-empty {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
}

/* 分享区域 */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.share-label {
    color: #666;
    font-size: 0.9rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* 侧边栏 */
.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

/* 相关文章 */
.related-article {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
}

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

.related-article:hover {
    padding-left: 8px;
}

.related-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-article-content {
    flex: 1;
}

.related-article-category {
    font-size: 0.7rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.related-article-title {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.related-article:hover .related-article-title {
    color: var(--gold);
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #e0e0e0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.category-list a:hover {
    color: var(--gold);
}

.category-list a span {
    color: #999;
    font-size: 0.8rem;
}

/* CTA */
.sidebar-cta {
    text-align: center;
    background: #f5f5f5;
}

.sidebar-cta p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

/* 响应式 */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .article-sidebar .sidebar-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .article-main {
        padding: 30px 20px;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 12px;
    }
}
