/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333; /* 整体字体颜色使用深灰色，与浅蓝色背景对比 */
    background-color: #e6f2ff; /* 背景色改为浅蓝色 */
}

a {
    text-decoration: none;
    color: #0066cc;
}

.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);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    color: #0066cc;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 60px;
}

nav ul li a {
    color: #333; /* 导航链接字体颜色为深灰色 */
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0066cc;
}

/* 轮播图 */
.banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #333; /* 轮播图文字颜色为深灰色 */
    text-align: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(230, 242, 255, 0.8); /* 半透明浅蓝色背景 */
}

.banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.banner h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0055aa;
    color: #fff;
}

/* 服务介绍 */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #333; /* 标题字体颜色为深灰色 */
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 50px;
    color: #0066cc;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333; /* 服务卡片标题字体颜色为深灰色 */
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: #e6f2ff; /* 关于我们部分背景色为浅蓝色 */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333; /* 关于我们标题字体颜色为深灰色 */
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 案例展示 */
.portfolio {
    padding: 80px 0;
    background-color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(230, 242, 255, 0.8); /* 案例展示覆盖层半透明浅蓝色背景 */
    color: #333; /* 案例展示覆盖层文字颜色为深灰色 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: #e6f2ff; /* 联系我们部分背景色为浅蓝色 */
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #bbb; /* 联系我们信息标题字体颜色为深灰色 */
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 10px;
    color: #0066cc;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #bbb; /* 页脚整体文字颜色为浅灰色 */
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
}

.footer-col p {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-col a {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0066cc;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #0066cc;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
   .about-content,
   .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
   .header-container {
        flex-direction: column;
        padding: 15px 0;
    }

   .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px 10px;
    }

   .banner h2 {
        font-size: 30px;
    }

   .banner p {
        font-size: 16px;
    }

   .section-title h2 {
        font-size: 30px;
    }

   .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
   .banner h2 {
        font-size: 26px;
    }

   .btn {
        padding: 10px 20px;
    }

   .services-grid {
        grid-template-columns: 1fr;
    }
}