/* ==========================================================================
   登录 / 注册 / 用户中心 / 品牌 / 对比页 —— 移动端适配
   仅 <=768px 生效，桌面端不受影响
   ========================================================================== */

@media (max-width: 768px) {
    /* ---------- 登录 / 注册 ---------- */
    .reg_banner {
        background-image: none !important;
        background: linear-gradient(135deg, #eef2ff 0%, #f7f8fa 100%) !important;
        padding: 10px 0 18px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .reg_banner .web_body,
    .reg_banner .container,
    .content_body,
    .container {
        width: auto !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    .reg_banner .container,
    .content_body {
        background: #fff;
        border-radius: 12px;
        padding: 16px 14px !important;
        box-shadow: 0 2px 12px rgba(17, 24, 39, .04);
        margin: 10px 12px 0 !important;
    }

    .reg_banner .t,
    .content_body .t {
        font-size: 19px !important;
        font-weight: 700;
        margin: 4px 0 12px !important;
        text-align: left;
    }

    .reg_banner table,
    .reg_banner tbody,
    .reg_banner tr,
    .reg_banner td,
    .content_body table,
    .content_body tbody,
    .content_body tr,
    .content_body td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .reg_banner td,
    .content_body td {
        padding: 3px 0 !important;
    }

    .f_input,
    .reg_banner input[type="text"],
    .reg_banner input[type="password"],
    .content_body input[type="text"],
    .content_body input[type="password"],
    .content_body input[type="email"] {
        width: 100% !important;
        height: 44px !important;
        line-height: 44px;
        box-sizing: border-box;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px;
        padding: 0 12px !important;
        margin: 2px 0 8px;
        background: #fff;
    }

    .loginbtn,
    .u_a_submit,
    .reg_banner input[type="submit"],
    .content_body input[type="submit"] {
        width: 100% !important;
        height: 44px !important;
        border-radius: 999px !important;
        font-size: 15px;
        margin-top: 6px;
    }

    .want_login,
    .want_a {
        margin-top: 14px;
        font-size: 13px;
    }

    .want_t {
        margin-top: 14px;
        color: #9ca3af;
        font-size: 12px;
    }

    .safe-tip {
        display: flex;
        gap: 8px;
        align-items: center;
        margin: 4px 0;
    }

    /* ---------- 用户中心 ---------- */
    .AreaL {
        float: none !important;
        width: auto !important;
        margin-bottom: 10px;
    }

    .AreaR {
        float: none !important;
        width: auto !important;
    }

    .userCenterBox {
        width: auto !important;
        max-width: 100% !important;
        padding: 10px !important;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .user_Menu {
        overflow: hidden;
    }

    .user_Menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0;
        margin: 0 0 8px;
        list-style: none;
    }

    .user_Menu ul li {
        display: inline-block;
        margin: 0 !important;
    }

    .user_Menu ul li.t {
        display: none !important;
    }

    .user_Menu ul li a {
        display: inline-block;
        padding: 6px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        font-size: 12px;
        color: #4b5563;
        background: #fff;
        text-decoration: none;
    }

    .user_Menu ul li a.word_c {
        border-color: #4f46e5;
        color: #4f46e5;
        background: #eef2ff;
    }

    .userCenterBox table,
    .userCenterBox tbody,
    .userCenterBox tr,
    .userCenterBox th,
    .userCenterBox td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .userCenterBox table {
        margin-top: 8px;
    }

    .userCenterBox td.tl,
    .userCenterBox td.tls {
        text-align: left !important;
        background: none !important;
        color: #9ca3af !important;
        font-size: 12px !important;
        padding: 4px 0 0 !important;
    }

    .userCenterBox td.tr {
        text-align: left !important;
        padding: 0 0 10px !important;
        font-size: 14px;
        color: #111827;
        border-bottom: 1px solid #f3f4f6;
    }

    .userCenterBox td.td_submit {
        text-align: left !important;
        padding: 10px 0 !important;
    }

    .userCenterBox .fd_submit {
        width: 100% !important;
        height: 42px;
        border-radius: 999px;
    }

    .userCenterBox textarea,
    .userCenterBox select,
    .userCenterBox input[type="text"],
    .userCenterBox input[type="password"] {
        width: 100% !important;
        box-sizing: border-box;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px 10px;
    }

    /* 订单列表表格 → 卡片滚动 */
    .userCenterBox .order_list_table,
    .userCenterBox table[width] {
        display: block;
        overflow-x: auto;
    }

    /* ---------- 品牌页 ---------- */
    .page_bp,
    .block,
    .box,
    .box_1,
    .box_2 {
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .screeBox table,
    .screeBox tbody,
    .screeBox tr,
    .screeBox th,
    .screeBox td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .screeBox td {
        padding: 4px 0 !important;
    }

    .screeBox td a {
        display: inline-block;
        margin: 3px 10px 3px 0;
        font-size: 13px;
    }

    .info.brand_desc {
        font-size: 13px;
        line-height: 1.8;
    }

    /* ---------- 对比页 ---------- */
    .box_1 table {
        display: block;
        overflow-x: auto;
        width: 100% !important;
    }

    .ent_img {
        max-width: 90px;
        height: auto;
    }

    /* ---------- 相册页 ---------- */
    .gallery-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    /* 注册页：标签用 th，需一并转块级 */
    .content_body th,
    .reg_banner th {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        font-weight: 400;
        font-size: 13px;
        color: #6b7280;
        padding: 8px 0 2px !important;
        box-sizing: border-box;
    }

    /* 登录/注册页顶部 logo 收小 */
    .reg_top {
        padding: 10px 12px !important;
        background: #fff;
        border-bottom: 1px solid #eceef2;
    }

    .reg_top img {
        height: 32px !important;
        width: auto !important;
        display: block;
    }

    /* 品牌页列表 */
    .leftbox {
        float: none !important;
        width: auto !important;
        max-width: 100% !important;
    }

    #brandList {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #brandList .brandBox {
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 12px !important;
        background: #fff;
        border: 1px solid #eceef2;
        border-radius: 12px;
        box-sizing: border-box;
    }

    #brandList .brandBox h4 {
        margin: 0 0 4px;
        font-size: 14px;
        color: #111827;
    }

    #brandList .brandBox p {
        margin: 0;
    }

    /* 站点页脚：服务承诺 + 帮助链接两列 */
    .footer-service ul {
        display: flex !important;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px !important;
        margin: 0 !important;
        list-style: none;
    }

    .footer-service li {
        flex: 0 0 calc(50% - 5px);
        width: auto !important;
        float: none !important;
        font-size: 12px;
        text-align: left;
    }

    .footer-service li a {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .our_services.footer {
        display: flex !important;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 12px !important;
        box-sizing: border-box;
    }

    .our_services.footer .c {
        flex: 0 0 calc(50% - 6px);
        width: auto !important;
        float: none !important;
        margin: 0 !important;
    }

    .our_services.footer .c5 {
        flex: 0 0 100%;
    }

    .our_services.footer dt {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .our_services.footer dd {
        margin: 0;
        font-size: 12px;
        line-height: 1.9;
    }

    .site-footer,
    .footer_info {
        text-align: center;
        font-size: 12px;
        line-height: 1.9;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    /* 站点页脚服务承诺：2×2 网格，图标与文字并排，避免重叠 */
    .site-footer .index_body {
        width: auto !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box;
    }

    .footer-service ul.list-service {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 14px 0 !important;
        margin: 0 !important;
        list-style: none;
    }

    .footer-service ul.list-service li {
        width: auto !important;
        float: none !important;
        margin: 0 !important;
        text-align: left;
    }

    .footer-service ul.list-service li a {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        line-height: 1.5;
        color: #4b5563;
        text-decoration: none;
    }

    .footer-service ul.list-service li i {
        position: static !important;
        display: inline-block !important;
        flex: 0 0 34px;
        width: 34px !important;
        height: 34px !important;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin: 0 !important;
        float: none !important;
    }

    /* 相册：单列大图 */
    .gallery-wrap {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .user_Menu ul,
    .user_Menu ul li {
        list-style: none !important;
        background: none !important;
        padding-left: 0 !important;
    }

    .user_Menu ul li a {
        position: relative;
        padding-left: 12px !important;
    }

    /* 订单列表空状态/表头不撑出灰块 */
    .userCenterBox table th,
    .userCenterBox table td {
        background: #fff !important;
    }

    .userCenterBox table th {
        color: #6b7280;
        font-size: 12px;
        padding: 6px 0 !important;
    }
}

@media (max-width: 768px) {
    /* 注册页必填星号不再单独占行（输入框已全宽，星号跟随标签） */
    .content_body td > span[id$="_notice"],
    .reg_banner td > span[id$="_notice"] {
        display: none !important;
    }
}
