/* 新闻页面样式 */
.news-filter {
    margin: 30px 0;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.category-filter, .year-filter {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

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

.filter-options {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-options li {
    margin-right: 20px;
}

.filter-options li a {
    text-decoration: none;
    color: #666;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.filter-options li.active a {
    color: #000;
    font-weight: 500;
    border-bottom: 2px solid #000;
}

.filter-options li a:hover {
    color: #000;
}

#yearSelect {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* 新闻列表样式 */
.news-list {
    margin: 30px 0;
}

.news-item {
    display: flex;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    flex-direction: row;
}

.news-item:last-child {
    border-bottom: none;
}

.news-content {
    flex: 2;
    padding-right: 30px;
}

.news-image {
    flex: 1;
    max-width: 300px;
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.news-category {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background-color: #000;
    border-radius: 3px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 24px;
    margin: 10px 0;
    line-height: 1.3;
}

.news-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #777;
}

.read-more {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.read-more:hover {
    color: #444;
}

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

/* 特色新闻样式 */
.news-item.featured {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: none;
    margin-bottom: 50px;
}

.news-item.featured .news-title {
    font-size: 28px;
}

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

.pagination a, .pagination span {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.pagination a:hover:not(.active) {
    background-color: #f5f5f5;
}

.page-next {
    display: flex;
    align-items: center;
}

.page-next i {
    margin-left: 5px;
}

.page-ellipsis {
    border: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-content {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .news-image {
        max-width: 100%;
    }

    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-filter, .year-filter {
        margin-bottom: 15px;
    }

    .filter-options {
        flex-wrap: wrap;
    }

    .filter-options li {
        margin-bottom: 10px;
    }
}

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

/* 新闻详情标题区域 */
.news-header {
    margin-bottom: 25px;
}

.news-header h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    justify-content: flex-start;
    align-items: baseline;
}

.news-category {
    display: inline-block;
    padding: 4px 10px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
}

.publish-date {
    color: #666;
    font-size: 14px;
}

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

.share-buttons span {
    margin-right: 10px;
    color: #666;
    font-size: 14px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background-color: #000;
    color: #fff;
}

/* 新闻特色图片 */
.news-featured-image {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
}

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

/* 新闻正文内容 */
.news-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.news-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 35px 0 20px;
    color: #000;
}

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

.news-content li {
    margin-bottom: 10px;
}

.news-content strong {
    font-weight: 600;
}

/* 引用样式 */
.news-quote {
    margin: 30px 0;
    padding: 25px;
    background-color: #f9f9f9;
    border-left: 4px solid #000;
    border-radius: 0 8px 8px 0;
}

.news-quote blockquote {
    margin: 0;
    font-style: italic;
    color: #333;
    line-height: 1.6;
}

.news-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 500;
    color: #666;
}

/* 标签区域 */
.news-tags {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.tag-label {
    display: inline-block;
    margin-right: 10px;
    color: #666;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 8px 8px 0;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #000;
    color: #fff;
}

/* 右侧边栏样式 - 图文并排布局 */
.related-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-item {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.news-sidebar-item:last-child {
    border-bottom: none;
}

.news-sidebar-item a {
    display: flex;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.news-sidebar-item a:hover {
    color: #000;
}

.news-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-info .sidebar-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info .news-date {
    font-size: 12px;
    color: #777;
}

.news-sidebar-item.active a {
    color: #000;
}

.news-sidebar-item.active .sidebar-text {
    font-weight: 500;
}

.news-sidebar-item.active {
    position: relative;
}

.news-sidebar-item.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #000;
}




/* 右侧边栏其他新闻样式 - 图文并排布局 */
.related-news-list2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-item2 {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.news-sidebar-item2:last-child {
    border-bottom: none;
}

.news-sidebar-item2 a {
    display: flex;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.news-sidebar-item2 a:hover {
    color: #000;
}

.news-thumbnail2 {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-info2 .sidebar-text2 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info2 .news-date2 {
    font-size: 12px;
    color: #777;
}

.news-sidebar-item.active2 a {
    color: #000;
}

.news-sidebar-item2.active .sidebar-text2 {
    font-weight: 500;
}

.news-sidebar-item2.active {
    position: relative;
}

.news-sidebar-item2.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #000;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .news-sidebar-item a {
        align-items: center;
    }
    
    .news-info {
        flex-grow: 1;
    }

    .news-sidebar-item2 a {
        align-items: center;
    }
    
    .news-info2 {
        flex-grow: 1;
    }
}

@media (max-width: 768px) {
    .news-thumbnail {
        width: 70px;
        height: 50px;
    }
    .news-thumbnail2 {
        width: 70px;
        height: 50px;
    }
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 30px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud .tag:hover {
    background-color: #EF1132;
    color: white;
}

/* 添加或补充样式以增强新闻页面侧边栏标题的交互性 */
.sidebar-title {
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #EF1132;
    transition: width 0.3s ease;
}

.sidebar-title:hover {
    color: #EF1132;
}

.sidebar-title.active {
    color: #EF1132;
    font-weight: 600;
}

.sidebar-title.active::after {
    width: 30px;
}

/* 增加顶部边距 */
.mt-30 {
    margin-top: 30px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .product-layout {
        flex-direction: column;
    }
    
    .product-main-content {
        order: 1;
    }
    
    .product-sidebar {
        order: 2;
        width: 100%;
        margin-top: 40px;
    }
    
    .news-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-buttons {
        margin-top: 10px;
    }
    
    .news-header h1 {
        font-size: 24px;
    }
    
    .news-content h2 {
        font-size: 20px;
    }
} 