/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Header */
header {
    background-color: #093D54;
    padding: 10px 0;
    border-bottom: 2px solid black;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    position: relative;
    padding: 10px;
    z-index: 1;
}

header .logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)); /* 从透明到白色的渐变 */
    z-index: -1;
    border-radius: 10px; /* 可根据需要调整圆角 */
}

header .logo img {
    width: auto;
    height: 60px;
    /* 确保图片也有圆角 */
    border-radius: 10px; 
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, color 0.3s;
}

header nav ul li a:hover {
    background-color: #e8491d;
    color: #fff;
    border-radius: 5px;
}

/* 当屏幕宽度小于 768px 时的样式 */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        width: 100%;
    }

    header nav ul {
        flex-direction: row;  /* 修改为行排列 */
        flex-wrap: wrap;  /* 允许换行 */
        justify-content: space-around; /* 均匀分布 */
        gap: 10px;
        margin-top: 10px;
    }

    header nav ul li {
        flex: 1 0 auto; /* 让菜单项平均分配空间 */
        text-align: center; /* 文字居中 */
    }

    header nav ul li a {
        display: block; /* 使菜单项占满宽度 */
    }
}
/* Hero Section */
.hero-section {
    background: url('pic.png') no-repeat center center/cover;
    height: auto;
    padding: 160px 0; /* 上下添加一些内边距 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

    .hero-section .overlay {
        background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent overlay */
        padding: 40px;
        border-radius: 10px;
    }

    .hero-section h2 {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .hero-section p {
        font-size: 30px;
        margin-bottom: 30px;
    }

.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e8491d;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
}

    .cta-btn:hover {
        background: #333;
    }

/* About Section */
.about-section {
    padding: 40px 0;
    background: #f4f4f4;
    text-align: center;
}

.about-section h2 {
    margin-bottom: 20px;
}

.about-section p {
    font-size: 18px;
}

.about-images {
    display: flex;
    justify-content: center;
    gap: 30px; /* 增加图片之间的间距 */
    margin-top: 40px; /* 与上文文字的间距 */
}

.about-images img {
    width: 30%; /* 每张图片的宽度 */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px; /* 增加图片圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    transition: transform 0.3s ease; /* 过渡效果 */
}

.about-images img:hover {
    transform: translateY(-10px); /* 鼠标悬停时图片上移 */
}

/* Services Section */
.services-section {
    padding: 40px 0;
    text-align: center;
    background: #f4f4f4;
}

.services-section h2 {
    margin-bottom: 20px;
}

.services {
    display: flex;
    justify-content: space-between;
}

.service {
    width: 30%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service h3 {
    margin-bottom: 10px;
}

.service .service-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* 当鼠标悬浮在.service元素上时的动态效果 */
.service:hover {
    transform: translateY(-10px); /* 向上移动10px */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 增加阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
    background-color: #f0f0f0; /* 改变背景颜色 */
}

/* 当鼠标悬浮在.service元素上时，内部图片的动态效果 */
.service:hover .service-image {
    transform: scale(1.1); /* 图片放大10% */
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

    .products-section h2 {
        color: #333;
        margin-bottom: 40px;
        letter-spacing: 2px;
    }

.products {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    justify-content: space-between;
    gap: 20px;
}

.product {
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 16%; /* 修改此处，调整宽度 */
    text-align: center;
}

    .product h3 {
        font-size: 24px;
        color: #333;
        margin-bottom: 15px;
    }

    .product img.product-image {
        width: 100%;
        height: auto;
        max-width: 100%; /* Ensures the image doesn't exceed the container width */
        border-radius: 10px;
        margin-bottom: 15px;
        aspect-ratio: 1/1; /* Ensures the container maintains a square aspect ratio */
        object-fit: cover; /* Ensures the image covers the entire container */
    }

    .product p {
        font-size: 16px;
        color: #555;
        line-height: 1.6;
        min-height: 120px; /* Double the space for description */
    }

    .product:hover {
        transform: scale(1.05); /* 放大到原来的1.05倍 */
        background-color: #f0f0f0; /* 改变背景颜色 */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 增加阴影 */
        transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
    }

@media (max-width: 768px) {
    .products {
        flex-direction: column;
        align-items: center;
    }

    .product {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    text-align: center;
    background: url('Company.jpg') no-repeat center center/cover;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.contact-section p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
}

.contact-card {
    background-color: #fff;
    padding: 30px; /* 增加内边距 */
    border-radius: 15px; /* 增加圆角 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* 增加阴影 */
    width: 600px; /* 固定宽度 */
    text-align: center;
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.contact-card:hover {
    transform: translateY(-5px); /* 鼠标悬停时卡片上移 */
}

.contact-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.contact-card .qr-code {
    margin-top: 20px;
    width: 150px; /* 增加二维码尺寸 */
    height: 150px;
    border-radius: 10px;
}


/* Join Us Section */
.join-us-section {
    padding: 60px 0;
    background-color: #f4f4f4;
    text-align: center;

}

    .join-us-section h2 {
        font-size: 36px;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .join-us-section p {
        font-size: 18px;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .join-us-section .cta-btn {
        display: inline-block;
        padding: 15px 30px;
        background-color: #fff;
        color: #e8491d;
        text-transform: uppercase;
        font-size: 18px;
        font-weight: bold;
        border-radius: 5px;
        text-decoration: none;
        transition: background-color 0.3s, color 0.3s;
    }

        .join-us-section .cta-btn:hover {
            background-color: #333;
            color: #fff;
        }


/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

/* 当屏幕宽度小于 768px 时的样式 */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    header .container {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .about-images {
        flex-direction: column;
        gap: 20px;
    }

    .about-images img {
        width: 100%;
    }

    .products {
        flex-direction: column;
        align-items: center;
    }

    .product {
        width: 100%;
        margin-bottom: 20px;
    }

    .services {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 100%;
        margin-bottom: 20px;
    }
}
