/* 冷热号码分析页面样式 */
.cold-hot-container {
    padding: 20px 0;
}

.page-title {
    margin-bottom: 20px;
    text-align: center;
}

.lottery-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.analysis-period-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    align-items: center;
}

.analysis-period-selector select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-left: 10px;
    background-color: white;
}

.lottery-tab {
    border: none;
    background-color: #f5f5f5;
    padding: 10px 20px;
    margin: 0 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.lottery-tab.active {
    background-color: #e74c3c;
    color: white;
}

.cold-hot-loading {
    text-align: center;
    padding: 20px 0;
}

.cold-hot-loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #e74c3c;
    animation: cold-hot-spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes cold-hot-spin {
    to { transform: rotate(360deg); }
}

/* 号码统计样式 */
.number-stats-container,
.cold-hot-chart-container,
.recent-draws {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 20px;
}

.number-stats-container h3,
.cold-hot-chart-container h3,
.recent-draws h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
    color: #333;
}

.number-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.number-stat-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

.number-ball {
    margin-right: 10px;
}

.cold-hot-ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-weight: bold;
}

.number-stat-data {
    flex: 1;
}

.occurrence-count {
    font-size: 13px;
    margin-bottom: 5px;
}

.occurrence-bar-container {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.occurrence-bar {
    height: 100%;
    background-color: #e74c3c;
    border-radius: 4px;
    transition: width 0.5s;
}

.number-temperature {
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.number-temperature.hot {
    background-color: #e74c3c;
    color: white;
}

.number-temperature.warm {
    background-color: #f39c12;
    color: white;
}

.number-temperature.cold {
    background-color: #3498db;
    color: white;
}

/* 温度分布样式 */
.temperature-distribution {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.temp-category {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.temp-label {
    font-weight: bold;
    margin-bottom: 10px;
}

.temp-category.hot .temp-label {
    color: #e74c3c;
}

.temp-category.warm .temp-label {
    color: #f39c12;
}

.temp-category.cold .temp-label {
    color: #3498db;
}

.temp-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.temperature-ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.hot-numbers .temperature-ball {
    background-color: #e74c3c;
}

.warm-numbers .temperature-ball {
    background-color: #f39c12;
}

.cold-numbers .temperature-ball {
    background-color: #3498db;
}

/* 最近开奖记录样式 */
.recent-draws-table {
    width: 100%;
    border-collapse: collapse;
}

.recent-draws-table th,
.recent-draws-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.recent-draws-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.recent-draws-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 历史记录号码样式 */
.history-lottery-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-block;
}



.history-lottery-item-ball {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
}

.history-lottery-item-ball.special {
    background-color: #3498db;
}

/* 媒体查询适配 */
@media (max-width: 767px) {
    .number-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .number-stat-item {
        padding: 8px;
    }
    
    .cold-hot-ball, 
    .temperature-ball {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
    }
    
    .history-lottery-item-ball {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .number-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .cold-hot-ball, 
    .temperature-ball {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 11px;
    }
    
    .history-lottery-item-ball {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 11px;
    }
} 