/* =================
   新闻资讯页面样式
   ================= */

/* 页面头部 */
.page-header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 60px 0 40px; 
    margin-bottom: 40px; 
    text-align: center;
}

.page-title { 
    font-size: 36px; 
    font-weight: bold; 
    margin-bottom: 10px;
}

.page-subtitle { 
    font-size: 16px; 
    opacity: 0.9;
}

/* 分类导航 */
.category-section { 
    background: white; 
    border-radius: 12px; 
    padding: 25px 30px; 
    margin-bottom: 30px; 
    box-shadow: 0 2px 12px rgba(0,0,0,.08); 
}

.category-title { 
    font-size: 16px; 
    font-weight: bold; 
    color: #333; 
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
}

.category-tag { 
    padding: 8px 20px; 
    border: 2px solid #e8e8e8; 
    border-radius: 20px; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-size: 14px;
    background: white;
    color: #666;
}

.category-tag:hover { 
    border-color: #4E8EF7; 
    color: #4E8EF7; 
    transform: translateY(-2px);
}

.category-tag.active { 
    background: #4E8EF7; 
    color: white; 
    border-color: #4E8EF7; 
}

/* 文章网格 */
.article-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 25px; 
    margin-bottom: 40px;
}

/* 文章卡片 */
.article-card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 2px 12px rgba(0,0,0,.08); 
    transition: all 0.3s; 
    cursor: pointer;
    border: 2px solid transparent;
}

.article-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 8px 30px rgba(78,142,247,.2); 
    border-color: #4E8EF7;
}

.article-image { 
    width: 100%; 
    height: 200px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.3);
    overflow: hidden;
}

.article-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.article-content { 
    padding: 20px; 
}

.article-category { 
    display: inline-block;
    padding: 4px 12px; 
    background: #f0f5ff; 
    color: #4E8EF7; 
    border-radius: 12px; 
    font-size: 12px; 
    margin-bottom: 10px;
}

.article-title { 
    font-size: 18px; 
    font-weight: bold; 
    color: #333; 
    margin-bottom: 12px; 
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary { 
    font-size: 14px; 
    color: #666; 
    line-height: 1.6; 
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 13px; 
    color: #999; 
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.article-time { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.article-views { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

/* 分页 */
.pagination-wrapper { 
    text-align: center; 
    padding: 40px 0;
}

.pagination-wrapper ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: inline-flex; 
    gap: 8px; 
}

.pagination-wrapper li { 
    list-style: none; 
}

.pagination-wrapper a, 
.pagination-wrapper span { 
    display: block;
    padding: 8px 15px; 
    border: 1px solid #e8e8e8; 
    border-radius: 6px; 
    color: #666; 
    text-decoration: none; 
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.pagination-wrapper a:hover { 
    border-color: #4E8EF7; 
    color: #4E8EF7; 
    background: #f0f5ff;
}

.pagination-wrapper .active, 
.pagination-wrapper .current { 
    background: #909399; 
    color: white; 
    border-color: #909399; 
}

/* 空状态 */
.empty-state { 
    text-align: center; 
    padding: 80px 20px; 
    background: white; 
    border-radius: 12px; 
}

.empty-icon { 
    font-size: 64px; 
    color: #ddd; 
    margin-bottom: 20px; 
}

.empty-text { 
    font-size: 16px; 
    color: #999; 
}

/* =================
   新闻资讯响应式布局
   ================= */

/* 平板端适配 */
@media (max-width: 992px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .category-section {
        padding: 20px;
    }
    
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 15px 25px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    /* 分类导航 */
    .category-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .category-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .category-tags {
        gap: 8px;
    }
    
    .category-tag {
        padding: 6px 14px;
        font-size: 13px;
        border-radius: 16px;
    }
    
    /* 文章网格 */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    /* 文章卡片 */
    .article-card {
        border-radius: 10px;
    }
    
    .article-image {
        height: 160px;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .article-category {
        padding: 3px 10px;
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .article-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .article-summary {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .article-meta {
        font-size: 12px;
        padding-top: 12px;
    }
    
    /* 分页 */
    .pagination-wrapper {
        padding: 25px 0;
    }
    
    .pagination-wrapper ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .pagination-wrapper a,
    .pagination-wrapper span {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 36px;
    }
    
    /* 空状态 */
    .empty-state {
        padding: 50px 15px;
        border-radius: 10px;
    }
    
    .empty-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .empty-text {
        font-size: 14px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .article-image {
        height: 140px;
    }
    
    .article-title {
        font-size: 15px;
    }
}
