/**
 * 客服页主色（覆盖站点级 CSS 变量，与多商户后台同思路）
 * 业务按钮直接用 am-btn-primary / am-btn-secondary 即可吃到主色
 */
:root {
    --color-main: #2A94FF !important;
    --color-main-light: #E1EFFF !important;
    --color-main-hover: #2A94FF !important;
    --color-tips-warm-bg: #F1FCFF !important;
    --color-tips-warm-br: #F1FCFF !important;
    /* 主色按钮 */
    --color-button-primary-text: #fff !important;
    --color-button-primary: #2A94FF !important;
    --color-button-primary-border: #2A94FF !important;
    --color-button-primary-hover: #6CB5FF !important;
    --color-button-primary-hover-border: #6CB5FF !important;
    --color-button-primary-focus-text: #FFFFFF !important;
    --color-button-primary-focus: #6CB5FF !important;
    --color-button-primary-focus-border: #6CB5FF !important;
    --color-button-primary-active-text: #FFFFFF !important;
    --color-button-primary-active: #0968C7 !important;
    --color-button-primary-active-border: #0968C7 !important;
    --color-button-primary-disabled: #A8D3FF !important;
    --color-button-primary-disabled-border: #A8D3FF !important;
    --color-button-primary-disabled-text: #FFFFFF !important;
    /* 次色按钮 */
    --color-button-secondary-text: #2A94FF !important;
    --color-button-secondary: #E1EFFF !important;
    --color-button-secondary-border: #2A94FF !important;
    --color-button-secondary-focus-text: #2A94FF !important;
    --color-button-secondary-focus: #CDDAFF !important;
    --color-button-secondary-focus-border: #2A94FF !important;
    --color-button-secondary-hover-text: #2A94FF !important;
    --color-button-secondary-hover: #CDDAFF !important;
    --color-button-secondary-hover-border: #2A94FF !important;
    --color-button-secondary-active-text: #FFFFFF !important;
    --color-button-secondary-active: #0968C7 !important;
    --color-button-secondary-active-border: #0968C7 !important;
    --color-button-secondary-disabled-text: #BBC8E8 !important;
    --color-button-secondary-disabled: #F4F4F9 !important;
    --color-button-secondary-disabled-border: #BBC8E8 !important;
}

/**
 * 框架基础样式覆盖
 */
.am-btn.am-radius,
.am-badge.am-radius,
.am-switch {
    border-radius: 100rem !important;
}
.am-radius,
.am-table-scrollable-horizontal,
.am-img-thumbnail.am-radius,
.am-modal-dialog,
.am-popup .am-popup-inner,
.chosen-container .chosen-single,
.chosen-container .chosen-search input[type="text"],
.form-table-search td select[multiple],
.form-table-search td select[size],
.form-table-search td .chosen-container-multi .chosen-choices,
.am-alert,
.pagination-input,
ul.plug-file-upload-view li,
ul.plug-file-upload-view li img, ul.plug-file-upload-view-video li video,
.plug-file-upload-submit,
.am-popover,
.am-input-group-label {
    border-radius: 0.6rem !important;
}
.am-list li:first-child,
.am-modal-dialog .am-modal-hd {
    border-top-left-radius: 0.6rem !important;
    border-top-right-radius: 0.6rem !important;
}
.am-list li:last-child {
    border-bottom-left-radius: 0.6rem !important;
    border-bottom-right-radius: 0.6rem !important;
}
div.chosen-container-multi.chosen-with-drop .chosen-choices,
div.chosen-container.chosen-with-drop .chosen-single {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}
.chosen-container .chosen-drop {
    border-bottom-left-radius: 0.3rem !important;
    border-bottom-right-radius: 0.3rem !important;
}
.am-input-group .am-form-field:first-child, .am-input-group-label:first-child, .am-input-group-btn:first-child > .am-btn, .am-input-group-btn:first-child > .am-btn-group > .am-btn, .am-input-group-btn:first-child > .am-dropdown-toggle, .am-input-group-btn:last-child > .am-btn:not(:last-child):not(.dropdown-toggle), .am-input-group-btn:last-child > .am-btn-group:not(:last-child) > .am-btn {
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
}
.am-input-group .am-form-field:last-child, .am-input-group-label:last-child, .am-input-group-btn:last-child > .am-btn, .am-input-group-btn:last-child > .am-btn-group > .am-btn, .am-input-group-btn:last-child > .am-dropdown-toggle, .am-input-group-btn:first-child > .am-btn:not(:first-child), .am-input-group-btn:first-child > .am-btn-group:not(:first-child) > .am-btn {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}
.am-table,
.am-panel {
    border-radius: 0.3rem;
}
.am-panel .am-panel-hd {
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}
.am-table thead tr th:first-child {
    border-top-left-radius: 0.3rem;
}
.am-input-group .am-form-field:first-child {
    border-top-left-radius: 0.6rem !important;
    border-bottom-left-radius: 0.6rem !important;
}
.am-input-group-btn:last-child > .am-btn {
    border-top-right-radius: 0.6rem !important;
    border-bottom-right-radius: 0.6rem !important;
}
.am-container {
    padding: 0;
}

/**
 * 加载中
 */
.chat-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 25%;
    text-align: center;
    background: #eee;
    color: #666;
    z-index: 1;
}


/**
 * 客服基础
 */
body {
    background: #eee url(../../images/user-chat-bg.jpg) center 0 no-repeat;
    background-size: cover;
    height: 100%;
}
.chat-container {
    width: 100%;
    height: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    -webkit-box-shadow: 0.1rem 0.1rem 1.5rem 0 rgb(0 0 0 / 30%);
    box-shadow: 0.1rem 0.1rem 1.5rem 0 rgb(0 0 0 / 30%);
    overflow: hidden;
}
.chat-header {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: -webkit-gradient(linear,right top,left top,from(#1890ff),to(#1d6aff));
    background: linear-gradient(270deg,#1890ff,#1d6aff);
    padding: 1.4rem 1.4rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 5.5rem;
    font-size: 1.6rem;
    color: #fff;
}
.chat-header img.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-right: 1rem;
    background: #fff;
}
.chat-header span.name {
    font-size: 1.4rem;
}
.chat-header .chat-group-toggle {
    display: none;
    position: relative;
    vertical-align: middle;
    margin-right: 1.2rem;
    width: 2.4rem;
    height: 2.4rem;
    line-height: 2.4rem;
    text-align: center;
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
}
.chat-header .chat-group-toggle:hover,
.chat-header .chat-group-toggle:focus {
    color: #fff;
    opacity: 0.9;
}
.chat-group-toggle-badge {
    position: absolute;
    top: -0.4rem;
    right: -0.6rem;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    line-height: 1.5rem;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 600;
    color: #fff;
    background: #ff3b30;
    border-radius: 100rem;
    border: 0.15rem solid #fff;
    box-sizing: border-box;
}
.chat-drawer-close {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 2.2rem;
    line-height: 2rem;
    cursor: pointer;
}
.chat-drawer-close:hover {
    color: #666;
}
.chat-group-drawer-hd {
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 1rem 1.2rem;
    border-bottom: 0.1rem solid #eee;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    background: #fff;
}
.chat-group-drawer-mask {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1310;
    background: rgba(0, 0, 0, 0.45);
}
.chat-base {
    height: 100%;
}
.chat-left,
.chat-right {
    height: calc(100% - 5.5rem);
    max-height: 100%;
}
.chat-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.chat-right {
    width: 26rem;
    border-left: 0.1rem solid #eee;
    resize: none;
    float: right;
}
.chat-right img {
    max-width: 100%;
}
.chat-right.has-consult {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.chat-right.has-consult .chat-right-ad {
    max-height: 16rem;
    overflow: auto;
    flex-shrink: 0;
    padding: 0.8rem 1rem;
    border-bottom: 0.1rem solid #eee;
    -webkit-overflow-scrolling: touch;
}
.chat-right.has-consult .chat-right-ad.am-hide {
    display: none !important;
}
.chat-right-consult {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}
.chat-right-consult .consult-panel-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0.9rem 1rem 0.7rem;
    border-bottom: 0.1rem solid #eee;
    background: #fff;
    text-align: left;
}
/* 咨询端手机抽屉顶栏已有「相关信息」，面板内标题隐藏避免重复 */
.consult-drawer-body > .chat-right-consult > .consult-panel-title,
.consult-drawer-body > .chat-right-ad + .chat-right-consult > .consult-panel-title {
    display: none;
}
.chat-right-consult .consult-panel-hd {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0.8rem 1rem 0.6rem;
    border-bottom: 0.1rem solid #f0f0f0;
    background: #f3f3f3;
}
.chat-right-consult .consult-panel-hd.consult-panel-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0;
    font-weight: 500;
}
.chat-right-consult .consult-panel-hd.consult-panel-tabs::-webkit-scrollbar {
    height: 0.3rem;
}
.chat-right-consult .consult-panel-hd .consult-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    padding: 0.85rem 0.72rem;
    font-size: 1.3rem;
    color: #666;
    cursor: pointer;
    border-bottom: 0.2rem solid transparent;
    user-select: none;
}
.chat-right-consult .consult-panel-hd .consult-tab:hover {
    color: #2A94FF;
}
.chat-right-consult .consult-panel-hd .consult-tab.active {
    color: #2A94FF;
    font-weight: 600;
    background: #fff;
    border-bottom-color: #2A94FF;
}
.chat-right-consult .consult-panel-search {
    padding: 1rem 1rem 0;
}
.chat-right-consult .consult-panel-search input {
    width: 100%;
}
.chat-right-consult .consult-panel-list {
    list-style: none;
    margin: 0;
    padding: 0 1rem 1rem;
}
.chat-right-consult .consult-panel-foot {
    padding: 0 1rem 1rem;
    text-align: center;
}
.chat-right-consult .consult-panel-empty {
    padding: 2.4rem 1rem;
    font-size: 1.3rem;
    color: #999;
    text-align: center;
}

