/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

:root {
    --life-blue: #007BFF; /* 生命蓝主色调 */
}

/* 导航部分 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--life-blue);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--life-blue);
}

.contact-btn {
    background-color: var(--life-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact-btn:hover {
    opacity: 0.9;
}

/* Banner部分 */
.banner {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.slider {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 主营业务部分 */
.services {
    padding: 4rem 2rem;
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    color: var(--life-blue);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.service-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-item {
    width: 300px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: var(--life-blue);
    margin-bottom: 0.5rem;
}

/* 关于我们部分 */
.about {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    color: var(--life-blue);
    margin-bottom: 1rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.more-btn {
    background-color: var(--life-blue);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.more-btn:hover {
    opacity: 0.9;
}

/* 新闻资讯部分 */
.news {
    padding: 4rem 2rem;
    text-align: center;
}

.news h2 {
    font-size: 2rem;
    color: var(--life-blue);
    margin-bottom: 0.5rem;
}

.news-items {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .news-item {
        flex: 0 0 calc(33.333% - 2rem);
    }
}

.news-item {
    width: 300px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-item h3 {
    color: var(--life-blue);
    margin-bottom: 0.5rem;
}

/* 联系我们部分 */
.contact { 
    padding: 4rem 2rem;
    text-align: center;
    background-image: url('contact-bg.jpg');
    background-size: cover;
    background-position: center;
}

.contact h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.contact .subtitle {
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-submodule {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.contact-item {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 123, 255, 0.7);
}

.contact-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

/* 版权部分 */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--life-blue);
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .service-items, .news-items, .contact-items {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin: 1rem 0;
    }

    nav ul li {
        margin: 0 1rem;
    }

    .banner {
        height: 400px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .banner {
        height: 300px;
    }

    .service-item, .news-item, .contact-item {
        width: 100%;
        max-width: 350px;
    }

    .about p {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 200px;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .about, .services, .news, .contact {
        padding: 2rem 1rem;
    }
}