/* 移动端响应式样式 */
/* 作者：程序员玖哥微信: 19810795555 TG: @ yun2099 */
/* 版权：2014-2025 网站开发定制、脚本定制、反向编程、支付对接等 */

/* 移动端菜单按钮样式 */
.mobile-menu-btn {
    display: none;
}

/* 导航栏滚动状态 */
.nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 禁止滚动 */
.no-scroll {
    overflow: hidden;
}

/* 懒加载图片 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* 移动端基础样式 */
@media (max-width: 768px) {
    /* 导航栏移动端适配 */
    .nav {
        width: 100%;
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
    }
    
    .navin {
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .nav_l {
        width: auto;
        padding-top: 0;
    }
    
    .nav_logo {
        width: 120px;
        height: 40px;
        object-fit: contain;
    }
    
    .nav_ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav_ul.active {
        display: flex;
    }
    
    .nav_li {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .nav_li a {
        color: #fff;
        padding: 15px 20px;
        display: block;
        font-size: 16px;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .nav_li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .nav_lion::after {
        display: none;
    }
    
    .nav_r {
        display: none;
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Banner移动端适配 */
    .banner {
        margin-top: 60px;
        height: 200px;
        overflow: hidden;
    }
    
    .banner img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    /* 内容区域移动端适配 */
    .com {
        margin-top: 0;
    }
    
    /* 首页内容移动端适配 */
    .index_1 {
        padding: 20px 15px;
    }
    
    .index_1in {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .index_1t {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .index_1t1 {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .index_1timg {
        width: 30px;
        height: 30px;
    }
    
    .index_1tt {
        font-size: 24px;
        margin: 0 15px;
    }
    
    .index_1t2 {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
    }
    
    /* 服务流程移动端适配 */
    .index_2 {
        padding: 30px 15px;
        background: #f8f9fa;
    }
    
    .index_2in {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .index_2t {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .index_2t1 {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .index_2tt {
        font-size: 24px;
        margin: 0 15px;
    }
    
    .index_2t2 {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
    }
    
    .index_2in2 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .index_2in2l {
        width: 100%;
        text-align: center;
        padding: 20px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .index_2in2l img {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .index_2in2l h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #333;
    }
    
    .index_2in2l p {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
    }
    
    /* 客户案例移动端适配 */
    .index_3 {
        padding: 30px 15px;
    }
    
    .index_3in {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .new_02 {
        width: 100%;
        margin: 0;
    }
    
    .new_03 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .new_03 h3 {
        font-size: 20px;
        margin: 0;
    }
    
    .new_03 a {
        font-size: 14px;
        color: #007bff;
        text-decoration: none;
    }
    
    .new_04 {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .new_04a {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: #333;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    
    .new_04a:hover {
        transform: translateY(-5px);
        text-decoration: none;
        color: #333;
    }
    
    .new_04a img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }
    
    .new_05 {
        padding: 15px;
    }
    
    .new_05 h4 {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .new_06 {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
    }
    
    .new_07 {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .new_07 li {
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .new_07 li a {
        text-decoration: none;
        color: #333;
        display: block;
    }
    
    .new_07 li a p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .new_07 li a p span {
        color: #999;
        font-size: 12px;
        float: right;
    }
    
    /* 选择我们的理由移动端适配 */
    .index_4 {
        padding: 30px 15px;
        background: #f8f9fa;
    }
    
    .index_4in {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .index_4t {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .index_4t1 {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .index_4tt {
        font-size: 24px;
        margin: 0 15px;
    }
    
    .index_4t2 {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
    }
    
    .index_4in2 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .index_4in2l {
        width: 100%;
        text-align: center;
        padding: 20px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .index_4in2l img {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .index_4in2l h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #333;
    }
    
    .index_4in2l p {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
    }
    
    /* 底部移动端适配 */
    .index_8 {
        padding: 30px 15px;
        background: #333;
        color: #fff;
    }
    
    .index_8in {
        width: 100%;
        max-width: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .index_8L {
        text-align: center;
    }
    
    .index_8Llogo {
        width: 150px;
        height: 50px;
        margin-bottom: 20px;
        object-fit: contain;
    }
    
    .index_8L1 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .index_8L1 span {
        font-size: 18px;
        font-weight: bold;
        color: #007bff;
    }
    
    .index_8L2 {
        font-size: 14px;
        color: #ccc;
        line-height: 1.6;
    }
    
    .index_8c {
        text-align: center;
    }
    
    .index_8c1 {
        margin-bottom: 10px;
    }
    
    .index_8c1 a {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        transition: color 0.3s ease;
    }
    
    .index_8c1 a:hover {
        color: #007bff;
    }
    
    .index_8r {
        text-align: center;
    }
    
    .index_8r1img {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .index_8r2 {
        font-size: 14px;
        color: #ccc;
    }
    
    .index_8in2 {
        text-align: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #555;
        font-size: 12px;
        color: #999;
    }
    
    .index_8in2 a {
        color: #999;
        text-decoration: none;
    }
    
    .index_8in2 a:hover {
        color: #fff;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .navin {
        padding: 0 10px;
    }
    
    .nav_logo {
        width: 100px;
        height: 35px;
    }
    
    .index_1tt,
    .index_2tt,
    .index_4tt {
        font-size: 20px;
    }
    
    .index_1t2,
    .index_2t2,
    .index_4t2 {
        font-size: 13px;
    }
    
    .index_2in2l h3,
    .index_4in2l h3 {
        font-size: 16px;
    }
    
    .index_2in2l p,
    .index_4in2l p {
        font-size: 13px;
    }
    
    .new_05 h4 {
        font-size: 15px;
    }
    
    .new_06 {
        font-size: 13px;
    }
    
    .new_07 li a p {
        font-size: 13px;
    }
}

/* 横屏适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .navin {
        height: 50px;
    }
    
    .nav_logo {
        width: 100px;
        height: 35px;
    }
    
    .banner {
        height: 150px;
    }
    
    .banner img {
        height: 150px;
    }
    
    .index_1,
    .index_2,
    .index_3,
    .index_4 {
        padding: 20px 15px;
    }
}

/* 触摸优化 */
@media (max-width: 768px) {
    /* 增加触摸目标大小 */
    .nav_li a,
    .new_04a,
    .new_07 li a,
    .index_8c1 a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 优化滚动性能 */
    .com {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 防止双击缩放 */
    .nav_li a,
    .new_04a,
    .new_07 li a {
        touch-action: manipulation;
    }
}
