/**
 * 移动端适配（仅 max-width: 768px）
 * 桌面端（>768px）不加载任何覆盖规则以外的样式，原有 main.css / forum.css 保持不变
 */

/* 桌面端：隐藏商城移动端专用区域 */
@media (min-width: 769px) {
    .mall-mobile-bar,
    .mall-mobile-search,
    .mall-mobile-cart,
    .mall-mobile-participatory,
    .mall-mobile-hero,
    .mall-mobile-account,
    .mall-mobile-apps {
        display: none !important;
    }

    .mall-nav-cats-link {
        color: inherit;
        text-decoration: none;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        font-size: 16px;
        line-height: 1.5;
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* ── 全局自然布局：避免固定宽/浮动叠压/裁切 ── */
    img,
    video,
    iframe,
    canvas,
    svg {
        max-width: 100%;
        height: auto;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
        font-size: 16px !important; /* 防止 iOS 自动放大 */
        box-sizing: border-box;
    }

    [class*="w1200"],
    [class*="w980"],
    [class*="w978"],
    .width1200,
    .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* 商城等页面取消 float；论坛主题页由 theme-mobile 接管 */
    body:not(.forum-body):not(.forum-cosmos) .fl,
    body:not(.forum-body):not(.forum-cosmos) .fr {
        float: none !important;
    }

    .clearfix::after {
        content: "";
        display: table;
        clear: both;
    }

    /* 固定宽度容器 → 全宽弹性 */
    .header,
    .search_bar,
    .navbar,
    .center_con,
    .center_con2,
    .list_model,
    .main_wrap,
    .common_title,
    .common_list_con,
    .order_submit,
    .login_top,
    .login_form_wrap,
    .register_con,
    .footer,
    .foot_link,
    .mall-workflow-inner,
    .subnav,
    .sort_bar,
    .goods_type_list,
    .pagenation {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .header,
    .search_bar,
    .navbar,
    .register_con,
    .login_form_wrap {
        height: auto !important;
        min-height: 0;
    }

    /* 多列 → 单列堆叠（论坛主题页除外，避免冲掉 guild 布局） */
    body:not(.forum-body):not(.forum-cosmos) .fl,
    body:not(.forum-body):not(.forum-cosmos) .fr {
        float: none !important;
    }

    .clearfix::after {
        display: none;
    }

    .mall-mobile-participatory {
        display: none !important;
    }

    .mall-mobile-hero {
        display: block;
        padding: 10px 12px 0;
        background: #fff;
    }

    .mall-mobile-hero-slide.pos_center_con {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(15, 118, 110, 0.12);
        height: 38vh !important;
        min-height: 220px;
        max-height: 340px;
        padding: 0;
    }

    .mall-mobile-hero .slide {
        width: 100%;
        height: 100% !important;
        position: relative;
    }

    .mall-mobile-hero .slide li {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden;
    }

    .mall-mobile-hero .slide li a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .mall-mobile-hero .slide li:first-child {
        opacity: 1 !important;
    }

    .mall-mobile-hero .slide li a img {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center;
        background: #f8fafc;
    }

    .mall-mobile-hero .prev,
    .mall-mobile-hero .next {
        display: block !important;
        z-index: 5;
    }

    .mall-mobile-hero .points {
        z-index: 6;
    }

    .mall-mobile-hero__link {
        display: block;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(15, 118, 110, 0.12);
    }

    /* 旧单图样式保留给非轮播场景 */
    .mall-mobile-hero__link img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: cover;
        display: block;
    }

    .mall-mobile-search__tags a[href*="goods/17"] {
        background: #ccfbf1;
        color: #0f766e;
        font-weight: 600;
    }

    /* ── 商城首页 header / 搜索 / 导航 ── */
    .mall-mobile-account {
        margin: 0;
        padding: 10px 12px;
        background: linear-gradient(135deg, #fff7ed 0%, #fff 55%, #f0fdf4 100%);
        border-bottom: 1px solid #e5e7eb;
    }

    .mall-mobile-account__card {
        display: flex;
        align-items: stretch;
        gap: 10px;
    }

    .mall-mobile-account__main {
        flex: 1;
        min-width: 0;
        padding: 4px 2px;
    }

    .mall-mobile-account__hello {
        font-size: 15px;
        font-weight: 600;
        color: #111827;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mall-mobile-account__id {
        margin-top: 6px;
        font-size: 13px;
        color: #4b5563;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mall-mobile-account__id strong {
        display: inline-block;
        padding: 2px 10px;
        border-radius: 6px;
        background: #111827;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.06em;
        font-variant-numeric: tabular-nums;
    }

    .mall-mobile-account__asset {
        flex: 0 0 auto;
        min-width: 108px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 12px;
        border-radius: 10px;
        background: #166534;
        color: #fff;
        text-decoration: none;
        box-sizing: border-box;
    }

    .mall-mobile-account__asset span {
        font-size: 13px;
        font-weight: 600;
    }

    .mall-mobile-account__asset em {
        font-style: normal;
        font-size: 12px;
        opacity: 0.92;
    }

    .mall-mobile-account__guest {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mall-mobile-account__guest-links {
        display: flex;
        gap: 10px;
    }

    .mall-mobile-account__guest-links a {
        flex: 1;
        text-align: center;
        min-height: 40px;
        line-height: 40px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
    }

    .mall-mobile-account__guest-links a:first-child {
        background: #e4393c;
        color: #fff;
    }

    .mall-mobile-account__guest-links a:last-child {
        background: #fff;
        color: #e4393c;
        border: 1px solid #e4393c;
    }

    .mall-mobile-account__guest p {
        margin: 0;
        font-size: 12px;
        color: #6b7280;
    }

    .mall-mobile-apps {
        margin: 0;
        padding: 12px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }

    .mall-mobile-apps__head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 10px;
    }

    .mall-mobile-apps__head strong {
        font-size: 16px;
        color: #111827;
    }

    .mall-mobile-apps__head span {
        font-size: 12px;
        color: #9ca3af;
    }

    .mall-mobile-apps__grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .mall-mobile-apps__grid a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        padding: 8px 4px;
        text-align: center;
        font-size: 12px;
        line-height: 1.3;
        color: #1f2937;
        text-decoration: none;
        background: #f3f4f6;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        box-sizing: border-box;
    }

    .mall-mobile-apps__grid a[href*="user_center_assets"],
    .mall-mobile-apps__grid a[href*="consumer_hub"] {
        background: #ecfdf5;
        border-color: #a7f3d0;
        color: #065f46;
        font-weight: 600;
    }

    .mall-mobile-apps__grid a[href*="forum/pages"] {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1e3a8a;
    }

    .mall-nav-cats-link {
        color: inherit;
        text-decoration: none;
    }

    .mall-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 6px 10px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .mall-mobile-bar__logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #111827;
        min-width: 0;
    }

    .mall-mobile-bar__logo img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: block;
        flex-shrink: 0;
        object-fit: cover;
        background: #0a1018;
    }

    .mall-mobile-bar__brand {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1.2;
        white-space: nowrap;
        color: #111827;
    }

    .mall-mobile-bar__toggle {
        flex: 1;
        min-width: 0;
        min-height: 36px;
        padding: 6px 8px;
        border: 1px solid #0d9488;
        border-radius: 8px;
        background: #f0fdfa;
        color: #0f766e;
        font-size: 13px;
        cursor: pointer;
        touch-action: manipulation;
        white-space: nowrap;
    }

    .mall-mobile-bar__toggle.is-open {
        background: #ccfbf1;
    }

    .mall-mobile-bar__toggle--cart {
        border-color: #e4393c;
        background: #fff5f5;
        color: #c81e1e;
    }

    .mall-mobile-bar__toggle--cart.is-open {
        background: #ffe4e6;
    }

    .mall-desktop-only {
        display: none !important;
    }

    .mall-mobile-search {
        padding: 10px 12px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }

    .mall-mobile-search__form {
        display: flex;
        align-items: stretch;
        gap: 8px;
    }

    .mall-mobile-search__input {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid #fe0000;
        border-radius: 8px;
        font-size: 16px;
        outline: none;
        background: #fff;
        -webkit-appearance: none;
    }

    .mall-mobile-search__btn {
        flex-shrink: 0;
        min-height: 44px;
        min-width: 72px;
        padding: 0 14px;
        border: none;
        border-radius: 8px;
        background: #fe0000;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        touch-action: manipulation;
    }

    .mall-mobile-search__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 10px 0 0;
        padding: 0;
        list-style: none;
    }

    .mall-mobile-search__tags a {
        display: inline-block;
        padding: 4px 10px;
        background: #f3f4f6;
        border-radius: 999px;
        font-size: 13px;
        color: #475569;
    }

    .mall-mobile-cart {
        padding: 10px 12px 12px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }

    .mall-mobile-cart__go {
        display: block;
        min-height: 44px;
        line-height: 44px;
        padding: 0 14px;
        border-radius: 8px;
        background: linear-gradient(135deg, #e4393c, #ff6b6b);
        color: #fff !important;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

    .mall-mobile-cart__list {
        margin: 10px 0 0;
        padding: 0;
        list-style: none;
    }

    .mall-mobile-cart__list li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .mall-mobile-cart__list img {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
        flex-shrink: 0;
    }

    .mall-mobile-cart__name {
        flex: 1;
        min-width: 0;
        font-size: 14px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mall-mobile-cart__qty {
        flex-shrink: 0;
        font-size: 14px;
        color: #64748b;
    }

    .mall-mobile-cart__empty {
        margin: 10px 0 0;
        font-size: 14px;
        color: #64748b;
        text-align: center;
    }

    .header_con {
        height: auto !important;
    }

    .header_con .header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px 12px;
        height: auto !important;
        min-height: 0;
    }

    .header .welcome {
        float: none !important;
        width: 100%;
        line-height: 1.5;
        padding: 0;
        font-size: 13px;
        color: #666;
    }

    .header .fr {
        float: none !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .header .login_btn,
    .header .user_link {
        float: none !important;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
        line-height: 1.5;
        padding: 0;
        font-size: 14px;
    }

    .header .login_btn span,
    .header .user_link > span:first-child {
        display: none;
    }

    .header .login_btn a,
    .header .user_link a {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        padding: 2px 0;
    }

    .search_bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        position: relative;
        overflow: hidden;
    }

    .search_bar .logo {
        float: none !important;
        display: none !important;
        width: auto;
        height: auto;
        margin: 0 auto;
        text-align: center;
    }

    .search_bar .logo img {
        max-height: 48px !important;
        width: auto !important;
        margin: 0 auto;
    }

    .search_wrap {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        float: none !important;
    }

    .search_con {
        width: 100% !important;
        height: auto !important;
        display: flex;
        align-items: stretch;
        background: #fff !important;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #fe0000 !important;
    }

    .search_con .input_text {
        flex: 1;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 12px;
        font-size: 16px;
        min-height: 44px;
        background: transparent;
    }

    .search_con .input_btn {
        float: none !important;
        width: 88px !important;
        flex-shrink: 0;
        height: auto !important;
        min-height: 44px;
    }

    .search_suggest {
        width: 100% !important;
        height: auto !important;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        padding: 0;
    }

    .search_suggest li {
        float: none !important;
    }

    .search_suggest li a {
        font-size: 13px;
        line-height: 1.4;
        margin: 0;
        padding: 4px 10px;
        background: #f3f4f6;
        border-radius: 999px;
        display: inline-block;
    }

    .search_con .input_btn,
    .input_btn,
    .reg_sub input[type="submit"],
    .form_btn,
    .order_btn,
    .info_submit,
    .del_btn,
    .edit_btn,
    .add_goods_btn,
    .settle_up,
    .pay_btn,
    .confirm_btn {
        min-height: 44px;
        min-width: 44px;
        font-size: 16px;
        padding: 10px 16px;
        touch-action: manipulation;
    }

    .guest_cart {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        left: auto !important;
        top: auto !important;
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
    }

    .guest_cart .cart_name {
        float: none !important;
        flex: 1;
        width: auto !important;
        min-height: 44px;
        line-height: 44px;
        box-sizing: border-box;
        text-indent: 44px;
        border-radius: 8px 0 0 8px;
    }

    .guest_cart .goods_count {
        float: none !important;
        width: 48px !important;
        flex-shrink: 0;
        min-height: 44px;
        line-height: 44px;
        border-radius: 0 8px 8px 0;
    }

    .guest_cart .cart_goods_show {
        display: none !important;
    }

    .guest_cart .cart_goods_empty {
        display: none !important;
    }

    .guest_cart .cart_name {
        text-decoration: none;
        color: inherit;
    }

    .navbar_con {
        height: auto !important;
        padding: 4px 0;
    }

    .navbar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
        padding: 0 12px;
    }

    .navbar h1 {
        float: none !important;
        width: auto !important;
        flex: 0 0 auto;
        line-height: 32px;
        font-size: 14px;
        border-radius: 6px;
        padding: 0 10px;
    }

    .navlist {
        float: none !important;
        margin: 0 !important;
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 2px 6px;
    }

    .navlist li {
        float: none !important;
        line-height: 1.5;
    }

    .navlist .interval {
        display: none;
    }

    .navlist li a {
        font-size: 14px;
        padding: 4px 10px;
        display: inline-block;
        min-height: 32px;
        line-height: 24px;
    }

    .navbar .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar .nav li {
        float: none;
        margin: 4px 6px;
    }

    /* 轮播：移动端只保留 mall-mobile-hero 内那一套（高度见上方 .mall-mobile-hero-slide） */
    .pos_center_con:not(.mall-mobile-hero-slide) {
        display: none !important;
    }

    .mall-mobile-hero-slide .prev,
    .mall-mobile-hero-slide .next {
        top: 50% !important;
        margin-top: -16px !important;
        margin-left: 0 !important;
        left: 8px !important;
        z-index: 2;
    }

    .mall-mobile-hero-slide .next {
        left: auto !important;
        right: 8px !important;
    }

    .sub_menu {
        display: none !important;
    }

    /* 商品楼层 */
    .center_con,
    .center_con2,
    .list_model {
        padding: 0 8px;
    }

    .list_model {
        height: auto !important;
        margin-top: 4px;
    }

    .list_title {
        height: auto !important;
        padding-bottom: 8px;
    }

    .list_title h3 {
        float: none !important;
        height: auto !important;
        line-height: 1.4;
        font-size: 18px;
        padding: 8px 0 4px;
    }

    .list_title .subtitle {
        float: none !important;
        height: auto !important;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .list_title .subtitle a {
        float: none !important;
        padding: 6px 12px;
        border-radius: 6px;
        line-height: 1.4;
    }

    .goods_con {
        height: auto !important;
        display: flex;
        flex-direction: column;
    }

    .goods_banner {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        margin-bottom: 8px;
    }

    .goods_banner {
        display: none !important;
    }

    .goods_banner img {
        width: 100% !important;
        height: auto !important;
        max-height: 200px;
        object-fit: cover;
        display: block;
    }

    .goods_list {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 4px;
    }

    .mall-goods-single {
        grid-template-columns: 1fr !important;
    }

    .list_model .subtitle {
        display: none !important;
    }

    .goods_list[style*="display: none"] {
        display: none !important;
    }

    .goods_list li {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        padding: 12px 8px 16px;
        box-sizing: border-box;
    }

    .goods_list li h4 {
        width: 100% !important;
        margin-top: 10px;
    }

    .goods_list li h4 a {
        width: 100% !important;
        max-width: 100%;
        font-size: 13px;
        line-height: 1.4;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .goods_list .goods_pic {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1;
        margin: 8px auto 0;
        overflow: hidden;
        border-radius: 8px;
    }

    .goods_list li img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        display: block;
        background: #fff;
    }

    /* 登录 / 注册 */
    .login_top {
        padding: 12px 16px;
        height: auto;
    }

    .login_form_bg {
        height: auto;
        min-height: 0;
        padding: 16px 0 32px;
    }

    .login_form_wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px;
    }

    .login_banner,
    .slogan {
        display: none;
    }

    .login_form {
        width: 100% !important;
        max-width: 100%;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .login_form .name_input,
    .login_form .pass_input {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
        min-height: 44px;
    }

    /* ── 注册页：彻底取消桌面 float 分栏 ── */
    .register_top_bar {
        padding: 12px 16px 4px !important;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 8px;
        background: #fff;
    }

    .register_con {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8px 0 24px;
        background: none !important;
        overflow: visible !important;
    }

    .register_con .l_con {
        display: none;
    }

    .register_con .r_con {
        width: 100% !important;
        float: none !important;
        overflow: visible !important;
        padding: 0 16px 16px;
        box-sizing: border-box;
    }

    .reg_title {
        width: 100% !important;
        float: none !important;
        margin: 0 0 12px !important;
        padding: 0 0 12px;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .reg_title h1 {
        float: none !important;
        height: auto !important;
        line-height: 1.3 !important;
        font-size: 22px;
        margin: 0;
    }

    .reg_title a {
        float: none !important;
        margin: 0 !important;
        padding-right: 0;
    }

    .reg_form {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        position: static !important;
    }

    .reg_form ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .reg_form li {
        height: auto !important;
        min-height: 0 !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
        margin-bottom: 14px;
    }

    .reg_form li label {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        line-height: 1.4 !important;
        text-align: left !important;
        padding: 0 0 6px !important;
        font-size: 15px !important;
        color: #333 !important;
    }

    .reg_form li input[type="text"],
    .reg_form li input[type="password"],
    .reg_form li input[type="email"],
    .reg_form li input[type="number"],
    .reg_form li .pwd-field-row input {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        font-size: 16px !important;
        text-indent: 12px;
        border-radius: 8px;
        background: #fff !important;
        border: 1px solid #d1d5db !important;
    }

    .reg_form li .pwd-field-row {
        float: none !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px;
        align-items: center;
    }

    .reg_form li .pwd-field-row input {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .reg_form li .pwd-toggle-btn {
        flex-shrink: 0;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid #0d9488;
        border-radius: 8px;
        background: #fff;
        color: #0f766e;
        font-size: 14px;
    }

    .reg_form li .pwd-len-hint {
        float: none !important;
        display: block;
        margin: 6px 0 0 !important;
        font-size: 12px;
        color: #64748b;
    }

    .reg_form li .field-hint {
        float: none !important;
        display: block;
        margin: 6px 0 0 !important;
        font-size: 12px;
        color: #64748b;
        line-height: 1.4;
    }

    .reg_form li .field-hint--ok {
        color: #0f766e;
    }

    .reg_form li.pwd-li {
        height: auto !important;
        min-height: 0 !important;
    }

    .reg_form li input[readonly] {
        background: #f3f4f6 !important;
        color: #374151;
    }

    .reg_form li .msg_input {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .reg_form .get_msg_code {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        min-height: 44px !important;
        line-height: 44px !important;
        border-radius: 8px;
        box-sizing: border-box;
        background: #fff;
        font-size: 15px;
        border: 1px solid #0d9488;
        color: #0f766e;
    }

    .reg_form .get_msg_code:active {
        background: #ecfdf5;
        color: #0d9488;
    }

    .reg_form li .error_tip,
    .reg_form li .error_tip2 {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 6px 0 0 !important;
        height: auto !important;
        line-height: 1.4 !important;
    }

    .reg_form li > p {
        float: none !important;
        clear: both;
        display: block !important;
        width: 100% !important;
        margin: 8px 0 0 !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        color: #6b7280 !important;
    }

    .reg_form li.agreement {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .reg_form li.agreement .agreement-label {
        display: flex !important;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        width: 100% !important;
        padding: 0 !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .reg_form li.agreement input {
        float: none !important;
        width: 22px !important;
        height: 22px !important;
        min-height: 22px !important;
        margin: 2px 0 0 !important;
        flex-shrink: 0;
    }

    .reg_form li.agreement .agreement-label span {
        flex: 1;
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #333 !important;
    }

    .reg_form li.reg_sub {
        margin-top: 8px;
        margin-bottom: 0;
    }

    .reg_form li.reg_sub input {
        width: 100% !important;
        border-radius: 10px;
        min-height: 48px !important;
        font-size: 18px !important;
        border: none !important;
    }

    .reg-mode-tabs {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }

    .reg-mode-tab {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    .reg-mode-note {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin: 0 0 16px !important;
        color: #4b5563;
    }

    .footer.no-mp {
        padding: 20px 16px;
        text-align: center;
    }

    .foot_link {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px 10px;
        height: auto !important;
        line-height: 1.6 !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .foot_link span {
        display: none;
    }

    .footer.no-mp p {
        font-size: 12px;
        line-height: 1.6;
        margin: 8px 0 0;
    }

    /* 表格横向滚动 */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .common_list_con table,
    .order_list_table,
    .cart_list_table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 用户中心 / 购物车 / 下单 */
    .main_con,
    .w980,
    .w978,
    .info_con {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        background: none !important;
    }

    .left_menu_con,
    .right_content {
        width: 100% !important;
        float: none !important;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .left_menu_con {
        margin-bottom: 16px;
    }

    .sub_page_name {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 12px 0;
        font-size: 18px;
        text-align: center;
    }

    .search_bar .search_con.fr,
    .search_bar .search_con.mt40 {
        float: none !important;
        width: 100% !important;
        margin: 8px 12px 12px !important;
        display: flex !important;
        align-items: stretch;
        background: #fff !important;
        border-radius: 8px;
    }

    .search_bar .search_con .input_text {
        flex: 1;
        width: auto !important;
        margin: 0 !important;
        min-height: 44px;
        font-size: 16px;
    }

    .total_count {
        width: 100% !important;
        padding: 0 12px;
        box-sizing: border-box;
        height: auto !important;
        line-height: 1.6 !important;
        margin-top: 8px;
    }

    .cart_status_msg {
        margin: 16px 12px;
        padding: 14px 16px;
        background: #f8f8f8;
        border-radius: 8px;
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
    }

    .cart_status_msg--error {
        background: #fff5f5;
        color: #c0392b;
    }

    .cart_status_msg a {
        color: #e4393c;
    }

    .cart_list_th {
        display: none !important;
    }

    /* 购物车卡片：勾选 | 图 | 信息；数量/小计/删除分行，绝不叠压 */
    .cart_list_td {
        width: calc(100% - 24px) !important;
        margin: 10px 12px 0 !important;
        padding: 14px 12px !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 28px 76px minmax(0, 1fr);
        grid-template-areas:
            "check img name"
            "check img price"
            "qty qty qty"
            "sub sub act";
        column-gap: 10px;
        row-gap: 10px;
        align-items: start;
        box-sizing: border-box;
        background: #fff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px;
        overflow: visible !important;
    }

    .cart_list_td li {
        float: none !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        line-height: 1.45 !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .cart_list_td .col01 {
        grid-area: check;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 28px !important;
    }

    .cart_list_td .col01 input {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
    }

    .cart_list_td .col02 {
        grid-area: img;
        line-height: normal !important;
    }

    .cart_list_td .col02 img {
        width: 76px !important;
        height: 76px !important;
        margin: 0 !important;
        object-fit: cover;
        border-radius: 8px;
        display: block !important;
    }

    .cart_list_td .col03 {
        grid-area: name;
        height: auto !important;
        margin: 0 !important;
        white-space: normal !important;
        word-break: break-word;
        overflow: visible !important;
        text-overflow: unset !important;
        font-size: 15px;
        font-weight: 600;
        color: #111827;
    }

    .cart_list_td .col05 {
        grid-area: price;
        color: #64748b;
        font-size: 13px;
    }

    .cart_list_td .col05::before {
        content: '单价 ';
    }

    .cart_list_td .col06 {
        grid-area: qty;
        width: 100% !important;
        margin: 0 !important;
    }

    .cart_list_td .col06 .num_add,
    .cart_list_td .num_add {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        float: none !important;
        width: auto !important;
        max-width: 100% !important;
        height: 40px !important;
        margin: 0 !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .cart_list_td .col06 .num_add a,
    .cart_list_td .col06 .num_add .add,
    .cart_list_td .col06 .num_add .minus,
    .cart_list_td .num_add a {
        float: none !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f3f4f6 !important;
        color: #111827 !important;
        font-size: 20px !important;
        text-decoration: none !important;
        border: 0 !important;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .cart_list_td .col06 .num_add input,
    .cart_list_td .col06 .num_add .num_show,
    .cart_list_td .num_add input {
        float: none !important;
        display: block !important;
        width: 52px !important;
        min-width: 52px !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 40px !important;
        text-align: center !important;
        border: 0 !important;
        border-left: 1px solid #d1d5db !important;
        border-right: 1px solid #d1d5db !important;
        background: #fff !important;
        font-size: 16px !important;
        color: #111827 !important;
        box-sizing: border-box;
        -moz-appearance: textfield;
    }

    .cart_list_td .col07 {
        grid-area: sub;
        font-size: 16px;
        font-weight: 700;
        color: #e4393c;
        align-self: center;
    }

    .cart_list_td .col07::before {
        content: '小计 ';
        font-weight: 500;
        color: #64748b;
        font-size: 13px;
        margin-right: 4px;
    }

    .cart_list_td .col08 {
        grid-area: act;
        text-align: right !important;
        align-self: center;
    }

    .cart_list_td .col08 a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 0 12px;
        color: #e4393c !important;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none !important;
    }

    .settlements {
        width: calc(100% - 24px) !important;
        margin: 12px !important;
        height: auto !important;
        padding: 14px 12px !important;
        display: grid !important;
        grid-template-columns: auto auto 1fr;
        grid-template-areas:
            "allcheck alltxt total"
            "go go go";
        align-items: center;
        gap: 10px 8px;
        box-sizing: border-box;
        border-radius: 12px;
        background: #fff9f9;
    }

    .settlements li {
        float: none !important;
        height: auto !important;
        line-height: 1.5 !important;
        width: auto !important;
        margin: 0 !important;
    }

    .settlements .col01 {
        grid-area: allcheck;
    }

    .settlements .col02 {
        grid-area: alltxt;
    }

    .settlements .col03 {
        grid-area: total;
        width: auto !important;
        text-align: right !important;
        margin: 0 !important;
        height: auto !important;
        line-height: 1.5 !important;
        font-size: 14px;
    }

    .settlements .col03 em {
        font-size: 18px;
        color: #e4393c;
        font-weight: 700;
    }

    .settlements .col04 {
        grid-area: go;
        width: 100% !important;
        float: none !important;
    }

    .settlements .col04 a {
        display: block;
        width: 100% !important;
        height: 48px !important;
        line-height: 48px !important;
        font-size: 18px !important;
        border-radius: 10px;
        text-align: center;
    }

    /* 商品详情数量加减同款防叠压 */
    .goods_num .num_add {
        display: inline-flex !important;
        float: none !important;
        height: 40px !important;
        align-items: stretch;
        border-radius: 8px;
        overflow: hidden;
    }

    .goods_num .num_add input,
    .goods_num .num_add a,
    .goods_num .num_add .add,
    .goods_num .num_add .minus {
        float: none !important;
        height: 40px !important;
        line-height: 40px !important;
    }

    /* ── 提交订单页 ── */
    .common_title {
        padding: 0 12px !important;
        margin: 16px auto 0 !important;
        font-size: 16px !important;
    }

    .place_order_asset_tip {
        padding: 8px 0 12px !important;
        color: #0f766e !important;
        line-height: 1.6 !important;
        font-size: 14px;
    }

    .place_order_asset_tip a {
        color: #e4393c;
        margin-left: 8px;
    }

    .common_list_con dl {
        margin: 0 !important;
    }

    .common_list_con dt {
        margin-bottom: 8px !important;
    }

    .common_list_con dd {
        line-height: 1.5 !important;
        padding: 10px 8px !important;
        margin-bottom: 8px !important;
        background: #fff;
        border-radius: 6px;
        word-break: break-word;
        white-space: normal !important;
    }

    .common_list_con dd.current {
        border: 1px solid #fe0000;
        box-shadow: 0 0 0 1px rgba(254, 0, 0, 0.15);
    }

    .edit_site {
        position: static !important;
        display: block;
        width: 100% !important;
        margin-top: 12px !important;
        border-radius: 8px;
        min-height: 44px;
        line-height: 44px !important;
    }

    /* 提交订单：手机顶栏返回 */
    .place_order_mobile_bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 10px 12px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    }

    .place_order_back,
    .place_order_home {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 0 10px;
        color: #e4393c !important;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none !important;
    }

    .place_order_mobile_title {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
    }

    .pay_style_con {
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: relative;
        z-index: 2;
    }

    /* 不再把 radio 藏成 0 尺寸（安卓 WebView 点 label 经常选不中） */
    .pay_style_con input[type="radio"] {
        float: none !important;
        position: static !important;
        opacity: 1 !important;
        width: 22px !important;
        height: 22px !important;
        margin: 0 10px 0 0 !important;
        flex-shrink: 0;
        pointer-events: auto !important;
        vertical-align: middle;
        accent-color: #e4393c;
    }

    .pay_style_con label,
    .pay_style_con label.pay_option,
    .pay_style_con label.cash,
    .pay_style_con label.zhifubao {
        float: none !important;
        display: flex !important;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        margin: 0 !important;
        box-sizing: border-box;
        line-height: 1.45 !important;
        padding: 14px 14px 14px 12px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 10px;
        background-color: #fff !important;
        background-image: none !important;
        white-space: normal !important;
        word-break: break-word;
        overflow: visible !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    .pay_style_con label.on {
        border-color: #e4393c !important;
        background-color: #fff8f8 !important;
        box-shadow: 0 0 0 1px rgba(228, 57, 60, 0.35);
    }

    .pay_style_con .pay_option_txt {
        flex: 1;
        font-size: 15px;
        color: #111827;
    }

    .goods_list_th {
        display: none !important;
    }

    .goods_list_td {
        width: 100% !important;
        height: auto !important;
        margin: 0 0 10px !important;
        padding: 12px !important;
        display: flex !important;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 10px;
        background: #fff;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .goods_list_td li {
        float: none !important;
        height: auto !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }

    .goods_list_td .col01 {
        display: none !important;
    }

    .goods_list_td .col02 {
        width: 72px !important;
        order: 1;
        text-align: left !important;
    }

    .goods_list_td .col02 img {
        width: 72px !important;
        height: 72px !important;
        margin: 0 !important;
        float: none !important;
        object-fit: cover;
        border-radius: 6px;
    }

    .goods_list_td .col03 {
        flex: 1 1 calc(100% - 88px) !important;
        width: auto !important;
        order: 2;
        text-indent: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        font-weight: 600;
        font-size: 15px;
    }

    .goods_list_td .col05 {
        width: 50% !important;
        order: 3;
        font-size: 13px;
        color: #64748b;
    }

    .goods_list_td .col05::before {
        content: '单价：';
    }

    .goods_list_td .col06 {
        width: 50% !important;
        order: 4;
        font-size: 13px;
        color: #64748b;
        text-align: right !important;
    }

    .goods_list_td .col06::before {
        content: '数量：';
    }

    .goods_list_td .col07 {
        width: 100% !important;
        order: 5;
        font-size: 16px;
        color: #ff4200;
        font-weight: 600;
        text-align: right !important;
    }

    .goods_list_td .col07::before {
        content: '小计：';
        color: #64748b;
        font-weight: normal;
        margin-right: 4px;
    }

    .settle_con {
        margin: 0 !important;
        padding: 4px 0;
    }

    .total_goods_count,
    .transit,
    .total_pay {
        text-align: left !important;
        padding: 8px 0;
        font-size: 15px;
        line-height: 1.6 !important;
    }

    .total_pay {
        border-top: 1px solid #e5e7eb;
        margin-top: 8px;
        padding-top: 12px;
        font-size: 17px;
    }

    .order_submit {
        padding: 0 12px 24px !important;
        margin: 12px auto !important;
        box-sizing: border-box;
    }

    .order_submit a {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px;
        line-height: 48px !important;
        border-radius: 8px;
        font-size: 17px;
    }

    .place_order_status {
        padding: 16px !important;
        line-height: 1.6;
    }

    /* ── 订单列表等 ── */
    .order_list_th {
        width: calc(100% - 24px) !important;
        margin: 12px auto 0 !important;
        height: auto !important;
        padding: 10px 12px;
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        box-sizing: border-box;
    }

    .order_list_th li {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        height: auto !important;
        line-height: 1.5 !important;
    }

    .order_list_table {
        width: calc(100% - 24px) !important;
        margin: 0 auto 12px !important;
        display: block !important;
        white-space: normal !important;
        overflow: visible !important;
        border: none !important;
    }

    .order_list_table tbody,
    .order_list_table tr,
    .order_list_table td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        text-align: left !important;
        box-sizing: border-box;
    }

    .order_list_table tr {
        border: 1px solid #ddd !important;
        padding: 12px;
        margin-bottom: 0;
        background: #fff;
    }

    .order_list_table td {
        padding: 6px 0 !important;
    }

    .order_list_table td::before {
        display: block;
        font-size: 12px;
        color: #94a3b8;
        margin-bottom: 4px;
    }

    .order_list_table td:nth-child(1)::before { content: '商品'; }
    .order_list_table td:nth-child(2)::before { content: '金额'; }
    .order_list_table td:nth-child(3)::before { content: '支付方式'; }
    .order_list_table td:nth-child(4)::before { content: '操作'; }

    .order_goods_list {
        border-bottom: none !important;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f1f5f9 !important;
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        height: auto !important;
    }

    .order_goods_list:last-child {
        border-bottom: none !important;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .order_goods_list li {
        float: none !important;
        height: auto !important;
        line-height: 1.4 !important;
    }

    .order_goods_list .col01 {
        width: 56px !important;
    }

    .order_goods_list .col01 img {
        margin: 0 !important;
    }

    .order_goods_list .col02 {
        flex: 1;
        width: auto !important;
        text-align: left !important;
    }

    .order_goods_list .col03,
    .order_goods_list .col04 {
        width: auto !important;
        font-size: 13px;
        color: #64748b;
    }

    .oper_btn {
        display: inline-block;
        min-height: 40px;
        line-height: 28px;
        padding: 6px 14px !important;
    }

    .common_list_con {
        padding: 8px;
    }

    /* ── 商品详情页 ── */
    .goods_detail_con {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 12px !important;
        border-left: none;
        border-right: none;
        box-sizing: border-box;
        overflow: hidden;
    }

    .goods_detail_pic {
        width: 100% !important;
        height: auto !important;
        margin: 12px auto 0 !important;
        padding: 0 12px;
        box-sizing: border-box;
        float: none !important;
        border: none;
        text-align: center;
    }

    .goods_detail_pic img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: unset !important;
        object-fit: contain !important;
        object-position: center center;
        max-height: 420px;
        border-radius: 8px;
        border: 1px solid #ededed;
        background: #fff;
    }

    .page-goods-detail .consumer-sku-banner,
    .page-goods-detail .consumer-sku-loading,
    .page-goods-detail .add_custom,
    .page-goods-detail .consumer-custom-hint,
    .page-goods-detail #tab-consumer-platform,
    .page-goods-detail .type_select {
        display: none !important;
    }

    .page-goods-detail .header_con {
        display: none !important;
    }

    .page-goods-detail .search_bar,
    .page-goods-detail .navbar_con {
        display: none !important;
    }

    .goods_detail_list {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        box-sizing: border-box;
        float: none !important;
    }

    .goods_detail_list h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    .goods_detail_list > p {
        line-height: 1.5 !important;
    }

    .prize_bar {
        height: auto !important;
        line-height: 1.5 !important;
        padding: 12px 10px !important;
    }

    .prize_bar .show_pirze {
        font-size: 16px !important;
        padding-left: 0 !important;
        display: block;
    }

    .prize_bar .show_pirze em {
        font-size: 28px !important;
        padding-left: 4px !important;
    }

    .prize_bar .goods_judge {
        float: none !important;
        display: inline-block;
        margin: 8px 0 0 !important;
        padding-left: 0 !important;
        border-left: none !important;
    }

    .goods_num {
        height: auto !important;
        margin-top: 12px !important;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .goods_num .num_name {
        float: none !important;
        height: auto !important;
        line-height: 1.4 !important;
    }

    .goods_num .num_add {
        float: none !important;
    }

    .total {
        height: auto !important;
        line-height: 1.5 !important;
        margin-top: 12px !important;
    }

    .operate_btn {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 16px !important;
        margin-bottom: 12px !important;
    }

    .operate_btn .add_cart,
    .operate_btn .add_custom,
    .operate_btn .buy_btn {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
        min-height: 44px !important;
        height: auto !important;
        line-height: 44px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        display: block !important;
    }

    .consumer-sku-banner,
    .consumer-sku-loading {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px !important;
        padding: 12px !important;
        box-sizing: border-box;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .consumer-custom-hint {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .breadcrumb {
        width: 100% !important;
        padding: 8px 12px !important;
        box-sizing: border-box;
        font-size: 12px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .main_wrap {
        width: 100% !important;
        padding: 0 8px 16px !important;
        box-sizing: border-box;
    }

    .l_wrap,
    .l_wrap .new_goods {
        display: none !important;
    }

    .r_wrap {
        width: 100% !important;
        float: none !important;
    }

    .detail_tab {
        height: auto !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #e3101e;
    }

    .detail_tab li {
        float: none !important;
        flex-shrink: 0;
        padding: 0 12px !important;
        font-size: 13px !important;
        white-space: nowrap;
        top: 0 !important;
        height: auto !important;
        min-height: 36px;
        line-height: 36px !important;
    }

    .tab_content {
        padding: 8px 4px;
        box-sizing: border-box;
    }

    .tab_content dl {
        margin: 0;
    }

    .tab_content dd {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .consumer-order-modes span {
        word-break: break-word;
    }

    .consumer-stage-timeline .tl-item {
        font-size: 13px;
        gap: 8px;
    }

    .consumer-stage-timeline .tl-handler {
        font-size: 11px;
    }

    .consumer-stage-timeline .tl-work {
        font-size: 10px;
    }

    .consumer-stage-timeline .tl-status {
        font-size: 11px;
        padding: 2px 8px;
    }

    /* 详情页顶栏精简 */
    .header_con {
        display: none !important;
    }

    .search_bar {
        height: auto !important;
        padding: 8px 12px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .search_bar .logo {
        float: none !important;
        flex-shrink: 0;
    }

    .search_bar .logo img {
        max-height: 36px;
        width: auto;
    }

    .search_wrap {
        width: 100% !important;
        float: none !important;
        order: 3;
    }

    .search_suggest {
        display: none !important;
    }

    .guest_cart {
        order: 2;
        margin-left: auto !important;
        flex-shrink: 0;
    }

    .navbar_con .sub_menu_con {
        display: none !important;
    }

    .navbar_con {
        border-bottom: none !important;
    }

    .navbar {
        padding-bottom: 4px !important;
    }

    .mall-workflow-inner {
        padding: 0 12px;
    }

    /* 论坛通用 */
    .forum-wrap {
        max-width: 100% !important;
        padding: 0 12px 24px !important;
        margin-top: 12px !important;
    }

    .forum-topbar {
        flex-wrap: wrap;
        padding: 10px 12px !important;
        gap: 8px;
    }

    .forum-topbar .topbar-left {
        width: 100%;
        justify-content: space-between !important;
    }

    .forum-topbar.nav-collapsed .nav-links {
        display: none !important;
    }

    .forum-topbar.nav-expanded .nav-links {
        flex-wrap: wrap !important;
        font-size: 14px;
        overflow: visible !important;
    }

    .portal-home-grid,
    .portal-eco-grid,
    .theme-grid,
    .ch-grid {
        grid-template-columns: 1fr !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .forum-form input,
    .forum-form select,
    .forum-form textarea,
    .forum-form button,
    .btn,
    .btn-outline,
    button[type="submit"] {
        font-size: 16px;
        min-height: 44px;
    }

    .ic-admin table {
        display: block;
        overflow-x: auto;
    }

    .ic-flow {
        flex-direction: column;
    }

    .guild-layout {
        flex-direction: unset !important;
    }

    .guild-sidebar,
    .guild-main,
    .guild-aside {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 主题聊天页：覆盖旧的上下堆叠，由 theme-guild 负责抽屉布局 */
    body.forum-body .guild-layout--chat {
        display: block !important;
    }

    /* 信用排行榜 — 宽表改卡片 */
    .forum-wrap .section-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .forum-wrap .file-hint {
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    .forum-wrap .tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .forum-wrap .tabs--credit .tab {
        flex: 1 1 calc(33.333% - 7px);
        min-width: 96px;
    }

    .forum-wrap .tab {
        flex: 1 1 calc(50% - 5px);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 12px;
        font-size: 15px;
    }

    .rank-table {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
        border: none !important;
        background: transparent !important;
        white-space: normal !important;
    }

    .rank-table thead {
        display: none;
    }

    .rank-table tbody {
        display: block;
    }

    .rank-table tbody tr {
        display: block;
        margin-bottom: 12px;
        padding: 14px;
        background: var(--card, #fff);
        border: 1px solid var(--border, #e5e7eb);
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    }

    .rank-table tbody tr:hover td {
        background: transparent !important;
    }

    .rank-table td {
        display: block;
        float: none !important;
        border: none !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .rank-table td::before {
        display: block;
        font-size: 11px;
        color: var(--muted, #6b7280);
        margin-bottom: 2px;
        font-weight: 500;
    }

    /* 个人信用 / 叠加信用 */
    .rank-table--credit tbody tr {
        display: grid;
        grid-template-columns: 48px 1fr auto;
        column-gap: 10px;
        row-gap: 8px;
        align-items: start;
    }

    .rank-table--credit td:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        width: auto !important;
        font-size: 24px;
        line-height: 1;
        padding-top: 4px !important;
    }

    .rank-table--credit td:nth-child(1)::before {
        display: none;
    }

    .rank-table--credit td:nth-child(2) {
        grid-column: 2 / -1;
        grid-row: 1;
        font-size: 16px;
        font-weight: 600;
        color: var(--text, #1f2937);
    }

    .rank-table--credit td:nth-child(2)::before {
        display: none;
    }

    .rank-table--credit td:nth-child(3) {
        grid-column: 2 / -1;
        grid-row: 2;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .rank-table--credit td:nth-child(3)::before {
        display: none;
    }

    .rank-table--credit td:nth-child(4) {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        text-align: right !important;
    }

    .rank-table--credit td:nth-child(4)::before {
        content: "信用";
        text-align: right;
    }

    .rank-table--credit td:nth-child(4) .credit-val {
        font-size: 18px;
        color: var(--accent, #ea580c);
    }

    .rank-table--credit td:nth-child(5) {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 4px;
        padding-top: 10px !important;
        border-top: 1px dashed var(--border, #e5e7eb) !important;
        font-size: 13px;
        color: var(--muted, #6b7280);
    }

    .rank-table--credit td:nth-child(5)::before {
        content: "所属组织";
    }

    /* 组织信用榜 */
    .rank-table--org tbody tr {
        display: grid;
        grid-template-columns: 48px 1fr auto;
        column-gap: 10px;
        row-gap: 6px;
        align-items: start;
    }

    .rank-table--org td:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 2;
        font-size: 22px;
        width: auto !important;
        align-self: start;
        padding-top: 2px !important;
    }

    .rank-table--org td:nth-child(1)::before {
        display: none;
    }

    .rank-table--org td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        font-weight: 600;
        font-size: 15px;
    }

    .rank-table--org td:nth-child(2)::before {
        display: none;
    }

    .rank-table--org td:nth-child(2) small {
        display: block;
        font-size: 12px;
        color: var(--muted, #6b7280);
        font-weight: normal;
        margin-top: 4px;
    }

    .rank-table--org td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        font-size: 14px;
    }

    .rank-table--org td:nth-child(3)::before {
        content: "成员 ";
        display: inline;
        margin-right: 4px;
    }

    .rank-table--org td:nth-child(4) {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        text-align: right !important;
    }

    .rank-table--org td:nth-child(4)::before {
        content: "组织信用";
        text-align: right;
    }

    .rank-table--org td:nth-child(4) .credit-val {
        font-size: 18px;
        color: var(--accent, #ea580c);
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* :hover 同步 :active（触控反馈） */
    a:hover,
    a:active,
    .login_btn a:hover,
    .login_btn a:active,
    .user_link a:hover,
    .user_link a:active,
    .search_suggest li a:hover,
    .search_suggest li a:active,
    .nav li a:hover,
    .nav li a:active,
    .forum-topbar a:hover,
    .forum-topbar a:active,
    .btn:hover,
    .btn:active,
    .btn-outline:hover,
    .btn-outline:active {
        color: inherit;
    }

    .search_suggest li a:active {
        color: #f80;
    }

    .login_btn a:active,
    .user_link a:active,
    .forum_nav_link:active {
        color: #ff8800;
    }

    .forum-topbar a:active {
        opacity: 0.85;
    }

    .input_btn:active,
    .reg_sub input[type="submit"]:active {
        opacity: 0.9;
        transform: scale(0.98);
    }

    /* PWA 添加到主屏幕软引导（仅移动端） */
    .pwa-a2hs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100002;
        pointer-events: none;
        padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .pwa-a2hs-bar {
        pointer-events: auto;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 14px 44px 14px 16px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.16);
    }

    .pwa-a2hs-text {
        flex: 1 1 100%;
        margin: 0;
        font-size: 14px;
        line-height: 1.55;
        color: #334155;
    }

    .pwa-a2hs--step1 .pwa-a2hs-text,
    .pwa-a2hs--android .pwa-a2hs-text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pwa-a2hs-text strong {
        color: #0f766e;
        font-weight: 700;
    }

    .pwa-a2hs-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .pwa-a2hs-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: #94a3b8;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        touch-action: manipulation;
    }

    .pwa-a2hs-btn {
        flex-shrink: 0;
        min-height: 40px;
        padding: 0 16px;
        border: none;
        border-radius: 10px;
        background: linear-gradient(135deg, #0d9488, #14b8a6);
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        touch-action: manipulation;
        white-space: nowrap;
    }

    .pwa-a2hs-btn:disabled {
        opacity: 0.65;
        cursor: wait;
    }

    .pwa-a2hs-btn--ghost {
        background: #f0fdfa;
        color: #0f766e;
        border: 1px solid #99f6e4;
    }

    .pwa-a2hs--android .pwa-a2hs-bar,
    .pwa-a2hs--step1 .pwa-a2hs-bar {
        flex-wrap: nowrap;
        padding-right: 16px;
    }

    .pwa-a2hs--android .pwa-a2hs-close,
    .pwa-a2hs--step1 .pwa-a2hs-close {
        top: 50%;
        transform: translateY(-50%);
    }

    /* 微信：箭头指向右上角菜单 */
    .pwa-a2hs--wechat {
        padding-top: 52px;
    }

    .pwa-a2hs-wechat-arrow {
        pointer-events: none;
        position: fixed;
        top: 10px;
        right: 18px;
        z-index: 100003;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    }

    .pwa-a2hs-wechat-arrow::before {
        content: '↑';
        font-size: 22px;
        line-height: 1;
        animation: pwa-a2hs-bounce 1.2s ease-in-out infinite;
    }

    .pwa-a2hs-wechat-arrow span {
        background: rgba(13, 148, 136, 0.92);
        padding: 4px 10px;
        border-radius: 999px;
        box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45);
    }

    /* iOS：箭头指向 Safari 底部分享按钮 */
    .pwa-a2hs--ios {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    .pwa-a2hs-arrow {
        pointer-events: none;
        position: absolute;
        left: 50%;
        bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        z-index: 10002;
    }

    .pwa-a2hs-arrow-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(13, 148, 136, 0.92);
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45);
        animation: pwa-a2hs-bounce 1.2s ease-in-out infinite;
    }

    .pwa-a2hs-toast {
        position: fixed;
        left: 50%;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        z-index: 100004;
        max-width: calc(100vw - 32px);
        padding: 10px 16px;
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.92);
        color: #fff;
        font-size: 13px;
        line-height: 1.45;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        pointer-events: none;
    }

    @keyframes pwa-a2hs-bounce {
        0%, 100% {
            transform: translateY(0);
            opacity: 1;
        }
        50% {
            transform: translateY(8px);
            opacity: 0.75;
        }
    }

    .login-notice-toast {
        position: fixed;
        top: calc(12px + env(safe-area-inset-top, 0px));
        left: 12px;
        right: 12px;
        z-index: 100001;
        margin: 0 auto;
        max-width: 420px;
        padding: 10px 14px;
        background: rgba(15, 23, 42, 0.88);
        color: #ecfdf5;
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        pointer-events: none;
    }
}