/* 窄屏：工具栏打开完整右侧内容 */
.chat-right-panel-toggle {
    margin-left: auto;
    display: none !important;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.chat-right-panel-toggle:hover {
    color: #333;
}
.chat-right-panel-bars {
    display: inline-block;
    width: 1.8rem;
    height: 1.35rem;
    position: relative;
    vertical-align: middle;
    background: linear-gradient(currentColor, currentColor) center / 100% 0.18rem no-repeat;
}
.chat-right-panel-bars:before,
.chat-right-panel-bars:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 0.18rem;
    background: currentColor;
    border-radius: 0.1rem;
}
.chat-right-panel-bars:before {
    top: 0;
}
.chat-right-panel-bars:after {
    bottom: 0;
}
.consult-drawer {
    position: fixed;
    inset: 0;
    z-index: 1300;
}
.consult-drawer.active {
    display: block !important;
}
.consult-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.consult-drawer-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80vh;
    max-height: 80vh;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.consult-drawer-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 0.1rem solid #eee;
    font-weight: 600;
}
.consult-drawer-body {
    flex: 1;
    min-height: 0;
    height: auto;
    max-height: none !important; /* 覆盖 am-scrollable-vertical 的 24rem */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
}
.consult-drawer-body .chat-right-ad {
    padding: 0.8rem 1rem;
    border-bottom: 0.1rem solid #eee;
    max-height: 16rem;
    overflow: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}
.consult-drawer-body .chat-right-consult {
    display: block !important;
    flex: none;
    max-height: none;
    overflow: visible;
}
.consult-drawer-body .chat-right-consult.am-hide {
    display: none !important;
}
.consult-drawer-body > .work-right {
    width: 100%;
    float: none;
    display: block;
    height: auto;
    max-height: none;
    border: 0;
    padding: 1rem;
    overflow: visible;
    text-align: left;
}
.consult-drawer-body > .work-right .work-consult-panel {
    overflow: visible;
}
@media only screen and (max-width: 950px) {
    .chat-right-panel-toggle:not(.am-hide) {
        display: inline-flex !important;
        align-items: center;
    }
}

