@charset "UTF-8";

dl,
dd,
ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

@font-face {
    font-family: "ai-helper-iconfont";
    /* Project id 4175895 */
    src: url('../font/iconfont.woff2?t=1690162273896') format('woff2'),
        url('../font/iconfont.woff?t=1690162273896') format('woff'),
        url('../font/iconfont.ttf?t=1690162273896') format('truetype');
}

.ai-helper-iconfont {
    font-family: "ai-helper-iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ai-helper-icon-chanpin:before {
    content: "\e622";
}

.ai-helper-icon-zixun:before {
    content: "\e708";
}

.ai-helper-icon-qq:before {
    content: "\e6b2";
}

.ai-helper-icon-weixin:before {
    content: "\e63f";
}

.ai-helper-icon-weibo:before {
    content: "\e608";
}

.ai-helper-icon-huiyuanzhongxin:before {
    content: "\e619";
}

.ai-helper-icon-bofang:before {
    content: "\e61a";
}

.ai-helper-icon-home:before {
    content: "\e636";
}

.ai-helper-icon-xiazai:before {
    content: "\e659";
}

.ai-helper-icon-shoucang1:before {
    content: "\e635";
}

.ai-helper-icon-dianhua:before {
    content: "\e603";
}

.ai-helper-icon-huiyuan:before {
    content: "\e604";
}

.ai-helper-icon-tongzhi:before {
    content: "\e60e";
}

.ai-helper-icon-youxiang:before {
    content: "\e610";
}

.ai-helper-icon-xiangqing:before {
    content: "\e639";
}

.ai-helper-icon-user:before {
    content: "\e76e";
}

.ai-helper-icon-shopping-cart:before {
    content: "\e63b";
}

.ai-helper-icon-back:before {
    content: "\e67e";
}

.ai-helper-icon-download:before {
    content: "\e67f";
}

.ai-helper-icon-edit:before {
    content: "\e680";
}

.ai-helper-icon-check:before {
    content: "\e681";
}

.ai-helper-icon-eye:before {
    content: "\e682";
}

.ai-helper-icon-bell:before {
    content: "\e683";
}

.ai-helper-icon-left:before {
    content: "\e684";
}

.ai-helper-icon-right:before {
    content: "\e685";
}

.ai-helper-icon-down:before {
    content: "\e686";
}

.ai-helper-icon-up-arrow-right:before {
    content: "\e687";
}

.ai-helper-icon-image:before {
    content: "\e688";
}

.ai-helper-icon-info-circle:before {
    content: "\e689";
}

.ai-helper-icon-up-arrow-left:before {
    content: "\e68a";
}

.ai-helper-icon-alert-circle:before {
    content: "\e68b";
}

.ai-helper-icon-menu:before {
    content: "\e68c";
}

.ai-helper-icon-plus-circle:before {
    content: "\e68d";
}

.ai-helper-icon-search:before {
    content: "\e68e";
}

.ai-helper-icon-pause-circle:before {
    content: "\e68f";
}

.ai-helper-icon-paperclip:before {
    content: "\e690";
}

.ai-helper-icon-loader:before {
    content: "\e691";
}

.ai-helper-icon-star:before {
    content: "\e692";
}

.ai-helper-icon-help-circle:before {
    content: "\e693";
}

.ai-helper-icon-play-circle:before {
    content: "\e694";
}

.ai-helper-icon-upload:before {
    content: "\e695";
}

.ai-helper-icon-list:before {
    content: "\e696";
}

.ai-helper-icon-rotate-cw:before {
    content: "\e697";
}

.ai-helper-icon-map-pin:before {
    content: "\e698";
}

.ai-helper-icon-plus:before {
    content: "\e699";
}

.ai-helper-icon-icon-up:before {
    content: "\e69a";
}

.ai-helper-icon-users:before {
    content: "\e69b";
}

.ai-helper-icon-zoom-in:before {
    content: "\e69c";
}

.ai-helper-icon-thumbs-up:before {
    content: "\e69d";
}

.ai-helper-icon-message:before {
    content: "\e69f";
}

.ai-helper-icon-x-circle:before {
    content: "\e6a0";
}

.ai-helper-icon-more:before {
    content: "\e6a1";
}

.ai-helper-icon-user-check:before {
    content: "\e6a2";
}

