/* ===== 数字彩开奖/预测页面样式 ===== */

.lottery-tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid #e8eaed;
}

.lottery-tab {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.lottery-tab:hover {
    background: rgba(10, 74, 122, 0.06);
    color: var(--primary);
}

.lottery-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

/* 开奖号码球 */
.num-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(10, 74, 122, 0.3);
    vertical-align: middle;
}

.num-ball.mini {
    width: 28px;
    height: 28px;
    font-size: 13px;
    margin: 0 2px;
}

.pl5-nums .num-ball {
    background: linear-gradient(135deg, #7b8794 0%, #9aa5b1 100%);
    box-shadow: 0 2px 6px rgba(123, 135, 148, 0.3);
}

.empty-cell {
    text-align: center;
    color: var(--gray);
    padding: 40px 0;
}

/* ===== 预测页 ===== */
.predict-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid #e8eaed;
}

.predict-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.predict-card-header .fas {
    color: var(--accent);
}

.predict-current {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 22px 20px;
    border-bottom: 2px solid rgba(10, 74, 122, 0.1);
}

.predict-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.predict-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

.predict-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.predict-ball.kill {
    background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.predict-ball.dan {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.predict-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.predict-status {
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
}

.predict-status.ok { background: rgba(40, 167, 69, 0.12); color: #28a745; }
.predict-status.miss { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.predict-status.part { background: rgba(255, 152, 0, 0.15); color: #e65100; }
.predict-status.pending { background: rgba(10, 74, 122, 0.08); color: var(--gray); }

.predict-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
}

.predict-history {
    width: 100%;
    border-collapse: collapse;
}

.predict-history th {
    background: rgba(10, 74, 122, 0.06);
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid rgba(10, 74, 122, 0.15);
    font-size: 13px;
    white-space: nowrap;
}

.predict-history td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.predict-history tbody tr:hover td {
    background-color: rgba(10, 74, 122, 0.04);
}

.predict-history tbody tr:last-child td {
    border-bottom: none;
}

.result-correct { color: #28a745; font-weight: 700; }
.result-wrong { color: #dc3545; font-weight: 700; }
.result-pending { color: var(--gray); }

@media (max-width: 768px) {
    .predict-current {
        flex-direction: column;
        gap: 14px;
    }

    .predict-history {
        display: block;
        overflow-x: auto;
    }
}
