.lb-kefu,
.lb-kefu-sheet {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.lb-kefu {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(30, 70, 140, .12);
}

.lb-kefu__item {
    position: relative;
}

.lb-kefu__btn,
.lb-kefu__fab {
    width: 72px;
    min-height: 68px;
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid #f0f3f8;
    background: #fff;
    color: #31415c;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.lb-kefu__item:first-child .lb-kefu__btn {
    border-radius: 16px 16px 0 0;
}

.lb-kefu__item:last-child .lb-kefu__btn {
    border-radius: 0 0 16px 16px;
    border-bottom: 0;
}

.lb-kefu__btn svg,
.lb-kefu__fab svg {
    width: 20px;
    height: 20px;
    color: #2f7bff;
}

.lb-kefu__btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.lb-kefu__btn:hover,
.lb-kefu__btn:focus-visible,
.lb-kefu__fab:hover,
.lb-kefu__fab:focus-visible {
    color: #1769f6;
    background: #f5f9ff;
}

.lb-kefu__pop {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    width: 236px;
    padding: 14px 14px 12px;
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(30, 70, 140, .12);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lb-kefu__pop::after {
    content: "";
    position: absolute;
    top: 0;
    right: -16px;
    width: 16px;
    height: 100%;
}

.lb-kefu__item:hover .lb-kefu__pop,
.lb-kefu__item:focus-within .lb-kefu__pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lb-kefu__pop b {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #192e49;
}

.lb-kefu__pop a {
    color: #1769f6;
    font-weight: 700;
}

.lb-kefu__pop p {
    margin: 8px 0 0;
    color: #6d8098;
    font-size: 12px;
    line-height: 1.7;
}

.lb-kefu__pop img {
    display: block;
    width: 140px;
    height: 140px;
    margin: 8px auto 0;
    object-fit: cover;
    border: 1px solid #e7eef8;
    border-radius: 10px;
    background: #fff;
}

.lb-kefu__qq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 8px 8px 10px;
    background: #f7faff;
    border: 1px solid #e8eef7;
    border-radius: 10px;
}

.lb-kefu__qq span {
    font-size: 13px;
    font-weight: 700;
    color: #10284b;
    font-variant-numeric: tabular-nums;
}

.lb-kefu__qq .qq-copy,
.lb-kefu-sheet .qq-copy {
    padding: 3px 10px;
    border: 1px solid #d5e4ff;
    border-radius: 999px;
    background: #fff;
    color: #1769f6;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.lb-kefu__qq .qq-copy:hover,
.lb-kefu-sheet .qq-copy:hover {
    color: #fff;
    background: #1769f6;
    border-color: #1769f6;
}

.lb-kefu__fab {
    display: none;
}

.lb-kefu-sheet {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.lb-kefu-sheet[hidden] {
    display: none;
}

.lb-kefu-sheet__mask {
    position: absolute;
    inset: 0;
    background: rgba(17, 45, 75, .45);
}

.lb-kefu-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 86vh;
    overflow: auto;
    background: #f4f7fb;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.lb-kefu-sheet__panel::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #d5deea;
}

.lb-kefu-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 4px;
}

.lb-kefu-sheet__head h2 {
    margin: 0;
    color: #16325c;
    font-size: 17px;
    font-weight: 700;
}

.lb-kefu-sheet__head button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #526c8e;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.lb-kefu-sheet__body {
    padding: 8px 16px 20px;
}

.lb-kefu-call,
a.lb-kefu-call,
a.lb-kefu-call:hover,
a.lb-kefu-call:focus {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #0d76fd;
    color: #fff;
    text-decoration: none;
}

.lb-kefu-call__ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.lb-kefu-call__ico svg {
    width: 20px;
    height: 20px;
}

.lb-kefu-call__txt {
    min-width: 0;
}

.lb-kefu-call small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.4;
}

.lb-kefu-call strong {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.lb-kefu-call em {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: #0d76fd;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
}

.lb-kefu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
}

.lb-kefu-card h3 {
    margin: 0;
    color: #16325c;
    font-size: 15px;
    font-weight: 700;
}

.lb-kefu-card p {
    margin: 6px 0 0;
    color: #6a8098;
    font-size: 13px;
    line-height: 1.55;
}

.lb-kefu-card img {
    display: block;
    flex: none;
    width: 112px;
    height: 112px;
    object-fit: cover;
    border: 1px solid #e7eef8;
    border-radius: 12px;
    background: #fff;
}

.lb-kefu-card--qq {
    display: block;
}

.lb-kefu-sheet .lb-kefu__qq {
    margin-top: 8px;
}

.lb-kefu-toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    z-index: 1400;
    background: #fff;
    border: 1px solid #cfe1fa;
    box-shadow: 0 8px 25px #234d8020;
    border-radius: 10px;
    padding: 12px 20px;
    color: #315b8c;
    font-size: 13px;
    max-width: 90vw;
}

@media (max-width: 991px) {
    .lb-kefu {
        top: auto;
        bottom: 92px;
        right: 10px;
        transform: none;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .lb-kefu__item {
        display: none;
    }

    .lb-kefu__fab {
        display: flex;
        width: 64px;
        height: 64px;
        min-height: 0;
        border: 0;
        border-radius: 18px;
        color: #fff;
        background: #1769f6;
        box-shadow: 0 10px 24px rgba(23, 105, 246, .28);
    }

    .lb-kefu__fab svg {
        color: #fff;
    }

    .lb-kefu__fab:hover,
    .lb-kefu__fab:focus-visible {
        color: #fff;
        background: #0d76fd;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-kefu__pop {
        transition: none;
    }
}
