.caipiao{
    border: 1px solid #eee;
    padding: 2rem 0;
}

.night .caipiao{
    border:1px solid #444;
}

.caipiao h2{
    text-align: center;
    font-size: 1rem;
    height: 1rem;
    line-height: 1rem;
}

.caipiao_nums{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    width: 100%;
}

.caipiao_nums div{
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 1.2rem;
    display: inline-block;
    color: #fff;
    text-align: center;
    border-radius: 100%;
    font-weight: bold;
    background-image: linear-gradient(180deg, #FE8A5C 0%, #FF4D4D 100%);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
}

.caipiao_nums div:last-child{
    background-image: linear-gradient(180deg, #31CAF5 0%, #198CFF 100%);
}

.caipiao_but{
    text-align: center;
}

.caipiao_but button{
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    background-color: #009688;
    margin: 0 0.4rem;
}

.caipiao_but button:nth-child(2){
    background-color: #607D8B;
}

.caipaisetup{
    border: 1px solid #eee;
    border-top: 0;
    padding: 0.5rem;
}

.night .caipaisetup{
    border: 1px solid #444;
    border-top: 0;
}

.caipaisetup button{
    height: 1.8rem;
    line-height: 1.8rem;
    background-color: transparent;
    border: 1px solid #eee;
    padding: 0 0.5rem;
    cursor: pointer;
    border-radius: 3px;
    color: #34495e;
}

.night .caipaisetup button{
    border:1px solid #444;
    color: #eee;
}

.caipaisetup button.act{
    background-color: #009688;
    border: 1px solid #009688;
    color: #fff;
}

.caipaisetup button::before{
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    line-height: 0.8rem;
    display: block;
    margin-right: 0.5rem;
    border-radius: 100%;
    background-image: linear-gradient(180deg, #FE8A5C 0%, #FF4D4D 100%);
    float: left;
    margin-top: 0.47rem;
}

.caipaisetup button.blur::before{
    background-image: linear-gradient(180deg, #31CAF5 0%, #198CFF 100%);
}

.qilecai{
    padding: 0.25rem;
    border: 1px solid #eeeeee;
    margin-top: 0.75rem;
    border-radius: 3px 3px 0 0;
}

.night .qilecai{
    border:1px solid #444;
}

.qilecai>div{
    padding: 0.25rem;
    width: 50%;
    float: left;
}

.qilecai>div>div{
    margin-bottom: 0 !important;
}


.sel3 .layui-form-select{
    width: calc(100% / 3 - 0.25rem);
    float: left;
    display: inline-block;
    margin-right: 0.25rem;
}

.sel3>div:last-child{
    float: right;
    margin-right: 0;
    width: calc(100% / 3);
}

.sel2 .layui-form-select{
    width: calc(100% / 2 - 0.25rem);
    float: left;
    display: inline-block;
    margin-right: 0.25rem;
}

.sel2>div:last-child{
    float: right;
    margin-right: 0;
    width: calc(100% / 2);
}

.int2 .layui-input{
    width: calc(100% / 2 - 0.25rem);
    float: left;
    display: inline-block;
    margin-right: 0.25rem;
}

.int2 .layui-input:last-child{
    float: right;
    margin-right: 0;
    width: calc(100% / 2);
}

.redsetup{
    display: none;
}

.blursetup{
    display: none;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
    }
}

@keyframes drawBall {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.caipiao_nums_anims{
    animation: 0.4s ease-out 0s 1 normal forwards running drawBall;
}

/*******************************************/

.rescents{
    position: relative;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: none;
}

.night .rescents{
    border: 1px solid #444;
}

.rescents h3{
    font-size: 0.6rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-left: 0.5rem;
    height: 2rem;
    line-height: 2rem;
    background-color: #f6f7fa;
}

.night .rescents h3 {
    border-bottom: 1px solid #444;
    background-color: #181a1b;
}

.rescents>div{
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 0.5rem;
    padding: 0.5rem;
}

.rescents>div>div{
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.night .rescents>div>div{
    background-color: #444;
}

.rescents>div>div>div:nth-child(1){
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.75rem;
    font-size: 0.6rem;
}

.rescents>div>div>div:nth-child(2){
    font-size: 0.6rem;
    word-wrap: break-word;
}

.rescents>div>div>div:nth-child(2) div{
    width: 1.3rem;
    height: 1.3rem;
    line-height: 1.3rem;
    display: inline-block;
    color: #fff;
    text-align: center;
    margin-right: 0.3rem;
    border-radius: 100%;
    font-weight: bold;
    background-image: linear-gradient(180deg, #FE8A5C 0%, #FF4D4D 100%);
}

.rescents>div>div>div:nth-child(2) div.b{
    background-image: linear-gradient(180deg, #31CAF5 0%, #198CFF 100%);
    margin-right: 0rem;
}

/*******************************************/

.redfenxi{
    position: relative;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: none;
}

.night .redfenxi{
    border: 1px solid #444;
}

.redfenxi h3{
    font-size: 0.6rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-left: 0.5rem;
    height: 2rem;
    line-height: 2rem;
    background-color: #f6f7fa;
}

.night .redfenxi h3 {
    border-bottom: 1px solid #444;
    background-color: #181a1b;
}

.redfenxilist{
    padding: 0.1rem 0.5rem;
}

.redfenxilist>div{
    height: 1.3rem;
    line-height: 1.3rem;
    margin: 0.4rem 0;
}

.redfenxilist>div>div:nth-child(1){
    width: 1.3rem;
    height: 1.3rem;
    line-height: 1.3rem;
    display: inline-block;
    color: #fff;
    text-align: center;
    margin-right: 0.3rem;
    border-radius: 100%;
    font-weight: bold;
    background-image: linear-gradient(180deg, #FE8A5C 0%, #FF4D4D 100%);
}

.redfenxilist>div>div:nth-child(2){
    width: calc(100% - 1.7rem);
    height: 1.3rem;
    float: right;
}

.redfenxilist>div>div:nth-child(2) div{
    height: 1.3rem;
    border-radius: 10px;
    background-image: linear-gradient(180deg, #FE8A5C 0%, #FF4D4D 100%);
    color: #fff;
    text-align: right;
    padding-right: 0.5rem;
}

/*******************************************/

.bluefenxi{
    position: relative;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: none;
}

.night .bluefenxi{
    border: 1px solid #444;
}

.bluefenxi h3{
    font-size: 0.6rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-left: 0.5rem;
    height: 2rem;
    line-height: 2rem;
    background-color: #f6f7fa;
}

.night .bluefenxi h3 {
    border-bottom: 1px solid #444;
    background-color: #181a1b;
}

.bluefenxilist{
    padding: 0.1rem 0.5rem;
}

.bluefenxilist>div{
    height: 1.3rem;
    line-height: 1.3rem;
    margin: 0.4rem 0;
}

.bluefenxilist>div>div:nth-child(1){
    width: 1.3rem;
    height: 1.3rem;
    line-height: 1.3rem;
    display: inline-block;
    color: #fff;
    text-align: center;
    margin-right: 0.3rem;
    border-radius: 100%;
    font-weight: bold;
    background-image: linear-gradient(180deg, #31CAF5 0%, #198CFF 100%);
}

.bluefenxilist>div>div:nth-child(2){
    width: calc(100% - 1.7rem);
    height: 1.3rem;
    float: right;
}

.bluefenxilist>div>div:nth-child(2) div{
    height: 1.3rem;
    border-radius: 10px;
    background-image: linear-gradient(180deg, #31CAF5 0%, #198CFF 100%);
    color: #fff;
    text-align: right;
    padding-right: 0.5rem;
}

@media screen and (max-width: 1280px){
    .rescents>div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 980px){
    .rescents>div {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 886px){
    .rescents>div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 866px){
    .rescents>div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1090px){
    .qilecai>div {
        width: 100%;
        float: unset;
    }
}

@media screen and (max-width: 886px){
    .qilecai>div {
        width: 50%;
        float: left;
    }
}

@media screen and (max-width: 800px){
    .qilecai>div {
        width: 100%;
        float: unset;
    }
}

@media screen and (max-width: 690px){
    .rescents>div {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 970px){
    .caipiao_nums div {
        width: 1.8rem;
        height: 1.8rem;
        line-height: 1.8rem;
        font-size: 0.8rem;
    }
}


@media screen and (max-width: 536px){
    .caipiao_nums div {
        width: 1.5rem;
        height: 1.5rem;
        line-height: 1.5rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 460px){
    .caipiao_nums {
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
}

@media screen and (max-width: 390px){
    .caipiao {
        padding: 1rem 0;
    }
    .caipiao h2 {
        text-align: center;
        font-size: 0.75rem;
        height: 0.8rem;
        line-height: 0.8rem;
    }
    .caipiao_nums {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.2rem;
        margin: 0.5rem 0;
        padding: 0.5rem 0;
        width: 100%;
    }
    .caipiao_but button {
        padding: 0.4rem 1rem;
        font-size: 0.6rem;
    }
    
}

@media screen and (max-width: 340px){
    .rescents>div>div>div:nth-child(2) div {
        width: 1rem;
        height: 1rem;
        line-height: 1rem;
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 320px){
    .caipiao_nums div {
        width: 1.2rem;
        height: 1.2rem;
        line-height: 1.2rem;
        font-size: 0.6rem;
    }

    .caipiao_but button {
        padding: 0.3rem 0.75rem;
        font-size: 0.6rem;
        border: none;
        border-radius: 3px;
    }
}

@media screen and (max-width: 298px){
    .caipaisetup button{
        width: 100%;
        text-align: left;
    }

    .caipaisetup button:last-child{
        margin-top: 0.5rem;
    }
}