/* 前台共用布局：球号、图片玩法定位、字号等（与皮肤颜色无关） */

/* 论坛顶栏：默认隐藏，仅红/绿皮肤显示 */
.site-topbar {
    display: none;
}

.open-log > .content .text {
    font-size: .28rem;
    line-height: .52rem;
    padding: .04rem .1rem;
}
.open-log > .content .text.compact-line {
    white-space: nowrap;
    font-size: .26rem;
    line-height: .48rem;
    padding: .02rem .04rem;
    letter-spacing: -.01rem;
}
#wanfa_13 .content .text,
#wanfa_14 .content .text,
#wanfa_15 .content .text,
#wanfa_16 .content .text {
    font-size: .32rem;
    line-height: .58rem;
}
#wanfa_17 .content .text {
    font-size: .31rem;
    line-height: .60rem;
}

.box-num-0, .box-num-1, .box-num-2, .box-num-3, .box-num-4, .box-num-5, .box-num-6, .box-num-100 {
    color: #fff;
    border-radius: 4px;
    padding: 2px 0;
    margin: 0 1px;
}
.box-num-0 { background-color: #ff3333; }
.box-num-100 { background-color: #bd9af8; }
.box-num-1 { background-color: #3399ff; }
.box-num-2 { background-color: #ff3333; }
.box-num-3 { background-color: #3399ff; }
.box-num-4 { background-color: #ff3333; }
.box-num-5 { background-color: #3399ff; }
.box-num-6 { background-color: #13cb46; }

.qiu {
    height: auto !important;
    line-height: normal !important;
    color: #fff !important;
    margin-bottom: 0 !important;
    font-size: .46rem !important;
}
.bg-amage-1, .bg-amage-0, .bg-amage-2, .bg-amage-3, .bg-amage-4, .bg-amage-5 {
    background-image: none !important;
}
.bj1 { color: #00bcd4; }
.bj2 { color: #dc004b; }
.bj3 { color: #4caf50; }
.bj4 { color: #607D8B; }

.box .text {
    background-color: #fff;
    color: #000;
    display: block;
    width: 92% !important;
    margin: 0 auto 4px;
    border-radius: 2px;
    font-size: .18rem !important;
    line-height: 1.15;
    padding: 1px 0;
    white-space: nowrap;
    overflow: visible;
}
.open-num .box .bi {
    padding-top: 90% !important;
    font-size: .35rem !important;
    font-weight: bolder;
}
.open-qiu-box > .open-num {
    gap: 3px !important;
}

.hbt {
    position: relative;
    color: #000;
}
.hbt .result_text {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.amptyx .qishu {
    word-wrap: break-word; word-break: break-all; overflow-wrap: break-word;
    position: absolute; left: 4%; top: 36%; font-size: 26px; width: 26px; line-height: 26px; color: #000;
}
.amptyx .old_open_num { position: absolute; top: 21.5%; font-size: 14px; left: 51%; color: #0f00ff; }
.amptyx .sx { position: absolute; top: 28%; left: 33%; font-size: 100px; color: #E91E63; }
.fzjxt .rq { position: absolute; top: 4.4%; left: 18%; color: #000; }
.fzjxt .old_open_num { position: absolute; top: 19%; left: 31%; color: #be1d1d; }
.fzjxt .sx { position: absolute; top: 45.5%; left: 23%; font-size: 60px; color: #801919; }
.amlrw { color: #000; }
.amlrw .q4 { position: absolute; top: 32%; font-size: 14px; left: 6%; }
.amlrw .q3 { position: absolute; top: 37%; font-size: 14px; left: 6%; }
.amlrw .q2 { position: absolute; top: 42%; font-size: 14px; left: 6%; }
.amlrw .q1 { position: absolute; top: 47%; font-size: 14px; left: 6%; }
.amlrw .q0 { position: absolute; top: 52%; font-size: 14px; left: 6%; }
.amlrw .qq4 { position: absolute; font-size: 14px; left: 6%; top: 61%; }
.amlrw .qq3 { position: absolute; font-size: 14px; left: 6%; top: 66%; }
.amlrw .qq2 { position: absolute; font-size: 14px; left: 6%; top: 71%; }
.amlrw .qq1 { position: absolute; font-size: 14px; left: 6%; top: 76%; }
.amlrw .qq0 { position: absolute; font-size: 14px; left: 6%; top: 81%; }
.zcmsxbm .qishu {
    position: absolute; top: 76%; font-size: 26px; left: 42%; color: #FFEB3B;
    -webkit-text-stroke-width: 1px; -webkit-text-stroke-color: #2196F3;
}
.zcmsxbm .old_open_num { position: absolute; top: 4%; right: 3%; color: #fff; font-size: 14px; text-shadow: 0 0 1px #000, 0 0 1px #000; }
.zcmsxbm .sx1 { position: absolute; top: 32%; font-size: 22px; left: 7%; width: 30px; word-wrap: break-word; word-break: break-all; text-align: center; line-height: 35px; color: #000; }
.zcmsxbm .sx2 { position: absolute; top: 32%; font-size: 22px; left: 20%; width: 30px; word-wrap: break-word; word-break: break-all; text-align: center; line-height: 35px; color: #000; }
.zcmsxbm .sx3 { position: absolute; top: 32%; font-size: 22px; left: 74%; width: 30px; word-wrap: break-word; word-break: break-all; text-align: center; line-height: 35px; color: #000; }
.zcmsxbm .sx4 { position: absolute; top: 32%; font-size: 22px; left: 89%; width: 30px; word-wrap: break-word; word-break: break-all; text-align: center; line-height: 35px; color: #000; }
.amdsb .qishu { position: absolute; top: 12%; font-size: 16px; left: 78%; color: #000; }
.amdsb .w { position: absolute; top: 24.8%; font-size: 26px; left: 80%; }
.amdsb .sx1 { position: absolute; top: 35.5%; font-size: 22px; left: 79%; }
.amdsb .sx91 { position: absolute; top: 66.2%; font-size: 18px; left: 16.3%; }
.amdsb .sx92 { position: absolute; top: 66.2%; font-size: 18px; left: 25.3%; }
.amdsb .sx93 { position: absolute; top: 66.2%; font-size: 18px; left: 34.4%; }
.amdsb .sx94 { position: absolute; top: 74.5%; font-size: 18px; left: 16.3%; }
.amdsb .sx95 { position: absolute; top: 74.5%; font-size: 18px; left: 25.3%; }
.amdsb .sx96 { position: absolute; top: 74.5%; font-size: 18px; left: 34.4%; }
.amdsb .sx97 { position: absolute; top: 82.8%; font-size: 18px; left: 16.3%; }
.amdsb .sx98 { position: absolute; top: 82.8%; font-size: 18px; left: 25.3%; }
.amdsb .sx99 { position: absolute; top: 82.8%; font-size: 18px; left: 34.4%; }
.mry .qishu { position: absolute; top: 2%; font-size: 20px; left: 4%; color: #000; }
.mry .old_open_num { position: absolute; bottom: 1.8%; left: 31%; color: #fff; font-size: 16px; text-shadow: 0 0 1px #000, 0 0 1px #000; }
.mry .ds { position: absolute; top: 28%; font-size: 140px; left: 18%; color: #fcad5d; text-shadow: 0 0 4px #00BCD4, 0 0 4px #00BCD4; }
.sszm .qishu {
    position: absolute; top: 22%; font-size: 26px; left: 83%; color: #000;
    width: 26px; word-wrap: break-word; word-break: break-all; text-align: center; line-height: 26px;
}
.sszm .old_open_num { position: absolute; top: 15.5%; left: 34%; color: #000; font-size: 14px; }
.sszm .sx { position: absolute; top: 25%; font-size: 30px; left: 10%; letter-spacing: 12px; }
.sszm .ys1 { position: absolute; top: 39%; font-size: 36px; left: 28%; color: #fff; }
.sszm .ys2 { position: absolute; top: 45%; font-size: 36px; left: 42%; }
.jhw { overflow: hidden; }
.jhw .qishu { position: absolute; top: 21%; font-size: 12px; left: 24%; color: #fff; background-color: #aa221c; }
.jhw .yqty { position: absolute; top: 26.5%; left: 33%; font-size: 11.3px; }
.jhw .yqty span { color: #2a4f63; }
.jhw .sx4 { position: absolute; top: 30.1%; font-size: 11.5px; left: 47%; color: #000; background-color: #fff; }
.jhw .sx3 { position: absolute; top: 33.4%; font-size: 11.5px; left: 44%; color: #000; background-color: #fff; }
/* 四码：对齐「必中密码」后四个红圈，每位一格均分 */
.jhw .num4 {
    position: absolute;
    top: 39.8%;
    left: 36.8%;
    width: 29.5%;
    height: 5.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.6%;
    box-sizing: border-box;
    margin: 0;
    color: #fff;
    font-size: clamp(13px, 3.8vw, 18px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    background: transparent;
    -webkit-font-smoothing: antialiased;
}
.jhw .num4 i {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 800;
    color: #fff;
    text-shadow: none;
}
.jhw .xhy { position: absolute; top: 53%; font-size: 16px; left: 30%; color: #fff; background-color: #000; padding: 4px; }
.jhw .xhy span { color: #ff0; }
.jhw .sx31 { position: absolute; top: 60%; font-size: 40px; left: 7%; }
.jhw .sx32 { position: absolute; top: 60%; font-size: 40px; left: 28%; }
.jhw .sx33 { position: absolute; top: 64%; left: 51%; font-size: 24px; color: #f00; }
.jhw .mun23 {
    position: absolute;
    top: 76.5%;
    left: 8%;
    right: 4%;
    bottom: 2.5%;
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 21%;
    box-sizing: border-box;
    padding: 2px 4px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    color: #000;
    word-break: break-all;
    white-space: normal;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
.nbpmszs .qishu { position: absolute; top: 5%; font-size: 26px; left: 68%; color: #9C27B0; }
.nbpmszs .num31 { position: absolute; top: 24%; font-size: 32px; left: 16.5%; color: #2374b6; }
.nbpmszs .num32 { position: absolute; top: 24%; font-size: 32px; left: 44.5%; color: #2374b6; }
.nbpmszs .num33 { position: absolute; top: 24%; font-size: 32px; left: 74.5%; color: #2374b6; }
.nbpmszs .ds { position: absolute; top: 36%; font-size: 50px; left: 23.5%; color: #f00; }
.nbpmszs .t { position: absolute; top: 36%; font-size: 24px; left: 67%; color: #000; letter-spacing: 4px; }
.nbpmszs .w { position: absolute; top: 42%; font-size: 24px; left: 67%; color: #000; letter-spacing: 3px; }
.nbpmszs .sx { position: absolute; top: 58.8%; font-size: 36px; left: 14%; color: #3F51B5; letter-spacing: 85px; margin-right: -85px; }
.nbpmszs .ys { position: absolute; top: 70.5%; font-size: 28px; left: 36%; color: #f00; letter-spacing: 4px; }
.nbpmszs .lm { position: absolute; top: 83%; font-size: 30px; left: 24%; color: #000; letter-spacing: 2px; }
.nbpmszs .dx { position: absolute; top: 90%; font-size: 32px; left: 67%; color: #000; }

.bui-dialog-center { border-radius: 36px; overflow: visible; }
.bui-dialog .bui-dialog-head {
    width: 45%; text-align: center; margin: -20px auto 0;
    border-radius: 100px 100px 0 0; height: 40px; line-height: 20px; font-size: 24px;
}
.gggg {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 10px 0;
}
.gggg span {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    color: #fff;
    margin: 0;
    font-size: 13px;
    flex: 0 0 26px;
}
.bui-dialog .bui-dialog-main { background-color: #cbd0cc; margin: 10px 10px; height: 310px !important; }
.diy-pop .popup-content {
    font-size: 24px;
    line-height: 1.6;
    color: #555;
}
.djsbox { font-size: 16px !important; border: 1px solid; padding: 2px 4px; color: #f00 !important; font-weight: bolder; }
.content > .text:nth-child(odd) { background-color: #ffffff; }
.rainbow-text {
    font-size: 18px; font-weight: bold; color: transparent;
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
    -webkit-background-clip: text; background-clip: text; background-size: 200% 100%;
    animation: shine 3s linear infinite; text-align: center; margin: 5px 0;
}
.official-draw-box {
    height: 140px;
    overflow: hidden;
    background: #fff;
    width: calc(100% + .32rem);
    margin-left: -.16rem;
    margin-right: -.16rem;
    box-sizing: border-box;
}
.official-draw-frame {
    display: block;
    width: 100%;
    height: 140px;
    border: 0;
    background: #fff;
}
@keyframes shine {
    0% { background-position: 0 0; }
    100% { background-position: -200% 0; }
}
.bui-dialog .bui-dialog-text i {
    height: auto;
}

/* 历史开奖页共用布局 */
.history-bar {
    display: flex;
    align-items: center;
    color: #fff;
    height: .88rem;
    padding: 0 .3rem;
    position: sticky;
    top: 0;
    z-index: 999;
}
.history-bar .back-btn {
    font-size: .5rem;
    color: #fff;
    text-decoration: none;
    margin-right: .2rem;
    line-height: 1;
    padding: .1rem .15rem;
}
.history-bar .title {
    flex: 1;
    text-align: center;
    font-size: .36rem;
    font-weight: 600;
    margin-right: .6rem;
}
.history-list { padding: .2rem .2rem 0; }
.history-card {
    border-radius: .12rem;
    margin-bottom: .2rem;
    overflow: hidden;
}
.history-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .14rem .2rem .1rem;
    border-bottom: none;
}
.history-card .card-head .period {
    font-size: .24rem;
    font-weight: 600;
}
.history-card .card-head .date {
    font-size: .24rem;
    color: #888;
}
.history-card .balls-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: .16rem .1rem .18rem;
    gap: 2px;
}
.history-card .ball-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.history-card .ball-plus {
    font-size: .44rem;
    font-weight: bold;
    flex: 0 0 auto;
    padding: 0 .04rem;
}
.history-card .ball-num {
    width: .74rem;
    border-radius: .1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.history-card .ball-num .n {
    font-size: .4rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    padding: .15rem 0 .1rem;
    line-height: 1;
}
.history-card .ball-num .s {
    background: #fff;
    color: #333;
    font-size: .19rem;
    text-align: center;
    white-space: nowrap;
    border-radius: .04rem;
    padding: .03rem .06rem;
    line-height: 1.2;
    margin: 0 .08rem .1rem;
}
.load-more-wrap {
    text-align: center;
    padding: .3rem .2rem .5rem;
}
.load-more-btn {
    display: inline-block;
    color: #fff;
    border: none;
    border-radius: .4rem;
    padding: .18rem .8rem;
    font-size: .3rem;
    cursor: pointer;
}
.load-more-btn:disabled { background: #aaa; }
.load-tip {
    color: #999;
    font-size: .28rem;
    margin-top: .1rem;
}
.empty-tip {
    text-align: center;
    color: #999;
    font-size: .3rem;
    padding: 1rem 0;
}
.loading-spinner {
    text-align: center;
    padding: .4rem 0;
    font-size: .28rem;
}

/* 三期必中四肖：49图库式三栏块 */
.open-log > .content .text.sqbz-item,
body.theme-red .open-log > .content .text.sqbz-item,
body.theme-green .open-log > .content .text.sqbz-item {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    font-weight: normal;
    line-height: normal !important;
    text-align: left !important;
}
body.theme-red .open-log > .shangxuxian-000 .text.sqbz-item:not(:first-child),
body.theme-green .open-log > .shangxuxian-000 .text.sqbz-item:not(:first-child) {
    border-top: none !important;
}
.open-log > .content .text.sqbz-item + .text.sqbz-item {
    margin-top: .06rem;
}
.sqbz-block {
    width: 100%;
    border: 1px solid #9ed9d4;
    background: #e8f8f9;
    box-sizing: border-box;
    overflow: hidden;
}
.sqbz-head {
    text-align: center;
    color: #1a4cff;
    font-weight: 800;
    font-size: .3rem;
    line-height: .56rem;
    padding: .02rem .08rem;
    border-bottom: 1px solid #9ed9d4;
    background: #e8f8f9;
}
.sqbz-body {
    display: flex;
    align-items: stretch;
    min-height: 1.5rem;
}
.sqbz-left,
.sqbz-right {
    flex: 0 0 22%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    color: #1a4cff;
    font-weight: 700;
    font-size: .28rem;
    line-height: .48rem;
    background: #e8f8f9;
    padding: .06rem 0;
}
.sqbz-mid {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffe600;
    color: #111;
    font-weight: 900;
    font-size: .48rem;
    letter-spacing: .02rem;
    border-left: 1px solid #9ed9d4;
    border-right: 1px solid #9ed9d4;
    min-height: 1.5rem;
    padding: .08rem .04rem;
}
.sqbz-mid .zhong {
    background: transparent !important;
    color: #e60000 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 900;
}
.sqbz-p,
.sqbz-r {
    white-space: nowrap;
}

