/**
 * AI助手主题样式
 * 版本：1.0.1
 * 日期：2024-03-11
 */
 dl, dd, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}
:root {
    /* 主题颜色 */
    --primary-color: #ff6000;
    --primary-hover: #e55a00;
    --secondary-color: #f5f6f7;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --border-color: #e9ecef;
    --light-border: #eee;
    
    /* 尺寸 */
    --chat-width: 400px;
    --chat-height: 580px;
    --header-height: 46px;
    --footer-height: 64px;
    --border-radius: 6px;
    --avatar-size: 36px;
    
    /* 阴影 */
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    --small-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    
    /* 动画 */
    --transition-speed: 0.3s;
}

/* 暗色主题（预留） */
@media (prefers-color-scheme: dark) {
    :root {
        /* 暗色主题颜色（预留） */
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.chat-container {
    width: 960px;
    height: 680px;
    background-color: #fff;
    display: flex;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.1), 0 10px 30px rgba(0,0,0,0.08); /* 增强上方阴影 */
}
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e6e6e6;
}
.chat-sidebar {
    width: 300px;
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 细化侧边栏滚动条 */
.chat-sidebar::-webkit-scrollbar {
    width: 4px;
}

.chat-sidebar::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 2px;
}

.chat-sidebar::-webkit-scrollbar-track {
    background-color: #f9f9f9;
}

.chat-header {
    background-color: #f5a46c; /* 更浅淡的橙色 */
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 55px;
}

.chat-header-title {
    display: flex;
    align-items: center;
}

.chat-header-logo {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5a46c; /* 更浅淡的橙色 */
    font-weight: bold;
}

.chat-header-text {
    font-size: 16px;
    font-weight: 500;
}

.chat-header-button {
    background-color: transparent;
    border: 1px solid #fff;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.chat-header-button:hover {
    background-color: rgba(255,255,255,0.1);
}
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f5f5;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f9f9f9;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f9f9f9;
}
.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 2px;
}

.chat-body::-webkit-scrollbar-track {
    background-color: #f9f9f9;
}

.no-history {
    color: #999;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    font-weight: 300;
}

.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.message-info {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.message-row {
    display: flex;
    align-items: flex-start;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5a46c; /* 更浅淡的橙色 */
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    word-break: break-word;
    line-height: 1.5;
    font-size: 14px;
    background-color: #fff;
    border-radius: 4px;
}
.message.received .message-row {
    flex-direction: row;
}

.message.sent .message-row {
    flex-direction: row-reverse;
}

.message.sent .avatar {
    margin-right: 0;
    margin-left: 10px;
    background-color: #f1f1f1;
}

.message.sent .message-content {
    background-color: #f1f1f1;
    border: none;
}

.chat-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #fff;
}

.chat-input-container {
    display: flex;
    position: relative;
    background-color: #f9f9f9; /* 浅灰色背景代替边框 */
    border-radius: 4px;
    transition: all 0.2s;
}

.chat-input-container:focus-within {
    background-color: #f5f5f5; /* 聚焦时背景色变化 */
    box-shadow: 0 0 0 2px rgba(245, 164, 108, 0.1); /* 聚焦时添加柔和阴影 */
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    resize: none;
    height: 70px; /* 增加高度 */
    font-size: 14px;
    background-color: transparent; /* 透明背景 */
    line-height: 1.5;
}

.send-button {
    position: absolute;
    bottom: 15px; /* 调整位置 */
    right: 15px;
    padding: 8px 20px; /* 增加按钮大小 */
    background-color: #f5a46c; /* 使用主题色 */
    color: white;
    border: none; /* 移除边框 */
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.send-button:hover {
    background-color: #e8855a; /* 悬停时颜色加深 */
}

.sidebar-title {
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding: 18px 15px;
    font-weight: normal;
    height: 55px;
    display: flex;
    align-items: center;
}

.sidebar-content {
    padding: 15px;
}

.sidebar-content p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.sidebar-links {
    margin-bottom: 15px;
}

.sidebar-links a {
    display: block;
    color: #e8855a; /* 淡橙红色链接 */
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    word-break: break-all;
    transition: color 0.2s;
}

.sidebar-links a:hover {
    color: #d9734a;
    text-decoration: underline;
}

/* 常见问题气泡内样式 */
.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;
}
a{text-decoration: none;}
.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;#eff3f6; */
    background-color: #ffffff;
    color: #28334B;
    border-radius: 4px;
    white-space: normal;
    font-size: 14px;
    word-break: break-word;
    word-wrap: break-word;
}
.message-content li{line-height: 24px;;}
.pc-service-right .nickname{margin-right: 10px;}
.chat-message{position: relative; margin-top: 24px;}

/* 折叠列表样式 */
.faq-list {list-style:none;padding:0;margin:0;}
.faq-item {border-bottom:1px solid #eee;}
.message-content li:last-child {border-bottom:none;}
.faq-title {padding:8px;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:6px;max-height:500px;background:#ffffff;}
.sub-item {padding:5px 10px;margin:5px 0;cursor:pointer;}
.sub-item:hover {background:#f9f9f9;border-left-color:#ff6000;}
.common-qustion-title {font-size:14px;line-height:26px;align-items:center;color:rgba(0,0,0,.85);display:flex;}
.message-wrapper {display:flex;max-width:100%;}
.chat-message.user .message-wrapper {flex-direction:row-reverse;}
.chat-message.user .message-content {background-color:#ff6000;color:#fff;border:1 solid #ff6000;}
.chat-header-logo img {width:30px;border-radius:50%;}
.common-wel-line {border-bottom:1px solid rgba(0,0,0,.1);padding:2px 0 9px;margin-bottom:10px;}
.message-content img{width: 50%;}
/* 图片放大 */
.ai-image-overlay {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.8);display:flex;justify-content:center;align-items:center;z-index:9999;cursor:pointer;}
.ai-zoomed-image {max-width:90%;max-height:90%;object-fit:contain;}
.ai-zoomable {cursor:pointer;transition:transform 0.2s;}
.ai-zoomable:hover {transform:scale(1.05);}
