@media only screen and (max-width: 900px) {
    /* For mobile phones: */
    .shopbody{
        width: 95% !important;
    }
    .shopbottom{
        width: 95% !important;
    }
    .box{
        flex-direction: column;
        height:auto !important;
    }
    .box_img{
        height: 200px !important;
    }
    .box_content{
        height: auto !important;
    }
    .box_content div:first-child{
        display: flex;
        justify-content: center;
    }
    .box_button{
        width: auto !important;
        height: auto !important;
    }
    .box_title{
        top: 0px !important;
        left: 0px !important;
    }
    .box_content div:last-child{
        display: none !important;
    }
    .shopbottom .last {
        right: 4% !important;
    }
}
.shopbody{
    position: relative;
    margin: 0px auto;
    margin-top: 25px;
    width: 60%;
    height: 75vh;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 16px;
    overflow: auto;
}
.shopbody::-webkit-scrollbar {/*滚动条整体样式*/
    width: 15px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
}
.shopbody::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: #b7b7b7;
}
.shopbody::-webkit-scrollbar-track {/*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    border-radius: 10px;
    opacity: 0.75;
}
.shopbottom{
    width: 60%;
    background-color:#3f0100;
    height:5vh;
    display: flex;
    margin: auto;
}
.last button{
    background-color:#ffffff;
    margin-left: 5px;
    border: none;
    outline: none;
    width: 80px;
    height: 24px;
    border-radius: 200px;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
}
.shopbottom .first{
    display: flex;
}
.shopbottom .last{
    position: absolute;
    right: 22%;
    transform: translateY(50%);
}
.moeny{
    background: url("http://pic.56uxi.com/img/money_icon.png");
    width: 54px;
    height: 48px;
    background-size: 54px,48px;
    z-index:3;
}
.money_content{
    width: 150px;
    height: 30px;
    position: relative;
    left: -25px;
    top: 13px;
    z-index:2;
    text-align: center;
    color: #ffe17e;
    background: url("http://pic.56uxi.com/img/moeny_background.png");
    background-repeat: no-repeat;
}
.box{
    width: 100%;
    height: 225px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box_img{
    width: 400px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box_img img{
    width: 180px;
    height: 151px;
}
.box_content{
    width: 70%;
    height: 200px
}
.box_content div:first-child{
    width: 100%;
    height: 30%;
    position: relative;
}
.box_content div:last-child{
    width: 100%;
    height: 50%;
    background-color:#1f1f1f;
    border:1px solid #3c3c3c ;
    padding-top: 4px;
    padding-left: 6px;

}
.box_title{
    position: relative;
    top: 45%;
    left: 5px;
    font-size: 20px;
}
.box_button{
    width: 20%;
    padding-top:25px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.box_button button{
    margin-left: 5px;
    border: none;
    outline: none;
    width: 110px;
    height: 38px;
    color: white;
    cursor: pointer;
    background: url("http://pic.56uxi.com/img/luckybutton.png");
    background-repeat: no-repeat;
}
.pack{
    position: fixed;
    left: 50%;
    align-content: flex-start;
    transform: translate(-50%,-100%);
    width: 60vw;
    height: 70vh;
    border: 2px solid #857d84;
    background-color:#1f1f1f;
    color: #477bff;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.pack_item{
    width: 190px;
    text-align: center;
}
.pack_item>img{
    width: 180px;
    height: 120px;
}
.pack_item>div>button{
    margin: 10px 0;
    /*width: 100px;*/
    font-size: 14px;
}
.recycleall{
    width: 90%;
}
.recycleall>button{
    width: 100% !important;
    height: 30px !important;
}
.pack table{
    width: 90%;
    margin-left: 5%;
    border-collapse:separate; border-spacing:0px 15px;
    overflow: hidden;
}
.pack table tr td span{
    width: 100px;
    white-space: nowrap;  /*强制span不换行*/
    display: inline-block;  /*将span当做块级元素对待*/
    overflow: hidden;  /*超出宽度部分隐藏*/
    text-overflow: ellipsis;  /*超出部分以点号代替*/
    line-height: 0.9;  /*数字与之前的文字对齐*/
}
.pack table tr td{
    text-align: center;
}
.pack>div{
    margin-top: 15px;
    margin-bottom: 15px;
}
.pack button{
    background-color: #b7b7b7;
    margin-left: 5px;
    width: 90px;
    height: 18px;
    border: none;
    outline: none;
    border-radius: 200px;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
}
.box_button button:last-child{
    margin-top: 0px;
}
.alert .alert_title{
    color: #477bff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing:7px;
    text-align: center;

}
.alert .box_S{
    font-size: 16px;
    color: #ffc547;
}
.alert .box_A{
    font-size: 16px;
    color: #bc4cd4;
}
.alert .box_B{
    font-size: 16px;
    color: #4271ea;
}
.alert .box_C{
    font-size: 16px;
    color: #ffffff;
}
.box_S{
    color: #ffc547;
}
.box_A{
    color: #bc4cd4;
}
.box_B{
    color: #4271ea;
}
.box_C{
    color: #ffffff;
}
.ImageAlertBox{
    width: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
}
.ImageAlertBoxItem{
    width: 180px;
    margin: 0px 10px;
    margin-bottom: 10px;
    text-align: center;

    opacity: 0;
    animation: fadeInUp 0.2s ease-out forwards;
    animation-delay: var(--delay, 0s); /* 使用自定义属性 --delay，默认值为 0s */
}
.ImageAlertBoxItem>img{
    width: 180px;
    height: 120px;
}
.totalBox{
    font-size: 16px;
    position: absolute;
    right: 0px;
    bottom: 8px;
}

/* 定义 fadeInUp 动画 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* 初始状态稍微向下偏移 */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 回到原始位置 */
    }
}

.equipment-box {
    position: absolute;
    top: -24px;
    left: 10px;
    width: 160px;
    height: 150px;
    padding: 12px 10px;
    background-color: rgba(0, 0, 0,0.6);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;  /* 默认隐藏 */
    visibility: hidden;  /* 使其不占空间 */
    transition: opacity 0.3s ease, visibility 0s 0.3s; /* 淡入效果 */
    z-index: 9;  /* 确保其在 `marketbox_content_item` 上方 */
}
.equipment-box-info{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    z-index: 9;
}
.equipment-box-info div{
    width: 49%;
    margin-bottom: 5px;
    text-align: left;
}
.marketbox_content_box{
    position: relative;
}
.marketbox_content_box:hover .equipment-box {
    opacity: 1;  /* 鼠标移入时显示 */
    visibility: visible;  /* 可见 */
    transition: opacity 0.3s ease, visibility 0s 0s; /* 在hover时可见 */
}

.marketbox_content_item:nth-child(7n) .equipment-box {
    right: 100%;  /* 装备框显示在左侧 */
    left: auto;  /* 清除右侧位置 */
}

.equipment-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.equipment-box p {
    font-size: 16px;
    margin: 5px 0;
}

.equipment-box p strong {
    color: #FFD700;  /* 黄金色 */
}
.loader {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100px;
    height: 20px;
    position: relative;
    margin: auto;
    margin-top: 55px;
}

.loader div {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background-color: #ffe17e;
    border-radius: 50%;
    animation: bounce 0.8s infinite ease-in-out;
}

.loader div:nth-child(1) {
    animation-delay: 0s;
}
.loader div:nth-child(2) {
    animation-delay: 0.2s;
}
.loader div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}