/* style.css */
@tailwind utilities;

@layer utilities {
    .text-glow {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
    }
    .border-glow {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5), inset 0 0 10px rgba(99, 102, 241, 0.3);
    }
    .gradient-text {
        background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

body {
    background-color: #0f172a;
    overflow-x: hidden;
}

/* 星空背景容器 */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
}

/* 扫描线效果 */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.7), transparent);
    z-index: 999;
    pointer-events: none;
    animation: scan-line 8s linear infinite;
}

/* 科技感卡片 */
.tech-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.7s ease;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px);
}

/* 导航栏科技感 */
.nav-glow {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

/* 按钮科技感 */
.tech-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-btn::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.7s ease;
}

.tech-btn:hover::before {
    left: 100%;
}

.tech-btn:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
}

/* 头像光环效果 */
.avatar-halo {
    position: relative;
}

.avatar-halo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, #6366f1, #8b5cf6, #06b6d4, #8b5cf6, #6366f1);
    border-radius: 50%;
    z-index: 0;
    animation: rotate 8s linear infinite;
}

/* 成员卡片特殊效果 */
.member-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.member-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-5px);
}
.member-card .member-social a {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.member-card .member-social a:hover {
    text-shadow: 0 0 8px currentColor;
}

/* 关键帧动画 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1, 0 0 15px #6366f1; }
    50% { box-shadow: 0 0 10px #6366f1, 0 0 20px #6366f1, 0 0 30px #6366f1; }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-card {
        margin-bottom: 1.5rem;
    }
}

/* 确保动画类可用 */
.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}
.animate-star-twinkle {
    animation: star-twinkle 3s infinite;
}