﻿/* ============================================================
   Banner
   ============================================================ */
.banner .bannerCom {
    background: linear-gradient(135deg, rgba(208, 21, 45, .75), rgba(160, 16, 35, .85)),
                url(../images/contact.jpg) center/cover no-repeat;
    min-height: 320px;
    position: relative;
}

/* ============================================================
   联系我们 - 主内容
   ============================================================ */
.contact_content {
    width: 100%;
    padding: 60px 0 20px;
    overflow: hidden;
    background: #f8fafc;
}

.contact_content .contact_box {
    width: 100%;
    margin: 0 0 60px;
    overflow: hidden;
}

/* ============================================================
   左右布局
   ============================================================ */
.contact_box .contact_left {
    float: left;
    width: 50%;
    overflow: hidden;
}

.contact_box .contact_right {
    float: left;
    width: 50%;
    padding: 0 27px 0 16px;
    overflow: hidden;
}

/* ============================================================
   标题
   ============================================================ */
.contact_title {
    width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
}

.contact_title span {
    display: block;
    width: 80px;
    height: 3px;
    margin: 0 0 16px 2px;
    background: linear-gradient(90deg, #23439f, #e8455d);
    border-radius: 2px;
}

.contact_title h1 {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1px;
}

/* 左栏标题间距 */
.contact_left .contact_title {
    margin: 0 0 30px;
}

/* ============================================================
   联系方式信息框
   ============================================================ */
.contact_left .mode_box {
    width: 500px;
    padding: 24px 30px;
    overflow: hidden;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .04);
    transition: box-shadow .3s ease;
}

.contact_left .mode_box:hover {
    box-shadow: 0 4px 32px rgba(0, 0, 0, .08);
}

.mode_box h3 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
}

.mode_box h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 8px;
    background: #23439f;
    border-radius: 1px;
}

.mode_box p {
    width: 100%;
    padding: 4px 0 4px 34px;
    line-height: 28px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 20px 20px;
}

.mode_box p:nth-of-type(1) { background-image: url(../images/svs1.png); }
.mode_box p:nth-of-type(2) { background-image: url(../images/ct1.png); }
.mode_box p:nth-of-type(3) { background-image: url(../images/ct2.png); }
.mode_box p:nth-of-type(4) { background-image: url(../images/ct4.png); }
.mode_box p:nth-of-type(5) { background-image: url(../images/ct6.png); }
.mode_box p:nth-of-type(6) { background-image: url(../images/ct5.png); }
.mode_box p:nth-of-type(7) { background-image: url(../images/ct3.png); }

.mode_box p br { display: none; }

/* ============================================================
   反馈留言表单
   ============================================================ */
.contact_right .contact_message {
    width: 100%;
    overflow: hidden;
}

.contact_message li {
    width: 100%;
    margin: 10px 0 0;
    overflow: hidden;
}

.contact_message li p {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 20px;
    color: #1a1a2e;
    font-weight: 500;
}

.contact_message li p span {
    color: #23439f;
}

.contact_message li input,
.contact_message li textarea {
    width: 100%;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color .3s ease, box-shadow .3s ease;
    font-size: 14px;
    background: #fff;
}

.contact_message li input {
    height: 44px;
}

.contact_message li textarea {
    height: 72px;
    padding: 10px 14px;
    line-height: 1.6;
    resize: vertical;
}

.contact_message li input:focus,
.contact_message li textarea:focus {
    outline: none;
    border-color: #23439f;
    box-shadow: 0 0 0 3px rgba(208, 21, 45, .1);
}

