/**
 * 新闻页面样式
 */

/* 新闻页面通用样式 */
.news-category {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.latest-updates-container {
    max-width: 1140px;
    margin: 0 auto;
}

.latest-updates-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #5c8dff;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.latest-updates-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 700;
}

.latest-updates-subtitle {
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* 新闻筛选 */
.news-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-label {
    margin-right: 15px;
    font-weight: 600;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.filter-option:hover {
    background-color: #f0f4ff;
    color: #5c8dff;
}

.filter-option.active {
    background-color: #5c8dff;
    color: white;
    border-color: #5c8dff;
}

/* 新闻列表 */
.latest-updates-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.latest-update-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 25px;
}

.latest-update-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.latest-update-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.latest-update-category {
    display: inline-block;
    padding: 4px 10px;
    background-color: #eaf1ff;
    color: #5c8dff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
}

.latest-update-date {
    font-size: 14px;
    color: #6c757d;
}

.latest-update-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.latest-update-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-update-title a:hover {
    color: #5c8dff;
}

.latest-update-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #5c8dff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #4070dd;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination .page-numbers:hover {
    background-color: #f0f4ff;
    color: #5c8dff;
}

.pagination .page-numbers.current {
    background-color: #5c8dff;
    color: white;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    background-color: #fff;
    border: 1px solid #e9ecef;
}

/* 单个新闻详情页样式 */
.news-article {
    background-color: #fff;
}

.news-hero {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 50px;
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.post-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #eaf1ff;
    color: #5c8dff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
}

.post-date {
    font-size: 14px;
    color: #6c757d;
}

.post-title {
    font-size: 36px;
    color: #2d3748;
    line-height: 1.3;
    margin-bottom: 0;
}

.post-content-section {
    padding: 0 0 60px;
}

.post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
}

.post-main {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 30px;
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2d3748;
}

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

.post-content ul, 
.post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content blockquote {
    border-left: 4px solid #5c8dff;
    padding: 15px 20px;
    margin: 30px 0;
    background-color: #f8f9fa;
    font-style: italic;
}

.post-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 30px;
    margin-top: 30px;
}

.post-tags {
    margin-bottom: 20px;
}

.tags-title {
    font-weight: 600;
    color: #2d3748;
    margin-right: 10px;
}

.post-share {
    display: flex;
    align-items: center;
}

.share-title {
    font-weight: 600;
    color: #2d3748;
    margin-right: 10px;
}

.share-buttons {
    display: flex;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.linkedin {
    background-color: #0077b5;
}

.post-navigation {
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
    padding-top: 30px;
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
}

.post-nav-link {
    flex: 0 0 48%;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.post-nav-link:hover {
    background-color: #eaf1ff;
}

.post-nav-link.prev {
    text-align: left;
}

.post-nav-link.next {
    text-align: right;
    justify-content: flex-end;
}

.nav-arrow {
    margin: 0 10px;
    color: #5c8dff;
}

.nav-title {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 侧边栏样式 */
.post-sidebar {
    align-self: start;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaf1ff;
    color: #2d3748;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-section li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-section a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.sidebar-section a:hover {
    color: #5c8dff;
}

.categories-list .cat-item {
    display: flex;
    justify-content: space-between;
}

.categories-list .cat-item a {
    flex: 1;
}

.categories-list .count {
    background-color: #eaf1ff;
    color: #5c8dff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* 相关新闻 */
.related-news-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.related-news-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;
    color: #2d3748;
}

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

.related-news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-news-image {
    height: 200px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.05);
}

.related-news-content {
    padding: 20px;
}

.related-news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.related-news-date {
    font-size: 14px;
    color: #6c757d;
}

.related-news-title {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.related-news-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-title a:hover {
    color: #5c8dff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-updates-title {
        font-size: 28px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .news-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 10px;
    }
    
    .related-news-grid {
        grid-template-columns: 1fr;
    }
    
    .post-nav-links {
        flex-direction: column;
    }
    
    .post-nav-link {
        flex: 1;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .news-hero {
        padding: 40px 0;
    }
    
    .latest-updates-title,
    .post-title {
        font-size: 24px;
    }
} 