* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    background-color: #f7f8fa;
    color: #333;
    line-height: 1.6;
    font-size: 1.5rem;
}

/* —————— 顶部导航（已做响应式）—————— */
.header {
    /* background: #222; */
    background: #266f44;
    color: white;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    /* color: #266f44; */
}

/* 移动菜单按钮（默认隐藏） */
.mobileNav {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.mobileNav span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 移动菜单激活状态 - X形状 */
.mobileNav.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobileNav.active span:nth-child(2) {
    opacity: 0;
}

.mobileNav.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 导航菜单 (PC端默认样式) */
.nav {
    display: flex;
    align-items: center;
}

.nav a {
    color: white;
    margin-left: 28px;
    text-decoration: none;
    font-size: 16px;
}

.nav a:hover {
    /* color: #266f44; */
}

/* 横幅 */
.banner {
    /* height: 1200px; */
    height: calc(100vh - 66px);
    /* background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./images/banner6.jpg') center center no-repeat; */
    background: url('./images/banner4-1.png') top center no-repeat;
    /* background: #266f44; */
    background-size: cover;
    /* color: white; */
    color: #333;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    text-align: center;
    padding: 6.25rem 1.25rem 0;
}

.logo-conatiner {
    width: 40%;
    position: relative;
}

.com-logo {
    margin-bottom: 1.25rem;
    width: 100%;
}

.com-logo-R {
    width: 10%;
    position: absolute;
    right: -11.25rem;
    top: 0;
}

.banner h1 {
    font-size: 3.125rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.5rem;
    max-width: 700px;
}

@media (min-width: 1200px) and (max-width: 1500px) {
    .banner {
        padding-top: 5.625rem;
    }
    .banner h1 {
        margin-bottom: .3125rem;
    }
    .com-logo-R {
        right: -8.125rem;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .banner h1 {
        font-size: 2.8125rem;
        margin-bottom: .625rem;
    }
    .com-logo-R {
        right: -5.9375rem;
    }
}

/* 平板设备响应式 */
@media (max-width: 992px) {
    .banner { 
        padding-top: 6.25rem;
    }
    .logo-conatiner {
        width: 50%;
    }
    
    .com-logo-R {
        width: 12%;
        right: -7.5rem;
    }
}

/* 手机设备响应式 */
@media (max-width: 768px) {
    html {
        font-size: 62.5%;
    }
    .logo-conatiner {
        width: 60%;
    }
    
    .com-logo-R {
        width: 10%;
        right: -5rem;
    }
}

/* 小屏手机设备响应式 */
@media (max-width: 480px) {
    html {
        font-size: 71%;
    }
    .banner {
        /* background-image: url('./images/banner4.jpg'); */
    }
    .logo-conatiner {
        width: 70%;
    }
    
    .com-logo-R {
        width: 10%;
        right: -3.4375rem;
    }
}



/* 容器通用 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #222;
    position: relative;
}

.title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #266f44;
    display: block;
    margin: 12px auto;
}

/* 公司介绍 */
.about {
    background: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.about p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 20px;
}

/* 服务项目 */
.service-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-item {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.service-item h3 {
    font-size: 20px;
    margin: 18px 0;
    color: #222;
}

.service-item p {
    color: #666;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 10px;
}

/* 质量保障 */
.quality-box {
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.quality-item {
    margin-bottom: 20px;
}
.quality-item h4 {
    color: #266f44;
    font-size: 18px;
    margin-bottom: 8px;
}
.quality-item p {
    color: #555;
    line-height: 1.7;
}

/* 客户案例 */
.case-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 30px;
    margin-top: 20px;
}
.case-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.case-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.case-info {
    padding: 20px;
}
.case-info h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #222;
}
.case-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 资质证书 */
.cert-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.cert-item {
    width: 220px;
    background: white;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    display: flex;
    align-items: center;
}
.cert-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.mt-20 {
    margin-top: 20px;
}

/* —————— 联系我们（全新排版）—————— */
.contact {
    position: relative;
    padding: 90px 20px;
    color: #fff;
    text-align: center;
    background: url('https://picsum.photos/id/1078/1920/1080') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
.contact::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}
.contact-wrap {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.contact-title {
    font-size: 34px;
    margin-bottom: 50px;
    font-weight: 500;
}
.contact-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px 80px;
    margin-bottom: 40px;
}
.contact-left {
    text-align: left;
}
.contact-item {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.contact-item i {
    font-size: 24px;
    color: #266f44;
    width: 25px;
}
.contact-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wx-qrcode {
    width: 140px;
    height: 140px;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.wx-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wx-text {
    font-size: 15px;
    color: #eee;
}
.contact-phone {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
    color: #266f44;
}
.contact-note {
    font-size: 17px;
    opacity: 0.9;
    margin-top: 15px;
}

/* 底部版权 */
.footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 25px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.footer-second {
    color: #aaa;
    display: flex;
    justify-content: center;
    font-size: 14px;
}
.footer-second-icon {
    width: 20px;
    margin-right: 10px;
}

/* ————————————————————
    移动端响应式样式
———————————————————— */
@media (max-width: 992px) {
    .nav a {
        margin-left: 18px;
        font-size: 15px;
    }
}

/* 手机屏幕 */
@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobileNav {
        display: flex;
    }

    /* 导航菜单改为垂直布局，默认隐藏 */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #266f44;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* 导航展开状态 */
    .nav.active {
        max-height: 400px;
        padding: 20px 0;
    }

    .nav a {
        margin: 0;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: background-color 0.2s ease;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav a:hover {
        background-color: rgba(255,255,255,0.1);
    }

    .logo { font-size: 20px; }
    
    .banner h1 { 
        font-size: 20px; 
    }
    .banner p { 
        font-size: 16px; 
    }
    .about, .quality-box { padding: 30px 20px; }
    .title { font-size: 24px; }
    .contact-phone { font-size: 28px; }
    .contact-left { text-align: center; }
    .wx-qrcode { width: 130px; height: 130px; }
    .footer {
        gap: 10px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .banner { 
        /* height: 360px;  */
        background-position: top left;
    }
    .nav a { font-size: 15px; }
}