/* 移动端适配：覆盖 MetInfo PC 模板在手机上的错位、留白和溢出 */

@media (max-width: 768px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        background: #f5f6f8;
        -webkit-text-size-adjust: 100%;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 auto;
    }

    /* ---- 顶栏统计 ---- */
    .stats-simple {
        font-size: 12px !important;
        text-align: left !important;
        padding: 6px 10px !important;
        line-height: 1.4;
    }

    /* ---- Logo / 平台 / 搜索 ---- */
    .head_nav_met_m1156_4_60 .neck-box {
        background: #fff;
    }

    .head_nav_met_m1156_4_60 .topbox {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 8px 0 10px;
    }

    .head_nav_met_m1156_4_60 .logo-box,
    .head_nav_met_m1156_4_60 .logo-box a {
        float: none !important;
        width: auto !important;
        height: 36px !important;
        line-height: 36px !important;
        display: block !important;
        margin: 0 !important;
        text-align: left;
    }

    .head_nav_met_m1156_4_60 .logo-box a img,
    .head_nav_met_m1156_4_60 .logo-box a img:first-child,
    .head_nav_met_m1156_4_60 .logo-box a img:last-child {
        max-width: 110px !important;
        max-height: 32px !important;
    }

    .pt-box {
        float: none !important;
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin: 0 0 0 auto !important;
    }

    .pt-box a {
        display: inline-flex;
        align-items: center;
        line-height: 0;
    }

    .pt-box img {
        height: 22px !important;
        width: auto !important;
        max-width: 48px;
        display: block;
        object-fit: contain;
    }

    .head_nav_met_m1156_4_60 .search-box,
    .search-box {
        float: none !important;
        flex: 1 0 100%;
        width: 100% !important;
        height: 36px !important;
        margin: 8px 0 0 !important;
        position: relative;
        z-index: 2;
    }

    .head_nav_met_m1156_4_60 .search-cut,
    .head_nav_met_m1156_4_60 .search-box form,
    .head_nav_met_m1156_4_60 .search-cut form {
        width: 100% !important;
        display: block !important;
    }

    .head_nav_met_m1156_4_60 .search-box:before,
    .head_nav_met_m1156_4_60 .search-box form:after {
        display: none !important;
    }

    .head_nav_met_m1156_4_60 .search-box form {
        position: relative;
        background: #f3f4f6;
        border-radius: 18px;
        overflow: hidden;
        height: 36px;
    }

    .head_nav_met_m1156_4_60 .search-box form input[type=text] {
        width: 100% !important;
        height: 36px !important;
        line-height: 36px !important;
        padding: 0 42px 0 14px !important;
        border: 0 !important;
        background: transparent !important;
        font-size: 14px;
        box-sizing: border-box;
    }

    .head_nav_met_m1156_4_60 .search-box form button {
        position: absolute;
        right: 0;
        top: 0;
        width: 40px !important;
        height: 36px !important;
        line-height: 36px !important;
        border: 0 !important;
        background: transparent !important;
        color: #ce0000 !important;
        font-size: 16px !important;
    }

    /* ---- 分类导航：换行展示，保证每一项都能看见 ---- */
    .tinynav,
    .tinynav_label,
    .tinynav1_label {
        display: none !important;
    }

    .navbar1 {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #ce0000;
        padding: 0;
        height: auto !important;
        overflow: visible;
    }

    .navbar1 .nav-scroll {
        overflow: visible;
    }

    .navbar1 .navcontent1,
    .navbar1 .nav-menu {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        height: auto !important;
        min-height: 0;
        line-height: 1.2 !important;
        margin: 0;
        padding: 4px 4px 6px;
        white-space: normal;
        width: 100%;
        box-sizing: border-box;
    }

    .navbar1 ul li,
    .navbar1 .navcontent1 > li {
        display: inline-flex !important;
        align-items: center;
        flex: 0 0 auto;
        float: none;
        height: 26px !important;
        line-height: 26px !important;
        padding: 0 8px !important;
        margin: 3px 1px;
        font-size: 13px;
        white-space: nowrap;
    }

    .navbar1 .navcontent1 > li > a {
        display: block;
        white-space: nowrap;
    }

    .navbar1 .sunmenu {
        display: none !important;
    }

    .m-subnav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
        background: #fff2f2;
        list-style: none;
        margin: 0;
    }

    .m-subnav li {
        display: inline-block;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .m-subnav a {
        display: inline-block;
        padding: 4px 10px;
        font-size: 12px;
        color: #333 !important;
        background: #fff;
        border-radius: 12px;
        line-height: 1.4;
    }

    .m-subnav li.active a {
        background: #ce0000;
        color: #fff !important;
    }

    /* 首页右侧锚点导航挡住内容 */
    #nav {
        display: none !important;
    }

    /* ---- 面包屑 ---- */
    .location-box {
        margin-top: 0 !important;
        padding: 8px 0 !important;
        font-size: 12px;
        overflow: hidden;
        background: #fff !important;
    }

    .location-box ul {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    .location-box ul li {
        float: none !important;
        flex: 0 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55%;
    }

    .location-box ul li:last-child {
        flex: 1 1 auto;
        max-width: none;
    }

    .location-box ul li span {
        display: none;
    }

    .location-box ul li:before {
        padding: 0 6px !important;
    }

    /* ---- 列表 / 首页商品卡片 ---- */
    .hot_list_met_m1156_4_43 {
        background: #f5f6f8 !important;
    }

    .hot_list_met_m1156_4_43 .groom-box {
        padding: 4px 0 16px !important;
        margin-top: 0 !important;
    }

    .hot_list_met_m1156_4_43 .title-box {
        margin-top: 8px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hot_list_met_m1156_4_43 .title-name {
        float: none;
        padding-top: 0;
    }

    .hot_list_met_m1156_4_43 .title-name h3,
    h3 {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #222 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hot_list_met_m1156_4_43 .title-name h3::after,
    h3::after {
        display: none !important;
    }

    .more {
        float: none !important;
        margin: 0 !important;
        font-size: 13px;
        color: #ce0000 !important;
        white-space: nowrap;
    }

    .hot_list_met_m1156_4_43 .groom-cut {
        margin: 0 -4px !important;
        padding: 0 !important;
        overflow: visible;
        text-align: left;
    }

    .hot_list_met_m1156_4_43 .groom-cut ul,
    .groom-cut-wraper {
        display: flex !important;
        flex-wrap: wrap;
        width: 100% !important;
        margin: 0;
        padding: 0;
    }

    .hot_list_met_m1156_4_43 .groom-cut ul li,
    .groom-cut-slide {
        float: none !important;
        width: 50% !important;
        padding: 4px !important;
        margin: 0 0 4px !important;
        box-sizing: border-box;
    }

    .hot_list_met_m1156_4_43 .groom-cut ul li a {
        background: #fff !important;
        border: 0 !important;
        border-radius: 8px;
        padding: 0 0 8px !important;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
        transform: none !important;
    }

    .hot_list_met_m1156_4_43 .groom-cut ul li a:hover {
        transform: none !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    }

    .hot_list_met_m1156_4_43 .groom-cut ul li a img {
        margin: 0 0 8px !important;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        background: #fafafa;
    }

    .hot_list_met_m1156_4_43 .groom-cut ul li a b,
    .hot_list_met_m1156_4_43 .groom-cut ul li a b a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal !important;
        overflow: hidden;
        text-overflow: ellipsis;
        height: auto;
        min-height: 36px;
        line-height: 18px;
        font-size: 13px !important;
        font-weight: 400;
        color: #333 !important;
        padding: 0 8px;
        text-align: left;
    }

    .hot_list_met_m1156_4_43 .groom-cut ul li a i {
        display: none;
    }

    .hot_list_met_m1156_4_43 .groom-cut ul li a p {
        margin: 4px 8px 0 !important;
        text-align: left;
        font-size: 13px;
        color: #ce0000;
    }

    .hot_list_met_m1156_4_43 .groom-cut ul li a p span:first-child {
        font-size: 14px;
        font-weight: 700;
        color: #ce0000;
    }

    .del {
        font-size: 11px !important;
        margin-left: 4px;
    }

    .xiaoliang {
        text-align: left !important;
        font-size: 11px !important;
        padding: 2px 8px 0 !important;
        margin: 0 !important;
    }

    .recommend-date {
        padding: 0 8px 6px !important;
    }

    .expired-coupon::after {
        font-size: 13px !important;
        padding: 4px 8px !important;
        top: 40% !important;
    }

    /* ---- 分页 ---- */
    .pagination-area {
        width: 100%;
        padding: 12px 4px 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .pagination-area .page-numbers {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        margin: 0 !important;
        font-size: 13px;
    }

    /* ---- 详情页：去掉多层 container/row 叠加的 gutter ---- */
    .shop_product_detail_met_m1156_1_82 {
        padding-bottom: 72px;
        background: #f5f6f8;
    }

    .met-showproduct,
    .page.met-showproduct,
    .met-showproduct-head,
    .met-showproduct-body {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .met-showproduct .row,
    .met-showproduct-head .row,
    .met-showproduct-body .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .met-showproduct [class*="col-"],
    .met-showproduct-head [class*="col-"],
    .met-showproduct-body [class*="col-"] {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .met-showproduct .container,
    .met-showproduct-head .container,
    .met-showproduct-body .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    .met-showproduct .container .container,
    .met-showproduct .panel .container,
    .met-showproduct-body .panel .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .met-showproduct .panel-body {
        padding: 12px 0 !important;
    }

    .met-showproduct-head .product-intro {
        padding: 12px 0 16px !important;
        background: #fff;
        margin-top: 0;
    }

    .main-slider {
        background: #fff;
    }

    .main-slider img,
    .main-slider video {
        width: 100% !important;
        max-height: 100vw;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .thumb-slider {
        margin: 8px 0 0 !important;
        padding-bottom: 8px;
    }

    .thumb-slider .swiper-slide {
        width: 56px !important;
        height: 56px !important;
        margin-right: 8px !important;
    }

    .shop {
        margin: 8px 0 12px !important;
        padding: 10px !important;
        border-radius: 8px;
        background: #fff !important;
    }

    .shoplogo {
        text-align: left;
        margin-bottom: 8px;
    }

    .shoplogo img {
        max-width: 48px !important;
        max-height: 48px;
        border-radius: 4px;
    }

    .shopleft,
    .shopleft1,
    .shopleft2 {
        display: block !important;
        width: 100%;
        margin-top: 8px !important;
        overflow: visible !important;
    }

    .shopleft .selectpara-list,
    .selectpara-list {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px 10px;
        width: 100% !important;
        max-width: 100%;
    }

    .volume-item {
        margin: 0 !important;
        justify-content: flex-start !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .product-text h1,
    .product-intro h1,
    h1 {
        font-size: 17px !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        margin: 10px 0 6px !important;
        color: #222;
    }

    .product-text .t {
        font-size: 12px;
        color: #999;
        display: block;
        margin-bottom: 8px;
    }

    .product-text .description {
        font-size: 13px;
        color: #666;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .tags {
        margin-bottom: 10px !important;
        line-height: 1.8;
    }

    .el-tag {
        white-space: normal;
        height: auto !important;
        margin: 0 4px 4px 0;
    }

    .price {
        padding: 10px 12px !important;
        border-radius: 8px;
    }

    .price .font-size-30,
    #price {
        font-size: 26px !important;
        font-weight: 700;
    }

    .shop-product-para .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .shop-product-para .form-control-label,
    .shop-product-para .col-sm-3,
    .shop-product-para .col-sm-9 {
        width: auto !important;
        max-width: 100%;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block;
        text-align: left;
    }

    .shop-product-para .form-control-label {
        font-size: 13px;
        color: #888;
        margin-bottom: 4px;
    }

    .selectpara-list .quan {
        display: inline-block;
        line-height: 22px;
        text-align: center;
    }

    .selectpara-list .time {
        display: inline-block;
        width: auto !important;
        margin-left: 8px !important;
        font-size: 12px;
    }

    .price-disclaimer {
        font-size: 11px;
        color: #999;
        line-height: 1.4;
        margin-top: 8px;
    }

    .cart-favorite {
        display: block;
        margin-top: 12px !important;
    }

    .product-tocart {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 10020;
        width: auto !important;
        margin: 0 !important;
        height: 44px;
        line-height: 44px;
        padding: 0 16px !important;
        font-size: 16px !important;
        border-radius: 22px !important;
        text-align: center;
        box-shadow: 0 4px 14px rgba(206, 0, 0, .35);
    }

    .product-tocart i {
        font-size: 16px !important;
        vertical-align: middle;
    }

    .votebox,
    .vote-container {
        width: 100%;
        min-width: 0 !important;
        margin-top: 10px;
    }

    .vote-buttons {
        justify-content: flex-start;
    }

    .share-wechat {
        margin-top: 8px;
    }

    .share-wechat button {
        width: 100%;
        padding: 10px 0 !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .met-showproduct .p-20 {
        padding: 10px 12px !important;
    }

    .panel,
    .product-detail,
    .product-hot {
        margin-bottom: 12px;
        border-radius: 8px;
        overflow: hidden;
    }

    .jianjie,
    .jianjie * {
        max-width: 100% !important;
        font-size: 14px !important;
        line-height: 1.6;
        word-break: break-word;
    }

    .jianjie img {
        height: auto !important;
        display: block;
        margin: 8px auto;
    }

    .product-hot ul {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -4px;
        padding: 0;
    }

    .product-hot li {
        width: 50% !important;
        padding: 4px !important;
        box-sizing: border-box;
        list-style: none;
    }

    .product-hot .txt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.4;
        margin-top: 4px;
        color: #333;
    }

    /* ---- 页脚 ---- */
    footer.foot_info_met_m1156_4_78 {
        padding: 16px 0 24px;
        font-size: 12px;
        background: #fff;
    }

    footer .tags.tag-box,
    footer .tag-box {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    footer .tag-box a {
        font-size: 12px;
        padding: 2px 8px;
        background: #f5f6f8;
        border-radius: 10px;
        color: #666;
    }

    footer p {
        font-size: 11px;
        color: #999;
        padding: 0 12px;
        line-height: 1.5;
    }

    .foot_info_met_m1156_4_78 .hasbottom {
        display: none !important;
        height: 0 !important;
    }
}

@media (max-width: 360px) {
    .hot_list_met_m1156_4_43 .groom-cut ul li a b {
        font-size: 12px !important;
        min-height: 32px;
        line-height: 16px;
    }

    .head_nav_met_m1156_4_60 .logo-box a img,
    .head_nav_met_m1156_4_60 .logo-box a img:last-child {
        max-width: 88px !important;
    }
}