.work-right .work-consult-panel.item {
    margin-top: 1.5rem;
    flex: none;
    min-height: 0;
    overflow: visible;
}
.work-right .work-consult-panel .consult-panel-title {
    text-align: center;
    padding: 0 0 0.6rem;
    border-bottom: 0;
    background: transparent;
}
/* 工作台抽屉顶栏也是「相关信息」，内层同名标题隐藏 */
.consult-drawer-body > .work-right .work-consult-panel > .consult-panel-title {
    display: none;
}
.work-right .work-consult-panel .consult-panel-hd:not(.consult-panel-tabs),
.work-right .work-consult-panel .consult-panel-hd.nav-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: inherit;
    text-align: center;
    margin: 0 0 0.5rem;
    padding: 0;
    border-bottom: 0;
    background: transparent;
}
.work-right .work-consult-panel .consult-panel-hd.consult-panel-tabs {
    margin: 0 0 0.6rem;
    font-weight: 500;
}
.work-right .work-consult-panel .consult-panel-search {
    padding: 0 0 0.6rem;
}
.work-right .work-consult-panel .consult-panel-list {
    padding: 0;
}
.work-right .work-consult-panel .consult-panel-foot {
    padding: 0.6rem 0 0;
}
.work-right .work-consult-panel .consult-panel-empty {
    padding: 1.6rem 0;
}
.chat-right-consult .consult-source-row {
    display: block;
    overflow: hidden;
}
.chat-right-consult .consult-source-row a,
.chat-right-consult .consult-source-row .url {
    display: block;
    margin-right: 8.5rem;
    word-break: break-all;
    color: #2196f3;
}
.chat-right-consult .consult-source-row .url {
    color: #0e90d2;
}
.chat-right-consult .consult-source-row .time {
    float: right;
    color: #999;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}
.work-right .work-ext-card .chat-message-order {
    max-width: 100%;
}
#agent-transfer-modal .am-modal-dialog {
    width: 40rem;
    max-width: calc(100% - 4rem);
}
#agent-transfer-modal .am-modal-bd {
    min-height: 22rem;
    padding: 0;
}
#agent-transfer-modal .agent-transfer-list {
    min-height: 18rem;
    max-height: 32rem;
    text-align: left;
    overflow-x: hidden;
    overflow-y: auto;
}
#agent-transfer-modal .agent-transfer-list > .not-data-msg {
    display: none;
    margin-top: 5rem;
    text-align: center;
    padding: 0 1.6rem;
}
#agent-transfer-modal .agent-transfer-list.container-not-data > .not-data-msg {
    display: block;
}
#agent-transfer-modal .agent-transfer-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#agent-transfer-modal .agent-transfer-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.6rem;
    border-bottom: 0.1rem solid #f5f5f5;
    cursor: pointer;
}
#agent-transfer-modal .agent-transfer-list li img {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 100%;
}
#agent-transfer-modal .agent-transfer-list li:hover {
    background: #f7fbff;
}
.chat-right-consult .consult-panel-item {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 0.1rem solid #f5f5f5;
}
.chat-right-consult .consult-panel-item:last-child {
    border-bottom: 0;
}
.chat-right-consult .consult-panel-item-order {
    border-bottom: 0;
}
.chat-right-consult .consult-panel-item.is-current {
    background: #f7fbff;
    margin: 0 -0.4rem;
    padding: 0.8rem 0.4rem;
    border-radius: 0.4rem;
}
.chat-right-consult .consult-current-bar {
    margin-bottom: 0.5rem;
}
.chat-right-consult .consult-panel-item .tag-current {
    display: inline-block;
    font-size: 1rem;
    color: #1890ff;
    background: #e6f4ff;
    border-radius: 0.2rem;
    padding: 0 0.35rem;
    line-height: 1.6;
}
.chat-right-consult .consult-goods-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}
.chat-right-consult .consult-panel-item .cover {
    width: 4.8rem;
    height: 4.8rem;
    object-fit: cover;
    border-radius: 0.3rem;
    background: #f5f5f5;
    flex-shrink: 0;
}
.chat-right-consult .consult-panel-item .meta {
    flex: 1;
    min-width: 0;
}
.chat-right-consult .consult-panel-item .meta .title {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.5;
    margin: 0 0 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chat-right-consult .consult-panel-item .meta .sub {
    font-size: 1.1rem;
    color: #999;
    margin: 0;
    word-break: break-all;
}
.chat-right-consult .consult-goods-row.is-invalid {
    opacity: 0.72;
}
.chat-right-consult .consult-panel-item .tag-invalid {
    display: inline-block;
    margin-left: 0.2rem;
    padding: 0 0.3rem;
    font-size: 1rem;
    color: #fff;
    background: #bbb;
    border-radius: 0.2rem;
    vertical-align: middle;
    font-weight: 400;
}
.chat-right-consult .consult-card.chat-message-order {
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
    border: 0.1rem solid #eee;
    background: #fff;
}
.chat-right-consult .consult-card .order-head {
    white-space: normal;
    word-break: break-all;
}
.chat-right-consult .consult-card .order-goods-item .images {
    width: 5rem;
    height: 5rem;
}
.chat-right-consult .consult-send-wrap {
    margin-top: 0.2rem;
    text-align: right;
}
.chat-right-consult .consult-panel-item .submit-consult-send {
    margin: 0;
    padding: 0.15rem 0.55rem !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    height: auto !important;
}
.chat-content,
.chat-footer,
.chat-right {
    padding: 1rem;
}
.chat-content {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-height: 0;
    height: auto;
    max-height: none;
    resize: none;
    text-align: center;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.chat-agent-offline-ai-tip {
    display: none;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    height: 3.6rem;
    padding: 0 1.2rem;
    box-sizing: border-box;
    background: #fff9f9;
    border-top: 0.1rem solid #ffecec;
    color: #f56c6c;
    font-size: 1.3rem;
    line-height: 1.8rem;
    text-align: left;
}
.chat-agent-offline-ai-tip:not(.am-hide) {
    display: flex;
}
.chat-agent-offline-ai-tip .am-icon-exclamation-circle {
    font-size: 1.5rem;
    color: #f56c6c;
    flex-shrink: 0;
}
.chat-agent-offline-ai-tip-btn {
    margin: 0 0.15rem;
    padding: 0.05rem 0.4rem !important;
    font-size: 1.1rem !important;
    font-weight: normal;
    line-height: 1.4 !important;
    vertical-align: middle;
    cursor: pointer;
}
.chat-agent-offline-ai-tip-btn:hover,
.chat-agent-offline-ai-tip-btn:focus {
    opacity: 0.85;
    text-decoration: none;
}

/**
 * 访客排队等待提示
 */
.chat-queue-wait-tip {
    display: none;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    margin: 0;
    box-sizing: border-box;
    background: #fff8e6;
    border-top: 0.1rem solid #ffe2a8;
    border-bottom: 0;
    color: #8a6d3b;
    font-size: 1.3rem;
    line-height: 1.8rem;
    text-align: left;
}
.chat-queue-wait-tip:not(.am-hide) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.chat-queue-wait-tip .am-icon-clock-o {
    margin-right: 0.4rem;
    color: #f0ad4e;
}

/**
 * 工作台待回复排队（弱视觉：少徽章、无线框按钮）
 */
.chat-queue-panel {
    text-align: left;
    border: 0.1rem solid #f5f5f5;
    border-radius: 0.4rem;
    margin: 1rem 1rem 0;
    background: #fafafa;
    overflow: hidden;
}
.chat-queue-panel.am-hide {
    display: none !important;
}
.chat-queue-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}
.chat-queue-count {
    min-width: auto;
    padding: 0;
    height: auto;
    line-height: 1;
    text-align: right;
    border-radius: 0;
    background: transparent;
    color: #999;
    font-style: normal;
    font-size: 1.2rem;
    font-weight: normal;
}
.chat-queue-list {
    max-height: 14rem;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
.chat-queue-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-top: 0.1rem solid #f5f5f5;
    cursor: pointer;
    background: #fff;
}
.chat-queue-item:hover {
    background: #f7f7f7;
}
.chat-queue-pos {
    flex: 0 0 auto;
    min-width: 1.6rem;
    height: auto;
    line-height: 1.4;
    padding: 0;
    text-align: center;
    border-radius: 0;
    background: transparent;
    color: #bbb;
    border: 0;
    font-size: 1.2rem;
    font-weight: 500;
    box-sizing: border-box;
}
.chat-queue-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}
.chat-queue-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.chat-queue-name {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-queue-preview {
    margin: 0.1rem 0 0;
    font-size: 1.1rem;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-queue-wait {
    flex: 0 0 auto;
    font-size: 1.1rem;
    color: #999;
}
.chat-queue-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}
.chat-queue-pending {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    font-size: 1.1rem;
    color: #d56d62;
    background: #fdecea;
    border-radius: 0.3rem;
    padding: 0 0.45rem;
    line-height: 1.6rem;
    white-space: nowrap;
}
.chat-queue-pending-label {
    font-style: normal;
    font-weight: normal;
    font-size: 1rem;
    color: #d56d62;
    opacity: 1;
}
.chat-queue-pending-num {
    font-style: normal;
    font-weight: 700;
    font-size: inherit;
    color: #d56d62;
    letter-spacing: 0;
}
.chat-queue-empty {
    padding: 0.6rem 1rem 0.8rem;
    font-size: 1.2rem;
    color: #999;
    text-align: center;
}

.chat-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    height: 18rem;
    border-top: 0.1rem solid #eee;
    position: relative;
    padding-top: 0.5rem;
}
/* 拖入文件：仅盖住输入区（工具栏+输入框），虚线框 + 纯文字提示 */
.chat-footer.chat-drop-active::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    top: 0.4rem;
    bottom: 0.4rem;
    z-index: 40;
    box-sizing: border-box;
    border: 0.2rem dashed #0e90d2;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.94);
    pointer-events: none;
}
.chat-footer.chat-drop-active::after {
    content: '松开发送文件';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 41;
    color: #0e90d2;
    font-size: 1.5rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
    pointer-events: none;
    white-space: nowrap;
}
.chat-session-ended-mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    align-items: center;
    justify-content: center;
    display: none;
}
.chat-session-ended-mask:not(.am-hide) {
    display: flex;
}
.chat-session-ended-inner {
    text-align: center;
    padding: 1rem 1.6rem;
}
.chat-session-ended-inner p {
    margin: 0 0 1.2rem;
    color: #666;
    font-size: 1.4rem;
    line-height: 2rem;
}
.chat-session-ended-inner .chat-continue-btn {
    min-width: 10rem;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
}
.chat-footer textarea {
    resize: none;
    border: 0;
    width: 100%;
    height: calc(100% - 8.6rem);
    max-height: 100%;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.chat-footer-button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 1rem;
}
.chat-footer-button .error-tips {
    color: #f00;
}
.chat-footer-button .error-tips span {
    margin-left: 0.2rem;
}
.chat-left.right-hide {
    width: calc(100% - 26rem);
}
@media only screen and (min-width: 950px) {
    .am-container {
        max-width: 120rem;
        max-height: 68rem;
        border-radius: 0.8rem;
    }
    .chat-left {
        float: left;
        width: calc(100% - 52rem);
    }
}
@media only screen and (max-width: 950px) {
    .chat-left {
        width: calc(100% - 26rem);
        float: right;
    }
    .chat-right {
        display: none;
    }
}

/**
 * 左侧用户列表
 */
