/* 移动端导航修复 - 强制完整显示文字 */
@media (max-width: 768px) {
    /* 保持banner响应式大小 */
    .banner {
        position: relative !important;
    }
    
    .banner img {
        object-fit: cover !important;
        width: 100% !important;
    }
    
    /* 将导航移到banner下面，用小按钮形式 */
    body .ab-nav,
    html body .ab-nav {
        position: relative !important;
        background: #f5f5f5 !important;
        border-top: 1px solid #e0e0e0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    /* 强制导航容器换行显示 */
    body .ab-nav .ab-nav-a,
    html body .ab-nav .ab-nav-a,
    body .ab-nav .ab-nav-a.mobile-nav-fixed,
    html body .ab-nav .ab-nav-a.mobile-nav-fixed {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-gap: 8px !important;
        padding: 15px 20px !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        /* 确保不覆盖其他内容 */
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* 强制每个按钮换行 */
    body .ab-nav .ab-nav-a a,
    html body .ab-nav .ab-nav-a a,
    body .ab-nav .ab-nav-a.mobile-nav-fixed a,
    html body .ab-nav .ab-nav-a.mobile-nav-fixed a {
        font-size: 11px !important;
        margin: 0 !important;
        text-align: center !important;
        padding: 8px 6px !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        min-width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        color: #333 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        display: inline-block !important;
        /* 强制覆盖任何可能的截断 */
        text-overflow: clip !important;
        -webkit-text-overflow: clip !important;
        /* 强制覆盖grid相关属性 */
        grid-column: unset !important;
        grid-row: unset !important;
        /* 确保文字完整显示 */
        line-height: 1.2 !important;
        font-weight: 500 !important;
        /* 小按钮样式 */
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
    
    body .ab-nav .ab-nav-a a:hover,
    body .ab-nav .ab-nav-a a.on,
    html body .ab-nav .ab-nav-a a:hover,
    html body .ab-nav .ab-nav-a a.on,
    body .ab-nav .ab-nav-a.mobile-nav-fixed a:hover,
    body .ab-nav .ab-nav-a.mobile-nav-fixed a.on,
    html body .ab-nav .ab-nav-a.mobile-nav-fixed a:hover,
    html body .ab-nav .ab-nav-a.mobile-nav-fixed a.on {
        background: #667eea !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3) !important;
        border-color: #667eea !important;
    }
    
    body .ab-nav .ab-nav-a a::before,
    html body .ab-nav .ab-nav-a a::before,
    body .ab-nav .ab-nav-a.mobile-nav-fixed a::before,
    html body .ab-nav .ab-nav-a.mobile-nav-fixed a::before {
        display: none !important;
    }
    
    /* 移动端内容居中和间距控制 */
    .w1400 {
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
    }
    
    /* 面包屑导航居中 */
    .ab-mb {
        text-align: center !important;
        margin: 15px 0 !important;
        padding: 0 15px !important;
    }
    
    /* 内容区域间距控制 */
    .ab-rw-set1 {
        margin: 0 !important;
        padding: 0 15px !important;
        text-align: center !important;
    }
    
    .rw-set1 {
        margin: 0 0 20px 0 !important;
        text-align: center !important;
        margin-bottom: -30px !important;
    }
    
    .rw-set1 .img {
        margin: 0 auto 20px auto !important;
        text-align: center !important;
    }
    
    .rw-set1 .img img {
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }
    
    .rw-set1 .txt {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        margin-top: 30px !important;
        display: block !important;
        width: 100% !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* 强制覆盖任何可能的负边距 */
    body .rw-set1 .txt,
    html body .rw-set1 .txt {
        margin-top: 30px !important;
        margin-bottom: 20px !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .rw-set1 .txt h4 {
        margin: 0 0 15px 0 !important;
        text-align: center !important;
    }
    
    .rw-set1 .txt h6 {
        margin: 0 0 15px 0 !important;
        text-align: center !important;
    }
    
    .rw-set1 .txt .cont {
        margin: 0 0 15px 0 !important;
        text-align: center !important;
    }
    
    .rw-set1 .txt p {
        text-align: center !important;
        margin: 0 0 10px 0 !important;
    }
    
    /* 特别针对半个多世纪那部分内容的段落 */
    body .rw-set1 .txt p,
    html body .rw-set1 .txt p,
    body .rw-set1 .txt p *,
    html body .rw-set1 .txt p *,
    body .rw-set1 .txt p span,
    html body .rw-set1 .txt p span,
    body .rw-set1 .txt p strong,
    html body .rw-set1 .txt p strong {
        text-align: center !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
        text-justify: center !important;
        -webkit-text-justify: center !important;
        display: inline !important;
        float: none !important;
        margin: 0 auto !important;
    }
    
    .rw-set1 .txt ul {
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-bottom: -80px !important;
    }
    
    .rw-set1 .txt ul li {
        margin: 0 !important;
        text-align: center !important;
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .rw-set1 .txt ul li p {
        text-align: center !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* 特别针对数字统计的布局 */
    body .rw-set1 .txt ul li,
    html body .rw-set1 .txt ul li {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body .rw-set1 .txt ul li p,
    html body .rw-set1 .txt ul li p {
        text-align: center !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
    }
    
    /* 第二行内容间距控制 */
    .rw-set2 {
        margin: 0 !important;
        text-align: center !important;
    }
    
    .rw-set2-page {
        margin: 0 0 20px 0 !important;
        text-align: center !important;
        margin-top: -30px !important;
    }
    
    .rw-set2-page .text {
        margin: 0 auto 20px auto !important;
        text-align: center !important;
        max-width: 100% !important;
        margin-bottom: 40px !important;
    }
    
    .rw-set2-page .text .txt h6 {
        margin: 0 0 10px 0 !important;
        text-align: center !important;
    }
    
    .rw-set2-page .text .txt h4 {
        margin: 0 0 15px 0 !important;
        text-align: center !important;
    }
    
    .rw-set2-page .text .cont {
        margin: 0 0 15px 0 !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }
    
    .rw-set2-page .text .cont p {
        text-align: center !important;
        margin: 0 0 10px 0 !important;
    }
    
    .rw-set2-page .img {
        margin: 0 auto !important;
        text-align: center !important;
        margin-top: 40px !important;
    }
    
    .rw-set2-page .img img {
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }
    
    /* 强制所有文本元素居中 */
    .ab-rw-set1 * {
        text-align: center !important;
    }
    
    .rw-set1 * {
        text-align: center !important;
    }
    
    .rw-set2 * {
        text-align: center !important;
    }
    
    .rw-set2-page * {
        text-align: center !important;
    }
    
    /* 特殊处理某些元素 */
    .rw-set1 .txt ul,
    .rw-set1 .txt ul li,
    .rw-set1 .txt ul li p,
    .rw-set2-page .text .cont p {
        text-align: center !important;
    }
    
    /* 处理所有可能的文本容器 */
    body .ab-rw-set1 div,
    html body .ab-rw-set1 div,
    body .rw-set1 div,
    html body .rw-set1 div,
    body .rw-set2 div,
    html body .rw-set2 div,
    body .rw-set2-page div,
    html body .rw-set2-page div {
        text-align: center !important;
    }
    
    /* 最强优先级 - 强制所有文字居中 */
    body .ab-rw-set1,
    html body .ab-rw-set1,
    body .ab-rw-set1 *,
    html body .ab-rw-set1 *,
    body .rw-set1,
    html body .rw-set1,
    body .rw-set1 *,
    html body .rw-set1 *,
    body .rw-set2,
    html body .rw-set2,
    body .rw-set2 *,
    html body .rw-set2 *,
    body .rw-set2-page,
    html body .rw-set2-page,
    body .rw-set2-page *,
    html body .rw-set2-page *,
    /* 添加更多具体选择器 */
    body .rw-set2-page .text,
    html body .rw-set2-page .text,
    body .rw-set2-page .text *,
    html body .rw-set2-page .text *,
    body .rw-set2-page .text .cont,
    html body .rw-set2-page .text .cont,
    body .rw-set2-page .text .cont *,
    html body .rw-set2-page .text .cont * {
        text-align: center !important;
    }
    
    /* 特别针对段落文本 */
    body .rw-set2-page .text .cont p,
    html body .rw-set2-page .text .cont p,
    body .rw-set2-page .text .cont p *,
    html body .rw-set2-page .text .cont p * {
        text-align: center !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
    }
    
    /* 使用!important覆盖所有可能的对齐方式 */
    body .ab-rw-set1 *,
    html body .ab-rw-set1 *,
    body .rw-set1 *,
    html body .rw-set1 *,
    body .rw-set2 *,
    html body .rw-set2 *,
    body .rw-set2-page *,
    html body .rw-set2-page * {
        text-align: center !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
    }
    
    /* 特别针对第一个rw-set2-page的文字 */
    body .rw-set2-page:first-child .text .cont p,
    html body .rw-set2-page:first-child .text .cont p,
    body .rw-set2-page:first-child .text .cont p *,
    html body .rw-set2-page:first-child .text .cont p * {
        text-align: center !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
        text-justify: center !important;
        -webkit-text-justify: center !important;
    }
    
    /* 强制所有段落文字居中 - 使用最高优先级 */
    body .rw-set2-page .text .cont p,
    html body .rw-set2-page .text .cont p,
    body .rw-set2-page .text .cont p *,
    html body .rw-set2-page .text .cont p *,
    body .rw-set2-page .text .cont p span,
    html body .rw-set2-page .text .cont p span,
    body .rw-set2-page .text .cont p strong,
    html body .rw-set2-page .text .cont p strong {
        text-align: center !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
        text-justify: center !important;
        -webkit-text-justify: center !important;
        display: inline !important;
        float: none !important;
        margin: 0 auto !important;
    }
    
    /* 强制所有文字容器居中 */
    body .rw-set2-page .text,
    html body .rw-set2-page .text,
    body .rw-set2-page .text .cont,
    html body .rw-set2-page .text .cont {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* 超小屏幕调整字体大小 */
    @media (max-width: 480px) {
        body .ab-nav .ab-nav-a a,
        html body .ab-nav .ab-nav-a a,
        body .ab-nav .ab-nav-a.mobile-nav-fixed a,
        html body .ab-nav .ab-nav-a.mobile-nav-fixed a {
            font-size: 10px !important;
            padding: 6px 4px !important;
        }
        
        .w1400 {
            padding: 0 10px !important;
        }
        
        .rw-set1 .txt ul {
            gap: 10px !important;
        }
    }
}

/* 招商页面移动端修复 */
@media (max-width: 768px) {
    /* 减少内容块之间的距离 */
    .join-content,
    .join-section,
    .join-block,
    .join-item {
        margin-bottom: 15px !important;
        padding: 10px !important;
    }
    
    /* 确保图片响应式 */
    .join-content img,
    .join-section img,
    .join-block img,
    .join-item img,
    .join-us img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* 减少标题间距 */
    .join-content h1,
    .join-content h2,
    .join-content h3,
    .join-content h4,
    .join-content h5,
    .join-content h6,
    .join-section h1,
    .join-section h2,
    .join-section h3,
    .join-section h4,
    .join-section h5,
    .join-section h6 {
        margin-bottom: 10px !important;
        margin-top: 10px !important;
    }
    
    /* 减少段落间距 */
    .join-content p,
    .join-section p,
    .join-block p,
    .join-item p {
        margin-bottom: 8px !important;
        margin-top: 8px !important;
    }
    
    /* 减少列表间距 */
    .join-content ul,
    .join-content ol,
    .join-section ul,
    .join-section ol,
    .join-block ul,
    .join-block ol,
    .join-item ul,
    .join-item ol {
        margin-bottom: 10px !important;
        padding-left: 20px !important;
    }
    
    .join-content li,
    .join-section li,
    .join-block li,
    .join-item li {
        margin-bottom: 5px !important;
    }
    
    /* 减少div间距 */
    .join-content div,
    .join-section div,
    .join-block div,
    .join-item div {
        margin-bottom: 10px !important;
    }
    
    /* 确保所有文字居中 */
    .join-content,
    .join-section,
    .join-block,
    .join-item {
        text-align: center !important;
    }
    
    .join-content *,
    .join-section *,
    .join-block *,
    .join-item * {
        text-align: center !important;
    }
    
    /* 特别处理表单 */
    .join-contact-form,
    .join-form {
        margin: 10px 0 !important;
        padding: 15px !important;
    }
    
    .join-contact-form input,
    .join-form input,
    .join-contact-form textarea,
    .join-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* 减少按钮间距 */
    .join-content button,
    .join-section button,
    .join-block button,
    .join-item button,
    .join-content .btn,
    .join-section .btn,
    .join-block .btn,
    .join-item .btn {
        margin: 5px !important;
        padding: 8px 15px !important;
    }
    
    /* 确保容器响应式 */
    .join-container,
    .join-wrapper {
        padding: 0 15px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    /* 减少表格间距 */
    .join-content table,
    .join-section table,
    .join-block table,
    .join-item table {
        margin-bottom: 10px !important;
        width: 100% !important;
        font-size: 14px !important;
    }
    
    .join-content table td,
    .join-content table th,
    .join-section table td,
    .join-section table th,
    .join-block table td,
    .join-block table th,
    .join-item table td,
    .join-item table th {
        padding: 5px !important;
        text-align: center !important;
    }
    
    /* 招商页面加盟条件部分移动端修复 */
    body .zsjm-set7,
    html body .zsjm-set7 {
        background-size: cover !important;
        background-position: center !important;
        padding: 30px 15px !important;
        min-height: auto !important;
    }
    
    body .zsjm-set7 h3,
    html body .zsjm-set7 h3 {
        font-size: 24px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    body .zsjm-set7-cont,
    html body .zsjm-set7-cont {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }
    
    body .zsjm-set7-cont ul,
    html body .zsjm-set7-cont ul {
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    body .zsjm-set7-cont li,
    html body .zsjm-set7-cont li {
        margin-bottom: 12px !important;
        text-align: center !important;
        padding-left: 0 !important;
        position: relative !important;
        line-height: 1.5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
    }
    
    body .zsjm-set7-cont i,
    html body .zsjm-set7-cont i {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 14px !important;
        background-size: contain !important;
        margin-bottom: 8px !important;
        display: inline-block !important;
    }
    
    /* 加盟流程部分移动端修复 */
    .zsjm-set8 {
        padding-bottom: 60px !important;
    }
    
    .zsjm-set8 h3 {
        padding: 50px 0 30px !important;
        font-size: 24px !important;
    }
    
    .zsjm-set8-cont ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .zsjm-set8-cont ul li {
        width: calc(50% - 10px) !important;
        height: 80px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    /* 超小屏幕调整 */
    @media (max-width: 480px) {
        body .zsjm-set7,
        html body .zsjm-set7 {
            padding: 20px 10px !important;
        }
        
        body .zsjm-set7 h3,
        html body .zsjm-set7 h3 {
            font-size: 20px !important;
            margin-bottom: 10px !important;
        }
        
        body .zsjm-set7-cont,
        html body .zsjm-set7-cont {
            font-size: 13px !important;
            padding: 0 10px !important;
        }
        
        body .zsjm-set7-cont li,
        html body .zsjm-set7-cont li {
            margin-bottom: 10px !important;
            padding-left: 0 !important;
        }
        
        body .zsjm-set7-cont i,
        html body .zsjm-set7-cont i {
            width: 30px !important;
            height: 30px !important;
            line-height: 30px !important;
            font-size: 12px !important;
            margin-bottom: 6px !important;
        }
        
        body .zsjm-set8-cont ul li,
        html body .zsjm-set8-cont ul li {
            width: calc(50% - 5px) !important;
            height: 70px !important;
            font-size: 12px !important;
        }
    }
}
