:root {
    --primary-color: #40e0b5;
    --secondary-color: #f5f7fa;
    --text-color: #333;
}

body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    box-sizing: border-box;
}

.header {
    /* background: rgba(255, 255, 255, 0.98); */
    background: #f8fcff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 32px;
    width: auto;
    max-width: 100%;
}

.logo span {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* 汉堡菜单基础样式 */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.lbt {

    text-align: center;
    margin: 0;

}


.hero {
    width: 100%;
    overflow: hidden;

}

.hero img {
    height: auto;

    /*display: block;*/

}

.intro {
    padding: 80px 0;
    text-align: center;
    margin: 0;
    background: #fff;
}

.intro h2 {
    font-size: 32px;
    font-weight: 500;
    color: #333;
    margin: 0 0 40px 0;
    line-height: 1.4;
}

.intro-text {
    font-size: 16px;
    line-height: 2.7;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #666;
    text-align: left;
    letter-spacing: 0.5px;
}

.services {
    width: 100%;
    margin: 0;
    padding-top: 60px;
    background: #fff;
}

.service-item {
    width: 100%;
    padding: 40px 0;
    margin: 0;
    border-radius: 0;
}

.service-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.service-text {
    flex: 1;
    max-width: 560px;
}

.service-text p {
    font-size: 16px;
    line-height: 2.7;
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
    color: #666;
    text-align: left;
    letter-spacing: 0.5px;
}

.service-image {
    flex: 1;
    max-width: 560px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-image {
    padding: 4px;
}

.service-item h3 {
    position: relative;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    padding-left: 16px;
    margin: 0 0 24px 0;
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 20px 0 36px;
}

.service-item h3::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: var(--primary-color);
}

.backcolor {
    background: #f8fcff;
}

.service-item:nth-child(even) .service-content {
    flex-direction: row;
}

.footer {
    background: #2d3436;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info {
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    /* line-height: 2; */
}

.contact-info p {
    margin: 0;
    display: inline-block;
    padding: 0 15px;
    position: relative;
}

.contact-info p:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -3px;
    color: rgba(255, 255, 255, 0.3);
}

.copyright {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.qr-code {
    margin-top: 75px;
    margin-bottom: 87px;
}

.qr-code-image {
    width: 150px;
    height: 150px;
}

.intro-image {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
}

.contact-form {
    padding: 80px 0;
    background: #fff;
    background-image: url(./bg.png);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.section-header .subtitle {
    font-size: 16px;
    color: #666;
    position: relative;
    padding-left: 16px;
}

.section-header .subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: #ddd;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.form {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: center;
}

.form-group {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.form input,
.form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    height: 44px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form input:focus,
.form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 224, 181, 0.1);
}

.form input:hover,
.form select:hover {
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 28px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 44px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(64, 224, 181, 0.2);
}

.submit-btn:hover {
    background: #35c49f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(64, 224, 181, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 加载状态 */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.lbt img {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .form {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        width: 100%;
    }

    .submit-btn {
        width: 100%;
    }
}

/* 移动设备适配 */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* 与 header 高度一致 */
    }

    .nav-container {
        max-width: 100%; /* 确保全屏宽度 */
        padding: 0 15px; /* 调整内边距 */
        justify-content: space-between; /* 保持两端对齐 */
    }

    .logo img {
        width: 120px; /* 调整移动端 logo 大小 */
    }

    .hamburger {
        display: block;
        /*cursor: pointer;*/
        /*padding: 10px;*/
    }

    /* 汉堡图标的三条线 */
    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: auto !important;
        right: 0;
        background: white;
        width: 30%;
        height: 50%;
        max-width: 300px;
        z-index: 1001; /* 高于 header 的 z-index */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex; /* 当激活时显示菜单 */
        flex-direction: column; /* 确保垂直排列 */
    }

    .nav-menu li a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .hero img {
        width: 100%; /* 确保 banner 图片自适应屏幕宽度 */
        height: auto;
    }

    .footer {
        background: #2d3436;
        color: white;
        padding: 40px 0;
        text-align: center;
        margin-top: 40px; /* 增加底部间距 */
    }

    .footer .container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .footer .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .contact-info {
        text-align: left;
    }

    .copyright {
        text-align: left;
    }

    .service-content {
        flex-direction: column;
    }

    .service-text {
        order: 2; /* 文字在下 */
    }

    .service-image {
        order: 1; /* 图片在上 */
        margin-bottom: 20px; /* 增加图片和文字的间距 */
    }
}


