/**
 * 专业移动端优化
 * Professional Mobile Optimization
 * 优先级最高，覆盖所有移动端问题
 */

/* ==========================================
   移动端基础重置（< 768px）
   ========================================== */
@media (max-width: 767px) {
    
    /* 防止横向滚动 */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* 所有容器防溢出 */
    .w201, .w290, .w231, .w1200, .wrapper,
    .na201, .h201_main, .nav201, .b182,
    .prcbox_323, .about290, .eyys,
    .case231_main, .news_326, .footer169 {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* ==========================================
       顶部通知栏
       ========================================== */
    .top201 {
        height: auto !important;
        padding: 10px 0;
    }
    
    .top201 .w201 {
        flex-direction: column;
        gap: 8px;
    }
    
    .top201 .zc201 {
        width: 100% !important;
        text-align: center;
        font-size: 12px;
        line-height: 1.5;
    }
    
    .top201 .r201 {
        width: 100% !important;
        text-align: center;
        font-size: 12px;
    }

    /* ==========================================
       Logo和头部
       ========================================== */
    .h201_main {
        padding: 10px 0 !important;
    }
    
    .head201 {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .logo201 {
        width: auto !important;
        max-width: 150px !important;
    }
    
    .logo201 img {
        max-width: 100%;
        height: auto;
    }
    
    .ss201 {
        display: none !important;
    }

    /* ==========================================
       导航栏 - 移动端完全隐藏，使用汉堡菜单
       ========================================== */
    .nav201 {
        height: 50px !important;
        background: #fff;
        display: block !important;
        border-bottom: 1px solid #f0f0f0;
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .nav201 .na201 {
        padding: 0 15px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
    }
    
    /* 移动端隐藏桌面导航 */
    .nav201 .list201 {
        display: none !important;
    }
    
    /* 全屏菜单激活时显示 */
    .nav201 .list201.active {
        display: flex !important;
    }
    
    /* 汉堡菜单按钮优化 */
    .mobile-menu-toggle {
        position: static !important;
        display: flex !important;
        margin-left: auto !important;
    }
    
    /* 在导航栏左侧添加Logo或标题（可选） */
    .nav201 .na201:before {
        content: '菜单';
        font-size: 16px;
        font-weight: 600;
        color: #333;
        display: none; /* 默认隐藏，需要时取消注释 */
    }

    /* ==========================================
       Hero轮播图
       ========================================== */
    .b182 {
        height: 250px !important;
        margin-bottom: 0 !important;
    }
    
    .b182 li,
    .b182 .list182 li {
        height: 250px !important;
    }
    
    .b182 img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* 轮播控制按钮 */
    .b182 .prev182,
    .b182 .next182 {
        width: 30px !important;
        height: 30px !important;
    }
    
    .b182 .tip182 {
        bottom: 10px !important;
    }

    /* ==========================================
       产品中心模块
       ========================================== */
    .prcbox_323 {
        padding: 30px 0 !important;
    }
    
    .prcbox_323 .prctit {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    /* 产品Tab按钮 */
    .prcbox_323 .hd {
        margin-bottom: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .prcbox_323 .hd ul {
        display: flex !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        padding: 0 5px 10px 5px;
    }
    
    .prcbox_323 .hd ul li {
        padding: 8px 16px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* 产品网格 */
    .prcbox_323 .bd ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .prcbox_323 .bd li {
        width: calc(50% - 7.5px) !important;
        margin: 0 !important;
        float: none !important;
    }
    
    .prcbox_323 .bd li .ppic {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
    
    .prcbox_323 .bd li .ppic img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .prcbox_323 .bd li .tit {
        padding: 10px 8px !important;
    }
    
    .prcbox_323 .bd li .tit span {
        font-size: 13px !important;
    }
    
    /* 查看更多按钮 */
    .prcbox_323 .pmore {
        margin-top: 25px;
    }
    
    .prcbox_323 .pmore a {
        padding: 10px 30px !important;
        font-size: 14px !important;
    }

    /* ==========================================
       关于我们模块
       ========================================== */
    .about290 {
        padding: 30px 0 !important;
    }
    
    .about290 .part3 {
        display: block !important;
    }
    
    .about290 .part3 .img {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }
    
    .about290 .part3 .img img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    .about290 .part3 .txt {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
    }
    
    .about290 .part3 .txt h3 {
        font-size: 22px !important;
    }
    
    .about290 .part3 .txt h4 {
        font-size: 14px !important;
        margin-bottom: 15px;
    }
    
    .about290 .part3 .txt .desc {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    /* ==========================================
       我们的优势模块
       ========================================== */
    .eyys {
        padding: 30px 0 !important;
    }
    
    .eyys .ystit .tit {
        font-size: 24px !important;
    }
    
    .eyys .ystit .subtit {
        font-size: 14px !important;
        margin-bottom: 30px;
    }
    
    .eyys .eylist {
        display: block !important;
    }
    
    .eyys .eylist .item {
        width: 100% !important;
        margin-bottom: 20px !important;
        padding: 20px 15px !important;
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
    }
    
    .eyys .eylist .item .img {
        width: 60px !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
        margin-right: 15px !important;
    }
    
    .eyys .eylist .item .img img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .eyys .eylist .item .txt {
        flex: 1 !important;
    }
    
    .eyys .eylist .item .txt h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .eyys .eylist .item .txt p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    /* ==========================================
       成功案例模块
       ========================================== */
    .case231_main {
        padding: 30px 0 !important;
    }
    
    .case231_main .ctit231 .tit {
        font-size: 24px !important;
    }
    
    .case231_main .ctit231 .subtit {
        font-size: 14px !important;
        margin-bottom: 30px;
    }
    
    .case231_main .icase231 {
        display: block !important;
    }
    
    .case231_main .bigbox {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }
    
    .case231_main .smabox {
        width: 100% !important;
        float: none !important;
    }
    
    .case231_main .sma231 .item {
        width: 100% !important;
        margin-bottom: 15px;
    }

    /* ==========================================
       新闻中心模块
       ========================================== */
    .news_326 {
        padding: 30px 0 !important;
    }
    
    .news_326 .tit {
        margin-bottom: 30px;
    }
    
    .news_326 .tit a {
        font-size: 24px !important;
    }
    
    .news_326 .tit p {
        font-size: 14px !important;
    }
    
    .news_326 .news_list ul {
        display: block !important;
    }
    
    .news_326 .news_list ul li {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        float: none !important;
    }
    
    .news_326 .news_list ul li b {
        width: 100% !important;
        height: 180px !important;
        float: none !important;
    }
    
    .news_326 .news_list ul li b img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ==========================================
       页脚
       ========================================== */
    .footer169 {
        padding: 30px 0 10px 0;
    }
    
    .footer169 .b169_main {
        padding: 20px 0;
    }
    
    .footer169 .w169 {
        display: block !important;
    }
    
    .footer169 .lx169 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer169 .bnav169 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }
    
    .footer169 .bnav169 dl {
        width: 50% !important;
        float: left !important;
        margin-bottom: 20px;
    }
    
    .footer169 .ewm169 {
        width: 100% !important;
        float: none !important;
        text-align: center;
    }
    
    .footer169 .bq169_main {
        padding: 15px 0;
    }
    
    .footer169 .bq169_main p {
        font-size: 12px;
        line-height: 1.8;
    }

    /* ==========================================
       右侧客服（移动端优化）
       ========================================== */
    .right_nav {
        right: 10px !important;
        bottom: 70px !important;
        width: auto !important;
    }
    
    .right_nav li {
        width: 50px !important;
        height: 50px !important;
        margin: 5px 0 !important;
        padding: 0 !important;
        right: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }
    
    .right_nav li img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .right_nav li h4,
    .right_nav li .hideBox {
        display: none !important;
    }

    /* ==========================================
       返回顶部按钮
       ========================================== */
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
        right: 15px !important;
    }

    /* ==========================================
       通用样式优化
       ========================================== */
    
    /* 所有标题尺寸调整 */
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 18px !important; }
    h4 { font-size: 16px !important; }
    h5 { font-size: 14px !important; }
    
    /* 按钮触摸区域 */
    button, a, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* 图片加载优化 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 表格响应式 */
    table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
    }
    
    /* 清除浮动 */
    .clearfix:after {
        content: "";
        display: table;
        clear: both;
    }
}

/* ==========================================
   小屏手机优化（< 375px）
   ========================================== */
@media (max-width: 374px) {
    
    body {
        font-size: 13px;
    }
    
    .prcbox_323 .bd li {
        width: 100% !important;
    }
    
    .prcbox_323 .hd ul li {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    .logo201 {
        max-width: 120px !important;
    }
    
    .eyys .eylist .item {
        display: block !important;
        text-align: center !important;
    }
    
    .eyys .eylist .item .img {
        margin: 0 auto 15px auto !important;
    }
}

/* ==========================================
   横屏优化
   ========================================== */
@media (max-width: 767px) and (orientation: landscape) {
    
    .b182 {
        height: 200px !important;
    }
    
    .b182 li {
        height: 200px !important;
    }
    
    .prcbox_323,
    .about290,
    .eyys,
    .case231_main,
    .news_326 {
        padding: 20px 0 !important;
    }
}

/* ==========================================
   平板适配（768px - 991px）
   ========================================== */
@media (min-width: 768px) and (max-width: 991px) {
    
    .prcbox_323 .bd li {
        width: calc(33.333% - 10px) !important;
    }
    
    .eyys .eylist {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .news_326 .news_list ul li {
        width: calc(50% - 10px) !important;
    }
}
