/* 移动端优化样式表 */

/* ========================================
   基础优化
======================================== */

/* 增强移动端触摸友好度 */
@media (max-width: 768px) {
    /* 移动端按钮尺寸优化 */
    .button, .button_style2 {
        padding: 12px 24px;
        min-height: 44px;
        font-size: 14px;
    }
    /* 移动端按钮尺寸优化 */
    .button, .button_style2 {
        padding: 12px 24px;
        min-height: 44px;
        font-size: 14px;
    }
    
    /* 移动端卡片间距优化 */
    .services__inner,
    .case__item,
    .team__inner,
    .blog__inner {
        margin-bottom: 16px;
    }
    
    /* 移动端导航优化 */
    .header__menu nav > ul li a {
        padding: 12px 16px;
        min-height: 44px;
    }
    
    /* 移动端表单输入优化 */
    input,
    textarea,
    select {
        min-height: 44px;
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    /* 移动端卡片文字优化 */
    .services__inner .text h6 {
        font-size: 16px;
    }
    
    .services__inner .text p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* 移动端footer链接优化 */
    .footer__widgets .footer_services ul li a {
        padding: 8px 0;
        display: block;
    }
    
    /* 移动端联系信息优化 */
    .contact__details ul li {
        padding: 12px 0;
    }
    
    /* 移动端服务卡片优化 */
    .flow-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* 移动端团队成员卡片优化 */
    .team__inner .text {
        padding: 16px;
    }
    
    .team__inner .text h6 {
        font-size: 15px;
    }
    
    .team__inner .text p {
        font-size: 12px;
    }
    
    /* 移动端价格卡片优化 */
    .pricing__inner .bottom ul li {
        padding: 8px 0;
        font-size: 13px;
    }
    
    /* 移动端 testimonial 优化 */
    .testmonial__inner {
        padding: 20px;
    }
    
    /* 移动端图片优化 */
    .blog__inner .thumb img,
    .case__item .thumb img,
    .team__inner .thumb img {
        aspect-ratio: 16/10;
        object-fit: cover;
    }
    
    /* 移动端 section 间距优化 */
    .padding-block {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    /* 移动端标题优化 */
    .section__title h3 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .section__title p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* 移动端 banner 优化 */
    .banner__content h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .banner__content p {
        font-size: 14px;
    }
    
    /* 移动端滚动条隐藏 */
    .overflow-x-hidden {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 移动端禁止文字选择（可选） */
    .button,
    .header__menu nav > ul li a {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 移动端咨询区域优化 - 标题和按钮居中 */
    .cousult__content h3 {
        text-align: center !important;
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .cousult__content .consult-btns {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .cousult__content .consult-btns .button {
        margin: 0 auto;
    }
    
    /* 移动端隐藏右侧装饰文字 */
    .cousult .consult-text {
        display: none;
    }
}

/* 超小屏幕优化 (小于 400px) */
@media (max-width: 400px) {
    .section__title h3 {
        font-size: 20px;
    }
    
    .banner__content h2 {
        font-size: 22px;
    }
    
    .pricing__inner .top h2 {
        font-size: 28px;
    }
    
    .team__inner .thumb {
        height: auto;
    }
    
    .services__item {
        padding: 16px;
    }
}

/* 平板端优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    .services__inner .text h6 {
        font-size: 17px;
    }
    
    .section__title h3 {
        font-size: 28px;
    }
}

/* 暗色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    /* 可以在这里添加暗色模式样式 */
}

/* 减少动画（无障碍） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式优化 */
@media print {
    .header,
    .footer,
    .scrollToTop,
    .offcanvas-area {
        display: none !important;
    }
    
    .padding-block {
        padding: 20px 0;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ========================================
   首页各区域移动端美化
======================================== */

/* 服务卡片移动端优化 */
@media (max-width: 768px) {
    .services__item {
        text-align: center;
        padding: 20px 15px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        background: #fff;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .services__item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(45, 90, 206, 0.15);
    }
    
    .services__inner .thumb {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .services__inner .thumb img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }
    
    .services__inner .text h6 {
        font-size: 16px;
        margin-bottom: 8px;
        color: #1F2A59;
    }
    
    .services__inner .text p {
        font-size: 13px;
        color: #666;
        line-height: 1.5;
    }
    
    .servicebtn {
        justify-content: center;
        margin-top: 12px;
    }
}

/* 博客卡片移动端优化 */
@media (max-width: 768px) {
    .blog__inner {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .blog__inner:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(45, 90, 206, 0.15);
    }
    
    .blog__inner .content {
        padding: 18px;
    }
    
    .blog__inner .content h6 {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .blog__inner .content p {
        font-size: 13px;
        color: #666;
        line-height: 1.5;
    }
    
    .blog__inner .thumb {
        height: 180px;
        overflow: hidden;
    }
    
    .blog__inner .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .blog__inner:hover .thumb img {
        transform: scale(1.05);
    }
}

/* 案例卡片移动端优化 */
@media (max-width: 768px) {
    .case__item {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .case__item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(45, 90, 206, 0.15);
    }
    
    .case__item .thumb {
        height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .case__item .thumb i {
        font-size: 48px;
        color: #fff;
    }
    
    .case__item .text {
        padding: 18px;
        text-align: center;
    }
    
    .case__item .text p {
        font-size: 12px;
        color: #888;
        margin-bottom: 5px;
    }
    
    .case__item .text h6 {
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* 合作伙伴logo移动端优化 */
@media (max-width: 768px) {
    .sponsor {
        padding: 40px 0;
    }
    
    .sponsor h5 {
        font-size: 14px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .sponsor__item {
        padding: 15px;
    }
    
    .sponsor__item .brand-logo {
        font-size: 14px;
    }
}

/* 价格卡片移动端美化 */
@media (max-width: 768px) {
    .pricing__inner {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .pricing__inner:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(45, 90, 206, 0.2);
    }
    
    .pricing__inner .top {
        padding: 25px 20px;
        text-align: center;
        background: linear-gradient(135deg, #2D50CE 0%, #4A70E8 100%);
        color: #fff;
    }
    
    .pricing__inner .top h6 {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 8px;
    }
    
    .pricing__inner .top h2 {
        font-size: 32px;
        color: #fff;
    }
    
    .pricing__inner .top h2 sub {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .pricing__inner .bottom {
        padding: 25px 20px;
        text-align: center;
    }
    
    .pricing__inner .bottom ul {
        text-align: left;
        margin-bottom: 20px;
    }
    
    .pricing__inner .bottom ul li {
        padding: 10px 0;
        font-size: 13px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .pricing__inner .bottom ul li:last-child {
        border-bottom: none;
    }
    
    .pricing__inner .bottom .button_style2 {
        width: 100%;
        max-width: 200px;
    }
}

/* 流程卡片移动端美化 */
@media (max-width: 768px) {
    .flow-card {
        border-radius: 16px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        background: #fff;
        position: relative;
        overflow: hidden;
    }
    
    .flow-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #2D50CE, #4A70E8);
    }
    
    .flow-number {
        margin-bottom: 15px;
    }
    
    .flow-number span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, #2D50CE 0%, #4A70E8 100%);
        color: #fff;
        font-size: 18px;
        font-weight: 700;
    }
    
    .flow-content h5 {
        font-size: 17px;
        color: #1F2A59;
        margin-bottom: 10px;
    }
    
    .flow-content p {
        font-size: 13px;
        color: #666;
        line-height: 1.6;
    }
    
    .flow-line {
        display: none;
    }
}

/* 优势卡片移动端美化 */
@media (max-width: 768px) {
    .advantage-card {
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
        background: #f8f9fa;
        display: flex;
        align-items: flex-start;
        gap: 15px;
        text-align: left;
    }
    
    .advantage-icon {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 12px;
        background: linear-gradient(135deg, #2D50CE 0%, #4A70E8 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }
    
    .advantage-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .advantage-content h4 {
        font-size: 16px;
        color: #1F2A59;
        margin-bottom: 5px;
    }
    
    .advantage-content p {
        font-size: 13px;
        color: #666;
        line-height: 1.5;
    }
}

/* Footer移动端美化 */
@media (max-width: 768px) {
    .footer__widgets {
        text-align: center;
        padding: 20px 0;
    }
    
    .footer__widgets .logo img {
        max-width: 150px;
        margin-bottom: 15px;
    }
    
    .footer__widgets .text p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
    }
    
    .footer_services h6,
    .footer_contact h6 {
        font-size: 16px;
        margin-bottom: 15px;
        color: #fff;
    }
    
    .footer_services ul li a {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
        padding: 8px 0;
        display: block;
    }
    
    .footer_contact ul li {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .wechat-qrcode h6 {
        font-size: 16px;
        color: #fff;
        margin-bottom: 15px;
    }
    
    .qrcode-wrapper img {
        max-width: 120px;
        border-radius: 8px;
    }
    
    .qrcode-wrapper p {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 10px;
    }
    
    .footer__copyright {
        padding: 15px 10px;
    }
    
    .footer__copyright p {
        font-size: 11px;
        line-height: 1.6;
    }
    
    .footer__copyright a {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* 数据统计区域移动端美化 */
@media (max-width: 768px) {
    .overview__count {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
    }
    
    .overview__count .item {
        text-align: center;
        padding: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }
    
    .overview__count .item .icon {
        margin-bottom: 10px;
    }
    
    .overview__count .item .text h4 {
        font-size: 28px;
        color: #fff;
    }
    
    .overview__count .item .text p {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.8);
    }
}

/* 客户评价区域移动端美化 */
@media (max-width: 768px) {
    .testmonial__inner {
        border-radius: 16px;
        padding: 25px 20px;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .testmonial__inner > p {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .testmonial__inner .profile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .testmonial__inner .profile .thumb {
        margin-bottom: 12px;
    }
    
    .testmonial__inner .profile .thumb img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }
    
    .testmonial__inner .profile .name h6 {
        font-size: 15px;
        color: #fff;
    }
    
    .testmonial__inner .profile .name p {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .testmonial__inner .profile .name ul {
        justify-content: center;
        margin-top: 8px;
    }
    
    .testmonial__inner .profile .name ul li i {
        font-size: 12px;
        color: #FFD700;
    }
}

/* Banner区域移动端美化 */
@media (max-width: 768px) {
    .banner {
        padding: 60px 0 80px;
    }
    
    .banner__content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .banner__content span {
        font-size: 12px;
        display: inline-block;
        padding: 6px 12px;
        background: rgba(45, 80, 206, 0.1);
        border-radius: 20px;
        color: #2D50CE;
        margin-bottom: 15px;
    }
    
    .banner__content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .banner__content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .banner__btn {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .banner__btn .button_style2 {
        min-width: 140px;
    }
    
    .banner__btn .d-sm-block {
        width: 100%;
        display: flex !important;
        justify-content: center;
    }
    
    .banner__btn .d-sm-block .icon {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .banner__btn .d-sm-block .icon h6 {
        font-size: 13px;
        color: #666;
    }
    
    .banner-services-wrap {
        display: none;
    }
}
