/* 历史页：经典六合彩红顶栏 + 灰白内容区 */
.history-page {
    background: #fff;
    overflow-x: hidden;
}

.history-header {
    display: flex;
    align-items: center;
    background: var(--red-accent, #e74c3c);
    color: #fff;
    padding: 12px 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.history-header h1 {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    min-width: 50px;
}

.header-spacer {
    min-width: 50px;
}

.history-list {
    padding: 0;
}

.history-item {
    border-bottom: 1px solid #eee;
}

.history-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    font-size: 13px;
}

.period-num {
    color: var(--red-accent, #e74c3c);
    font-weight: 700;
}

.draw-date {
    color: #888;
    font-size: 12px;
}

.history-item-body {
    padding: 12px 6px;
    background: #fff;
    overflow: hidden;
}

.history-item-body .balls-row {
    --ball-size: 40px;
    gap: 2px;
    justify-content: center;
    padding: 0;
    overflow: visible;
}

.history-item-body .ball-item {
    width: var(--ball-size);
}

.history-item-body .lottery-ball {
    width: var(--ball-size);
    height: var(--ball-size);
}

.history-item-body .ball-plus {
    font-size: 23px;
    margin: 0 1px;
}

.history-item-body .lottery-ball-num {
    top: 45%;
    width: 25px;
    height: 25px;
    font-size: 16px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px;
    font-size: 13px;
    background: #fff;
}

.pagination a {
    color: var(--green-primary, #00b050);
    text-decoration: none;
}

.history-load-wrap {
    padding: 12px 10px 20px;
    text-align: center;
    background: #fff;
}

.btn-history-load {
    display: inline-block;
    min-width: 140px;
    padding: 10px 24px;
    background: #fff;
    color: var(--green-primary, #00b050);
    border: 1px solid var(--green-primary, #00b050);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-history-load:active:not(:disabled) {
    background: var(--green-light, #e8f7ef);
}

.btn-history-load:disabled {
    opacity: 0.65;
    cursor: wait;
}
