/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* 消息气泡动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: fadeIn 0.3s ease-out;
}

/* 输入框焦点效果 */
input:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* 按钮悬停效果 */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
}

/* 科技感动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }
}

.glow {
    animation: pulse 3s infinite;
}

/* 网格动画效果 */
@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

.tech-grid {
    animation: gridMove 20s linear infinite;
}

/* 响应式布局调整 */
@media (max-width: 640px) {
    .container {
        padding: 0.5rem;
    }
} 