/* 原有样式保持不变 */
.lBroadsideRight_div0 {
    display: none;
    left: calc(50% - 475px);
    position: fixed;
    z-index: 99;
    top: 100px;
    width: 990px !important;
}

.lBroadsideRight_div0 form.layui-form {
    margin-left: 0 !important;
}

.lBroadsideRight_div0 .Form .FormLeft {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .contact-info {
        text-align: center;
        padding: 10px;
    }

    .contact-info p {
        margin: 5px 0;
    }
}

.BroadsideRight ul li:last-of-type {
    border: none !important;
}

.lBroadsideRight_div0 .Form {
    padding: 50px !important;
    height: auto;
}

.BroadsideRight .BroadsideRight_div {
    position: absolute;
    right: 100px;
    top: -335px;
    background-color: #fff;
    width: 170px;
    height: auto;
    text-align: center;
}

.BroadsideRight .BroadsideRight_div p {
    font-size: 14px;
    font-weight: 400;
    color: #1c1c1c;
    line-height: 20px;
    margin: 0px 0;
}

.BroadsideRight .BroadsideRight_div img {
    margin: 10px auto;
    width: 150px;
    height: 150px;
}

.form.layui-form {
    width: 100%;
    margin-left: 0 !important;
}

.Form .FormLeft {
    width: 890px;
    height: 680px;
    margin: 0 110px 0 0;
    background: #ffffff;
}

.Form .FormLeft ul {
    padding: 60px 73px 40px 80px;
    margin: 0;
}

.Form .FormLeft ul li {
    margin-bottom: 20px;
    list-style: none !important;
}

.Form .FormLeft ul li input {
    width: 717px;
    height: 75px;
    background: #fafafa;
    font-size: 18px;
    font-weight: 600;
    line-height: 100px;
    padding-left: 20px;
    border: none;
}

.Form .FormLeft button {
    width: 239px;
    height: 60px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 20px;
    background: #4d4d4d;
    margin-left: 80px;
}

.Form .FormLeft button:last-of-type {
    color: #1c1c1c;
    background: #fff;
    margin-left: 41px;
}

.Form .FormLeft button {
    width: 239px;
    height: 60px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 20px;
    background: #4d4d4d;
    margin-left: 80px;
}

.button {
    border: none;
}

.layui-form-label {
    font-size: 18px;
    color: #757575;
    font-weight: 600;
    width: 106px;
    line-height: 60px;
}

.layui-input-block {
    margin-left: 144px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: Helvetica Neue, Helvetica, PingFang SC, serif !important;*/
}

/* 侧边栏导航优化 */
.BroadsideRight {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    transition: all 0.3s ease;
}

.BroadsideRight ul li {
    width: 80px;
    height: 80px;
    background: #1c1c1ccf;
    margin: 5px 0;
    text-align: center;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: rgba(255, 255, 255, 0) 1px solid !important;
    list-style: none !important;
}

.BroadsideRight ul li:hover {
    background: #333;
    transform: translateX(-5px);
}

.BroadsideRight ul li img {
    width: 35px;
    height: 30px;
    margin-top: 26px;
    transition: all 0.3s ease;
}

.BroadsideRight ul li:hover img {
    transform: scale(1.1);
}

.BroadsideRight ul li:last-of-type {
    border: none;
}

