/* å¨çº¿å®¢æ - åå°æ¬æµ®å¥å£ä¸èå¤©çªå£ï¼äºå¼æ°å¢ï¼ä¸è¦çä»»ä½åææ ·å¼ï¼ */
/* ============ å³ä¾§æ¬æµ®å®¢æå¥å£ ============
   æ ·å¼ä¸ãç­¾å°ããè½¬çãå®å¨ä¸è´ï¼åå®½åé«ãååè§ãåé´å½±ãåæçï¼
   åªæ¢éè²ï¼éç»¿ï¼ï¼æå¨å®ä»¬ä¸é¢ï¼é¡ºåºï¼ç­¾å° â è½¬ç â å®¢æã
   ç«åä½ç½®ç± js/kefu-widget.js ç»ä¸ç¼æï¼ä¸ä¸ªæé®é´è·æ°¸è¿ç¸ç­ã */
#bbs-kefu-float{
    position:fixed!important;
    right:0!important;
    top:calc(56% + 126px)!important;   /* JS ä¼éæ°ç®ï¼è¿éåªæ¯é¦å¸§çè½ç¹ */
    transform:translateY(-50%)!important;
    z-index:997!important;
    margin:0!important;
    padding:0!important;
    line-height:0!important;
    pointer-events:none;               /* åªææé®æ¬ä½å¯ç¹ */
}
#bbs-kefu-float .bbs-kefu-float-btn{
    position:relative!important;
    box-sizing:border-box!important;
    -webkit-appearance:none!important;
    appearance:none!important;
    width:60px!important;
    min-height:80px!important;
    margin:0!important;
    padding:9px 5px 10px!important;
    border:1px solid rgba(150,255,240,.32)!important;
    border-right:0!important;
    border-radius:17px 0 0 17px!important;
    background:linear-gradient(145deg,#3fd0be 0%,#22b3a1 52%,#149487 100%)!important;
    box-shadow:-5px 8px 20px rgba(10,110,99,.26)!important;
    color:#fff!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    text-decoration:none!important;
    text-align:center!important;
    cursor:pointer!important;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif!important;
    line-height:1.08!important;
    overflow:visible!important;        /* çº¢ç¹è¦é²å¨å¤é¢ï¼æä»¥ä¸è½ hidden */
    pointer-events:auto!important;
    transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
/* åç­¾å° / è½¬çåä¸éé«åï¼ä½è¦è·çåè§è£å */
#bbs-kefu-float .bbs-kefu-float-btn:before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    border-radius:inherit!important;
    background:linear-gradient(150deg,rgba(255,255,255,.20) 0%,rgba(255,255,255,0) 42%)!important;
    pointer-events:none!important;
}
#bbs-kefu-float .bbs-kefu-float-btn:hover{filter:brightness(1.04)!important;box-shadow:-6px 10px 24px rgba(10,110,99,.32)!important}
#bbs-kefu-float .bbs-kefu-float-btn:active{transform:translateX(1px) scale(.985)!important}
#bbs-kefu-float .bbs-kefu-float-btn:focus-visible{outline:3px solid rgba(34,179,161,.24)!important;outline-offset:2px!important}
/* è³æºå¾æ ï¼å°ºå¯¸ãåè§ãåºè²é½è·ç­¾å° / è½¬ççå¾æ ä¸è´ */
#bbs-kefu-float .bbs-kefu-float-btn .bi{
    position:relative!important;
    z-index:1!important;
    width:32px!important;
    height:32px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:10px!important;
    background:rgba(255,255,255,.18)!important;
    border:1px solid rgba(255,255,255,.30)!important;
    color:#fff!important;
    font-size:18px!important;
    line-height:1!important;
}
/* ä¸»æå­ï¼å¯¹åºç­¾å°çãç­¾å°ããè½¬ççãè½¬çã */
#bbs-kefu-float .bbs-kefu-t{
    position:relative!important;
    z-index:1!important;
    display:block!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:850!important;
    letter-spacing:.4px!important;
    white-space:nowrap!important;
    text-shadow:0 1px 1px rgba(0,74,66,.18)!important;
}
/* å¯æå­ï¼å¯¹åºç­¾å°çãé¢éå¸ããè½¬ççãæ½éå¸ã */
#bbs-kefu-float .bbs-kefu-s{
    position:relative!important;
    z-index:1!important;
    display:block!important;
    color:rgba(255,255,255,.88)!important;
    font-size:10px!important;
    font-style:normal!important;
    font-weight:650!important;
    white-space:nowrap!important;
}
/* æªè¯»çº¢ç¹ ââ å·¦ä¸è§ï¼ä¸ç¹è¿çªå£ä¹è½çå° */
#bbs-kefu-float .bbs-kefu-badge{
    position:absolute!important;
    top:-5px!important;
    left:-5px!important;
    z-index:3!important;
    min-width:19px!important;
    height:19px!important;
    padding:0 5px!important;
    display:none;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    border:2px solid #fff!important;
    border-radius:19px!important;
    background:#ff2d2d!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:800!important;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    font-style:normal!important;
    line-height:1!important;
    letter-spacing:0!important;
    pointer-events:none!important;
}
#bbs-kefu-float.has-unread .bbs-kefu-badge{display:flex!important}
/* çº¢ç¹å¤æ©ä¸åæ·¡çº¢ï¼ä½åéå°±è½æ³¨æå°ï¼åªå¨ opacity / transformï¼ */
#bbs-kefu-float.has-unread .bbs-kefu-badge::after{
    content:""!important;
    position:absolute!important;
    inset:-2px!important;
    border-radius:inherit!important;
    background:rgba(255,45,45,.5)!important;
    opacity:0;
    transform:scale(1);
    animation:bbsKefuDot 1.9s ease-out infinite!important;
}
@keyframes bbsKefuDot{
    0%  {opacity:.6;transform:scale(1)}
    70% {opacity:0; transform:scale(1.9)}
    100%{opacity:0; transform:scale(1.9)}
}
/* æ°å­ååæ¶è½»è½»å¼¹ä¸ä¸ */
#bbs-kefu-float .bbs-kefu-badge.is-pop{animation:bbsKefuPop .42s cubic-bezier(.34,1.7,.5,1)!important}
@keyframes bbsKefuPop{
    0%{transform:scale(.4)}
    60%{transform:scale(1.22)}
    100%{transform:scale(1)}
}
/* æ ç­¾é¡µåå°åå°æ¶å»ç»å¨ç»ï¼ä¸å  CPU ä¹ä¸èçµ */
#bbs-kefu-float.is-idle .bbs-kefu-badge,
#bbs-kefu-float.is-idle .bbs-kefu-badge::after{animation-play-state:paused!important}
/* çªå£æå¼æ¶æ´ä¸ªæ¬æµ®ç»éèï¼é¿åé®æ¡ */
#bbs-kefu-float.is-hidden{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .16s ease,visibility .16s ease!important}
/* å±å¹å¤ªç®æ¶æ¶æä¸ä¸ªå°æ¹åï¼åªçå¾æ  ââ å®å¯èªå·±ç¼©ï¼ä¹ä¸åå°è½¬çä¸ */
#bbs-kefu-float.is-compact .bbs-kefu-float-btn{min-height:48px!important;padding:8px 5px!important}
#bbs-kefu-float.is-compact .bbs-kefu-t,
#bbs-kefu-float.is-compact .bbs-kefu-s{display:none!important}
/* ææºç«¯è·ç­¾å° / è½¬çåæ­¥ç¼©ä¸æ¡£ */
@media(max-width:480px){
    #bbs-kefu-float .bbs-kefu-float-btn{width:58px!important;min-height:78px!important;border-radius:16px 0 0 16px!important}
    #bbs-kefu-float .bbs-kefu-float-btn .bi{width:31px!important;height:31px!important;font-size:17px!important}
    #bbs-kefu-float .bbs-kefu-t{font-size:13px!important}
}
/* ============ èå¤©çªå£ ============ */
#bbs-kefu-panel{
    position:fixed!important;
    right:14px!important;
    bottom:78px!important;
    z-index:2147483000!important;
    box-sizing:border-box!important;
    width:min(370px,calc(100vw - 24px))!important;
    height:min(552px,calc(100vh - 130px))!important;
    display:flex!important;
    flex-direction:column!important;
    border:1px solid rgba(210,225,238,.9)!important;
    border-radius:18px!important;
    background:#f3f7fb!important;
    box-shadow:0 24px 60px rgba(12,38,66,.26),0 4px 12px rgba(12,38,66,.10)!important;
    overflow:hidden!important;
    opacity:0;
    visibility:hidden;
    transform:translateY(16px) scale(.97);
    transform-origin:bottom right;
    transition:opacity .2s ease,transform .22s cubic-bezier(.34,1.3,.64,1),visibility .2s ease;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif!important;
}
#bbs-kefu-panel.is-open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
/* æ§æ¬æµ®æ¨¡å¼ä»ä¿çå³é­æé®ï¼ç¬ç«èå¤©é¡µæ æ é¢æ ã */
#bbs-kefu-panel .kefu-close{position:absolute;top:9px;right:10px;z-index:2;width:30px;height:30px;padding:0;border:1px solid #dbe5ec;border-radius:50%;background:#fff;color:#526d80;font-size:21px;line-height:26px;cursor:pointer}
#bbs-kefu-panel .kefu-close:hover{background:#eaf1f6}
#bbs-kefu-panel .kefu-close:focus-visible{outline:2px solid #2385ce;outline-offset:2px}
#bbs-kefu-panel .kefu-close+.kefu-body{padding-top:47px}
/* æ¶æ¯åº */
#bbs-kefu-panel .kefu-body{
    flex:1 1 auto;
    min-height:0;
    padding:15px 13px;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    background:#f3f7fb;
}
#bbs-kefu-panel .kefu-body::-webkit-scrollbar{width:6px}
#bbs-kefu-panel .kefu-body::-webkit-scrollbar-thumb{border-radius:6px;background:rgba(120,150,178,.28)}
#bbs-kefu-panel .kefu-tip{
    margin:0 auto 13px;
    padding:8px 13px;
    max-width:90%;
    width:fit-content;
    border-radius:10px;
    background:rgba(114,142,170,.11);
    color:#63788c;
    font-size:12.5px;
    line-height:1.65;
    text-align:center;
    word-break:break-word;
}
#bbs-kefu-panel .kefu-time{
    margin:0 0 11px;
    color:#93a6b6;
    font-size:11px;
    text-align:center;
}
#bbs-kefu-panel .kefu-connection-status{border:1px solid #f0d4aa;background:#fff6e7;color:#86521a}
#bbs-kefu-panel .kefu-row{
    display:flex;
    align-items:flex-end;
    gap:8px;
    margin-bottom:13px;
}
#bbs-kefu-panel .kefu-row.is-me{flex-direction:row-reverse}
#bbs-kefu-panel .kefu-avatar{
    flex:0 0 auto;
    width:31px;
    height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:linear-gradient(140deg,#e6eef7 0%,#d8e5f0 100%);
    color:#5b7791;
    font-size:15px;
}
#bbs-kefu-panel .kefu-row.is-me .kefu-avatar{
    background:linear-gradient(140deg,#d9f0e4 0%,#c8e8d7 100%);
    color:#3d8a63;
}
#bbs-kefu-panel .kefu-bubble{
    position:relative;
    max-width:74%;
    padding:10px 13px;
    border:1px solid rgba(226,236,244,.9);
    border-radius:14px 14px 14px 5px;
    background:#fff;
    color:#22384c;
    font-size:14px;
    line-height:1.68;
    word-break:break-word;
    white-space:pre-wrap;
    box-shadow:0 2px 8px rgba(24,56,88,.06);
}
#bbs-kefu-panel .kefu-row.is-me .kefu-bubble{
    border-color:rgba(178,226,201,.9);
    border-radius:14px 14px 5px 14px;
    background:linear-gradient(140deg,#e9fcf3 0%,#daf6e9 100%);
    color:#17402f;
}
#bbs-kefu-panel .kefu-bubble.is-image{padding:5px;white-space:normal}
#bbs-kefu-panel .kefu-bubble.is-image img{
    display:block;
    max-width:190px;
    max-height:240px;
    width:auto;
    border-radius:10px;
    cursor:zoom-in;
}
#bbs-kefu-panel .kefu-bubble.is-pending{opacity:.6}
/* è¾å¥åº */
#bbs-kefu-panel .kefu-foot{
    flex:0 0 auto;
    padding:10px 11px calc(11px + env(safe-area-inset-bottom,0px));
    border-top:1px solid rgba(226,236,244,.9);
    background:#fff;
}
#bbs-kefu-panel .kefu-input-row{display:flex;align-items:flex-end;gap:8px}
#bbs-kefu-panel .kefu-icon-btn{
    flex:0 0 auto;
    width:38px;
    height:38px;
    padding:0;
    border:1px solid #e0e9f1;
    border-radius:50%;
    background:#f5f8fb;
    color:#5f7789;
    font-size:17px;
    line-height:1;
    cursor:pointer;
    transition:background .15s ease,color .15s ease,border-color .15s ease;
}
#bbs-kefu-panel .kefu-icon-btn:hover{border-color:#a8cdf2;background:#eaf3fd;color:#2079dd}
#bbs-kefu-panel .kefu-text{
    flex:1 1 auto;
    min-width:0;
    height:38px;
    max-height:100px;
    padding:9px 13px;
    border:1px solid #e0e9f1;
    border-radius:19px;
    background:#f6f9fc;
    color:#22384c;
    font-family:inherit;
    font-size:14px;
    line-height:1.42;
    resize:none;
    outline:none;
    overflow-y:auto;
    transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
