/* 页面标题样式 */
.page-header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 新闻分类样式 */
.news-categories {
    padding: 2rem 5%;
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.8rem 1.5rem;
    border: none;
    background: white;
    color: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-tab:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
}

/* 新闻列表样式 */
.news-list {
    padding: 2rem 5%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(var(--primary-color-rgb), 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.4;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-btn,
.page-number {
    padding: 0.8rem 1.2rem;
    border: none;
    background: white;
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:not(:disabled):hover,
.page-number:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
}

.page-dots {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

/* 新闻详情页样式 */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 5%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-content {
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
}

.article-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: #f5f5f5;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.article-share {
    text-align: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.share-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/share-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* 相关推荐样式 */
.related-news {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

.related-news h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-numbers {
        display: none;
    }

    .pagination {
        justify-content: space-between;
    }

    .article-content h2 {
        font-size: 1.3rem;
    }
} 