﻿#yq-chat-btn {
position: fixed;
right: 30px;
bottom: 30px;
width: 60px;
height: 60px;
background: linear-gradient(135deg, #1e9fff, #007bff); /* 科技蓝渐变 */
border-radius: 50%;
box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5);
cursor: pointer;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s;
animation: breathe 2s infinite; /* 呼吸灯效果 */
text-align: center;
padding: 5px;
box-sizing: border-box;
}

#yq-chat-btn:hover {
    transform: scale(1.1);
}

/* 按钮文字样式 */
#yq-chat-btn span {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    display: block;
}

/* 聊天窗口 */
#yq-chat-box {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 320px;
    height: 450px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9998;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}

#yq-chat-box.show {
    display: flex;
}

/* 头部 */
#yq-chat-head {
    background: linear-gradient(90deg, #1e9fff, #007bff);
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#yq-chat-head .close {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
}

#yq-chat-head .close:hover {
    opacity: 1;
}

/* 对话区域 */
#yq-chat-log {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f7f8fa;
}

/* 消息样式 */
.msg {
    margin-bottom: 12px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.6;
}

.msg.u {
    margin-left: auto;
    background: #1e9fff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 15px 15px 0 15px;
    text-align: right;
}

.msg.a {
    margin-right: auto;
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 15px 15px 15px 0;
    border: 1px solid #eee;
    text-align: left;
}

/* 微信提示样式 */
.msg.wechat-tip {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #d48806;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    margin: 10px 0;
}

/* 输入区域 */
#yq-chat-foot {
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
    display: flex;
    gap: 8px;
}

#yq-chat-foot input {
    flex: 1;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 0 15px;
    outline: none;
    font-size: 13px;
}

#yq-chat-foot button {
    width: 60px;
    height: 36px;
    background: #1e9fff;
    color: #fff;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
}

#yq-chat-foot button:hover {
    background: #007bff;
}

/* 滚动条美化 */
#yq-chat-log::-webkit-scrollbar { width: 6px; }
#yq-chat-log::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }