#kefu4-root .side-tools {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
#kefu4-root .side-tools .tool-item {
    position: relative;
    width: 48px;
    height: 48px;
    background: #2b4a72;
    background-color: var(--c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
}
#kefu4-root .side-tools .tool-item:hover { background: #e0a53c; background-color: var(--hc); }
#kefu4-root .side-tools .tool-item svg { width: 24px; height: 24px; fill: currentColor; }

#kefu4-root .hy-cs-copy {width: 100%;padding: 9px;border: 0;border-radius: 8px;background: var(--c);color: #fff;font-size: 15px;cursor: pointer;transition: background .2s;}

/* ===== 2. Hover 弹出宽幅卡片 ===== */
#kefu4-root .side-tools .popover {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    width: 240px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(28,51,80,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-align: center;
}
#kefu4-root .side-tools .tool-item:hover .popover {
    opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); pointer-events: auto;
}
#kefu4-root .side-tools .popover::after {
    content: ""; position: absolute; right: -8px; top: 50%; transform: translateY(-50%) rotate(45deg);
    width: 14px; height: 14px; background: #fff; border-top: 1px solid #e2e7ee; border-right: 1px solid #e2e7ee;
}
#kefu4-root .popover-title { font-size: 14px; color: #1b3350; font-weight: bold; margin-bottom: 12px; }
#kefu4-root .popover-img { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid #f0f3f8; margin: 0 auto; display: block; background: #f4f6f9;}
#kefu4-root .popover-desc { font-size: 13px; color: #8393a6; margin-top: 12px; }
#kefu4-root .popover-tel { font-size: 24px; color: var(--hc); font-weight: bold; margin: 15px 0; letter-spacing: 0.5px;}

/* ===== 3. 响应式联动：小屏隐藏 ===== */
@media (max-width: 1024px) {
    #kefu4-root .side-tools { display: none !important; }
}

/* ===== 4. 居中弹窗 (Modal) ===== */
#kefu4-root .ad-modal-mask {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
#kefu4-root .ad-modal-mask.show { display: flex; opacity: 1; }
#kefu4-root .ad-modal-box {
    background: #fff; width: 360px; border-radius: 12px;
    padding: 24px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.9); transition: transform 0.3s ease;
}
#kefu4-root .ad-modal-mask.show .ad-modal-box { transform: scale(1); }
#kefu4-root .ad-modal-title { font-size: 18px; color: #1b3350; font-weight: bold; margin-bottom: 8px; }
#kefu4-root .ad-modal-desc { font-size: 13px; color: #8393a6; margin-bottom: 15px; }

/* 信任背书与行动指令 */
#kefu4-root .modal-trust-badge { font-size: 13px; color: #b8860b; font-weight: bold; margin-bottom: 15px; background: #fff8e8; padding: 4px 10px; border-radius: 20px; display: inline-block;}
#kefu4-root .modal-action-tip { font-size: 14px; color: #c0392b; font-weight: bold; margin-top: 15px; line-height: 1.5; background: #fdf1f1; padding: 10px; border-radius: 6px;}

/* 弹窗内超大电话号 */
#kefu4-root .big-tel-number { font-size: 34px; color: #c0392b; font-weight: bold; margin: 20px 0; letter-spacing: 1px; }
#kefu4-root .modal-img-area { margin-bottom: 15px; }
#kefu4-root .modal-img-area img { width: 180px; height: 180px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; background: #f4f6f9;margin-left: auto; margin-right: auto;}
#kefu4-root .modal-info-text {
    font-size: 15px; color: #c0392b; font-weight: bold; margin-top: 10px;
    background: #f9fafc; padding: 8px 12px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center;
}
#kefu4-root .modal-info-text span { color: #333; font-weight: normal; }

#kefu4-root .ad-modal-actions { display: flex; flex-direction: column; gap: 10px; }
#kefu4-root .ad-btn {
    display: block; width: 100%; padding: 12px 0; border-radius: 6px;
    font-size: 16px; font-weight: bold; cursor: pointer; border: none; text-decoration: none;
    transition: background 0.2s;
}
#kefu4-root .ad-btn-primary { background: #e0a53c; color: #fff; }
#kefu4-root .ad-btn-primary:hover { background: #c99334; }
#kefu4-root .ad-modal-close { margin-top: 15px; font-size: 13px; color: #9aa8b8; cursor: pointer; display: inline-block;}

/* ===== 5. 屏幕居中黑底 Toast ===== */
#kefu4-root .ad-toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85); color: #fff; padding: 12px 24px;
    border-radius: 6px; font-size: 15px; z-index: 10000;
    display: none; opacity: 0; transition: opacity 0.3s ease;
    font-family: "Microsoft YaHei", sans-serif; pointer-events: none;
}
#kefu4-root .ad-toast.show { display: block; opacity: 1; }
#kefu4-root .ad-modal-close{border:0;background:none;font-family:inherit;}
#kefu4-root [role="button"]:focus-visible{outline:2px solid #e0a53c;outline-offset:2px;}
