.consult {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1001;
    color: #182230;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.consult-tools {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
}

.consult-trigger {
    position: relative;
    display: inline-flex;
    width: 178px;
    height: 58px;
    padding: 7px 14px 7px 8px;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: #2463d3;
    border: 1px solid #2463d3;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.2);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.consult-trigger:hover,
.consult-trigger:focus-visible,
.consult-trigger[aria-expanded="true"] {
    background: #1f56b6;
    border-color: #1f56b6;
    transform: translateY(-1px);
    outline: none;
}

.consult-trigger-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #2463d3;
    background: #ffffff;
    border-radius: 6px;
}

.consult-trigger-icon .iconfont {
    font-size: 23px;
}

.consult-trigger-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.consult-trigger-copy strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.consult-trigger-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consult-trigger-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #32d583;
    border: 2px solid #2463d3;
    border-radius: 50%;
}

.consult-top {
    display: inline-flex;
    width: 46px;
    min-width: 46px;
    height: 58px;
    align-items: center;
    justify-content: center;
    color: #475467;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    font-size: 21px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.consult-top:hover,
.consult-top:focus-visible {
    color: #2463d3;
    background: #edf4ff;
    border-color: #b2ccff;
    outline: none;
}

.consult-bar {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: block;
    width: 360px;
    max-height: min(620px, calc(100vh - 120px));
    overflow: hidden;
    color: #182230;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    visibility: hidden;
}

.consult-bar.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.consult-panel-header {
    display: flex;
    min-height: 74px;
    padding: 15px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e4e7ec;
}

.consult-panel-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.consult-panel-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #2463d3;
    background: #edf4ff;
    border: 1px solid #d1e0ff;
    border-radius: 7px;
}

.consult-panel-icon .iconfont {
    font-size: 22px;
}

.consult-panel-heading > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.consult-panel-heading strong {
    color: #182230;
    font-size: 15px;
    font-weight: 700;
}

.consult-panel-heading span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 11px;
    font-weight: 500;
}

.consult-online-dot {
    width: 7px;
    height: 7px;
    background: #12b76a;
    border-radius: 50%;
}

.consult-close {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #667085;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    cursor: pointer;
}

.consult-close:hover,
.consult-close:focus-visible {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecdca;
    outline: none;
}

.consult-panel-intro {
    padding: 12px 16px;
    color: #475467;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
    font-size: 12px;
    line-height: 1.65;
}

.consult-panel-body {
    max-height: calc(min(620px, 100vh - 120px) - 196px);
    padding: 2px 16px 12px;
    overflow-y: auto;
}

.consult-panel-body::-webkit-scrollbar {
    width: 5px;
}

.consult-panel-body::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 4px;
}

.consult-group {
    padding: 14px 0 12px;
    border-bottom: 1px solid #e4e7ec;
}

.consult-group:last-child {
    border-bottom: 0;
}

.consult-group-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 9px;
}

.consult-group-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #b54708;
    background: #fffaeb;
    border-radius: 6px;
}

.consult-group-icon .iconfont {
    font-size: 17px;
}

.consult-group-heading > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.consult-group-heading strong {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.consult-group-heading span {
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consult-staff-list {
    margin-top: 9px;
}

.consult-staff {
    display: flex;
    min-height: 54px;
    padding: 8px 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.consult-staff + .consult-staff {
    border-top: 1px dashed #e4e7ec;
}

.consult-staff-profile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.consult-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.consult-staff-profile > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.consult-staff-profile strong {
    overflow: hidden;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consult-staff-profile span {
    color: #12b76a;
    font-size: 10px;
    font-weight: 600;
}

.consult-contact-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

.consult-contact-actions a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #475467;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.consult-contact-actions a:hover,
.consult-contact-actions a:focus-visible {
    color: #2463d3;
    background: #edf4ff;
    border-color: #b2ccff;
    outline: none;
}

.consult-contact-actions .iconfont {
    font-size: 18px;
}

.consult-panel-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e4e7ec;
}

.consult-panel-footer a {
    display: inline-flex;
    min-height: 38px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #344054;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 650;
}

.consult-panel-footer a:hover,
.consult-panel-footer a:focus-visible {
    color: #2463d3;
    background: #edf4ff;
    border-color: #b2ccff;
    outline: none;
}

@media (max-width: 560px) {
    .consult {
        right: 12px;
        bottom: 12px;
    }

    .consult-bar {
        right: 0;
        bottom: 62px;
        width: min(360px, calc(100vw - 24px));
        max-height: calc(100vh - 92px);
    }

    .consult-trigger {
        width: 52px;
        height: 52px;
        padding: 5px;
    }

    .consult-trigger-icon {
        width: 40px;
        height: 40px;
    }

    .consult-trigger-copy,
    .consult-trigger-dot {
        display: none;
    }

    .consult-top {
        width: 42px;
        min-width: 42px;
        height: 52px;
    }

    .consult-panel-body {
        max-height: calc(100vh - 288px);
    }
}
