/* seemb14 右侧客服/社媒悬浮条 */
/* seemb9 右侧客服/社媒悬浮条（布局对齐 seemb4 site-right-float-rail） */
:root {
    --seemb14-kefu-rail-z: 10009;
}

.seemb14-kefu-float-rail.site-right-float-rail {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: var(--seemb14-kefu-rail-z);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    align-items: stretch;
    box-sizing: border-box;
    overflow: visible;
}

.seemb14-kefu-float-rail .site-right-float-rail__group--tools {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.seemb14-kefu-float-rail .site-right-float-rail__btn--rfq {
    color: var(--primary-color, #4066b8);
}

.seemb14-kefu-float-rail .site-right-float-rail__btn--top {
    color: #6b7280;
}

.seemb14-kefu-float-rail .site-right-float-rail__btn--top:hover {
    color: var(--primary-color, #4066b8);
}

@media (max-width: 991.98px) {
    html:not([data-mobile-show-sidebar="1"]) .seemb14-kefu-float-rail.site-right-float-rail {
        display: none;
    }
}

/* 窄屏开启显示时（mobile_show_sidebar=1）：收敛尺寸，减少对主内容的遮挡 */
@media (max-width: 575.98px) {
    html[data-mobile-show-sidebar="1"] .seemb14-kefu-float-rail.site-right-float-rail {
        width: 38px;
        gap: 2px;
    }

    html[data-mobile-show-sidebar="1"] .seemb14-kefu-float-rail .site-right-float-rail__btn {
        padding: 5px 3px;
        border-radius: 8px 0 0 8px;
    }

    html[data-mobile-show-sidebar="1"] .seemb14-kefu-float-rail .site-right-float-rail__icon-svg {
        width: 26px;
        height: 26px;
    }

    html[data-mobile-show-sidebar="1"] .seemb14-kefu-float-rail .site-right-float-rail__icon-svg .site-right-float-rail__svg {
        width: 20px;
        height: 20px;
    }

    html[data-mobile-show-sidebar="1"] .seemb14-kefu-float-rail .site-right-float-rail__kefu-strip--media {
        max-width: min(160px, 60vw);
    }

    html[data-mobile-show-sidebar="1"] .seemb14-kefu-float-rail .site-right-float-rail__kefu-strip--media img {
        width: 130px;
        max-width: min(150px, 56vw);
    }
}

.seemb14-kefu-float-rail .site-right-float-rail__btn {
    margin: 0;
    border: 0;
    border-radius: 10px 0 0 10px;
    background: #fff;
    box-shadow: -2px 0 14px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    color: var(--primary-color, #4066b8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 6px 4px;
    min-height: 0;
    text-decoration: none;
    font: inherit;
    box-sizing: border-box;
    width: 100%;
}

.seemb14-kefu-float-rail .site-right-float-rail__btn:hover {
    background: #f6f8fc;
}

.seemb14-kefu-float-rail .site-right-float-rail__btn:focus-visible {
    outline: 2px solid var(--primary-color, #4066b8);
    outline-offset: 2px;
}

.seemb14-kefu-float-rail .site-right-float-rail__btn--display-only {
    cursor: default;
}

.seemb14-kefu-float-rail .site-right-float-rail__btn--display-only:hover {
    background: #fff;
}

.seemb14-kefu-float-rail .site-right-float-rail__kefu-strip--media {
    min-width: 0;
    max-width: min(200px, 46vw);
    padding: 8px;
}

.seemb14-kefu-float-rail .site-right-float-rail__kefu-strip--media img {
    display: block;
    width: 160px;
    height: auto;
    max-width: min(184px, 42vw);
    max-height: min(220px, 50vh);
    object-fit: contain;
}

.seemb14-kefu-float-rail .site-right-float-rail__icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: inherit;
    pointer-events: none;
}

.seemb14-kefu-float-rail .site-right-float-rail__icon-svg .site-right-float-rail__svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.seemb14-kefu-float-rail .site-right-float-rail__kefu-wrap {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    overflow: visible;
}

.seemb14-kefu-float-rail .site-right-float-rail__kefu-strip {
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    z-index: calc(var(--seemb14-kefu-rail-z) + 1);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    background: #fff;
    color: #333;
    font-size: 0.8125rem;
    line-height: 1.35;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: -4px 0 14px rgba(15, 23, 42, 0.12);
}

/* 文案条：单行展示，宽度随内容撑开（对齐 seemb4 左侧白条体验） */
.seemb14-kefu-float-rail .site-right-float-rail__kefu-strip:not(.site-right-float-rail__kefu-strip--media) {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    width: max-content;
    max-width: min(480px, calc(100vw - 56px));
    overflow: hidden;
    text-overflow: ellipsis;
    unicode-bidi: plaintext;
}

.seemb14-kefu-float-rail .site-right-float-rail__kefu-wrap:hover .site-right-float-rail__kefu-strip,
.seemb14-kefu-float-rail .site-right-float-rail__kefu-wrap:focus-within .site-right-float-rail__kefu-strip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
