/* Lottery Grid Styles - 九宫格抽奖 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 30px;
    position: relative;
}

.grid-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ff8e64 0%, #ff9d7a 100%);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 142, 100, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 142, 100, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.grid-item:hover::before {
    opacity: 1;
}

.grid-item:hover::after {
    opacity: 1;
}

.grid-item.active {
    background: linear-gradient(135deg, #ffb3a0 0%, #ff9d7a 100%);
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 142, 100, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
    animation: pulse 0.5s;
}

.grid-item.winner {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    animation: winner 1s infinite;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes winner {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.grid-icon {
    font-size: 36px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.grid-name {
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 767px) {
    .grid-container {
        max-width: 320px;
        gap: 8px;
    }
    
    .grid-item {
        border-radius: 14px;
    }
    
    .grid-icon {
        font-size: 28px;
    }
    
    .grid-name {
        font-size: 10px;
    }
}
