/* 统一预测历史表（对齐 jnd28 弹窗：期号 / 预测 / 号码 / 命中） */
.pred-hist-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

table.pred-hist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

table.pred-hist-table thead th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

table.pred-hist-table tbody td {
    padding: 11px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

table.pred-hist-table tbody tr:nth-child(even) {
    background: #f6ffed;
}

table.pred-hist-table tbody tr:hover {
    background: #ecfdf5;
}

table.pred-hist-table .pred-period {
    font-variant-numeric: tabular-nums;
    color: #374151;
}

table.pred-hist-table .pred-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    background: #eff6ff;
    color: #1d4ed8;
}

table.pred-hist-table .pred-label.kill {
    background: #fff7ed;
    color: #c2410c;
}

table.pred-hist-table .pred-numbers {
    font-variant-numeric: tabular-nums;
    color: #111827;
    letter-spacing: 0.02em;
}

table.pred-hist-table .pred-hit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 auto;
}

table.pred-hist-table .pred-hit.hit-yes {
    background: #dcfce7;
    color: #16a34a;
}

table.pred-hist-table .pred-hit.hit-no {
    background: #fee2e2;
    color: #dc2626;
}

table.pred-hist-table .pred-hit svg {
    width: 16px;
    height: 16px;
}

table.pred-hist-table .pred-empty {
    padding: 32px 16px;
    color: #9ca3af;
    text-align: center;
}

table.pred-hist-table tr.pred-pending td {
    background: #fffbeb !important;
}

table.pred-hist-table .pred-pending-text {
    color: #d97706;
    font-size: 13px;
}

table.pred-hist-table tr.pred-vip-lock-row td {
    padding: 0 !important;
    border-bottom: none;
    background: #fff;
}

table.pred-hist-table .pred-vip-lock-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    padding: 12px 14px;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border-top: 1px solid #fde68a;
    border-bottom: 1px solid #fcd34d;
    font-size: 13px;
    color: #92400e;
    line-height: 1.4;
}

table.pred-hist-table .pred-vip-lock-icon {
    font-size: 16px;
    flex-shrink: 0;
}

table.pred-hist-table .pred-vip-lock-text {
    flex: 1;
    min-width: 0;
}

table.pred-hist-table .pred-vip-lock-link {
    flex-shrink: 0;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

table.pred-hist-table .pred-vip-lock-link:hover {
    text-decoration: underline;
}

/* 手机端：表格可横向滑动，压缩字号避免挤版 */
@media (max-width: 768px) {
    .pred-hist-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.pred-hist-table {
        min-width: 100%;
        font-size: 12px;
    }

    table.pred-hist-table thead th {
        font-size: 12px;
        padding: 10px 6px;
        white-space: nowrap;
    }

    table.pred-hist-table tbody td {
        padding: 9px 5px;
    }

    table.pred-hist-table .pred-period {
        font-size: 11px;
    }

    table.pred-hist-table .pred-label {
        font-size: 12px;
        padding: 3px 6px;
    }

    table.pred-hist-table .pred-numbers {
        font-size: 11px;
        white-space: nowrap;
    }

    table.pred-hist-table .pred-hit {
        width: 24px;
        height: 24px;
    }

    table.pred-hist-table .pred-hit svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 380px) {
    table.pred-hist-table .pred-period {
        font-size: 10px;
    }

    table.pred-hist-table .pred-numbers {
        font-size: 10px;
    }
}
