/* News Detail Page Styles */

.breadcrumb-section {
    margin-top: 74px;
}

.news-detail-section {
    padding: 2rem 1.5rem 4rem;
}

.news-detail-container {
    margin: 0 auto;
}

.news-detail-flex-container {
    display: flex;
    gap: 2rem;  /* 左右栏间距 */
}

.news-detail-main {
    flex: 1;
    min-width: 0;  /* 防止flex子项溢出 */
}

.news-detail-sidebar {
    width: 400px;
    flex-shrink: 0;  /* 防止宽度被压缩 */
}

.news-detail-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

.news-detail-date {
    margin-right: 2rem;
}

.news-detail-content {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.news-detail-nav {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.news-detail-related {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
}

.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-news-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    transition: all 0.3s;
    color: #131313;
}

.related-news-item .icon {
    color: #0099ff;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.related-news-item:hover {
    background-color: #f0f7ff;
    color: #0099ff;
    transform: translateX(3px);
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
    .news-detail-flex-container {
        flex-direction: column;
    }

    .news-detail-sidebar {
        width: 100%;
    }

    .related-news-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .news-detail-meta {
        flex-direction: column;
    }
    
    .news-detail-date {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .related-news-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .news-detail-title {
        font-size: 1.25rem;
    }
    
    .news-detail-content {
        font-size: 0.95rem;
    }
}
