/* 新闻中心页面样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    margin-top: 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* 新闻分类 */
.news-categories {
    padding: 40px 0;
    background: var(--white);
    position: sticky;
    top: 60px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* 头条新闻 */
.featured-news {
    padding: 60px 0;
    background: var(--light-gray);
}

.featured-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-item:hover .featured-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    z-index: 2;
}

.news-badge.featured {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.news-badge.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.news-badge.new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.featured-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.news-category {
    padding: 6px 15px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    border-radius: 15px;
}

.news-category.industry {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.news-category.product {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.news-category.event {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.featured-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.4;
}

.featured-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.btn-read-more {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    align-self: flex-start;
}

.btn-read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 新闻列表 */
.news-list {
    padding: 60px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
}

.news-item.hidden {
    display: none;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-item .news-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.news-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 10px 18px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 1024px) {
    .featured-item {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 300px;
    }

    .featured-content {
        padding: 40px 30px;
    }

    .featured-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-header p {
        font-size: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .category-tabs {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .featured-content {
        padding: 30px 20px;
    }

    .featured-content h2 {
        font-size: 24px;
    }

    .featured-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .news-item .news-image {
        height: 180px;
    }

    .news-content {
        padding: 20px;
    }

    .news-item h3 {
        font-size: 18px;
    }

    .featured-image {
        min-height: 250px;
    }

    .pagination {
        gap: 5px;
    }

    .page-btn {
        padding: 8px 14px;
        font-size: 14px;
    }
}
