/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(79, 70, 229, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.7);
}

/* 通用动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 工具类 */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.active {
    animation: fadeIn 0.8s ease forwards;
}

/* 文本选择样式 */
::selection {
    background: rgba(167, 139, 250, 0.4);
    color: white;
}

/* 输入框和按钮样式增强 */
input[type="text"],
input[type="email"],
textarea,
select {
    transition: all 0.3s ease;
    background-color: rgba(30, 27, 75, 0.6);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background-color: rgba(30, 27, 75, 0.8);
}

button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 100%;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.2);
}

/* 玻璃态设计增强 */
.glass-effect {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(30, 27, 75, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}