/* ===== news.css - 新闻列表页专用样式 ===== */

/* ===== 新闻头部 ===== */
.news-header {
    padding: 40px 0 20px;
    text-align: center;
    background: #ffffff;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.2;
}

.news-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== 主内容区域 ===== */
.news-main {
    padding: 30px 0 60px;
    background: #ffffff;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* ===== 左侧新闻列表 ===== */
.news-left {
    width: 100%;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    display: flex;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-content {
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.news-item-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-item-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.news-item-title a:hover {
    color: var(--primary);
}

.news-item-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

.read-more i {
    font-size: 0.9rem;
}

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 50px 0 20px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    background: white;
}

.page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== 右侧边栏 ===== */
.news-right {
    width: 100%;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* 热点文章 */
.hot-articles {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.hot-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-article-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.3s;
}

.hot-article-item:hover {
    background: white;
}

.hot-article-number {
    width: 30px;
    height: 30px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hot-article-info {
    flex: 1;
}

.hot-article-info h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.3s;
}

.hot-article-item:hover .hot-article-info h4 {
    color: var(--primary);
}

.hot-article-date {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* 热门标签 */
.hot-tags {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 25px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: white;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 30px;
    transition: all 0.3s;
    border: 1px solid #e5e5e5;
}

.tag-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-right {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 30px 0 15px;
    }

    .news-title {
        font-size: 2rem;
    }

    .news-item {
        flex-direction: column;
        gap: 15px;
    }

    .news-item-image {
        width: 100%;
        height: 200px;
    }

    .news-item-title {
        font-size: 1.2rem;
    }

    .pagination {
        gap: 10px;
    }

    .page-btn, .page-num {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 1.8rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 5px;
    }

    .hot-articles, .hot-tags {
        padding: 20px;
    }
}
.tag-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}