*{
    text-align: center;
    color:#eeeeee;
    font-size: 16px;
    /*background-color:rgb(80,80,80);*/
    /* transform: translateX(-2px); */
}
.hide{
    display:none;
}
.box{
    margin: auto;
    border: 3px solid #ffffff;
    display:grid;
    width:80%;
    height:auto;
    grid-template-columns: minmax(0,4fr) 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "a c"
        "b c";
}
.achBox {
    margin: auto;
    margin-top: 5px;
    display: grid;
    /* 默认设置（适用于宽度 < 700px） */
    width: 100%; /* 占满父容器 */
    grid-template-columns: repeat(auto-fit, 100px); /* 自动填充100px列 */
    grid-template-rows: 100px;
    justify-content: center; /* 居中列 */
}
/* 当父容器宽度 ≥ 700px 时的样式 */
@media (min-width: 700px) {
    .achBox {
        width: 700px; /* 固定宽度 */
        grid-template-columns: repeat(7, auto); /* 固定7列 */
    }
}
.achPicture{
    width:100px;
    height:100px;
}
.achKuang{
    position:absolute;
    bottom:100px;
    left:-45px;
    width:190px;
    height:100px;
    background-color: #636363;
    display: grid;
    grid-template-columns: 1fr; 
    grid-template-rows: 1fr 4fr;
    justify-content: center; /* 居中列 */
    border: 3px solid #ffffff;
    /* box-shadow:0 0 0px #eeeeee, 
        inset 0 0 0 2px white; */
}
.button{
    margin-top:5px;
    height: 50px;
    width: 100px;
    background-color: #636363;
    border: 3px solid #ffffff;
}
.button:hover{
    cursor:pointer;
    background-color:#999999;
}
.button2{
    margin-top:5px;
    height: 75px;
    width: 225px;
    background-color: #636363;
    border: 3px solid #ffffff;
}
.button2:hover{
    cursor:pointer;
    background-color:#999999;
}
.button3{
    margin-top:5px;
    height: 120px;
    width: 225px;
    background-color: #636363;
    border: 3px solid #ffffff;
}
.button3:hover{
    cursor:pointer;
    background-color:#999999;
}
#buyCR{
    display:grid;
    grid-template-columns: 1fr; 
    grid-template-rows: 1fr 4fr 1fr;
} 
.autoBox{
    margin:auto;
    justify-content: center;
    margin-top:5px;
    display:flex;
    width:80%;
    border: 3px solid #ffffff;
}
.autoSmallBox{
    margin:auto;
    justify-content: center;
    margin-top:5px;
    margin-bottom:5px;
    display:grid;
    grid-template-rows: 1fr 4fr;
    width:75px;
    height:100px;
    border: 3px solid #ffffff;
}
/* 确保复选框宽度固定且居中 */
.autoSmallBox input[type="checkbox"] {
    display: block; /* 使margin:auto生效 */
    margin: 0 auto; /* 水平居中 */
    width: 30px; /* 保持宽度不变 */
}
.childMiddle {
    margin: auto;
    margin-top: 5px;
    display: flex;
    gap:10px;
    justify-content: center; /* 居中列 */
}
.tabButton{
    margin-top:5px;
    height: 33px;
    width: 150px;
    background-color: #636363;
    border: 3px solid #ffffff;
}
.tabButton:hover{
    cursor:pointer;
    background-color:#999999;
}
.inTabButton{
    margin-top:5px;
    height: 33px;
    width: 150px;
    background-color: #888888;
    border: 3px solid #ffffff;
}
.inTabButton:hower{
    background-color:#999999;
}
.buttonf{
    height: 100%;
    width: 100%;
    /*transition-duration: 0.5s;*/
    background-color: #636363;
    border: 3px solid #ffffff;
}
.buttonf:hover{
    cursor:pointer;
    background-color:#999999;
}

/* 新闻容器样式 */
.news-container {
    width: 90%;
    height: 25px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-scroll-box {
    position: absolute;
    left: 0px;
    top: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
}
.news-content {
    position: absolute;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    animation: scroll linear;
}
.news-item {
    padding: 0 15px;
    color: #333;
    font-size: 16px;
    position: relative;
}
.news-item:after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: #ddd;
}
.news-item:last-child:after {
    display: none;
}
@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}





