/**
 * 竞彩3D彩票系统样式
 * 从index.php页面中分离出的独立样式文件
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #fff;
    padding: 10px;
}

.lottery-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.user-login-status {
    text-align: center;
    margin-bottom: 15px;
}

.next-period-info {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.period-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.period-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.period-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.period-countdown {
    font-size: 16px;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    background: rgba(255, 235, 59, 0.1);
    border-radius: 5px;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.period-countdown.sealed {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.period-info {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.countdown {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    margin: 10px 0;
}

.status-info {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.roulette-container {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
}

.roulette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.roulette-label {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 5px;
}

.roulette {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
}

.result-display {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.result-numbers {
    font-size: 48px;
    font-weight: bold;
    color: #ff6b6b;
    letter-spacing: 10px;
    margin: 15px 0;
}

.betting-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.next-period-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.period-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.period-item:last-child {
    margin-bottom: 0;
}

.period-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.period-value {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
}

/* 自定义期数名称样式 */
.period-value.custom-period {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 自定义期数名称样式 */
.period-value.custom-period {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.period-countdown {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.betting-options {
    display: grid !important;
    grid-template-columns: 0.6fr 0.6fr !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    justify-content: center !important;
}

.bet-option {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bet-option.active {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-color: #ff6b6b;
}

.bet-amount {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
}

.bet-btn {
    width: 100%;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bet-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.5;
}

.user-info {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.result-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.result-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .roulette { 
        width: 100px; 
        height: 100px; 
        font-size: 36px; 
    }
    
    .betting-options { 
        grid-template-columns: 0.8fr;
        justify-content: center;
    }
    
    .bet-amount { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* 赔率显示样式 */
.odds-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.odds-item {
    background: none;
    padding: 5px;
    border-radius: 0;
    text-align: center;
    backdrop-filter: none;
    border: none;
    transition: all 0.3s ease;
}

.odds-type {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.odds-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50;
}

/* 赔率显示样式 */
.odds-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.odds-item {
    background: none;
    padding: 5px;
    border-radius: 0;
    text-align: center;
    backdrop-filter: none;
    border: none;
    transition: all 0.3s ease;
}

.odds-type {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.odds-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50;
}

/* 赔率显示样式 */
.odds-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.odds-item {
    background: none;
    padding: 5px;
    border-radius: 0;
    text-align: center;
    backdrop-filter: none;
    border: none;
    transition: all 0.3s ease;
}

.odds-type {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.odds-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50;
}

/* 轮盘旋转动画 */
@keyframes rouletteSpin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}

/* 通知系统动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 轮盘高亮效果 */
.roulette-highlight {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    box-shadow: 0 0 20px #764ba2 !important;
    transform: scale(1.1) !important;
    transition: all 0.3s ease;
}