/* 超小屏幕 */
@media (max-width: 319px) {
    .onegoods_detail .col-main{
        padding-top: 1px;
    }
    .paylist{
        justify-content:center;
    }
    .attr .attrlist {
        font-size: 15px;
        display: flex;
        flex-direction: column;
        background: #4a4a4a;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 5px;
    }
    .headerdiv .logo{
        margin-left: 0px;
    }
}

/* 小屏幕 */
@media (min-width: 320px) and (max-width: 480px) {
    .onegoods_detail .col-main{
        padding-top: 1px;
    }
    .paylist{
        justify-content:center;
    }
    .attr .attrlist {
        font-size: 15px;
        display: flex;
        flex-direction: column;
        background: #4a4a4a;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 5px;
    }
    .headerdiv .logo{
        margin-left: 0px;
    }
}

/* 中等屏幕 */
@media (min-width: 481px) and (max-width: 768px) {
    .case_box,.more-views{
        margin: 0px auto;
        width: 100%;
        max-width: 100%;
        max-height:100%;
    }
    .onegoods_detail .col-main{
        padding-top: 1px;
    }
    .paylist{
        justify-content:center;
    }
    .attr .attrlist {
        font-size: 15px;
        display: flex;
        flex-direction: column;
        background: #4a4a4a;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 5px;
    }
    .headerdiv .logo{
        margin-left: 0px;
    }
}

/* 大屏幕 */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-img-box{
        width: 50%;
    }
    .onegoods_detail .col-main{
        padding-top: 1px;
    }
}

@media (max-width: 1360px) {
    .publicwidth {
        width: 100%;
    }
    .category-products{
        width: 100%;
        padding: 10px;
    }
    .prolist-banner .nav-text{
        width: 100%;
        padding-left: 1%;
    }
}

