/* 客服悬浮球 + 小程序引导弹层
   公众号/扫码场景：悬浮球本身是 <a>，直接跳公众号主页（可正常私信）
   小程序 web-view 场景：kefu-guide.js 拦截点击，弹出三步引导（web-view 内无法打开 mp.weixin.qq.com） */

.kefu-fab {
    position: fixed;
    right: 14px;
    bottom: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fc4a1a, #f7b733);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(252, 74, 26, .4);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.kefu-fab .ico { font-size: 20px; line-height: 1; }

/* 会员中心底部有兑换按钮，悬浮球抬高一点，避免遮挡 */
.kefu-fab--high { bottom: 84px; z-index: 40; }

.kefu-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 3000;
    -webkit-tap-highlight-color: transparent;
}

.kefu-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3001;
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    animation: kefuSheetIn .22s ease-out;
    box-sizing: border-box;
}

@keyframes kefuSheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.kefu-sheet__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    font-size: 22px;
    color: #bbb;
    cursor: pointer;
}

.kefu-sheet__title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px;
}

.kefu-sheet__sub {
    font-size: 12px;
    color: #888;
    margin: 0 0 14px;
    line-height: 1.5;
}

.kefu-sheet__steps {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.kefu-sheet__step {
    flex: 1;
    background: #f6f6f6;
    border-radius: 8px;
    padding: 9px 8px;
}

.kefu-sheet__step b {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #185FA5;
    margin-bottom: 3px;
}

.kefu-sheet__step span {
    font-size: 12px;
    color: #444;
    line-height: 1.45;
}

.kefu-sheet__name {
    background: #f6f6f6;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.kefu-sheet__name i {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.kefu-sheet__name strong {
    font-size: 18px;
    color: #222;
    letter-spacing: .5px;
    -webkit-user-select: text;
    user-select: text;
}

.kefu-sheet__btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #fc4a1a, #f7b733);
    -webkit-appearance: none;
    appearance: none;
}

.kefu-sheet__btn.is-done {
    background: #07c160;
}

.kefu-sheet__btn.is-fail {
    background: #999;
}

.kefu-sheet__tip {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin: 10px 0 0;
}
