﻿/* 页面内容样式 */
.page-banner {
    height: 500px;
    background: url('http://www.cander.cn/image/website/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}


.banner-content {
    position: relative;
    z-index: 1;
    color: white;
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: left;
    animation: fadeIn 1s ease;
}

    .banner-content h1 {
        font-size: 48px;
        margin-bottom: 20px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    .banner-content p {
        font-size: 20px;
        max-width: 700px;
        line-height: 40px;
    }

/* 新闻列表部分 */
.news-section {
    padding: 80px 0;
    background: white;
}

.news-list {
    margin-bottom: 40px;
    animation: fadeIn 1s ease;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr 100px;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: all 0.3s;
}

    .news-item:hover {
        background-color: #f9f9f9;
        transform: translateX(5px);
    }

.news-date {
    background: #34A853;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(52, 168, 83, 0.3);
}

    .news-date .day {
        font-size: 24px;
        line-height: 1;
    }

    .news-date .month-year {
        font-size: 14px;
        margin-top: 5px;
    }

.news-title {
    font-size: 18px;
    font-weight: 500;
    color: #262626;
    transition: color 0.3s;
    padding-right: 15px;
}

.news-item:hover .news-title {
    color: #34A853;
}

.news-views {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #8c8c8c;
    font-size: 14px;
}

    .news-views i {
        margin-right: 5px;
        color: #34A853;
    }

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 4px;
    background: white;
    color: #262626;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

    .pagination-item:hover, .pagination-item.active {
        background: #34A853;
        color: white;
        border-color: #34A853;
    }

    .pagination-item.active {
        font-weight: bold;
    }

/* 响应式设计 */
@media (max-width: 992px) {
    .news-item {
        grid-template-columns: 100px 1fr 80px;
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .news-banner {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .news-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        text-align: center;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .news-date {
        justify-self: center;
    }

    .news-views {
        justify-self: center;
    }

    .nav-menu {
        display: none;
    }

        .nav-menu > li {
            width: auto;
            margin-left: 15px;
        }

    .logo-text {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .news-item {
        padding: 15px;
    }

    .news-date {
        width: 80px;
    }

        .news-date .day {
            font-size: 20px;
        }

        .news-date .month-year {
            font-size: 12px;
        }

    .news-title {
        font-size: 16px;
    }

    .nav-menu > li {
        margin-left: 20px;
    }

        .nav-menu > li > a {
            padding: 10px 12px;
        }

    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-text {
        margin-left: 0;
        margin-top: 5px;
    }

    .pagination-item {
        width: 35px;
        height: 35px;
        margin: 0 3px;
    }
}
