/* 基础样式 */
body {
    background-color: #fef2f2;
    background-image: 
        radial-gradient(circle at 25% 25%, #ff6b6b 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #ff6b6b 0%, transparent 50%);
    background-size: 100% 100%;
    background-attachment: fixed;
}

/* 灯笼样式 */
.lantern {
    width: 60px;
    height: 80px;
    background-color: #ff4757;
    border-radius: 50% 50% 20% 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    position: relative;
}

.lantern::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #ff6b81;
    border-radius: 50%;
}

.lantern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background-color: #ff6b81;
    border-radius: 5px;
}

/* 烟花样式 */
.firework {
    width: 20px;
    height: 20px;
    background-color: #fffa65;
    border-radius: 50%;
    box-shadow: 0 0 20px 10px #fffa65;
}

/* 动画效果 */
@keyframes swing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes burst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-1000px);
    }
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 应用动画 */
.animate-swing {
    animation: swing 3s ease-in-out infinite;
}

.animate-burst {
    animation: burst 2s ease-out infinite;
}

.animate-spin {
    animation: spin 0.5s linear infinite;
}

.animate-flash {
    animation: flash 0.5s ease-in-out 5;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

/* 老虎机样式 */
.center-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slot-machine {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    background-color: #ffebee;
    border-radius: 10px;
    border: 2px solid #ef5350;
}

.control-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.reels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.reel {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.reel:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.3);
}

.reel-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reel-content .symbol {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #d32f2f;
}

/* 号码列表样式 */
.numbers-column-left, .numbers-column-right {
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.numbers-column-left ul, .numbers-column-right ul {
    max-height: 350px;
    overflow-y: auto;
}

.numbers-column-left li, .numbers-column-right li {
    padding: 8px;
    margin: 4px 0;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
    transition: all 0.3s ease;
}

.numbers-column-left li:hover, .numbers-column-right li:hover {
    background-color: #ffebee;
    transform: translateX(5px);
}

/* 中奖结果样式 */
#current-result {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* 按钮样式增强 */
#spin-btn {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#spin-btn:hover {
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

#spin-btn:active {
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.4);
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .slot-machine {
        padding: 15px;
    }
    
    .reel {
        width: 50px;
        height: 65px;
    }
    
    .reel-content .symbol {
        font-size: 1rem;
    }
    
    .numbers-column-left, .numbers-column-right {
        width: 140px;
    }
    
    .numbers-column-left li, .numbers-column-right li {
        font-size: 0.9rem;
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .slot-machine {
        padding: 10px;
    }
    
    .reel {
        width: 45px;
        height: 60px;
    }
    
    .reel-content .symbol {
        font-size: 0.9rem;
    }
    
    .numbers-column-left, .numbers-column-right {
        width: 120px;
    }
    
    .numbers-column-left li, .numbers-column-right li {
        font-size: 0.8rem;
        padding: 5px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    #spin-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .slot-machine {
        padding: 10px;
    }
    
    .reel {
        width: 40px;
        height: 55px;
    }
    
    .reel-content .symbol {
        font-size: 0.8rem;
    }
    
    .numbers-column-left, .numbers-column-right {
        width: 100px;
        font-size: 0.7rem;
    }
    
    .numbers-column-left li, .numbers-column-right li {
        font-size: 0.7rem;
        padding: 4px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .lantern {
        display: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #ffcdd2;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #d32f2f;
}

/* 烟花效果增强 */
.firework::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ffeb3b;
    border-radius: 50%;
    box-shadow: 0 0 10px 5px #ffeb3b;
}

/* 灯笼光效 */
.lantern::before {
    box-shadow: 0 0 15px 5px rgba(255, 235, 59, 0.7);
}

/* 页面加载动画 */
body {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}