/* 移动端兼容性CSS */

/* 移动端微信二维码样式 - 完全覆盖原有样式 */
@media (max-width: 768px) {
	/* 移动端基础优化 */
	html {
	    -webkit-text-size-adjust: 100%;
	    -ms-text-size-adjust: 100%;
	}
	
	/* 移动端触摸优化 */
	* {
	    -webkit-tap-highlight-color: transparent;
	    -webkit-touch-callout: none;
	    -webkit-user-select: none;
	    user-select: none;
	}
	
	/* 允许文本选择 */
	p, h1, h2, h3, h4, h5, h6, span, div {
	    -webkit-user-select: text;
	    user-select: text;
	}
	
	/* 移动端滚动优化 */
	body {
	    -webkit-overflow-scrolling: touch;
	    overflow-x: hidden;
	}
	
	/* 防止页面缩放 */
	.mobile-menu-toggle {
	    display: flex;
	    flex-direction: column;
	    justify-content: center;
	    align-items: center;
	    width: 30px;
	    height: 30px;
	    cursor: pointer;
	    z-index: 1001;
	    position: relative;
	}
	
	.mobile-menu-toggle span {
	    width: 100%;
	    height: 3px;
	    background: #fff;
	    transition: all 0.3s ease;
	    border-radius: 2px;
	    display: block;
	    margin: 2px 0;
	}
    
    /* 重置原有的二维码样式 - 使用更高优先级的选择器 */
    .floating-sidebar .floating-item.wechat-item .qr-tooltip {
        position: fixed;
        right: 55px; /* 往左移，从20px改为80px */
        top: 100px;
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
        display: none;
        z-index: 10001;
        min-width: 155px;
        max-width: 90vw;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: auto;
        /* 覆盖原有的伪元素 */
        left: auto;
        width: auto;
        height: auto;
        margin: 0;
        font-size: inherit;
        white-space: normal;
        box-sizing: border-box;
        /* 确保不被其他元素遮挡 */
        overflow: visible;
        clip: auto;
        clip-path: none;
    }
    
    /* 移除二维码弹窗背景遮罩 */
    .floating-sidebar .floating-item.wechat-item .qr-tooltip::before {
        display: none; /* 隐藏遮罩层 */
    }
    
    /* 隐藏原有的伪元素提示 */
    .floating-sidebar .floating-item.wechat-item::before,
    .floating-sidebar .floating-item.wechat-item::after {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* 覆盖原有的hover效果 */
    .floating-sidebar .floating-item.wechat-item:hover .qr-tooltip {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -50%);
    }
    
    .floating-sidebar .floating-item.wechat-item .qr-tooltip.show {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    .floating-sidebar .floating-item.wechat-item .qr-image {
        width: 180px;
        height: 180px;
        border-radius: 8px;
        margin: 0 auto 15px auto;
        display: block;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .floating-sidebar .floating-item.wechat-item .qr-tooltip p {
        margin: 0;
        color: #333;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    /* 移除二维码关闭按钮 - 手机端不需要 */
    .floating-sidebar .floating-item.wechat-item .qr-tooltip .qr-close-btn {
        display: none;
    }
    
    /* 强制覆盖任何可能的冲突样式 */
    .floating-sidebar .floating-item.wechat-item .qr-tooltip * {
        box-sizing: border-box;
    }
	
	/* 轮播容器优化 - 仅限移动端 */
	@media (max-width: 768px) {
		.swiper-container {
		    -webkit-overflow-scrolling: touch;
		    overflow: hidden;
		    touch-action: pan-y pinch-zoom;
		}
		
		.swiper-wrapper {
		    -webkit-overflow-scrolling: touch;
		    scroll-snap-type: x mandatory;
		}
		
		.swiper-slide {
		    -webkit-user-select: none;
		    user-select: none;
		    scroll-snap-align: center;
		    flex-shrink: 0;
		}
	}
	
	/* 触摸提示样式 */
	.touch-hint {
	    position: absolute;
	    bottom: 10px;
	    left: 50%;
	    transform: translateX(-50%);
	    background: rgba(0,0,0,0.8);
	    color: white;
	    padding: 8px 16px;
	    border-radius: 20px;
	    font-size: 12px;
	    z-index: 100;
	    white-space: nowrap;
	}
	
	/* 触摸反馈效果 */
	.floating-item:active,
	.nav-link:active,
	.mobile-menu-toggle:active {
	    transform: scale(0.95);
	}
	
	/* 触摸状态指示 */
	.floating-item.touch-active {
	    background: rgba(0,123,255,0.8);
	    transform: scale(0.95);
	}
	
	/* 减少阴影复杂度 */
	.business-card,
	.case-item,
	.solution-card,
	.feature-item {
	    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	}
	
	/* 减少模糊效果 */
	.hero-bg::before {
	    backdrop-filter: none;
	    -webkit-backdrop-filter: none;
	}
	
	/* 增加焦点指示 */
	.nav-link:focus,
	.floating-item:focus {
	    outline: 2px solid #007bff;
	    outline-offset: 2px;
	}
	
	/* 开发流程移动端样式 - 两个一行，样式类似成功案例，缩小一半 */
	.development-process .process-steps {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 15px;
		padding: 15px;
		flex-wrap: wrap;
		/* 确保同一行的卡片底部对齐 */
		align-items: stretch;
	}
	
	.development-process .process-step {
		flex: none;
		width: 100%;
		border-right: none;
		border-bottom: none;
		padding: 12px 10px;
		margin-bottom: 0;
		box-sizing: border-box;
		/* 添加成功案例样式 */
		background: #fff;
		border-radius: 12px;
		box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
		transition: all 0.3s ease;
		overflow: hidden;
		text-align: center;
		/* 确保卡片高度一致，底部对齐 */
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		height: 100%;
	}
	
	.development-process .process-step:hover {
		transform: translateY(-3px);
		box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	}
	
	/* 调整图标大小和样式 - 缩小一半 */
	.development-process .process-step .step-icon {
		width: 35px;
		height: 35px;
		margin: 0 auto 12px;
		background: #f8f9fa;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all 0.3s ease;
		flex-shrink: 0;
	}
	
	.development-process .process-step .step-icon i {
		font-size: 16px;
		color: #007bff;
		transition: all 0.3s ease;
	}
	
	.development-process .process-step:hover .step-icon {
		background: #007bff;
		transform: scale(1.1);
	}
	
	.development-process .process-step:hover .step-icon i {
		color: #fff;
	}
	
	/* 调整标题大小和样式 - 缩小一半 */
	.development-process .process-step .step-title {
		font-size: 14px;
		line-height: 1.3;
		margin: 12px 0 8px 0;
		font-weight: 500;
		color: #000000;
		flex-shrink: 0;
	}
	
	/* 调整详情文字大小和样式 - 缩小一半 */
	.development-process .process-step .step-details {
		list-style: none;
		text-align: center;
		margin: 0;
		padding: 0;
		/* 让详情列表占据剩余空间，确保底部对齐 */
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}
	
	.development-process .process-step .step-details li {
		font-size: 12px;
		line-height: 20px;
		margin-bottom: 5px;
		font-weight: 300;
		color: #000000;
	}
	
	/* 开发流程容器调整 - 缩小一半 */
	.development-process .container {
		padding: 0 10px;
	}
	
	.development-process .section-header {
		padding: 25px 0 15px 0;
	}
	
	.development-process .section-title {
		font-size: 18px;
		margin-bottom: 10px;
	}
	
	.development-process .section-desc {
		font-size: 12px;
		line-height: 1.4;
		padding: 0 8px;
	}
	
	/* 优化定制方案手机端布局，避免与二维码冲突 */
	.solutions-section {
        position: relative;
        z-index: 1;
    }
    
    .solutions-content {
        position: relative;
        z-index: 1;
    }
    
    .solutions-left {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }
    
    .solutions-right {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }
    
    /* 确保定制方案文案不被二维码遮挡 */
    .solutions-subtitle,
    .solutions-description,
    .solutions-btn {
        position: relative;
        z-index: 1;
    }
}
