/* 客服按钮样式 */
.ai-service-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: url('../indexpic/ChatImg.webp') center/cover;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}

.ai-service-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* 对话框样式 */
.chat-dialog {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #7c3aed;
    border-radius: 12px 0 0 12px;
    background: white;
    z-index: 999;
    height: 550px;
    display: none;
}

@media (min-width: 1048px) {
    .chat-dialog {
        width: 768px;
    }
}

@media (max-width: 1047px) {
    .chat-dialog {
        width: 90%;
    }
}

/* 信息区样式 */
.message-area {
    height: 350px;
    padding: 10px;
    overflow-y: auto;
    background: white;
}

.message-bubble {
    max-width: 80%;
    margin: 10px 0;
    padding: 12px;
    border-radius: 15px;
    word-break: break-word;
}

.user-message {
    background: #f0ebfe;
    margin-left: auto;
}

.bot-message {
    background: #f1f5f9;
}

/* 快捷提问区样式 */
.quick-ask-area {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-top: 3px solid #7c3aed;
    position: relative;
}

.quick-btns-group {
    display: flex;
    gap: 3px;
}

.quick-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #7c3aed;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 30px;
    height: 30px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quick-btn-text {
    white-space: nowrap;
}

.quick-btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: none;
}

.clean-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: url('../indexpic/clean.webp') center/cover;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* 输入区样式 */
.input-area {
    height: 90px;
    padding: 5px;
    position: relative;
}

.chat-input {
    width: calc(100% - 75px);
    height: 130px;
    padding: 8px;
    border: 2px solid #7c3aed;
    border-radius: 8px;
    resize: none;
    background: #f3f4ec;
}

.send-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 50px;
    height: 50px;
    border: none;
    background: url('../indexpic/send.webp') center/cover;
    border-radius: 8px;
    cursor: pointer;
}

/* 欢迎信息样式 */
.welcome-message {
    background: #e5deff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.welcome-message p:first-child {
    font-weight: bold;
    margin-bottom: 10px;
}

/*--------------------------------*/
.service-items-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.service-item {
    padding: 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #2c3e50;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-color: #409eff;
}

.ai-response {
    line-height: 1.7;
    padding: 10px 0;
}

.ai-response p:first-child {
    font-weight: 500;
    color: #1a1a1a;
}

/**-----------------------------------*/

/* 响应式调整 */
@media (max-width: 768px) {
    .quick-btn-text {
        display: none;
    }
    .quick-btn-icon {
        display: block !important;
    }
}
