@import "style.css";
@import "global.css";

.header {
    background-image: url("../images/contact-banner_02.jpg");
}

.contact {
    background: #f6f6f6;
    padding: 90px 0;
}

.contact .left {
    width: 50%;
}

.contact-content {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* 添加这行以便在两个子元素之间进行分布。 */
}

.left-title {
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 30px;
    color: #242424;
    line-height: 48px;
}

.desc-item {
    display: flex;
    margin-top: 50px;
}

.desc-item img {
    width: 75px;
    height: 75px;
}

.text-box {
    margin-left: 20px;
    margin-top: 6px;
}

.form {
    box-shadow: 0px 10px 39px 10px rgba(62, 66, 66, 0.22);
    padding: 50px;
    margin-left: 20px;
    border-radius: 4px;
    flex: 1;
    width: 520px;
    background: #fff;
}

.form .right-title {
    text-align: center;
    font-family: Oswald;
    font-weight: bold;
    font-size: 30px;
    color: #242424;
    line-height: 48px;
}

.form .btn {
    background: #9a8674;
    width: 100%;
    height: 70px;
    line-height: 70px;
    font-size: 24px;
    color: #fff;
    display: block;
    margin-top: 30px; /* 这里将 .btn 的 margin-top 移到 .btn 的样式定义中 */
}

.form-item {
    position: relative;
    margin-top: 35px;
}

.form-item input {
    width: 100%;
    height: 50px;
    line-height: 48px;
    padding: 0 10px;
    box-sizing: border-box; /* 添加盒模型 */
}

.form-item .sub-name {
    position: absolute;
    background: #fff;
    height: 30px;
    line-height: 30px;
    top: -15px;
    left: 30px;
}

.text-box {
    padding-left: 15px;
}

.text-box .text-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.desc-item img {
    width: 60px;
    height: 60px;
}
@media screen and (max-width: 768px) {
.contact {
    background: #f6f6f6;
    padding: 40px 0;
}

.contact .contact-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.contact .left-title {
    margin-bottom: 20px;
    /*font-family: Oswald;*/
    font-weight: bold;
    font-size: 24px;
    color: #242424;
    line-height: 36px;
}

.contact .desc-item {
            -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        text-align: center;
}

.contact .desc-item img {
    width: 75px;
    height: 75px;
}
.text-box{
    padding-left: 0;
}
.form{
    margin-left: 0;
}
.contact .desc-item .text-box {
    margin-left: 0px;
    margin-top: 6px;
}

.contact .form {
    box-shadow: 0px 10px 39px 10px rgba(62, 66, 66, 0.22);
    padding: 10px;
    border-radius: 4px;
    flex: 1;
    width: 100%;
    background: #fff;
}

.contact .form .right-title {
    text-align: center;
    font-family: Oswald;
    font-weight: bold;
    font-size: 30px;
    color: #242424;
    line-height: 48px;
}

.contact .form .btn {
    background: #9a8674;
    width: 100%;
    height: 70px;
    line-height: 70px;
    font-size: 24px;
    color: #fff;
    display: block;
    margin-top: 30px;
}

.contact .form .form-item {
    position: relative;
    margin-top: 35px;
}

.contact .form .form-item input {
    width: 100%;
    height: 50px;
    line-height: 48px;
    padding: 0 10px;
}

.contact .form .form-item .sub-name {
    position: absolute;
    background: #fff;
    height: 30px;
    line-height: 30px;
    top: -15px;
    left: 30px;
}
.contact .left{
    width: 100%;
    margin-bottom: 30px;
}
.left-title{
            max-width: 100%;
        text-align: center;
        font-size: 30px;
}
}