/* ========================================
   新闻资讯页面样式 - News Page Styles
======================================== */

/* 新闻列表 */
.news-list-section {
    padding: 80px 0;
}

.news-list-card {
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.news-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-list-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.news-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-list-card:hover .news-list-img img {
    transform: scale(1.1);
}

.news-list-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.news-list-date .day {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.news-list-date .month {
    font-size: 0.9rem;
    display: block;
    margin-top: 0.3rem;
}

.news-list-body {
    padding: 2rem;
}

.news-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.news-list-meta span {
    display: flex;
    align-items: center;
}

.news-list-meta span i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.news-list-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-body h3:hover {
    color: var(--primary-color);
}

.news-list-excerpt {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.news-list-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-tag {
    padding: 0.3rem 0.8rem;
    background: var(--light-color);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.news-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: #1d4ed8;
    padding-left: 5px;
}

.news-read-more i {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(5px);
}

/* 侧边栏 */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.news-sidebar-widget {
    background: var(--white-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-sidebar-widget h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.news-sidebar-widget h5::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

/* 搜索框 */
.news-search-form {
    position: relative;
}

.news-search-form input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.news-search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.news-search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.news-search-form button:hover {
    background: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
}

/* 分类列表 */
.news-categories {
    list-style: none;
    padding: 0;
}

.news-categories li {
    margin-bottom: 0.8rem;
}

.news-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-categories a:hover,
.news-categories a.active {
    background: var(--primary-color);
    color: var(--white-color);
    padding-left: 1.5rem;
}

.news-categories .count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 热门文章 */
.news-popular-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.news-popular-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-popular-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-popular-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-popular-item:hover .news-popular-img img {
    transform: scale(1.1);
}

.news-popular-info h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-popular-item:hover .news-popular-info h6 {
    color: var(--primary-color);
}

.news-popular-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* 标签云 */
.news-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tags-cloud a {
    padding: 0.4rem 1rem;
    background: var(--light-color);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-tags-cloud a:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* 分页 */
.news-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* 文章详情页样式 */
.newsdetail-article {
    padding: 80px 0;
}

.newsdetail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.newsdetail-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.newsdetail-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--secondary-color);
}

.newsdetail-meta span {
    display: flex;
    align-items: center;
}

.newsdetail-meta span i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.newsdetail-content {
    background: var(--white-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.newsdetail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.newsdetail-content p {
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.newsdetail-content h2,
.newsdetail-content h3,
.newsdetail-content h4 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.newsdetail-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.newsdetail-tags h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* 上一篇下一篇 */
.newsdetail-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.newsdetail-nav-item {
    flex: 1;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newsdetail-nav-item:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.newsdetail-nav-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.newsdetail-nav-title {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .news-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .news-list-section,
    .newsdetail-article {
        padding: 50px 0;
    }
    
    .news-list-img {
        height: 200px;
    }
    
    .news-list-body {
        padding: 1.5rem;
    }
    
    .news-list-body h3 {
        font-size: 1.2rem;
    }
    
    .newsdetail-header h1 {
        font-size: 1.8rem;
    }
    
    .newsdetail-content {
        padding: 1.5rem;
    }
    
    .newsdetail-nav {
        flex-direction: column;
    }
}
