/* 联系表单按钮 */
.wuchai-open-modal-btn {
    background: #6c5ce7;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wuchai-open-modal-btn:hover {
    background: #5b4cdb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* 模态框遮罩 */
.wuchai-message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.wuchai-message-modal.active {
    display: flex;
}

/* 模态框内容 */
.wuchai-message-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 模态框头部 */
.wuchai-message-header {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wuchai-message-icon {
    font-size: 24px;
}

.wuchai-message-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* 对话内容区域 */
.wuchai-message-conversation {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.wuchai-loading {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* 消息气泡 */
.wuchai-message-bubble {
    max-width: 70%;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 18px;
    word-break: break-word;
}

.wuchai-message-bubble.user {
    background: #6c5ce7;
    color: #fff;
    margin-left: auto;
    border-radius: 18px 18px 4px 18px;
}

.wuchai-message-bubble.admin {
    background: #fff;
    color: #333;
    margin-right: auto;
    border-radius: 18px 18px 18px 4px;
    border: 1px solid #e9ecef;
}

.wuchai-message-bubble p {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

.wuchai-message-time {
    font-size: 12px;
    opacity: 0.7;
    display: block;
    text-align: right;
}

/* 输入区域 */
.wuchai-message-input-area {
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.wuchai-message-input-area textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: none;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wuchai-message-input-area textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* 操作按钮 */
.wuchai-message-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.wuchai-btn-cancel {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.wuchai-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.wuchai-btn-send {
    background: #6c5ce7;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.wuchai-btn-send:hover {
    background: #5b4cdb;
    transform: translateY(-1px);
}

.wuchai-btn-send:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 响应消息 */
.wuchai-response {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.wuchai-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wuchai-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 消息列表样式 */
.wuchai-message-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wuchai-message-list h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.wuchai-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wuchai-message-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.wuchai-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wuchai-message-status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.wuchai-message-status.pending {
    background: #fff3cd;
    color: #856404;
}

.wuchai-message-status.replied {
    background: #d4edda;
    color: #155724;
}

.wuchai-message-date {
    color: #999;
    font-size: 14px;
}

.wuchai-message-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.wuchai-message-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.wuchai-message-reply {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.wuchai-reply-date {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}