/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 全局样式 */
body {
    background-color: #0a4d3b; /* 基础深绿色 */
    color: #fff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
    position: relative; /* 为背景纹理定位 */
    overflow: hidden;
}

/* 各栏目差异化背景 */
.business {
    background-color: #084232; /* 略浅的深绿 */
    background-image: url("../images/pattern1.png"); /* 纹理1：低调的几何纹 */
    background-blend-mode: overlay;
    background-repeat: repeat;
    background-size: 200px;
}

.advantage {
    background-color: #0b5843; /* 稍亮的深绿 */
    background-image: url("../images/pattern2.png"); /* 纹理2：线条纹 */
    background-blend-mode: soft-light;
    background-repeat: repeat;
    background-size: 300px;
}

.cases {
    background-color: #073d2e; /* 更深的绿 */
    background-image: url("../images/pattern3.png"); /* 纹理3：点状纹 */
    background-blend-mode: multiply;
    background-repeat: repeat;
    background-size: 150px;
}

.partner {
    background-color: #0d634c; /* 偏亮的绿 */
    background-image: url("../images/pattern4.png"); /* 纹理4：植物纹 */
    background-blend-mode: overlay;
    background-repeat: repeat;
    background-size: 250px;
}

.customer {
    background-color: #063729; /* 最深的绿 */
}

.contact {
    background-color: #094938; /* 中等深绿 */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #f8f9fa;
    position: relative;
    z-index: 2; /* 标题层级高于背景纹理 */
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #8bc34a;
    margin: 10px auto;
}

/* 导航栏样式 */
.navbar {
    height: 80px;
    background-color: rgba(10, 77, 59, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* logo容器样式 - 包含图片+文字 */
.logo {
    display: flex;
    align-items: center; /* 垂直居中文字和logo */
    gap: 10px; /* logo和文字间距 */
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap; /* 防止文字换行 */
}

.logo img {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #8bc34a;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Banner样式 */
.banner {
    position: relative;
    height: calc(100vh - 80px); /* 高度=视口高度-导航栏高度 */
    margin-top: 80px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/banner-bg.jpg") center/cover no-repeat;
    opacity: 0.8;
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 在Banner样式部分添加 */
.banner-content h1 .bee-text {
    color: #FFCC01; /* BEE字符的颜色 */
}

/* 优化响应式文字大小 */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2.5rem; /* 进一步优化手机端显示 */
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 2rem; /* 极小屏幕适配 */
    }
}

.banner-content h1 {
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

/* Banner下方4张小图样式 */
.banner-small-imgs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 80%;
    max-width: 800px;
    z-index: 2;
}

.banner-small-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s, box-shadow 0.3s;
}

.banner-small-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 195, 74, 0.8);
}

/* 蜜蜂动画容器 */
.bee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none; /* 不影响鼠标交互 */
}

.bee {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url("../images/bee.png") center/cover no-repeat;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    will-change: left, top, transform;
}

/* 核心业务样式 */
.business-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.business-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.business-item:hover {
    transform: translateY(-10px);
}

.business-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.business-item p {
    font-size: 1.1rem;
    color: #f8f9fa;
}

/* 技术优势样式 */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.advantage-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.advantage-item h3 {
    font-size: 1.5rem;
    color: #8bc34a;
    margin-bottom: 15px;
}

.advantage-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 成功案例样式 */
.cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.case-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.case-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 合作伙伴样式 - 圆角效果 */
.partner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.partner-item {
    text-align: center;
}

.partner-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 16px; /* 合作伙伴图片圆角 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 增强视觉效果 */
}

.partner-link {
    color: #8bc34a;
    text-decoration: none;
    transition: color 0.3s;
}

.partner-link:hover {
    color: #fff;
}

/* 品牌客户样式 */
.customer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.customer-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

/* 联系我们样式 - 核心修改：二维码尺寸改为100×100 */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.contact-info {
    font-size: 1.2rem;
    line-height: 2;
}

.contact-info i {
    color: #8bc34a;
    margin-right: 10px;
}

.contact-qrcode img {
    width: 100px;      /* 限定宽度为100px */
    height: 100px;     /* 限定高度为100px */
    border: 3px solid #fff; /* 边框缩小为3px，适配小尺寸 */
    border-radius: 6px; /* 圆角同步缩小，保持比例 */
}

/* 页脚样式 */
.footer {
    background-color: #083d2e;
    padding: 40px 0;
    text-align: center;
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.friend-links a {
    color: #8bc34a;
    text-decoration: none;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.9rem;
    color: #ccc;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #0a4d3b;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .banner-content h1 {
        font-size: 3rem;
    }

    .banner-content p {
        font-size: 1.5rem;
    }

    .banner-small-imgs {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }

    .banner-small-img {
        height: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 移动端二维码保持100×100，无需额外调整 */
    .contact-qrcode img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .banner-small-imgs {
        grid-template-columns: 1fr;
    }
}