@media (max-width: 960px) {


    .mobilenavmenu{
        display: block;
    }
    .navchild .navchildlink{
        line-height: 35px;
        text-indent: 22px;
    }

    .headerdiv .search{
        display: none;
    }
    .header-search-button{
        display: flex;
    }
    .checkout-cart-list-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        width: 100%;
    }
    .customer-name {
        display: flex;
        flex-direction: column;
    }
    .web_main_block{
        width: 100%;
    }
    .product-details-info-box{
        margin-top: 0px;
    }

    #slider img{
        max-width: 100%;
    }
    .scrollbox{
        display: block;
    }
    .col-main{
        width:auto;
    }
    .goods-detail-box{
        padding: 0px;
    }
    .account-login-create{
        width: 100%;
        padding: 10px;
    }
    .account-center-box {
        max-width: 100%;
    }
    .tracking-order-detail-box{
        padding: 10px;
    }
    .tracking-order-detail {
        width: 100%;
        overflow-x: auto; /* 启用水平滚动 */
        -webkit-overflow-scrolling: touch; /* 让滚动更加流畅 */
        margin-bottom: 15px; /* 可选：为表格底部添加间距 */
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    th, td {
        padding: 8px;
        text-align: left;
        border: 1px solid #ddd;
        white-space: nowrap; /* 防止内容换行 */
    }

    #trackorderform .inputbox{
        flex-direction: column;
    }

    #trackorderform .inputbox .orderid, #trackorderform .inputbox .email{
        width: 100%;
        display: flex;
        justify-content: left;
        flex-direction: column;
        text-align: left;
        margin-bottom: 20px;
    }
    #trackorderform .inputbox .orderid input, #trackorderform .inputbox .email input{
        width: 100%;
    }
    .tracking-banner img{
        max-width: 100%;
    }
    .centerbox{
        width: 100%;
        padding: 15px;
    }
    .product-options dd{
        width: 100%;
    }

    .reviews_title{
        text-align: center;
    }
    .bestseller_content{
        justify-content: space-between;
    }
    .best_seller_list{
        width: 50%;
        margin: 0px 0px;
        padding: 5px;
    }
    .product-options dd select{width: 100%;}

    .main-container{
        padding-top: 65px;
    }

    .product_count{
        padding: 5px 0px;
    }
    .recently-viewed{
        padding: 0px 10px;
    }
    .recently-viewed .bestseller_content{
        justify-content: space-between;
    }
    .product-img-box{
        width: 100%;
        position: relative;
        top: 0px;
    }

    .product-img-box .product-image img{
        width: auto;
        height: auto;
        max-width: 100%;
        margin: 0px;
    }
    .product-explain img{
        max-width: 100%;
    }
    .product-view .product-shop{
        position: relative;
        width: 100%;
        padding: 0px 10px;
    }
    .onegoods_detail{
        padding-top: 0px;
    }
    .product-name{
        padding-left: 0px;
    }
    .onegoods_detail .product-view .product-name h1{
        font-size: 23px;
    }
    .review_header{
        padding: 10px;
        border-left: none;
        border-right: none;
    }
    .review_body{
        padding: 10px;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    .layui-layer {
        width: 100% !important; /* 强制弹窗宽度占满屏幕 */
    }
    .content_reviews .list:last-child{
        border-bottom: none;
    }
    .recently-viewed .bestseller_content{
        overflow-x: scroll;
        flex-wrap: nowrap;
    }
    .recently-product-item-list{
        width: 45%;
        margin: 0px;
        padding: 5px;
    }
    .cart-div-content{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .cart-div-content .cart-div-left{
        width: 100%;
        padding: 10px;
    }
    .cart-div-right{
        width: 100%;
        padding: 10px;
    }
    .cart-div-title{
        padding: 15px;
    }
    .checkout-page{
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-direction: column-reverse;
    }
    .checkout-page-left{
        width: 100%;
    }
    .checkout-page-left-content{
        padding: 10px;
        width: 100%;
    }
    .checkout-page-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding:0px;
    }
    .checkout-page-left-content .site{
        display: none;
    }
    .checkout-page-left-content .checkout-nav{
        display: none;
    }
    .checkout-page-right-content{
        padding: 10px;
        width: 100%;
        display: none;
    }
    .checkout-page-right-content .site{
        padding-top: 0px;
    }
    .paynow .paynow-item{
        width: 80%;
        text-align: center;
    }
    .paynow{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column-reverse;
    }
    .paynow .paynow-item .paypal_sd .paypal_sd_btn{
        line-height: 50px;
        font-size: 14px;
    }
    .paynow .paynow-item {
        display: flex;
        flex-direction: column;
        width: 80%;
        margin-bottom: 20px;
    }
    .site{
        padding: 10px;
    }
    .checkout-page-right-content-page-line{
        display: flex;
    }
    .checkout-page-right .checkout-nav{
        padding-bottom: 0px;
        margin: 10px;
    }
    .checkout-cart{
        margin-top: 0px;
    }
    .customer-box{
        flex-direction: column;
        padding: 10px;
    }
    .user_public_left,.user_public_right{
        width: 100%;
    }
    .user_public_right .user_order_list .order_list_head{
        flex-direction: column;
    }
    .user_public_right .user_order_list .order_list_head .orderid{
        padding-left: 15px;
    }
    .status-box{
        flex-direction: column;
        text-align: center;
    }
    .status-box-left-text{
        padding: 15px;
    }
    .detail-head{
        display: none;
    }
    .detail-body-item .status, .detail-body-item .price, .detail-body-item .qty, .detail-body-item .total {
        display: none;
    }
    .detail-body .detail-body-item .info{
        width: 100%;
    }
    .order-detail-box{
        padding: 10px;
    }
    .detail-infos{
        flex-direction: column;
    }
    .detail-infos .adress{
        border: none;
    }
    .detail-infos .adress{
        border: none;
        border-bottom: solid 1px rgb(229, 231, 235);
        border-top: solid 1px rgb(229, 231, 235);
        padding: 15px 0px;
        margin: 15px 0px;
    }
    .customer-header-title{
        line-height: 35px;
    }

    .paynow {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column-reverse;
    }
}
@media (min-width: 961px) {
    .header-search-button{
        display: none;
    }
    .scrollbox{display: none;}
    .checkout-page-right-content-page-line{
        display: none;
    }

    .main-container{
        padding-top: 180px;
    }
    .main-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 144px; /* 高度与 padding-top 一致 */
    }

    .checkout-page-right .site{
        display: none;
    }
    .checkout-page-right .checkout-nav{
        display: none;
    }
    .checkout-page-left-content .site{
        display: flex;
    }
    .checkout-page-left-content .checkout-nav{
        display: flex;
    }
}
.mobilebox{
    padding: 0px 10px;
}