#bbs-kefu-panel .kefu-text:focus{border-color:#8fc0f2;background:#fff;box-shadow:0 0 0 3px rgba(32,121,221,.10)}
#bbs-kefu-panel .kefu-send{
    flex:0 0 auto;
    height:38px;
    padding:0 18px;
    border:0;
    border-radius:19px;
    background:linear-gradient(135deg,#3f9bf5 0%,#1868c9 100%);
    color:#fff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(24,104,201,.26);
    transition:filter .15s ease,transform .12s ease;
}
#bbs-kefu-panel .kefu-send:hover{filter:brightness(1.06)}
#bbs-kefu-panel .kefu-send:active{transform:scale(.96)}
#bbs-kefu-panel .kefu-send:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
#bbs-kefu-panel .kefu-file{display:none}
/* ææºç«¯æ´å± */
@media(max-width:600px){
    #bbs-kefu-panel{
        right:0!important;
        left:0!important;
        bottom:0!important;
        width:100%!important;
        height:100%!important;
        max-width:none!important;
        border:0!important;
        border-radius:0!important;
        transform-origin:center bottom;
    }

    #bbs-kefu-panel .kefu-bubble{max-width:78%}
}
body.bbs-kefu-lock{overflow:hidden!important}
/* å¾çé¢è§ */
#bbs-kefu-viewer{
    position:fixed!important;
    inset:0!important;
    z-index:2147483001!important;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(9,20,32,.88);
    cursor:zoom-out;
}
#bbs-kefu-viewer.is-open{display:flex}
#bbs-kefu-viewer img{max-width:100%;max-height:100%;border-radius:10px}
@media(prefers-reduced-motion:reduce){
    #bbs-kefu-panel,#bbs-kefu-float .bbs-kefu-float-btn{transition:none!important}
    #bbs-kefu-float .bbs-kefu-badge,
    #bbs-kefu-float .bbs-kefu-badge::after{animation:none!important}
}

