/* 基础样式 */
.deepseek-chat-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #e5e7eb;
}

/* 头部样式 */
.deepseek-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.deepseek-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deepseek-logo h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.deepseek-info {
    display: flex;
    gap: 8px;
    align-items: center;
}

.model-tag {
    background: #e0f2fe;
    color: #0c4a6e;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 对话区域 */
.deepseek-conversation {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deepseek-message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    align-self: flex-end;
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message {
    align-self: flex-start;
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
}

.deepseek-welcome {
    text-align: center;
    padding: 20px;
    color: #4b5563;
}

.deepseek-welcome p {
    font-size: 16px;
    margin-bottom: 20px;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* 输入区域 */
.deepseek-input-area {
    position: relative;
    padding: 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.deepseek-input-area textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 14px 60px 14px 18px;
    font-size: 16px;
    resize: none;
    min-height: 56px;
    max-height: 150px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.deepseek-input-area textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.deepseek-send-btn {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deepseek-send-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.deepseek-send-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* 底部样式 */
.deepseek-footer {
    padding: 12px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* 加载动画 */
.deepseek-loading {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.loading-dots {
    display: inline-flex;
    gap: 5px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: #d1d5db;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .deepseek-chat-container {
        margin: 20px;
        border-radius: 8px;
    }
    
    .deepseek-conversation {
        height: 350px;
        padding: 15px;
    }
    
    .deepseek-message {
        max-width: 90%;
    }
}