/* ===== 客服中心弹窗 ===== */

/* 微信客服悬浮按钮 */
.kefu-float {
    position: fixed;
    right: 20px;
    top: 80%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 998;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    text-decoration: none;
}

.kefu-float:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.kefu-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kefu-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.kefu-mask.show {
    opacity: 1;
    visibility: visible;
}

.kefu-pop {
    width: 400px;
    max-width: 92vw;
    max-height: 86vh;
    overflow: auto;
    border-radius: 14px;
    background: linear-gradient(160deg, #fdfbf5 0%, #f5f1e6 100%);
    border: 1px solid rgba(180, 160, 90, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 26px 28px 30px;
    transform: translateY(24px);
    transition: transform 0.3s;
    text-align: center;
}

.kefu-mask.show .kefu-pop {
    transform: translateY(0);
}

.kefu-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(180, 160, 90, 0.35);
}

.kefu-head h3 {
    font-size: 22px;
    font-weight: bold;
    color: #3a2e1f;
    margin: 0;
}

.kefu-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(138, 109, 26, 0.12);
    color: #3a2e1f;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kefu-close:hover {
    background: #b8860b;
    color: #fff;
}

.kefu-body {
    text-align: center;
}

.kefu-wx {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(180, 160, 90, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.kefu-wx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.kefu-age {
    position: fixed;
    left: 18px;
    top: 28%;
    width: 80px;
    display: block;
    z-index: 1002;
}

.kefu-qr {
    width: 204px;
    height: 204px;
    margin: 6px auto 16px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(180, 160, 90, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.kefu-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.kefu-qr-title {
    font-size: 17px;
    font-weight: bold;
    color: #3a2e1f;
    margin: 0 0 6px;
}

.kefu-tip {
    font-size: 12px;
    color: #999;
    margin: 0;
}
