@charset "UTF-8";

/* 右侧固定咨询客服按钮 - 参考 ccsbo.com 样式 */
.fix_contact {
    position: fixed;
    bottom: 80px;
    right: 0;
    border-radius: 6px 0 0 6px;
    overflow: hidden;
    z-index: 999;
    transition: .5s;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -o-transition: .5s;
}

.fix_contact .fc_box > div {
    background: #0066cc;
    transition: .5s;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -o-transition: .5s;
    margin-bottom: 1px;
}

.fix_contact .fc_box > div:hover {
    background: #003399;
}

.fix_contact .fc_box > div a {
    display: block;
    width: 60px;
    height: 60px;
    z-index: 1;
    position: relative;
}

.fix_contact .fc_box > div a span {
    display: none;
}

.fix_contact ._qq a {
    background: url(../images/icon_qq.png) center center no-repeat;
    background-size: 28px 28px;
}

.fix_contact ._tel a {
    background: url(../images/icon_tel.png) center center no-repeat;
    background-size: 28px 28px;
}

.fix_contact ._return_top a {
    background: url(../images/icon_r_top.png) center center no-repeat;
    background-size: 28px 28px;
}

/* 在线留言弹窗 */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.contact-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    max-width: 90%;
    height: 680px;
    max-height: 90%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #0066cc;
    color: #fff;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.contact-modal-close {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.3s;
}

.contact-modal-close:hover {
    color: #ffdddd;
}

.contact-modal-body {
    width: 100%;
    height: calc(100% - 56px);
}

.contact-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .fix_contact {
        bottom: 60px;
    }

    .fix_contact .fc_box > div a {
        width: 44px;
        height: 44px;
    }

    .fix_contact ._qq a,
    .fix_contact ._tel a,
    .fix_contact ._return_top a {
        background-size: 22px 22px;
    }

    .fix_contact.m_fadein {
        transform: translateX(100%);
    }
}