/* ============ 2026-09-30 è§è§åçº§ï¼ä¸ç«åéç»¿ä¸»é¢ç»ä¸ ============ */
#bbs-kefu-panel{border:1px solid rgba(206,231,221,.95)!important;border-radius:20px!important;background:linear-gradient(180deg,#f4fbf8 0%,#eef7f3 100%)!important;box-shadow:0 26px 64px rgba(9,58,44,.24),0 6px 16px rgba(9,58,44,.10)!important}
#bbs-kefu-panel .kefu-body{padding:16px 13px!important;background:linear-gradient(180deg,#f4fbf8 0%,#eef7f3 100%)!important}
#bbs-kefu-panel .kefu-tip{border:1px solid #d9eee4!important;border-radius:12px!important;background:#e9f8f1!important;color:#2f6f59!important}
#bbs-kefu-panel .kefu-time{color:#94b4a8!important}
#bbs-kefu-panel .kefu-connection-status{border:1px solid #cde9dd!important;background:#eefaf4!important;color:#2f6f59!important}
#bbs-kefu-panel .kefu-avatar{background:linear-gradient(140deg,#dff4ea 0%,#c9ecdc 100%)!important;color:#0a8f6b!important;box-shadow:0 1px 3px rgba(9,88,66,.10)!important}
#bbs-kefu-panel .kefu-row.is-me .kefu-avatar{background:linear-gradient(140deg,#cdeede 0%,#b4e5d0 100%)!important;color:#086b50!important}
#bbs-kefu-panel .kefu-bubble{border:1px solid #e2f0e9!important;border-radius:16px 16px 16px 6px!important;box-shadow:0 2px 10px rgba(9,58,44,.06)!important}
#bbs-kefu-panel .kefu-row.is-me .kefu-bubble{border-radius:16px 16px 6px 16px!important;background:linear-gradient(135deg,#3ecf9f 0%,#12a87c 100%)!important;color:#fff!important;box-shadow:0 4px 14px rgba(18,168,124,.22)!important}
/* å¾çåªä¿çå¾çæ¬èº«ååè§ï¼ä¸ç»§æ¿æå­æ°æ³¡çå½©è²å¤æ¡ã */
#bbs-kefu-panel .kefu-row .kefu-bubble.is-image{padding:0;border:0!important;background:none!important;box-shadow:none!important}
#bbs-kefu-panel .kefu-message-label{color:#8aa79b!important}
#bbs-kefu-panel .kefu-row.is-me .kefu-message-label{color:rgba(255,255,255,.85)!important}
#bbs-kefu-panel .kefu-foot{border-top:1px solid #e2f0e9!important;background:#fff!important}
#bbs-kefu-panel .kefu-icon-btn{border-color:#dcebe4!important;background:#f3faf7!important;color:#3f7a68!important}
#bbs-kefu-panel .kefu-icon-btn:hover{border-color:#a9dcc9!important;background:#e8f7f0!important;color:#0a8f6b!important}
#bbs-kefu-panel .kefu-text{border:1px solid #dcebe4!important;background:#f6fbf9!important;color:#1f3d33!important}
#bbs-kefu-panel .kefu-text:focus{border-color:#7fd0b3!important;background:#fff!important;box-shadow:0 0 0 3px rgba(18,168,124,.12)!important}
#bbs-kefu-panel .kefu-send{background:linear-gradient(135deg,#2fc494 0%,#0d9a70 100%)!important;box-shadow:0 4px 12px rgba(13,154,112,.28)!important}
#bbs-kefu-panel .kefu-read-retry{border-color:#bfe3d4!important;background:#f2fbf7!important;color:#0a8f6b!important}
