/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

a:hover {
    color: #1e88e5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}



/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
}

@media (max-width: 576px) {
    .logo img {
        width: 90%;
        margin: 0 auto;
        height: auto;
        display: block;
    }
}

.logo h1 {
    margin-left: 10px;
    font-size: 20px;
    color: #1e88e5;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    font-weight: 500;
    padding: 5px 0;
}

nav ul li a:hover {
    color: #1e88e5;
}

nav ul li a.active {
    color: #1e88e5;
    border-bottom: 2px solid #1e88e5;
}

.contact-info {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.contact-info i {
    margin-right: 5px;
    color: #1e88e5;
}


/* 推荐新闻样式 */
.featured-news {
    background: #fff;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 1s;
}

.featured-content {
    display: flex;
    flex-wrap: wrap;
}

.featured-image {
    flex: 1;
    min-width: 300px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-text {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.featured-text h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1e88e5;
}

.featured-text p {
    margin-bottom: 20px;
    color: #666;
}

.news-meta {
    display: flex;
    color: #999;
    font-size: 14px;
}

.news-meta span {
    margin-right: 20px;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: #1e88e5;
    color: #fff;
    border-radius: 4px;
}

.read-more:hover {
    background: #1565c0;
    color: #fff;
}

/* 新闻列表样式 */
.news-list {
    margin: 20px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e88e5;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    animation: fadeInUp 0.5s;
    animation-fill-mode: both;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-item:nth-child(2) {
    animation-delay: 0.2s;
}

.news-item:nth-child(3) {
    animation-delay: 0.3s;
}

.news-item:nth-child(4) {
    animation-delay: 0.4s;
}

.news-item:nth-child(5) {
    animation-delay: 0.5s;
}

.news-item:nth-child(6) {
    animation-delay: 0.6s;
}

.news-item:nth-child(7) {
    animation-delay: 0.7s;
}

.news-item:nth-child(8) {
    animation-delay: 0.8s;
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-item-content {
    padding: 15px;
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    height: 60px;
    overflow: hidden;
}

.news-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    height: 90px;
    overflow: hidden;
}

.news-item .news-meta {
    justify-content: space-between;
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0 15px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e88e5;
}

.footer-section p,
.footer-section a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: #1e88e5;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 14px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        margin-bottom: 15px;
    }

    .banner-slide img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    nav ul li {
        margin-left: 15px;
    }

    .banner-slide img {
        height: 250px;
    }

    .featured-content {
        flex-direction: column;
    }

    .featured-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .banner-slide img {
        height: 200px;
    }

    .banner-control {
        width: 30px;
        height: 40px;
        font-size: 16px;
    }

    .featured-text {
        padding: 20px;
    }
}