/* 全局样式增强 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .card-shadow {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
}

/* 动画效果 */
@keyframes bounce-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* 新增动画效果 */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 中奖特效增强 */
@keyframes winEffect {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        transform: scale(1.2);
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
}

.win-animation {
    animation: winEffect 0.6s ease-in-out 3;
    border: 3px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* 特等奖特殊动画 */
.special-prize-animation {
    animation: specialPrizeEffect 0.5s infinite;
    color: #ff6b6b;
}

@keyframes specialPrizeEffect {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 闪烁动画 */
.blink-animation {
    animation: blinkEffect 0.2s infinite;
}

@keyframes blinkEffect {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 特等奖中奖动画 */
.special-win-animation {
    animation: specialWinEffect 1.5s ease-in-out;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff, 0 0 50px #ff00ff;
    background: radial-gradient(circle, rgba(255,0,255,0.3) 0%, rgba(255,0,255,0) 70%);
    border-radius: 10px;
    padding: 20px;
}

@keyframes specialWinEffect {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.3) rotate(5deg); }
    50% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.3) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* 增强背景效果 */
body {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 20%),
        linear-gradient(to bottom right, #ffffff, #eff6ff);
    background-attachment: fixed;
}

/* 增强卡片阴影效果 */
.card-shadow {
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* 按钮悬停效果增强 */
.prize-btn {
    transition: all 0.3s ease;
    transform-origin: center;
}

.prize-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.prize-btn.active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* 抽奖动画 */
.drawing-animation {
    animation: draw-spin 0.05s linear infinite;
}

@keyframes draw-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(1deg) scale(1.02);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* 中奖效果 */
.win-animation {
    animation: win-effect 0.6s ease-in-out;
}

@keyframes win-effect {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 名单项样式 */
.name-item {
    position: relative;
    padding-left: 20px;
    transition: all 0.2s ease;
}

.name-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-size: 1.2em;
}

.name-item:hover {
    padding-left: 24px;
    color: #3B82F6;
}

/* 滚动条样式 */
#nameListContainer::-webkit-scrollbar {
    width: 6px;
}

#nameListContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#nameListContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#nameListContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 加载状态 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .bg-gradient-to-br {
        background: #000;
    }
    .text-primary {
        color: #0ff !important;
    }
}