.ai-helper-icon-x:before {
    content: "\e6a3";
}

.ai-helper-icon-clock:before {
    content: "\e6a4";
}

.ai-helper-icon-trash:before {
    content: "\e6a5";
}

/* 窗口 */
.ai-chat-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 580px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.ai-chat-box.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #ff6000;
    color: #fff;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.chat-title {
    font-size: 16px;
    font-weight: 500;
}

.chat-close {
    font-size: 22px;
    cursor: pointer;
    line-height: 20px;
}

.chat-close:hover {
    opacity: 0.8;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    background-color: #f5f5f5;
}

.chat-messages {
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 16px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.ai {
    align-items: flex-start;
}

.message-wrapper {
    display: flex;
    max-width: 100%;
}

.chat-message.user .message-wrapper {
    flex-direction: row-reverse;
}

.chat-message.user .avatar {
    margin-right: 0;
    margin-left: 8px;
}

.chat-message.user .message-content {
    background-color: #ff6000;
    color: #fff;
}

.chat-footer {
    display: flex;
    padding: 12px 16px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

#chatInput {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

#chatInput:focus {
    border-color: #ff6000;
}

.chat-send {
    margin-left: 8px;
    padding: 8px 16px;
    background-color: #ff6000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.chat-send:hover {
    background-color: #e55a00;
}

.chat-button {
    position: fixed;
    bottom: 50px;
    right: 60px;
    width: 60px;
    height: 60px;
    background-color: #ff6000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chat-button i {
    font-size: 28px;
    color: #fff;
}

/* 折叠列表样式*/
.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-title {
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.faq-title:hover {
    background: #f5f5f5;
}

.faq-title::after {
    content: '+';
    font-size: 18px;
    transition: transform 0.3s;
}

.faq-item.active .faq-title::after {
    content: '-';
}

.faq-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    padding: 0;
    max-height: 500px;
    background: #ffffff;
}

.sub-item {
    padding: 10px 15px;
    margin: 5px 0;
    cursor: pointer;
}

.sub-item:hover {
    background: #f9f9f9;
}

.chat-message.ai {
    align-self: flex-start;
    margin-top: 24px;
    position: relative;
    max-width: 100%;
}

.pc-service-left {
    display: inline-block;
    height: 100%;
    vertical-align: top;
    width: 38px;
    position: absolute;
    left: 0;
    top: 0;
}

.pc-service-left>img {
    width: 30px;
    height: 30px;
    border-radius: 20px;
}

.pc-service-right {
    padding-left: 38px;
    padding-right: 8px;
    max-width: 100%;
}

.pc-service-right .message-info span {
    max-width: 200px;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    vertical-align: top;
    white-space: nowrap;
}

.tl .message-info {
    text-align: left;
}

.tr .message-info {
    text-align: right;
}

.pc-service-right .message-info {
    font-size: 12px;
    color: #62778C;
    margin-bottom: 5px;
    height: 18px;
}

.message-content {
    display: inline-block;
    max-width: 100%;
    padding: 8px 12px;
    background-color: #ffffff;
    color: #28334B;
    border-radius: 4px;
    white-space: normal;
    font-size: 14px;
    word-break: break-word;
    word-wrap: break-word;
}

.message-content a {
    color: #0000ee;
}

.message-content p {
    margin: 2px;
}

.message-content li {
    line-height: 24px;
}

.pc-service-right .nickname {
    margin-right: 10px;
}

.common-qustion-title {
    font-size: 14px;
    line-height: 26px;
    padding: 2px 0 0;
    align-items: center;
    color: rgba(0, 0, 0, .85);
    display: flex;
}

.faq-bubble {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.faq-bubble-list {
    list-style: none;
}

.faq-bubble-item {
    margin-bottom: 10px;
}

.faq-bubble-item a {
    display: block;
    padding: 8px 12px;
    background-color: #fff5ee;
    /* 非常浅的橙色背景*/
    border-radius: 4px;
    color: #e8855a;
    /* 淡橙红色*/
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.faq-bubble-item a:hover {
    background-color: #ffeee5;
}

.faq-bubble-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.common-wel-line {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 2px 0 9px;
    margin-bottom: 10px;
}

/* 添加呼吸灯效果 */
@keyframes breathing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.chat-button {
    animation: breathing 2s ease-in-out infinite;
}