.chat-group {
    width: 26rem;
    height: calc(100% - 5.5rem);
    max-height: 100%;
    resize: none;
    float: left;
    border-right: 0.1rem solid #eee;
    text-align: center;
}
.chat-friend-list > li {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border-bottom: 0.1rem solid #f5f5f5;
    cursor: pointer;
    border-left: 0.3rem solid #fff;
    text-align: left;
    max-height: 7rem;
}
.chat-friend-list > li .avatar {
    position: relative;
    margin-right: 1rem;
}
.chat-friend-list > li .avatar img {
    width: 4rem;
    height: 4rem;
    border-radius: 100rem;
    background: #fff;
}
.chat-friend-list > li .avatar,
.chat-friend-list > li .base {
    float: left;
}
.chat-friend-list > li .time {
    float: right;
    max-width: 10rem;
}
.chat-friend-list > li .message-tips,
.chat-friend-list > li .time {
    color: #999;
}
.chat-friend-list > li .name,
.chat-friend-list > li .message-tips,
.chat-friend-list > li .time {
    word-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.chat-friend-list > li .badge {
    position: absolute;
    right: -0.2rem;
    top: -0.2rem;
    bottom: auto;
    background: #ff3b30;
    color: #fff;
    line-height: 1.4rem;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.45rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 100rem;
    box-sizing: border-box;
    border: 0.15rem solid #fff;
    -webkit-box-shadow: 0 0.1rem 0.4rem rgba(255, 59, 48, 0.45);
    box-shadow: 0 0.1rem 0.4rem rgba(255, 59, 48, 0.45);
    z-index: 2;
}
.chat-friend-list > li .badge:not(.am-hide) {
    animation: chat-unread-pulse 1.6s ease-in-out infinite;
}
@keyframes chat-unread-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.chat-friend-list > li .base {
    width: calc(100% - 15.2rem);
}
.chat-friend-list > li .status {
    position: absolute;
    right: 0.3rem;
    bottom: -0.3rem;
    width: 1.2rem;
    height: 1.2rem;
    background: #48d452;
    border: 0.1rem solid #fff;
    border-radius: 50%;
}
.chat-friend-list > li .status.off {
    background: #999;
}
/* 智能客服接待中：蓝色，优先于在线绿/离线灰 */
.chat-friend-list > li .status.ai {
    background: #3b82f6;
}
.chat-friend-list > li.active {
    border-left: 0.3rem solid #03a9f4;
    background: #f3f3f3;
}
.chat-group .message-more {
    text-align: center;
    padding: 1rem 0;
}
.chat-group .message-more a {
    color: #999;
    text-decoration: none;
}
.chat-group .message-more a:hover {
    color: #333;
}
@media only screen and (max-width: 640px) {
    .chat-group {
        width: 13rem;
    }
    .chat-friend-list > li .avatar img {
        width: 3rem;
        height: 3rem;
        margin-top: 0.5rem;
    }
    .chat-left,
    .chat-left.right-hide {
        width: calc(100% - 13rem);
    }
    .chat-friend-list > li .base {
        width: calc(100% - 4.5rem);
    }
 
    .chat-friend-list > li .time {
        display: none;
    }

    /* 手机：联系人收进左侧抽屉，聊天区铺满 */
    .chat-header .chat-group-toggle {
        display: inline-block;
    }
    .chat-container .chat-left,
    .chat-container .chat-left.right-hide {
        width: 100%;
        float: none;
    }
    .chat-container .chat-base {
        position: relative;
    }
    .chat-container .chat-group {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 82%;
        max-width: 32rem;
        height: auto;
        max-height: none !important;
        float: none;
        z-index: 1320;
        display: flex;
        flex-direction: column;
        background: #fff;
        text-align: left;
        border-right: 0;
        box-shadow: 0.2rem 0 1.2rem rgba(0, 0, 0, 0.12);
        -webkit-transform: translateX(-105%);
        transform: translateX(-105%);
        -webkit-transition: -webkit-transform 0.22s ease;
        transition: transform 0.22s ease;
        pointer-events: none;
        overflow: hidden;
    }
    .chat-container.chat-group-drawer-open .chat-group {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        pointer-events: auto;
    }
    .chat-container .chat-group-drawer-hd {
        display: flex;
    }
    .chat-container .chat-friend-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .chat-container .chat-friend-list:empty {
        flex: 0 0 0;
        min-height: 0;
        overflow: hidden;
    }
    .chat-container .chat-friend-search-empty:not(.am-hide) {
        flex: none;
        display: block;
    }
    .chat-container .chat-friend-list > li .avatar img {
        width: 4rem;
        height: 4rem;
        margin-top: 0;
    }
    .chat-container .chat-friend-list > li .base {
        width: calc(100% - 15.2rem);
    }
    .chat-container .chat-friend-list > li .time {
        display: block;
    }
    .chat-container.chat-group-drawer-open .chat-group-drawer-mask {
        display: block;
    }
}

/**
 * 消息内容
 */
.chat-content .message-list .user-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 100rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
}
.chat-content .message-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 3rem;
}
.chat-content .message-left .message-avatar-wrap {
    margin-right: 0;
}
.chat-content .message-right .message-avatar-wrap {
    margin-left: 0;
}
.chat-content .message-list > li {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 2rem 0;
}
.chat-content .message-list .message-bubble-wrap {
    max-width: calc(100% - 4.5rem);
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
}
.chat-content .message-list .message-sender-name {
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: #999;
    margin-bottom: 0.3rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-content .message-left .message-sender-name {
    text-align: left;
}
.chat-content .message-right .message-sender-name {
    text-align: right;
}
.chat-content .message-list .user-message-content {
    margin: 0;
    padding: 1rem;
    background: #cde0ff;
    color: #000;
    font-size: 1.4rem;
    border-radius: 0.6rem;
    max-width: 100%;
    display: inline-block;
    word-wrap: break-word;
    white-space: normal;
    word-break: break-all;
}
.chat-content .message-list.chat-msg-uploading .user-message-content {
    position: relative;
    overflow: hidden;
}
.chat-content .chat-msg-upload-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: auto;
    color: #fff;
}
.chat-content .chat-msg-upload-ring {
    position: relative;
    width: 4.4rem;
    height: 4.4rem;
}
.chat-content .chat-msg-upload-ring svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.chat-content .chat-msg-upload-ring-bg,
.chat-content .chat-msg-upload-ring-fg {
    fill: none;
    stroke-width: 2.6;
}
.chat-content .chat-msg-upload-ring-bg {
    stroke: rgba(255, 255, 255, 0.28);
}
.chat-content .chat-msg-upload-ring-fg {
    stroke: #fff;
    stroke-linecap: round;
    stroke-dasharray: 97.39;
    stroke-dashoffset: 97.39;
    transition: stroke-dashoffset 0.12s linear;
}
.chat-content .chat-msg-upload-pct {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}
.chat-content .message-list.chat-msg-uploading .chat-msg-image {
    min-width: 8rem;
    min-height: 8rem;
    background: #c8c8c8;
    object-fit: cover;
}
.chat-content .message-list.chat-msg-uploading .chat-msg-video {
    min-width: 10rem;
    min-height: 8rem;
}
.chat-content .message-list.chat-msg-uploading .message-copy,
.chat-content .message-list.chat-msg-uploading .message-quote {
    pointer-events: none;
    opacity: 0.35;
}
.chat-content .message-list .user-message-content table {
    width: 100%;
    min-width: 28rem;
    max-width: 52rem;
    border-collapse: collapse;
    margin: 0.2rem 0;
    background: #fff;
    border: 0.1rem solid #e8e8e8;
    border-radius: 0.4rem;
    overflow: hidden;
}
.chat-content .message-list .user-message-content table th,
.chat-content .message-list .user-message-content table td {
    padding: 0.5rem 0.8rem;
    vertical-align: top;
    border-bottom: 0.1rem solid #f0f0f0;
    word-break: break-all;
}
.chat-content .message-list .user-message-content table th {
    background: #f7f8fa;
    font-weight: 600;
}
.chat-content .message-list .user-message-content table tr:last-child td {
    border-bottom: 0;
}
.chat-content .message-list .user-message-content table td:first-child {
    width: 7.2rem;
    color: #888;
    white-space: nowrap;
}
.chat-content .message-list .user-message-content a:hover {
    color: #0887eb;
}
.chat-content .message-list .user-message-content img,
.chat-content .message-list .user-message-content video {
    max-width: 100%;
}
.chat-content .chat-msg-image {
    display: block;
    max-width: 16rem;
    max-height: 16rem;
    width: auto;
    height: auto;
    border-radius: 0.4rem;
    cursor: zoom-in;
}
.chat-content .chat-msg-video {
    position: relative;
    display: inline-block;
    max-width: 16rem;
    cursor: pointer;
    border-radius: 0.4rem;
    overflow: hidden;
    background: #111;
}
.chat-content .chat-msg-video video {
    display: block;
    max-width: 16rem;
    max-height: 12rem;
    width: 100%;
    background: #000;
    pointer-events: none;
}
.chat-content .chat-msg-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.2rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.chat-content .chat-msg-audio {
    min-width: 26rem;
    max-width: 34rem;
    width: 100%;
    text-align: left;
}
.chat-content .chat-msg-audio-hd {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    color: #666;
}
.chat-content .chat-msg-audio-hd > i {
    color: #888;
}
.chat-content .chat-msg-audio-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-content .chat-msg-audio-size {
    flex: 0 0 auto;
    color: #999;
    font-size: 1.1rem;
}
.chat-content .chat-msg-audio-player {
    display: block;
    width: 100%;
    height: 3.2rem;
    outline: none;
}
.chat-message-tools .chat-tool-audio,
.chat-message-tools .chat-tool-voice {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.chat-message-tools .chat-tool-voice.is-recording {
    color: #2A94FF;
}
.chat-voice-record-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.chat-voice-record-overlay.am-hide {
    display: none !important;
}
.chat-voice-record-panel {
    min-width: 16rem;
    padding: 2rem 2.4rem;
    border-radius: 0.8rem;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    text-align: center;
}
.chat-voice-record-overlay.is-cancel .chat-voice-record-panel {
    background: rgba(180, 40, 40, 0.88);
}
.chat-voice-record-time {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}
.chat-voice-record-tip {
    font-size: 1.3rem;
    opacity: 0.92;
}
.chat-content .chat-msg-voice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 7.2rem;
    max-width: 22rem;
    min-height: 1.96rem;
    padding: 0;
    line-height: 1.4;
    font-size: 1.4rem;
    cursor: pointer;
    user-select: none;
}
.chat-content .chat-msg-voice-icon {
    position: relative;
    flex: 0 0 auto;
    width: 1.8rem;
    height: 1.7rem;
    color: inherit;
    overflow: visible;
}
.chat-content .chat-msg-voice-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.chat-content .chat-msg-voice-horn {
    fill: currentColor;
}
.chat-content .chat-msg-voice-wave {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
}
.chat-content .message-right .chat-msg-voice-icon {
    transform: scaleX(-1);
}
.chat-content .chat-msg-voice.is-playing .chat-msg-voice-wave-1 {
    animation: chat-voice-speak-1 1.05s linear infinite;
}
.chat-content .chat-msg-voice.is-playing .chat-msg-voice-wave-2 {
    animation: chat-voice-speak-2 1.05s linear infinite;
}
.chat-content .chat-msg-voice-bars {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 3.6rem;
    height: 1.4rem;
    opacity: 0.5;
}
.chat-content .chat-msg-voice-bars i {
    display: block;
    width: 0.16rem;
    min-height: 0.28rem;
    border-radius: 0.08rem;
    background: currentColor;
    transform-origin: center center;
}
.chat-content .chat-msg-voice.is-playing .chat-msg-voice-bars {
    opacity: 0.55;
}
.chat-content .chat-msg-voice-bars i.is-played {
    opacity: 0.95;
}
.chat-content .chat-msg-voice-bars i.is-near {
    opacity: 1;
    animation: chat-voice-bar-bounce 0.38s ease-in-out infinite;
}
.chat-content .chat-msg-voice-bars i.is-active {
    opacity: 1;
    animation: chat-voice-bar-bounce 0.26s ease-in-out infinite;
}
.chat-content .message-right .chat-msg-voice {
    flex-direction: row-reverse;
}
.chat-content .chat-msg-voice-dur {
    flex: 0 0 auto;
    font-size: 1.4rem;
    line-height: 1.4;
    color: inherit;
    min-width: 2.2rem;
    text-align: right;
}
.chat-content .message-right .chat-msg-voice-dur {
    text-align: left;
}
.chat-content .message-left li.has-voice-unread .user-message-content {
    position: relative;
}
.chat-content .message-left li.has-voice-unread .user-message-content::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: -0.35rem;
    border-radius: 50%;
    background: #f56c6c;
}
@keyframes chat-voice-speak-1 {
    0%, 22% { opacity: 0; }
    23%, 100% { opacity: 1; }
}
@keyframes chat-voice-speak-2 {
    0%, 52% { opacity: 0; }
    53%, 100% { opacity: 1; }
}
@keyframes chat-voice-bar-bounce {
    0%, 100% { transform: scaleY(0.55); }
    50% { transform: scaleY(1); }
}
.chat-content .message-left {
    text-align: left;
    margin: 0.8rem 0;
}
.chat-content .message-right {
    text-align: right;
    margin: 0.8rem 0;
}
.chat-content .message-right > li {
    justify-content: flex-end;
}
.chat-content .message-left .message-bubble-wrap {
    margin-left: 1rem;
    align-items: flex-start;
}
.chat-content .message-right .message-bubble-wrap {
    margin-right: 1rem;
    align-items: flex-end;
}
.chat-content .message-left .user-message-content {
    background: #ededed;
}
.chat-content .message-right .user-message-content {
    text-align: left;
}
.chat-content .message-meta {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4rem;
    color: #c0c0c0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.chat-content .message-list > li:hover .message-meta {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.chat-content .message-right .message-meta {
    justify-content: flex-end;
}
.chat-content .message-meta-item {
    color: #c0c0c0;
    font-size: 1.2rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.chat-content a.message-meta-item {
    cursor: pointer;
}
.chat-content .message-meta-item > i {
    font-size: 1.2rem;
    color: #c0c0c0;
}
.chat-content a.message-meta-item:hover,
.chat-content a.message-meta-item:hover > i {
    color: #a8a8a8;
}

/**
 * 消息引用回复
 */
.chat-quote-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 0 0 0.6rem;
    padding: 0.6rem 0.8rem;
    background: #f7f7f7;
    border-left: 0.3rem solid #d0d0d0;
    border-radius: 0.3rem;
    text-align: left;
}
.chat-quote-bar.am-hide {
    display: none !important;
}
.chat-quote-bar-main {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}
.chat-quote-bar-label {
    display: inline-block;
    margin-right: 0.4rem;
    color: #999;
    font-size: 1.2rem;
}
.chat-quote-bar-name {
    display: inline-block;
    margin-right: 0.4rem;
    color: #666;
    font-size: 1.2rem;
    font-weight: 600;
}
.chat-quote-bar-text {
    display: block;
    margin-top: 0.15rem;
    color: #888;
    font-size: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-quote-bar-close {
    flex: 0 0 auto;
    float: none;
    opacity: 1;
    line-height: 1;
    color: #666 !important;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: none;
}
.chat-quote-bar-close:hover,
.chat-quote-bar-close:focus {
    color: #222 !important;
    opacity: 1;
}
.chat-msg-quote {
    margin: 0 0 0.5rem;
    padding: 0.45rem 0.6rem;
    background: rgba(0, 0, 0, 0.04);
    border-left: 0.25rem solid #c8c8c8;
    border-radius: 0.2rem;
    cursor: pointer;
    text-align: left;
}
.chat-content .message-right .chat-msg-quote {
    background: rgba(0, 0, 0, 0.05);
    border-left-color: #9eb6d9;
}
.chat-msg-quote-name {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-msg-quote-body {
    font-size: 1.2rem;
    color: #888;
    line-height: 1.4;
    word-break: break-word;
}
.chat-msg-quote.is-recalled {
    cursor: default;
    opacity: 0.85;
}
.chat-msg-quote.is-recalled .chat-msg-quote-body {
    font-style: italic;
    color: #999;
}
.chat-content .message-list > li.chat-msg-quote-flash .user-message-content {
    box-shadow: 0 0 0 0.15rem rgba(64, 158, 255, 0.45);
    transition: box-shadow 0.2s ease;
}

.chat-content .message-read-status {
    margin-top: 0.25rem;
    font-size: 1rem;
    line-height: 1.2rem;
    color: #c0c0c0;
    user-select: none;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}
.chat-content .message-right .message-read-status {
    text-align: center;
}
.chat-content .message-read-status.is-read {
    color: #52c41a;
}
.chat-content .message-read-status.is-unread {
    color: #bfbfbf;
}
.chat-content > .time {
    display: none;
}
.chat-paste-preview {
    text-align: center;
    padding: 0.5rem 0 0;
}
.chat-content .chat-msg-file {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 18rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.4rem;
    background: rgba(0,0,0,0.04);
    color: #333;
    text-decoration: none;
}
.chat-content .chat-msg-file:hover {
    color: #0e90d2;
}
.chat-content .chat-msg-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12rem;
}
.chat-content .chat-msg-file-size {
    color: #999;
    font-size: 1.1rem;
}
.chat-content .chat-msg-recall {
    color: #999;
    font-size: 1.2rem;
    font-style: italic;
}
.chat-content .message-recall-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.2rem 0.8rem;
    color: #999;
    font-size: 1.2rem;
    line-height: 1.6rem;
}
.chat-content .message-recall-tip-text {
    padding: 0 0.6rem;
    white-space: nowrap;
    font-style: italic;
    color: #999;
}
.chat-content .message-recall-reedit {
    padding: 0 0.4rem;
    font-style: normal;
    text-decoration: none !important;
    white-space: nowrap;
}
.chat-message-tools .chat-tool-file {
    cursor: pointer;
}
.chat-rating-stars {
    text-align: center;
    margin: 1.6rem 0;
    font-size: 3rem;
    color: #f37b1d;
}
.chat-rating-stars i {
    margin: 0 0.45rem;
    cursor: pointer;
}
.chat-rating-tip {
    margin: 0.4rem 0 0;
    color: #666;
    font-size: 1.4rem;
}
#chat-rating-modal .chat-rating-dialog {
    width: 42rem;
    margin-left: -21rem;
}
#chat-rating-modal .am-modal-bd {
    padding: 2rem 2.4rem 2.4rem;
    min-height: 22rem;
}
#chat-rating-modal .chat-rating-content {
    margin-top: 1.2rem;
    min-height: 10rem;
}
#chat-rating-modal .chat-rating-submit {
    margin-top: 1.4rem;
    height: 4rem;
    line-height: 4rem;
    padding: 0;
}
.chat-paste-preview img {
    display: block;
    max-width: 100%;
    max-height: 50vh;
    margin: 0 auto 1rem;
    border-radius: 0.4rem;
}
.chat-paste-preview video {
    display: block;
    max-width: 100%;
    max-height: 50vh;
    margin: 0 auto 1rem;
    border-radius: 0.4rem;
    background: #000;
}
.chat-paste-preview p {
    margin: 0;
    color: #666;
    font-size: 1.3rem;
}
.chat-paste-preview .chat-paste-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 100%;
    margin: 0 auto 1rem;
    padding: 1rem 1.2rem;
    border-radius: 0.4rem;
    background: #f5f5f5;
    color: #333;
    font-size: 1.4rem;
}
.chat-paste-preview .chat-paste-file i {
    font-size: 2rem;
    color: #999;
}
.chat-paste-preview .chat-paste-file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 22rem;
}
.chat-paste-preview .chat-paste-audio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 100%;
    margin: 0 auto 0.6rem;
    padding: 0.8rem 1.2rem;
    border-radius: 0.4rem;
    background: #f5f5f5;
    color: #333;
    font-size: 1.4rem;
}
.chat-paste-preview .chat-paste-audio i {
    font-size: 2rem;
    color: #999;
}
.chat-paste-preview .chat-paste-audio span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 28rem;
}
.chat-paste-preview audio {
    display: block;
    width: 100%;
    margin: 0 auto 1rem;
}
.chat-paste-confirm-modal.chat-paste-audio-modal .am-modal-dialog {
    width: 36rem;
    margin-left: -18rem;
}
@media only screen and (max-width: 640px) {
    .chat-content .chat-msg-audio {
        min-width: 0;
        max-width: 100%;
    }
    .chat-paste-confirm-modal.chat-paste-audio-modal .am-modal-dialog {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .chat-footer-button button:not(.chat-send-btn) {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
        min-width: 3.2rem;
    }
    .chat-footer-button button:not(.chat-send-btn) .chat-btn-icon {
        display: inline-block;
    }
    .chat-footer-button button:not(.chat-send-btn) .chat-btn-text {
        display: none;
    }
    .chat-footer-button .chat-send-btn {
        white-space: nowrap;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}
.chat-content .chat-login-required-actions {
    margin-top: 0.8rem;
}
.chat-content .message-more {
    text-align: center;
    padding: 1rem 0;
}
.chat-content .message-more a {
    color: #ff5722;
    text-decoration: none;
}
.chat-content .message-more a:hover {
    color: #f00;
}
/* 初始系统提示：警示条（警告图标 + 标题），区别于聊天气泡 / 分割线 */
.chat-content .message-pure {
    text-align: left;
    margin: 1rem 1.2rem 1.6rem;
}
.chat-content .message-pure > li {
    display: block;
    margin: 0;
    justify-content: flex-start;
}
.chat-content .message-pure > li::before,
.chat-content .message-pure > li::after {
    content: none !important;
    display: none !important;
}
.chat-content .message-pure .user-avatar {
    display: none !important;
}
.chat-content .message-pure .message-bubble-wrap {
    max-width: 100%;
    width: 100%;
    margin: 0;
    align-items: stretch;
}
.chat-content .message-pure .user-message-content {
    position: relative;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.1rem 1.4rem;
    background: #fff8e8;
    color: #8a6d3b;
    border: 1px solid #f0e0b2;
    border-left: 4px solid #e6a23c;
    border-radius: 0.4rem;
    box-shadow: none !important;
    font-size: 1.3rem;
    line-height: 2rem;
    text-align: left;
    box-sizing: border-box;
}
.chat-content .message-pure .user-message-content::before {
    content: none !important;
}
.chat-content .message-pure .message-pure-hd {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    color: #e6a23c;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6rem;
}
.chat-content .message-pure .message-pure-hd .am-icon-warning {
    font-size: 1.5rem;
}
.chat-content .message-pure .message-pure-bd {
    color: #8a6d3b;
    font-size: 1.3rem;
    line-height: 2rem;
    font-weight: normal;
}
.chat-content .message-pure .user-message-content a {
    color: #c99a31;
}
.chat-content .message-system-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.2rem 0.8rem;
    color: #999;
    font-size: 1.2rem;
    line-height: 1.6rem;
}
.chat-content .message-system-divider::before,
.chat-content .message-system-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}
.chat-content .message-system-divider span {
    padding: 0 1rem;
    white-space: nowrap;
}
/* AI/人工切换提示：叹号 + 黄字；时间单独淡色居中在下方 */
.chat-content .message-mode-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 2rem 1.2rem;
    padding: 0;
    text-align: center;
}
.chat-content .message-mode-tip-body {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: #e6a23c;
    font-size: 1.3rem;
    line-height: 1.8rem;
}
.chat-content .message-mode-tip-body .am-icon-exclamation-circle {
    font-size: 1.5rem;
    color: #e6a23c;
    flex-shrink: 0;
}
.chat-content .message-mode-tip-body span {
    color: #e6a23c;
    font-weight: normal;
}
.chat-content .message-mode-tip-time {
    color: #c0c0c0;
    font-size: 1.1rem;
    line-height: 1.4rem;
}
/* AI接待摘要：系统卡片，无头像昵称 */
.chat-content .message-ai-summary {
    margin: 1.2rem 1.2rem;
}
.chat-content .message-ai-summary-card {
    width: 100%;
    background: #f7f8fa;
    border: 0.1rem solid #e8ebf0;
    border-radius: 1rem;
    padding: 1.2rem 1.4rem 1rem;
    box-sizing: border-box;
    text-align: left;
}
.chat-content .message-ai-summary-hd {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.8rem;
    margin-bottom: 0.8rem;
}
.chat-content .message-ai-summary-hd .am-icon-file-text-o {
    color: #8a94a6;
}
.chat-content .message-ai-summary-bd {
    color: #333;
    font-size: 1.3rem;
    line-height: 2rem;
    white-space: normal;
    word-break: break-word;
}
.chat-content .message-ai-summary-time {
    margin-top: 0.8rem;
    color: #c0c0c0;
    font-size: 1.1rem;
    line-height: 1.4rem;
    text-align: right;
}
.chat-content .message-ai-thinking .user-message-content {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #666;
    background: #f3f3f3;
    margin-left: 0;
}
.chat-content .chat-record-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 12rem;
    margin-top: 18%;
    color: #999;
    font-size: 1.3rem;
    line-height: 1.6rem;
}
.chat-content .chat-record-loading .am-icon-spinner {
    font-size: 1.6rem;
    color: #bbb;
}
.chat-content .message-ai-thinking .ai-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.chat-content .message-ai-thinking .ai-thinking-dots i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #999;
    display: inline-block;
    animation: chat-ai-thinking-bounce 1.2s infinite ease-in-out;
}
.chat-content .message-ai-thinking .ai-thinking-dots i:nth-child(2) {
    animation-delay: 0.15s;
}
.chat-content .message-ai-thinking .ai-thinking-dots i:nth-child(3) {
    animation-delay: 0.3s;
}
@keyframes chat-ai-thinking-bounce {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-0.2rem); }
}
.chat-content .message-ai-typewriter .ai-typewriter-cursor {
    display: inline-block;
    margin-left: 0.1rem;
    color: #3876e9;
    animation: chat-ai-cursor-blink 0.8s step-end infinite;
}
@keyframes chat-ai-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.chat-footer-button button {
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0;
}
.chat-footer-button .chat-btn-icon {
    display: none;
    font-size: 1.4rem;
    line-height: 1;
}
.chat-footer-button .chat-btn-text {
    display: inline;
}
.chat-footer-button button.chat-ai-transfer-btn,
.chat-footer-button button.chat-ai-back-btn,
.chat-footer-button button.chat-ai-takeover-btn {
    background: #fff;
    border-color: #d9d9d9;
    color: #666 !important;
}
.chat-footer-button button.chat-agent-transfer-btn {
    background: #52c41a;
    border-color: #52c41a;
    color: #fff !important;
}
.chat-footer-button button.chat-agent-transfer-btn:hover,
.chat-footer-button button.chat-agent-transfer-btn:focus,
.chat-footer-button button.chat-agent-transfer-btn:active {
    background: #389e0d;
    border-color: #389e0d;
}
.chat-footer-button button.chat-ai-transfer-btn:hover,
.chat-footer-button button.chat-ai-transfer-btn:focus,
.chat-footer-button button.chat-ai-transfer-btn:active,
.chat-footer-button button.chat-ai-back-btn:hover,
.chat-footer-button button.chat-ai-back-btn:focus,
.chat-footer-button button.chat-ai-back-btn:active,
.chat-footer-button button.chat-ai-takeover-btn:hover,
.chat-footer-button button.chat-ai-takeover-btn:focus,
.chat-footer-button button.chat-ai-takeover-btn:active {
    background: #f5f5f5;
    border-color: #c0c0c0;
    color: #333 !important;
}
.chat-content .message-list .user-message-content .msg-business-data-loading {
    color: #979797;
    margin-top: 0.5rem;
}

