/* ============================================
   meiye.html 内容区域移动端自适应样式
   仅在 @media (max-width: 768px) 生效，不影响 PC 端
   导航栏和页脚的移动端样式由 /styles.css 统一处理
   ============================================ */

@media (max-width: 768px) {

    /* ---------- 基础容器 ---------- */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }
    .banner {
        margin-top: 40px;
    }
    /* ---------- Banner 轮播 ---------- */
    .banner .meiyebanneritem {
        height: 220px !important;
        padding: 0 20px !important;
        background-size: cover !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
    }

    .banner .meiyebanneritem .banner-title {
        font-size: 20px !important;
    }

    .banner .meiyebanneritem .banner-title span {
        font-size: 14px !important;
    }

    .banner .meiyebanneritem .banner-content {
        font-size: 13px !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 16px !important;
    }

    /* ---------- meiye-one 通用区块（固定 1000px → 流式） ---------- */
    .meiye-one {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .meiye-title {
        font-size: 16px !important;
        margin-bottom: 20px !important;
        flex-wrap: wrap;
        text-align: center;
    }

    .meiye-title-img img {
        width: 50px !important;
    }

    .meiye-title-text {
        margin-left: 10px !important;
        font-size: 14px !important;
        line-height: 22px;
    }

    .meiye-title-text span {
        font-size: 16px !important;
    }

    /* ---------- meiye-one-con 左右布局 → 纵向堆叠 ---------- */
    .meiye-one-con {
        flex-direction: column !important;
        position: static !important;
        gap: 15px;
    }

    .meiye-one-con .text-one,
    .meiye-one-con .text-two {
        position: static !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .meiye-one-con img {
        max-width: 100% !important;
        height: auto;
    }

    /* ---------- meiye-two-left/right 布局 ---------- */
    .meiye-two-left {
        width: 100% !important;
        text-align: center;
    }

    .meiye-two-left img {
        width: 80% !important;
        margin-right: 0 !important;
    }

    .meiye-two-right {
        width: 100% !important;
    }

    .meiye-two-right-top {
        font-size: 14px !important;
    }

    .meiye-two-right-list {
        font-size: 12px !important;
        margin: 10px 0 0 20px !important;
    }

    .meiye-two-right-list li {
        height: auto !important;
        line-height: 24px !important;
        margin-bottom: 5px;
    }

    .ball {
        width: 20px !important;
        height: 20px !important;
        margin-right: 8px !important;
    }

    /* ---------- meiye-three-top 布局 ---------- */
    .meiye-three-top {
        flex-direction: column !important;
    }

    .meiye-three-top .usertype {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
        height: 180px !important;
    }

    .meiye-three-top .usertype .text {
        position: static !important;
        width: 100% !important;
        padding: 15px;
        box-sizing: border-box;
        top: auto !important;
        right: auto !important;
    }

    .meiye-three-top .way {
        width: 100% !important;
        font-size: 12px !important;
        padding-left: 20px !important;
    }

    .meiye-three-top .way li {
        height: auto !important;
        line-height: 24px !important;
        margin-bottom: 8px;
    }

    .meiye-three-bottom img {
        width: 100% !important;
        margin: 15px auto !important;
    }

    /* ---------- meiye-four-left/right 布局 ---------- */
    .meiye-four-left {
        width: 100% !important;
        text-align: center;
    }

    .meiye-four-left img {
        width: 90% !important;
    }

    .meiye-four-right {
        width: 100% !important;
        margin-left: 0 !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
    }

    .meiye-four-right .meiye-two-right-list {
        margin-left: 20px !important;
    }

    /* ---------- meiye-five 双列 → 单列 ---------- */
    .meiye-five {
        flex-direction: column !important;
        gap: 20px;
    }

    .meiye-item {
        width: 100% !important;
    }

    /* ---------- 末尾数据统计区 ---------- */
    .meiye-one-con .meiye-two-right[style*="top:-60px"],
    .meiye-one-con .meiye-two-right[style*="top: -60px"] {
        position: static !important;
        top: auto !important;
        left: auto !important;
    }

    .meiye-one-con[style*="left: -40px"] {
        left: 0 !important;
    }

    .meiye-one-con[style*="left: -25px"],
    .meiye-one-con [style*="left: -25px"] {
        left: 0 !important;
    }

    /* 清除内联 position:relative 偏移 */
    .meiye-two-right[style*="position: relative"],
    .meiye-four-right[style*="position: relative"] {
        position: static !important;
        left: 0 !important;
        top: 0 !important;
    }

    /* ---------- 弹窗表单 ---------- */
    .submit-con,
    .zl-con,
    .hz-con,
    .dz-con {
        width: 92vw !important;
        max-width: 375px;
        height: auto !important;
        min-height: 400px;
        box-sizing: border-box;
    }

    .dz-con {
        width: 92vw !important;
        padding: 30px 15px 15px !important;
    }

    .dz-con .img {
        height: 200px !important;
    }

    .dz-con .img .qskuang {
        width: 180px !important;
        height: 180px !important;
    }

    .dz-con .img .qscode {
        width: 160px !important;
        height: 160px !important;
    }

    .hz-con {
        padding-top: 200px !important;
    }

    /* ---------- 右侧浮动栏 ---------- */
    .right-box {
        display: none !important;
    }

    /* ---------- 旧页脚残留（已被公共页脚替换，保留以防残留） ---------- */
    .footer-con {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 15px !important;
        gap: 10px;
    }

    .footer-con-right p,
    .footer-con-left p {
        font-size: 11px !important;
        line-height: 20px !important;
    }

}

/* 超小屏幕（≤480px）进一步压缩 */
@media (max-width: 480px) {
    .banner .meiyebanneritem {
        height: 180px !important;
    }

    .banner .meiyebanneritem .banner-title {
        font-size: 17px !important;
    }

    .meiye-title {
        font-size: 14px !important;
    }

    .meiye-title-text {
        font-size: 13px !important;
    }

    .meiye-title-text span {
        font-size: 14px !important;
    }
}
