/* 文章详情页样式 */

.article-detail-banner {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.article-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 文章主体 */
.article-detail-main {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-detail-header {
    margin-bottom: 30px;
}

.article-detail-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    fill: #999;
}

.article-detail-featured {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 30px 0;
}

.article-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-detail-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.article-detail-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #1a1a1a;
}

.article-detail-body p {
    margin-bottom: 15px;
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-detail-body li {
    margin-bottom: 8px;
}

.article-detail-callout {
    background-color: #e3f2fd;
    border-left: 4px solid #1a73e8;
    padding: 20px 24px;
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
}

.callout-icon {
    width: 24px;
    height: 24px;
    fill: #1a73e8;
    margin-bottom: 10px;
}

.callout-title {
    font-size: 16px;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 8px;
}

.callout-text {
    font-size: 15px;
    line-height: 1.6;
    color: #0d47a1;
}

/* 相关文章 */
.related-articles {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.related-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.related-card-body {
    padding: 15px;
}

.related-card-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-date {
    font-size: 13px;
    color: #999;
}

/* 侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* 分类列表 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover,
.category-item.active {
    background-color: #e3f2fd;
    color: #1a73e8;
}

.category-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.category-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.category-name {
    flex: 1;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.category-count {
    width: 28px;
    height: 28px;
    background-color: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.category-item.active .category-count {
    background-color: #fff;
    color: #1a73e8;
}

/* 最新文章 */
.recent-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-article {
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.recent-article-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

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

.recent-article-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.recent-article-title:hover {
    color: #1a73e8;
}

.recent-article-date {
    font-size: 12px;
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-detail-container {
        grid-template-columns: 1fr;
    }

    .article-detail-main {
        padding: 24px;
    }

    .article-detail-title {
        font-size: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
