﻿
/* 子页面标题区域 */
.subpage-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 102, 204, 0.8)), url('../Image/pic06.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 70px;
    color: white;
    text-align: center;
    position: relative;
}

.subpage-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
}

    .breadcrumb li {
        margin: 0 5px;
    }

        .breadcrumb li a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
        }

            .breadcrumb li a:hover {
                color: white;
                text-decoration: underline;
            }

        .breadcrumb li:not(:last-child)::after {
            content: ">";
            margin-left: 10px;
            color: rgba(255,255,255,0.6);
        }

/* 新闻内容区域 */
.news-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: var(--secondary);
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--accent);
        }

    .section-title p {
        color: var(--gray);
        max-width: 700px;
        margin: 15px auto 0;
        font-size: 1.1rem;
    }

/* 新闻分类导航 */
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 15px;
}

.category-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .category-btn.active,
    .category-btn:hover {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }

/* 新闻列表 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-category {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.news-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .read-more:hover {
        color: var(--secondary);
        text-decoration: underline;
    }

/* 新闻详情页 */
.news-detail {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.news-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    color: var(--gray);
    margin-bottom: 20px;
}

    .news-meta span {
        margin-right: 20px;
        display: flex;
        align-items: center;
    }

    .news-meta i {
        margin-right: 5px;
    }

.news-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-body {
    line-height: 1.8;
    text-indent: 2em;
}

    .news-body p {
        margin-bottom: 20px;
    }

    .news-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 20px 0;
    }

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 10px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .page-link:hover,
    .page-link.active {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }


.contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 1.2rem;
    min-width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .subpage-hero h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .news-detail {
        padding: 25px;
    }

    .news-title {
        font-size: 1.6rem;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}
