/* 新闻动态页面样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--light-green) 100%);
    padding: 160px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-gray);
}

/* 新闻分类 */
.news-categories {
    background: white;
    padding: 30px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

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

.tab-btn {
    padding: 10px 24px;
    background: var(--bg-light);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,179,102,0.4);
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--light-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-placeholder {
    font-size: 80px;
    opacity: 0.8;
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-orange);
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

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

.news-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-link:hover {
    color: var(--dark-orange);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--bg-gradient);
    border-color: transparent;
    color: white;
}

.page-ellipsis {
    color: var(--text-light);
    font-size: 14px;
}

.page-btn.next {
    padding: 0 20px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

    .category-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

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

    .news-card {
        margin-bottom: 16px;
    }

    .news-image {
        height: 160px;
    }

    .news-placeholder {
        font-size: 48px;
    }

    .news-content {
        padding: 16px;
    }

    .news-date {
        font-size: 12px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    .news-content p {
        font-size: 13px;
    }

    .news-link {
        font-size: 13px;
    }

    .news-categories {
        top: 60px;
        padding: 8px 0;
    }
}