/* ========== 共享基础样式 ========== */

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(244, 114, 182, 0);
    }
}

@keyframes loading {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* 基础类 */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.pulse-dot {
    animation: pulse 2s infinite;
}

.loading-dot {
    animation: loading 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.4);
}

.btn-secondary {
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3a3a4e;
    border-color: #f472b6;
}

/* 气泡样式 */
.chat-bubble {
    max-width: 80%;
    word-wrap: break-word;
}

.user-bubble {
    background: linear-gradient(135deg, #1e1e32 0%, #2d2d44 100%);
    border: 1px solid #2a2a3e;
}

.ai-bubble {
    background: linear-gradient(135deg, #2d2d44 0%, #3d3d5c 100%);
    border: 1px solid #3a3a4e;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #151520;
}

::-webkit-scrollbar-thumb {
    background: #2a2a3e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f472b6;
}

/* 输入框 */
.chat-input {
    background: #1e1e32;
    border: 1px solid #2a2a3e;
    transition: all 0.3s ease;
    resize: none;
    min-height: 44px;
    max-height: 200px;
}

.chat-input:focus {
    outline: none;
    border-color: #f472b6;
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.2);
}

/* 历史记录项 */
.history-item {
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(244, 114, 182, 0.1);
}
