/* 智能客服页面专用样式 */

.chatbot-container {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #fbc2eb 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.chat-header {
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}


/* 聊天区域 */
.chat-messages {
    height: 410px;
    overflow-y: auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}


/* 聊天消息 */
.message {
    margin-bottom: 15px;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.user-message .message-content {
    background-color: #3a86ff;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background-color: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 5px;
}


/* 聊天输入框 */
.chat-input {
    display: flex;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    margin-right: 10px;
    outline: none;
}

.chat-input input:focus {
    border: 1px solid #ffc107; /* 金黄色边框，仅在获得焦点时显示 */
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.chat-input button {
    background-color: #fff;
    color: #3a86ff;
    font-weight: bold;
    border: none;
    border-radius:20px;
    padding: 10px 40px !important;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-input button:hover {
    background-color: #3a86ff;
    color: #fff;
}


/* 右侧常见问题 */
.qa-item {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s;
}

.qa-item:last-child {
    border-bottom: none;
}

.qa-item:hover {
    background-color: #f1f3f5;
}

.qa-item a {
    color: #495057;
    text-decoration: none;
}

.qa-item a:hover {
    color: #3a86ff;
}

.qa-item .link-red {
    color: #e63946;
}

.qa-item i {
    color: #3a86ff;
    margin-right: 5px;
}


/* 特定关键词快速链接 */
.quick-links {
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.quick-links p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-link-btn {
    display: inline-block;
    padding: 1px 12px;
    background-color: #f0f7ff;
    color: #3a86ff;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #d0e3ff;
    transition: all 0.2s ease;
}

.quick-link-btn:hover {
    background-color: #3a86ff;
    color: white;
    text-decoration: none;
}


/* 智能客服图标 */
.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-avatar img {
    width: 30px;
    height: 30px;
}


/* 欢迎信息 */
.welcome-message {
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
}


/* 搜索到的推荐列表 */
.recommended-title {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

.recommended-list {
    margin-left: 0;
}

.recommended-list a {
    font-size: 14px;
    display: block;
    color: #3a86ff;
    text-decoration: none;
}

.recommended-list a:hover {
    text-decoration: underline;
}


/* 右侧区域：重定义 */
.side-list-art {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.side-list-art:hover {
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.block-title-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.block-title-1 h3 {
    margin: 0;
    color: #3a86ff;
    font-size: 18px;
    font-weight: 600;
}

.small-list-posts {
    padding: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chat-messages {
        height: 300px;
        font-size: 16px;
    }
    .bot-message .message-content a {
        font-size: 16px !important;
    }

    .chat-input input {
        padding: 12px 20px;
        font-size: 16px !important;
    }

    .chat-input button {
        padding: 5px 20px !important;
        font-size: 16px !important;
    }
}