/* 遗漏统计页面样式 */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.lottery-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.page-title {
    font-size: 22px;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.mobile-back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-back-button svg {
    width: 24px;
    height: 24px;
}

.lottery-type-selector {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.lottery-tab {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.lottery-tab.active {
    background-color: #3498db;
    color: white;
}

.latest-draw-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.latest-draw-period {
    font-weight: bold;
    margin-bottom: 10px;
}

.latest-draw-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.missing-numbers-section, 
.missing-distribution-container, 
.missing-trends-section {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.missing-numbers-section h2,
.missing-distribution-container h2,
.missing-trends-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.missing-info {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.missing-numbers-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.missing-numbers-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.missing-numbers-table th, 
.missing-numbers-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.missing-numbers-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: relative;
}

.sort-icon {
    margin-left: 5px;
    font-size: 12px;
    color: #999;
}

.missing-numbers-table .number-cell {
    width: 60px;
}

.missing-value {
    font-weight: bold;
}

.missing-indicator {
    width: 200px;
}

.missing-bar {
    height: 20px;
    background-color: #ff6b6b;
    border-radius: 3px;
}

.last-appeared .missing-bar {
    background-color: #51cf66;
}

/* 高亮最大遗漏行 */
.highlight-missing {
    background-color: #fff4f4;
}

.highlight-missing .missing-value {
    color: #ff0000;
    font-weight: bold;
}

.highlight-missing .missing-bar {
    background-color: #ff3333;
}

.missing-distribution {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.range-missing, 
.odd-even-missing {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.range-missing h3,
.odd-even-missing h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.range-missing-table,
.odd-even-missing-table {
    width: 100%;
    border-collapse: collapse;
}

.range-missing-table th,
.range-missing-table td,
.odd-even-missing-table th,
.odd-even-missing-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.range-missing-table th,
.odd-even-missing-table th {
    background-color: #f5f5f5;
}

.missing-trends-section p {
    margin-bottom: 15px;
    color: #555;
}

.top-missing-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: flex-start;
}

.top-missing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 80px;
}

.top-missing-value {
    font-weight: bold;
    font-size: 14px;
    color: #ff6b6b;
}

.toggle-button {
    position: absolute;
    right: 0;
    top: 0;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    font-weight: bold;
    background-color: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 8px;
}

/* 号码球样式 */
.history-lottery-item-ball {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-weight: bold;
    margin: 0 3px;
    position: relative;
    margin-bottom: 16px !important; /* 为前缀后缀留出空间 */
}

.history-lottery-item-ball.special {
    background-color: #3498db;
}

.history-lottery-item-ball.custom-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 前缀后缀样式 */
.history-lottery-item-ball .ball-prefix-suffix {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    white-space: nowrap;
    color: #333;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.2;
    z-index: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .missing-distribution {
        flex-direction: column;
    }
    
    .missing-indicator {
        width: 100px;
    }
    
    .top-missing-numbers {
        justify-content: center;
    }
    
    .top-missing-item {
        min-width: 70px;
    }
    
    .missing-distribution h3,
    .missing-trends-section h2 {
        cursor: pointer;
        padding: 10px;
        border-radius: 4px;
        padding-right: 30px;
    }
    
    .history-lottery-item-ball {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 14px;
    }
} 