/* ========================================
   新闻页面样式
   ======================================== */

/* 页面标题区 */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0066CC 0%, #0052a3 100%);
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
}

/* 新闻区域 */
.news-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

/* 主布局 */
.news-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
    align-items: stretch;
}

/* 让左右两侧高度一致 */
.featured-article {
    display: flex;
    flex-direction: column;
}

.featured-article .featured-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-article .featured-card .featured-content {
    flex: 1;
}

.news-list-wrapper {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow: hidden;
}

/* 分页 */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.news-page {
    display: none;
}

.news-page.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* 热门文章 */
.featured-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 102, 204, 0.12);
}

.featured-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--color-primary);
    opacity: 0.3;
}

.featured-content {
    padding: 28px;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.featured-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
}

.news-image {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-primary);
    opacity: 0.4;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类列表 */
.category-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.category-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: var(--color-primary);
    background: rgba(0, 102, 204, 0.06);
}

.category-tab.active {
    color: #fff;
    background: var(--color-primary);
}

.category-news {
    display: flex;
    flex-direction: column;
}

.category-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background: rgba(0, 102, 204, 0.02);
    padding-left: 8px;
}

.category-item.hidden {
    display: none;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.item-date {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 响应式 */
@media (max-width: 991px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        aspect-ratio: 16 / 8;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 90px 0 40px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 20px;
    }
    
    .featured-desc {
        font-size: 14px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 160px;
    }
    
    .category-tabs {
        overflow-x: auto;
        padding-bottom: 12px;
    }
    
    .category-tab {
        white-space: nowrap;
    }
    
    .category-item {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }
    
    .item-date {
        grid-column: 2;
    }
}