.dim{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    padding-left: 5%;
    padding-right: 5%;
    text-align: left;
    line-height: 250%;
    grid-row-gap: 10px;
    white-space: nowrap;
}
.dimName{
    font-size: 18px;
}
.dimMult{
    grid-column: 1/2;
    font-size: 13px;
}
.dimNum{
    grid-column: 3/3;
    font-size: 18px;
}
.dimProc{
    grid-column: 4/4;
    font-size: 18px;
    overflow:visible;
}/*多来点css，可购买，hover，不可购买，hover*/
.dimBuy{/* ?马上就写 函数已经好了 我得加到元素上 草 要么你写一下 我补下游戏功能*/
    grid-column: 12;/* ???????????草 */
    border-radius: 8px;
    width: 200px;
    height: 50px;
    border: 2px solid rgb(150,150,150);
    transition-duration: 0.33s;
}
.tab{
    border-radius: 6px;
    display: inline-block;
    height: 50px;
    width: 120px;
    transition-duration: 0.35s;
    border: 2px solid rgb(150,150,150);
}
.tab:hover{
    cursor:pointer;
    background-color: rgb(180,180,180);
}

.infDiv{
    margin: auto;
    text-align: center;
    position: absolute;    
    top: 0.5%;
    right: 0.5%;
}

.infButton{
    border-radius: 6px;
    height: 100px;
    width: 300px;
    transition-duration: 0.5s;
    border: 2px solid rgb(200,200,0);
    background-color:rgb(200,200,175);
    float: right;
    color: rgb(50,50,100);
    /* position: relative; */
}

.infButton:hover{
    cursor:pointer;
    background-color:rgb(175,175,0);
}



.mainIU{
/*     border-radius: 6px; */
    height: 80px;
    width: 90%;
    transition-duration: 0.4s;
    border: 3px solid rgb(150,150,200);
    background-color:rgb(200,200,175);
    color: rgb(50,50,100);
    position: relative;
}

/* .mainIU:hover{
    background-color:rgb(175,175,0);
} */

.iu{
/*     border-radius: 6px; */
    height: 150px;
    width: 22.5%;
    transition-duration: 0.4s;
    border: 3px solid rgb(100,200,0);
    background-color:rgb(200,200,175);
    color: rgb(50,50,100);
    vertical-align:top;
    /* position: relative; */
}
.ic{
/*     border-radius: 6px; */
    height: 150px;
    width: 22.5%;
    transition-duration: 0.4s;
    border: 3px solid rgb(200,150,0);
    background-color:rgb(200,200,175);
    color: rgb(50,50,100);
    vertical-align:top;
    /* position: relative; */
}

#switchShift{
    height: 30px;
    width: 200px;
    transition-duration: 0.4s;
    border: 3px solid rgb(200,150,0);
    background-color:rgb(200,200,175);
    color: rgb(50,50,100);
    vertical-align:top;
    /* position: relative; */
}
#switchShift:hover{
    cursor:pointer;
    background-color:rgb(175,175,0);
}

.sacrifice{
/*     border-radius: 6px; */
    height: 60px;
    width: 75%;
    transition-duration: 0.4s;
    border: 3px solid rgb(200,150,200);
    background-color: rgb(230,210,230);
    color: rgb(50,50,100);
    position: relative;
}

.disabled{
    background-color: rgb(150,150,150);
    cursor:not-allowed;
}

.can.ic:hover{
    background-color:rgb(175,175,0);
}
.can.iu:hover{
    background-color:rgb(175,175,0);
}
.can.mainIU:hover{
    background-color:rgb(175,175,0);
}
.can:hover{
    cursor:pointer;
}

.can.dimBuy:hover{
    background-color: rgb(190,220,190);
}
.can.sacrifice:hover{
    background-color: rgb(210,180,210);
}
.locked.dimBuy{
    border: 2px solid rgb(200,100,100);
}
.locked:hover{
    cursor:not-allowed;
    background-color: rgb(200,125,125);
}

.bought{
    background-color: rgb(160,210,160);
}
.bought.disabled{
    background-color: rgb(150,150,150);
    cursor:not-allowed;
}

.downgrade{
    background-color: rgb(200,175,175);
}
.downgrade:hover{
    background-color: rgb(200,125,125);
    cursor:pointer;
}
.downgrade.locked{
    background-color: rgb(150,150,150);
    cursor:not-allowed;
}
