.history-body {
    max-width: 480px;
    color: #262626;
    background: #f4f6f8;
    box-shadow: 0 0 24px rgba(25, 53, 78, .12);
}

.history-site-wrap {
    min-height: 100vh;
    background: #fff;
}

.history-site-header {
    position: static;
    width: 100%;
    height: 62px;
}

.history-site-header .brand,
.history-site-header .brand img {
    height: 54px;
}

.history-lottery-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #dce4e9;
    background: #fff;
}

.history-lottery-tabs a {
    position: relative;
    min-width: 0;
    padding: 9px 2px 8px;
    border-right: 1px solid #e4e9ec;
    color: #626970;
    text-align: center;
    text-decoration: none;
}

.history-lottery-tabs a:last-child {
    border-right: 0;
}

.history-lottery-tabs a.active {
    color: #00785a;
    background: #f1faf7;
}

.history-lottery-tabs a.active::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 2px;
    background: #087a5d;
}

.history-lottery-tabs span,
.history-lottery-tabs small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-lottery-tabs span {
    font-size: 13px;
    font-weight: 700;
}

.history-lottery-tabs small {
    margin-top: 3px;
    color: #98a0a6;
    font-size: 9px;
}

.history-main {
    padding: 0 12px 16px;
}

.history-heading {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e7e9;
}

.history-heading h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
}

.history-heading p {
    margin: 5px 0 0;
    color: #8c9398;
    font-size: 10px;
}

.history-order {
    display: flex;
    border: 1px solid #eef0f2;
}

.history-order a {
    padding: 5px 8px;
    color: #a6aaad;
    background: #fff;
    font-size: 11px;
    text-decoration: none;
}

.history-order a.active {
    color: #364150;
    background: #f5f6f8;
}

.history-record {
    padding: 11px 0 9px;
    border-bottom: 1px solid #eceff1;
}

.history-record-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.history-record-top strong {
    overflow: hidden;
    color: #282828;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-record-top time {
    flex: 0 0 auto;
    color: #95999c;
    font-size: 13px;
}

.history-record-balls {
    height: 70px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 2px;
    padding: 7px 5px 8px;
    background: url('/static/img/history-frame.png?v=20260821a') center / 100% 100% no-repeat;
}

.history-ball {
    width: 14.285%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.history-ball b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #171717;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-size: 12px;
    line-height: 34px;
    text-shadow: 0 1px 0 #fff;
}

.history-ball b.red {
    background-image: url('/static/img/hong.png?v=20260821-ring1');
}

.history-ball b.blue {
    background-image: url('/static/img/lan.png?v=20260821-ring1');
}

.history-ball b.green {
    background-image: url('/static/img/lv.png?v=20260821-ring1');
}

.history-ball span {
    margin-top: 3px;
    color: #313437;
    font-size: 11px;
    line-height: 15px;
    white-space: nowrap;
}

.history-empty {
    padding: 70px 15px;
    color: #969da2;
    text-align: center;
}

.history-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 18px 0 6px;
    text-align: center;
}

.history-pagination a,
.history-pagination span {
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.history-pagination a {
    color: #fff;
    background: #087a5d;
    text-decoration: none;
}

.history-pagination span {
    color: #a2a7aa;
    background: #eef0f1;
}

.history-pagination b {
    color: #6e7478;
    font-size: 11px;
}

@media (max-width: 370px) {
    .history-main {
        padding-right: 8px;
        padding-left: 8px;
    }

    .history-record-balls {
        padding-right: 3px;
        padding-left: 3px;
    }

    .history-ball b {
        width: 31px;
        height: 31px;
        font-size: 11px;
        line-height: 31px;
    }

    .history-ball span {
        font-size: 10px;
    }
}
