/**
 * 定时开奖前台样式
 * @date 2025-12-24
 */

/* 倒计时容器 */
.countdown-container {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.countdown-label {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 48px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
}

.countdown-unit {
    text-align: center;
}

.countdown-number {
    font-size: 48px;
    font-weight: bold;
}

.countdown-label-small {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.countdown-separator {
    margin: 0 8px;
    font-weight: bold;
}

.countdown-period {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.8;
}

/* 号码显示容器 */
.numbers-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.numbers-label {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

/* 号码显示区域 */
.numbers-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.numbers-display.scrambling {
    gap: 8px;
}

/* 号码球 */
.number-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.number-ball:hover {
    transform: scale(1.1);
}

/* 搅珠动画相关样式 */
.scramble-char {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.scramble-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* 搅珠动画效果 */
@keyframes scramble-flip {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotateY(90deg) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes scramble-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 应用动画类 */
.scramble-ball.animate {
    animation: scramble-flip 0.6s ease-in-out, scramble-bounce 0.6s ease-in-out;
}

/* 状态容器 */
.lottery-status-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.status-item {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.status-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.status-period {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}

.status-time {
    font-size: 12px;
    color: #999;
}

/* 暂无数据 */
.no-data {
    color: #999;
    font-size: 14px;
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .countdown-display {
        font-size: 36px;
    }
    
    .countdown-number {
        font-size: 36px;
    }
    
    .number-ball {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .scramble-ball {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .scramble-char {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .numbers-display {
        gap: 8px;
    }
    
    .lottery-status-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* 动画延迟 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.numbers-display.scrambling {
    animation: pulse 0.6s ease-in-out;
}