/**
 * 聊天工具栏
 */
.chat-message-tools {
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.chat-message-tools-left,
.chat-message-tools-right {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}
.chat-message-tools-right {
    margin-left: auto;
    flex-shrink: 0;
}
.chat-message-tools label {
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    margin: 0;
}
.chat-message-tools label:hover {
    color: #333;
}
.chat-message-tools input[type="file"] {
    position: fixed;
    left: -9999999.9rem;
    top: -9999999.9rem;
}

/**
 * 会话消息搜索（工具栏图标弹出，默认不占高度）
 */
.chat-message-tools .chat-msg-search-tool.is-open {
    color: #03a9f4;
}
.chat-msg-search {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 100%;
    margin-bottom: 0.4rem;
    padding: 0;
    background: transparent;
    border: 0;
    z-index: 20;
}
.chat-msg-search.is-open {
    display: block;
}
.chat-msg-search-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 3.2rem;
    padding: 0 0.5rem 0 0.8rem;
    border: 0.1rem solid #eee;
    border-radius: 0.6rem;
    background: #fff;
    box-shadow: 0.1rem -0.1rem 1rem 0 rgb(0 0 0 / 16%);
}
.chat-msg-search-bar:focus-within {
    border-color: #03a9f4;
}
.chat-msg-search-bar > .am-icon-search {
    color: #999;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.chat-msg-search-input,
.chat-msg-search-input:hover,
.chat-msg-search-input:focus {
    flex: 1;
    min-width: 0;
    height: 2.8rem;
    padding: 0;
    border: 0 !important;
    background: transparent;
    font-size: 1.3rem;
    line-height: 2.8rem;
    outline: none;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}
.chat-msg-search-close {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 1.6rem;
    line-height: 1.6rem;
    cursor: pointer;
}
.chat-msg-search-close:hover {
    color: #666;
}
.chat-msg-search-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.15rem;
    padding-left: 0.3rem;
    border-left: 0.1rem solid #eee;
}
.chat-msg-search-count {
    min-width: 3.2rem;
    padding: 0 0.2rem;
    color: #999;
    font-size: 1.1rem;
    text-align: center;
    white-space: nowrap;
}
.chat-msg-search-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    color: #666;
    text-decoration: none;
}
.chat-msg-search-nav a:hover {
    color: #03a9f4;
}
.chat-msg-search-result {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    max-height: 18rem;
    overflow: auto;
    margin: 0 0 0.4rem;
    background: #fff;
    border: 0.1rem solid #eee;
    border-radius: 0.6rem;
    box-shadow: 0.1rem -0.1rem 1rem 0 rgb(0 0 0 / 16%);
    z-index: 5;
    text-align: left;
}
.chat-msg-search-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.chat-msg-search-list > li {
    padding: 0.7rem 0.9rem;
    border-bottom: 0.1rem solid #f5f5f5;
    cursor: pointer;
}
.chat-msg-search-list > li:hover,
.chat-msg-search-list > li.active {
    background: #f5f9ff;
}
.chat-msg-search-list > li .chat-msg-search-time {
    float: right;
    color: #bbb;
    font-size: 1.1rem;
    margin-left: 0.6rem;
}
.chat-msg-search-list > li .chat-msg-search-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.8rem;
}
.chat-msg-search-list > li em {
    font-style: normal;
    color: #f56c6c;
    background: transparent;
}
.chat-msg-search-list > li.chat-msg-search-empty,
.chat-msg-search-list > li.chat-msg-search-empty:hover {
    padding: 1.2rem 0.9rem;
    color: #999;
    font-size: 1.2rem;
    line-height: 1.8rem;
    text-align: center;
    cursor: default;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.chat-msg-search-list > li.chat-msg-search-loading .am-icon-spinner {
    margin-right: 0.4rem;
}
.chat-content .message-list > li.chat-msg-search-current .user-message-content {
    box-shadow: 0 0 0 0.15rem rgba(64, 158, 255, 0.45);
}

/**
 * 工具模块
 */
.tools-module-container {
    position: absolute;
    width: calc(100% - 2rem);
    top: -21rem;
    display: none;
}
.tools-module-container .am-close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    z-index: 1;
}
.tools-module-container .module-content {
    height: 20rem;
    background: #fff;
    border: 0.1rem solid #eee;
    resize: none;
    -webkit-box-shadow: 0.1rem -0.1rem 1rem 0 rgb(0 0 0 / 20%);
    box-shadow: 0.1rem -0.1rem 1rem 0 rgb(0 0 0 / 20%);
    border-radius: 0.6rem;
    text-align: center;
}