/* 侧边内容优化 */
.BroadsideRight_div {
    position: absolute;
    right: 80px;
    top: 0;
    background-color: #fff;
    width: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.BroadsideRight_div.active {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

.off_Right_div {
    width: auto !important;
    padding: 15px;
    flex-direction: column;
}

.off_Right_div_info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    flex-wrap: nowrap;
}

.BroadsideRight_div h4 {
    font-size: 16px;
    color: #1c1c1c;
    font-weight: 600;
    margin: 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.BroadsideRight_div img {
    margin: 10px auto;
    width: 180px;
    height: 180px;
    border-radius: 5px;
}

/* 联系表单优化 */
.lBroadsideRight_div0 {
    display: none;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    z-index: 9999;
    top: 50px;
    width: 90% !important;
    max-width: 1200px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.Form {
    position: relative;
}

.Form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/image/about.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.FormLeft {
    position: relative;
    z-index: 1;
}

.FormLeft ul li input {
    border-radius: 5px;
    transition: all 0.3s ease;
}

.FormLeft ul li input:focus {
    border-color: #4d4d4d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 77, 77, 0.1);
}

.FormLeft button {
    width: 180px;
    height: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 20px;
    background: #4d4d4d;
    margin-left: 0;
    margin-right: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.FormLeft button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.FormLeft button:last-of-type {
    color: #1c1c1c;
    background: #fff;
    border: 1px solid #ddd;
    margin-left: 0;
}

.FormLeft button:last-of-type:hover {
    background: #f5f5f5;
}

.layui-input-block {
    margin-left: 140px;
}

/* 服务类型复选框优化 */
.service-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.close-btn::before,
.close-btn::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: #333;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

/* 移动端收起/展开按钮样式 */
.toggle-sidebar {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #1c1c1ccf;
    border-radius: 50%;
    z-index: 999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.toggle-sidebar img {
    width: 30px;
    height: 30px;
}

.toggle-sidebar:hover {
    background: #333;
    transform: scale(1.1);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .lBroadsideRight_div0 {
        top: 20px;
        width: 95% !important;
    }

    .BroadsideRight {
        top: 40%;
    }

    .BroadsideRight ul li {
        width: 60px;
        height: 60px;
    }

    .BroadsideRight ul li img {
        width: 30px;
        height: 25px;
        margin-top: 20px;
    }

    .BroadsideRight_div {
        right: 60px;
        width: 180px;
    }

    .FormLeft ul {
        padding: 20px;
    }

    .layui-form-label {
        width: 80px;
        line-height: 50px;
    }

    .layui-input-block {
        margin-left: 100px;
    }

    .FormLeft ul li input {
        height: 50px;
        line-height: 50px;
    }

    .checkbox-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* 移动端专属样式（屏幕宽度 ≤ 768px） */
@media (max-width: 768px) {
    /* 1. 侧边导航优化 */
    .BroadsideRight {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* 收起状态 */
    .BroadsideRight.collapsed {
        transform: translateX(calc(100% - 60px)); /* 只露出一个按钮的宽度 */
        opacity: 0.9;
    }

    .BroadsideRight ul {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .BroadsideRight ul li {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0;
    }

    .BroadsideRight ul li:hover {
        transform: translateX(0) scale(1.1);
    }

    /* 2. 微信二维码弹窗优化 */
    .BroadsideRight_div {
        right: 0;
        top: auto;
        bottom: 90px;
        width: 220px;
        padding: 15px;
    }

    .BroadsideRight_div.active {
        right: 85px;
    }

    .BroadsideRight_div img {
        width: 180px;
        height: 180px;
    }

    .BroadsideRight_div p {
        font-size: 16px;
        margin: 8px 0;
    }

    /* 3. 联系表单优化 */
    .lBroadsideRight_div0 {
        top: 10px;
        bottom: 10px;
        width: 95% !important;
        max-width: 500px;
        overflow-y: auto;
    }

    .Form .FormLeft {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .Form .FormLeft ul {
        padding: 30px 20px;
    }

    .Form .FormLeft ul li {
        margin-bottom: 15px;
    }

    .Form .FormLeft ul li input {
        width: 100%;
        height: 60px;
        line-height: 60px;
        font-size: 16px;
        padding-left: 15px;
    }

    /* 4. 服务类型复选框适配 */
    .layui-form-label {
        text-align: left;
        width: 100%;
        line-height: 30px;
        margin-bottom: 10px;
    }

    .layui-input-block {
        margin-left: 0;
        padding-left: 5px;
    }

    .service-checkboxes {
        gap: 10px;
    }

    .checkbox-row {
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 5px;
    }

    /* 5. 按钮样式适配 */
    .Form .FormLeft div {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .Form .FormLeft button {
        width: 45%;
        height: 55px;
        margin: 0;
        font-size: 16px;
    }

    /* 6. 显示移动端关闭按钮和收起按钮 */
    .close-btn {
        display: flex;
    }

    .toggle-sidebar {
        display: flex;
    }
}

/* 非移动端隐藏关闭按钮和收起按钮 */
@media (min-width: 769px) {
    .close-btn {
        display: none;
    }

    .toggle-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .BroadsideRight {
        /* 强制显示侧边栏 */
        display: flex !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* 确保按钮图标正确显示 */
    .BroadsideRight ul li img {
        display: block !important;
        margin: 18px auto !important;
    }

    /* 修复收起状态样式 */
    .BroadsideRight.collapsed {
        transform: translateX(calc(100% - -50px)) !important;
    }
}