/* 验证码行 */
.contact_message li:nth-of-type(6) p {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact_message li:nth-of-type(6) input[type="text"] {
    width: 120px;
    flex-shrink: 0;
}

.contact_message li:nth-of-type(6) img {
    cursor: pointer;
    border-radius: 4px;
    vertical-align: middle;
    height: 36px;
}

/* 提交按钮行 */
.contact_message li:last-of-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.contact_message li:last-of-type p {
    margin: 0;
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.contact_message li:last-of-type p span {
    color: #23439f;
}

.contact_message li:last-of-type button {
    width: 200px;
    height: 46px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #23439f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all .3s ease;
    letter-spacing: 2px;
}

.contact_message li:last-of-type button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(208, 21, 45, .35);
}

.contact_message li:last-of-type button:active {
    transform: translateY(0);
}

/* ============================================================
   地图
   ============================================================ */
.contact_map {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}

/* ============================================================
   响应式 - 1250px
   ============================================================ */
@media only screen and (min-width: 1250px) {
    .contact_left .mode_box { width: 500px; }
    .contact_box .contact_right { padding: 0 27px 0 16px; }
}

/* ============================================================
   响应式 - 992px ~ 1249px
   ============================================================ */
@media only screen and (min-width: 992px) and (max-width: 1249px) {
    .contact_left .mode_box { width: 450px; }
    .contact_box .contact_right { padding: 0 0 0 15px; }
}

/* ============================================================
   响应式 - 991px (平板)
   ============================================================ */
@media only screen and (max-width: 991px) {
    .banner .bannerCom {
        background: linear-gradient(135deg, rgba(208, 21, 45, .75), rgba(160, 16, 35, .85)),
                    url(../images/contacts.jpg) center/cover no-repeat;
        min-height: 240px;
    }

    .contact_box .contact_left,
    .contact_box .contact_right {
        float: none;
        width: 100%;
    }

    .contact_box .contact_right {
        padding: 0;
        margin: 40px 0 0;
    }

    .contact_left .mode_box {
        width: 100%;
    }

    .contact_content .contact_box {
        margin-bottom: 40px;
    }
}

/* ============================================================
   响应式 - 767px (手机)
   ============================================================ */
@media only screen and (max-width: 767px) {
    .banner .bannerCom {
        min-height: 180px;
    }

    .contact_content {
        padding: 30px 0 10px;
    }

    .contact_content .contact_box {
        margin-bottom: 30px;
    }

    .contact_title span {
        width: 50px;
        height: 2px;
        margin-bottom: 10px;
    }

    .contact_title h1 {
        font-size: 24px;
    }

    .contact_left .contact_title {
        margin-bottom: 20px;
    }

    .contact_left .mode_box {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .mode_box h3 {
        font-size: 17px;
    }

    .mode_box p {
        padding: 4px 0 4px 30px;
        line-height: 22px;
        font-size: 13px;
        background-size: 18px 18px;
        min-height: 30px;
    }

    .mode_box p br {
        display: block;
    }

    .contact_box .contact_right {
        margin: 30px 0 0;
    }

    .contact_message li input {
        height: 40px;
        font-size: 14px;
    }

    .contact_message li textarea {
        height: 60px;
        font-size: 14px;
    }

    .contact_message li:last-of-type {
        flex-direction: column;
        align-items: stretch;
    }

    .contact_message li:last-of-type button {
        width: 100%;
        height: 44px;
        font-size: 16px;
    }

    .contact_message li:nth-of-type(6) p {
        flex-wrap: wrap;
    }

    .contact_message li:nth-of-type(6) input[type="text"] {
        width: 140px;
    }

    .contact_map {
        height: 320px;
        border-radius: 12px;
    }
}

/* ============================================================
   响应式 - 480px (小屏手机)
   ============================================================ */
@media only screen and (max-width: 480px) {
    .contact_title h1 {
        font-size: 20px;
    }

    .mode_box h3 {
        font-size: 15px;
    }

    .mode_box p {
        font-size: 12px;
        line-height: 20px;
        padding-left: 26px;
        background-size: 16px 16px;
    }

    .contact_message li p {
        font-size: 13px;
    }

    .contact_message li input {
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }

    .contact_message li textarea {
        height: 50px;
        font-size: 13px;
        padding: 6px 10px;
    }

    .contact_map {
        height: 260px;
    }
}