/**
 * 表情
 */
.tools-module-container.emoji-container ul li {
    height: 5rem;
}
.tools-module-container.emoji-container ul li a:hover {
    font-size: 3.2rem;
}
.tools-module-container.emoji-container .emoji-icon {
    font-size: 3rem;
    text-decoration: none !important;
}

/* 消息中的表情：悬停 title + 纯表情大号 + 收到时弹出 */
.chat-msg-emoji {
    display: inline-block;
    line-height: 1;
    vertical-align: text-bottom;
    cursor: help;
}
.chat-msg-emoji-lg {
    font-size: 3.2rem;
    margin: 0 0.08rem;
    vertical-align: middle;
}
@keyframes chat-emoji-pop {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    55% {
        transform: scale(1.55);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}
.chat-msg-emoji-pop {
    animation: chat-emoji-pop 1.1s cubic-bezier(0.2, 0.85, 0.25, 1);
    transform-origin: center bottom;
}

/**
 * 快捷消息
 */
.quick-message-container .module-content {
    padding-bottom: 4rem;
    text-align: left;
}
.quick-message-container ul {
    margin: 2.6rem;
}
.quick-message-container ul li {
    position: relative;
}
.quick-message-container ul li a {
    padding: 0.5rem 2.5rem 0.5rem 0.5rem;
    display: block;
    text-align: left;
    text-decoration: none !important;
}
.quick-message-container ul li:not(:last-child) {
    border-bottom: 0.1rem solid #eee;
}
.quick-message-container ul li i {
    cursor: pointer;
    color: #f00;
    position: absolute;
    top: 0.5rem;
    right: 0rem;
    padding: 0px 0.5rem;
    z-index: 1;
}
.quick-message-container .quick-message-form {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    z-index: 1;
}
.quick-message-container .quick-message-form .am-form-field:first-child {
    border-top-left-radius: 100rem !important;
    border-bottom-left-radius: 100rem !important;
    border-color: #3875ea;
}
.quick-message-container .quick-message-form .am-input-group-btn:last-child > .am-btn {
    border-top-right-radius: 100rem !important;
    border-bottom-right-radius: 100rem !important;
    background: #3875ea;
    border-color: #3875ea;
    color: #fff !important;
}
.quick-message-container .quick-message-form .am-input-group-btn:last-child > .am-btn:hover {
    background: #1b68ff;
    border-color: #1b68ff;
}
.chat-auto-reply-config .chat-auto-reply-tips {
    margin: 0 0 1rem;
    color: #999;
    font-size: 1.2rem;
    line-height: 1.7;
}
.chat-header .chat-auto-reply-settings-btn {
    margin-top: 0.3rem !important;
    cursor: pointer;
    text-decoration: none;
}
.chat-header .chat-auto-reply-settings-btn:hover {
    opacity: 0.9;
}

/**
 * 正在输入状态
 */
.chat-input-status-container {
    position: absolute;
    left: 1rem;
    top: -5rem;
    text-align: left;
    background: rgb(255 249 239 / 70%);
    -webkit-box-shadow: 0.1rem -0.2rem 1rem 0 rgb(0 0 0 / 10%);
    box-shadow: 0.1rem -0.2rem 1rem 0 rgb(0 0 0 / 10%);
    padding: 1rem;
    border-radius: 0.6rem;
    height: auto;
    max-height: 16rem;
    resize: none;
    width: calc(100% - 2rem);
    border: 0.1rem solid #ffefd9;
}
.chat-input-status-container .tips {
    color: #888;
}
.chat-input-status-container .msg {
    color: #ff9800;
    margin-left: 1rem;
}

/**
 * 空内容占位
 */
.container-not-data .not-data-msg {
    color: #999;
    margin-top: 7rem;
    text-align: center;
}

/**
 * 消息商品
 */
.chat-content .message-list .user-message-content table.chat-message-goods,
.chat-message-goods {
    margin: 0.5rem 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}
.chat-message-goods span.title {
    color: #666;
}
.chat-message-goods span.desc {
    color: #888;
}
.chat-content .message-list .user-message-content table.chat-message-goods tr td,
.chat-message-goods tr td {
    padding: 0 !important;
    vertical-align: top;
    border-bottom: 0 !important;
    word-break: break-word;
}
.chat-content .message-list .user-message-content table.chat-message-goods tr td:first-child,
.chat-message-goods tr td:first-child {
    width: 6rem !important;
    color: inherit;
    white-space: normal;
    line-height: 0;
    padding: 0 !important;
}
.chat-message-goods tr td:first-child a {
    display: block;
    line-height: 0;
}
.chat-message-goods .goods-base {
    margin-left: 0.8rem;
}
.chat-message-goods .goods-images {
    width: 6rem;
    height: 6rem;
    border-radius: 0.6rem;
    display: block;
    object-fit: cover;
}
.chat-message-goods .goods-title {
    max-width: 36rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.8rem;
    max-height: 3.4rem;
    white-space: initial !important;
    margin: 0;
}
.chat-message-goods .goods-base > p {
    margin: 0;
}
.chat-message-goods .goods-price {
    color: #c00;
    margin-right: 0.2rem;
    font-weight: normal;
}

/**
 * 消息订单卡片（结构对齐待发送订单卡片，宽度与商品卡片一致）
 */
.chat-message-order {
    margin: 0.5rem 0;
    width: 52rem;
    max-width: 100%;
    background: #fff;
    border: 0.1rem solid #eee;
    border-radius: 0.6rem;
    padding: 0.8rem;
    text-align: left;
    box-sizing: border-box;
}
.chat-message-order .order-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.chat-message-order .order-head {
    color: #333;
    margin: 0 0 0.8rem 0;
    word-break: break-all;
    white-space: normal;
}
.chat-message-order .order-goods-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.chat-message-order .order-goods-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
}
.chat-message-order .order-goods-item:last-child {
    margin-bottom: 0;
}
.chat-message-order .order-goods-item .images {
    flex-shrink: 0;
    width: 6rem;
    height: 6rem;
    border-radius: 0.6rem;
    object-fit: cover;
}
.chat-message-order .order-goods-item .info {
    flex: 1;
    min-width: 0;
    margin-left: 1rem;
}
.chat-message-order .order-goods-item .title {
    margin: 0;
    color: #333;
}
.chat-message-order .order-goods-item .price {
    margin: 0.2rem 0 0;
    color: #e22;
}
.chat-message-order .order-goods-item .price .num {
    color: #999;
    margin-left: 0.4rem;
}
.chat-message-order .order-cover-empty {
    background: #f5f5f5;
    display: inline-block;
}
@media only screen and (max-width: 640px) {
    .chat-content .message-list .user-message-content table.chat-message-goods tr td:first-child,
    .chat-message-goods tr td:first-child,
    .chat-message-goods .goods-images,
    .chat-message-order .order-goods-item .images {
        width: 4rem !important;
        height: 4rem;
    }
}
@media only screen and (max-width: 320px) {
    .chat-content .message-list .user-message-content table.chat-message-goods tr td:first-child,
    .chat-message-goods tr td:first-child,
    .chat-message-goods .goods-images,
    .chat-message-order .order-goods-item .images {
        width: 2rem !important;
        height: 2rem;
    }
}

