/* PC28 开奖查询 — 对齐参考站 jndpc.net 风格 */

.pc28-page {
    margin: 15px auto 30px;
    min-height: 400px;
    max-width: 100%;
    box-sizing: border-box;
}

.pc28-hero {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.pc28-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 16px 22px;
    border-bottom: 1px solid #f0f0f0;
}

.pc28-hero-title { font-size: 15px; color: #333; }

.pc28-hero-period {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 4px;
}

.pc28-hero-countdown { font-size: 14px; color: #666; }

.pc28-hero-countdown em {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    color: #e74c3c;
    margin-left: 4px;
}

.pc28-hero-body {
    padding: 8px 22px 20px;
    min-height: 100px;
}

.pc28-loading {
    text-align: center;
    padding: 36px 16px;
    color: #999;
    font-size: 14px;
}

.pc28-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: pc28-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes pc28-spin { to { transform: rotate(360deg); } }

.pc28-status-msg {
    text-align: center;
    padding: 16px;
    font-size: 14px;
    color: #666;
    border-radius: 8px;
    background: #fff8f0;
}

.pc28-status-msg.is-error {
    color: #e74c3c;
    background: #fff5f5;
}

.pc28-latest {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 4px;
}

/* 号码行：禁止换行，避免手机端竖排 */
.pc28-nums-row,
.pc28-badge-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
}

.pc28-latest-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pc28-badge-row { margin-top: 14px; }

.pc28-latest-time {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

/* 号码球 — 正圆 */
.pc28-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #4a9eff 0%, #2563eb 100%);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
}

.pc28-ball-sum {
    background: linear-gradient(145deg, #f87171 0%, #e74c3c 100%);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.35);
}

.pc28-ball-lg {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
}

.pc28-ball-sm {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 13px;
}

.pc28-op,
.pc28-op-sm {
    flex-shrink: 0;
    font-weight: 600;
    color: #bbb;
    line-height: 1;
    padding: 0 1px;
}

.pc28-op { font-size: 18px; }
.pc28-op-sm { font-size: 13px; color: #ccc; }

/* 大小单双 — 正圆，禁止椭圆 */
.pc28-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
}

.pc28-badge-sm {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    min-height: 28px;
    max-height: 28px;
    font-size: 13px;
}

.pc28-badge-dual {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    max-height: 34px;
    font-size: 11px;
}

.pc28-badge-sm.pc28-badge-dual {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    min-height: 30px;
    max-height: 30px;
    font-size: 10px;
}

.pc28-badge-red { background: #e74c3c; }
.pc28-badge-green { background: #22c55e; }

.pc28-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid;
    background: #fff;
    white-space: nowrap;
}

.pc28-pill-pair { color: #d97706; border-color: #fbbf24; }
.pc28-pill-mixed { color: #64748b; border-color: #cbd5e1; }
.pc28-pill-straight { color: #16a34a; border-color: #4ade80; }
.pc28-pill-triple { color: #9333ea; border-color: #c084fc; }
.pc28-pill-mid { color: #475569; border-color: #94a3b8; }
.pc28-pill-edge-big { color: #9333ea; border-color: #c084fc; }
.pc28-pill-edge-small { color: #0891b2; border-color: #22d3ee; }
.pc28-pill-dragon { color: #e74c3c; border-color: #fca5a5; background: #fef2f2; }
.pc28-pill-tiger { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
.pc28-pill-tie { color: #16a34a; border-color: #86efac; background: #f0fdf4; }

.pc28-miss-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 22px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
    justify-content: center;
}

.pc28-miss-bar:empty { display: none; }

.pc28-miss-bar em {
    font-style: normal;
    font-weight: 700;
    color: #e74c3c;
}

.pc28-miss-num {
    color: #e74c3c;
    font-weight: 700;
}

.pc28-miss-bar .pc28-miss-sep {
    color: #ddd;
    margin: 0 4px;
}

.pc28-hero-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 22px 14px;
    font-size: 12px;
    color: #bbb;
    border-top: 1px solid #f5f5f5;
}

.pc28-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pc28-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.pc28-tab {
    flex: 1;
    padding: 14px 8px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.pc28-tab.active {
    color: #e74c3c;
    font-weight: 600;
}

.pc28-tab.active::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0;
    height: 3px;
    background: #e74c3c;
    border-radius: 3px 3px 0 0;
}

.pc28-tab-panel { display: none; }
.pc28-tab-panel.active { display: block; }

.pc28-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.pc28-pc-only { display: table-cell; }

.pc28-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pc28-table-detail { min-width: 640px; }
.pc28-table-trend { min-width: 540px; }
.pc28-table-miss { min-width: 320px; }

.pc28-table th,
.pc28-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.pc28-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.pc28-table tbody tr:hover { background: #fafcff; }

.pc28-table .col-period {
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pc28-table .col-nums { white-space: nowrap; }

.pc28-table .col-size,
.pc28-table .col-parity {
    white-space: nowrap;
}

.pc28-table .col-val {
    font-weight: 700;
    color: #333;
}

.pc28-table .col-type {
    color: #333;
    font-weight: 500;
}

.pc28-table .col-miss em {
    font-style: normal;
    font-weight: 700;
    color: #e74c3c;
}

.pc28-interval-row td {
    background: #fafbfc;
    color: #666;
    font-size: 13px;
}

.pc28-interval-row .col-period {
    color: #888;
    font-weight: 600;
}

@media (max-width: 800px) {
    .pc28-page {
        margin: 10px auto 20px;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .pc28-hero-head,
    .pc28-hero-body,
    .pc28-miss-bar,
    .pc28-hero-foot {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pc28-pc-only,
    .pc28-table th.pc28-pc-only {
        display: none !important;
    }

    .pc28-table-wrap {
        overflow-x: hidden;
    }

    .pc28-table {
        table-layout: fixed;
        font-size: 12px;
    }

    .pc28-table-detail,
    .pc28-table-trend,
    .pc28-table-miss {
        min-width: 0 !important;
        width: 100%;
    }

    /* 开奖号码：期号 | 号码 | 大小 | 单双 */
    .pc28-table-detail { table-layout: fixed; }
    .pc28-table-detail .col-period {
        width: 24%;
        font-size: 10px;
        white-space: nowrap;
        word-break: normal;
        line-height: 1.2;
        padding-left: 4px;
        padding-right: 2px;
        font-variant-numeric: tabular-nums;
    }
    .pc28-table-detail .col-nums { width: 47%; padding-left: 0; padding-right: 0; }
    .pc28-table-detail .col-size,
    .pc28-table-detail .col-parity { width: 16%; }

    /* 总和走势：10 列压缩 */
    .pc28-table-trend .col-period {
        width: 22%;
        font-size: 9px;
        white-space: nowrap;
        word-break: normal;
        line-height: 1.2;
        padding-left: 3px;
        padding-right: 1px;
        font-variant-numeric: tabular-nums;
    }
    .pc28-table-trend .col-val { width: 7%; font-size: 11px; font-weight: 700; }
    .pc28-table-trend th:nth-child(n+3),
    .pc28-table-trend td:nth-child(n+3) {
        width: 9.375%;
        padding-left: 0;
        padding-right: 0;
    }

    .pc28-ball-lg {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 15px;
    }

    .pc28-table .pc28-op-plus { display: none; }

    .pc28-table .pc28-ball-sm {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        font-size: 10px;
        box-shadow: none;
    }

    .pc28-table .pc28-ball-sum.pc28-ball-sm {
        box-shadow: none;
    }

    .pc28-table .pc28-nums-row {
        gap: 0;
        justify-content: center;
    }

    .pc28-table .pc28-op-sm {
        font-size: 9px;
        padding: 0 1px;
    }

    .pc28-table .pc28-badge-sm {
        width: 20px;
        height: 20px;
        min-width: 20px;
        max-width: 20px;
        min-height: 20px;
        max-height: 20px;
        font-size: 10px;
    }

    .pc28-table-trend .pc28-badge-sm:not(.pc28-badge-dual) {
        width: 18px;
        height: 18px;
        min-width: 18px;
        max-width: 18px;
        min-height: 18px;
        max-height: 18px;
        font-size: 10px;
    }

    .pc28-table-trend .pc28-badge-dual {
        width: 18px;
        height: 18px;
        min-width: 18px;
        max-width: 18px;
        min-height: 18px;
        max-height: 18px;
        font-size: 7px;
        letter-spacing: -0.5px;
    }

    .pc28-table th,
    .pc28-table td {
        padding: 7px 1px;
        font-size: 10px;
    }

    .pc28-table th:nth-child(n+3) {
        font-size: 9px;
        padding: 6px 0;
    }

    .pc28-interval-row td {
        font-size: 9px;
        padding: 5px 0;
    }

    .pc28-tab {
        font-size: 13px;
        padding: 12px 2px;
    }

    .pc28-miss-bar {
        font-size: 11px;
        gap: 4px 8px;
    }

    .pc28-pill {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* PC28 预测页 — 顶部与开奖页同结构居中 */
.pc28-predict-page .pc28-predict-stats {
    font-size: 13px;
    color: #666;
    text-align: right;
    flex: 1;
    min-width: 200px;
}

.pc28-predict-page .pc28-predict-stats strong {
    color: #2563eb;
    font-weight: 700;
}

.pc28-predict-page .pc28-predict-type-tag {
    margin-left: 6px;
    font-size: 14px;
    color: #888;
    font-weight: normal;
}

.pc28-predict-page .pc28-predict-type-tag em {
    font-style: normal;
    font-weight: 700;
    color: #2563eb;
}

.pc28-predict-page .pc28-latest .pc28-badge-row {
    margin-top: 4px;
}

.pc28-hit {
    display: inline-block;
    min-width: 36px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.pc28-hit-yes {
    color: #16a34a;
    background: #f0fdf4;
}

.pc28-hit-no {
    color: #dc2626;
    background: #fef2f2;
}

.pc28-hit-pending {
    color: #d97706;
    background: #fffbeb;
}

.pc28-wait-draw {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
    background: #fffbeb;
    border-radius: 4px;
    white-space: nowrap;
}

.pc28-table-predict tr.is-pending {
    background: #fffdf5;
}

.pc28-table-predict tr.is-hit td:first-child {
    border-left: 3px solid #22c55e;
}

.pc28-table-predict tr.is-miss td:first-child {
    border-left: 3px solid #ef4444;
}

.pc28-table-predict .pc28-td-nums {
    white-space: nowrap;
}

.pc28-table-predict .pc28-empty {
    text-align: center;
    color: #999;
    padding: 24px;
}

@media (max-width: 768px) {
    .pc28-predict-page .pc28-hero-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pc28-predict-page .pc28-predict-stats {
        text-align: center;
        width: 100%;
    }

    .pc28-table-predict th:nth-child(3),
    .pc28-table-predict td:nth-child(3) {
        display: none;
    }
}