/**
 * 来源推送数据
 */
.source-push-container {
    position: absolute;
    top: auto;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background: rgb(255 255 255 / 90%);
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
    border: 0.1rem solid #eee;
    padding: 1rem 0.5rem;
    border-radius: 0.6rem;
    -webkit-box-shadow: 0.1rem 0.1rem 1.5rem 0 rgb(0 0 0 / 10%);
    box-shadow: 0.1rem 0.1rem 1.5rem 0 rgb(0 0 0 / 10%);
    text-align: center;
}
.source-push-container .base {
    overflow: hidden;
    margin-bottom: 0.3rem;
}
.source-push-container .title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.8rem;
    max-height: 3.6rem;
    height: auto;
    white-space: initial !important;
    float: none;
    width: 100%;
    color: #666;
    text-align: left;
    margin: 0;
}
.source-push-container .goods-info {
    float: right;
    width: calc(100% - 7rem);
    text-align: left;
}
.source-push-container .goods-info .price {
    margin: 0.2rem 0 0;
    color: #e22;
    font-size: 1.3rem;
    font-weight: normal;
}
/* 与聊天商品卡片封面一致 6rem */
.source-push-container:not(.source-push-order) .images {
    width: 6rem;
    height: 6rem;
    border-radius: 0.6rem;
    float: left;
}
.source-push-container.source-push-order .images,
.source-push-container .order-goods-item .images {
    width: 4rem;
    height: 4rem;
    border-radius: 0.6rem;
}
.source-push-container .images {
    float: left;
}
.source-push-container .submit-close {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
}
.source-push-container.source-push-order {
    text-align: center;
    padding: 1rem 0.5rem;
}
.source-push-container.source-push-order .order-head {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.8rem;
    margin: 0 0 0.8rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.source-push-container.source-push-order .order-goods-list {
    list-style: none;
    margin: 0 0 0.6rem 0;
    padding: 0;
    max-height: 16rem;
    overflow-y: auto;
    text-align: left;
}
.source-push-container.source-push-order .order-goods-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
}
.source-push-container.source-push-order .order-goods-item:last-child {
    margin-bottom: 0;
}
.source-push-container.source-push-order .order-goods-item .images {
    float: none;
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    object-fit: cover;
}
.source-push-container.source-push-order .order-goods-item .info {
    flex: 1;
    min-width: 0;
    margin-left: 0.8rem;
}
.source-push-container.source-push-order .order-goods-item .title {
    float: none;
    width: 100%;
    height: auto;
    max-height: none;
    -webkit-line-clamp: unset;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    line-height: 1.8rem;
    text-align: left;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}
.source-push-container.source-push-order .order-goods-item .price {
    margin: 0.2rem 0 0;
    color: #e22;
    font-size: 1.2rem;
    line-height: 1.6rem;
    text-align: left;
}
.source-push-container.source-push-order .order-goods-item .price .num {
    color: #999;
    margin-left: 0.4rem;
}