/* ============================================
   index-mobil.css - 移动端适配
   仅对屏幕宽度 ≤ 768px 生效
   保留原有动态动画，优化文字间距
   ============================================ */
@media screen and (max-width: 768px) {
    /* ----- 全局重置 ----- */
    body {
        overflow-x: hidden;
        -webkit-tap-highlight-color: transparent;
        font-size: 14px;
        line-height: 1.5;
    }

    /* 容器强制自适应 */
    .con {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* ----- 头部导航（侧滑菜单）----- */
    .header {
        position: fixed;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 60px;
        line-height: 60px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        margin: 0 auto;
    }
    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        height: 60px;
    }
    .logo {
        width: auto;
        float: none;
        padding: 0;
        box-shadow: none;
    }
    .logo a {
        width: 120px;
        height: 40px;
        background-size: contain;
        margin-top: 10px;
    }
    .menu-click {
        display: inline-block;
        width: 32px;
        height: 32px;
        margin-left: auto;
        cursor: pointer;
    }
    /* 侧滑菜单 */
    .header-mobil {
        position: fixed;
        top: 60px;
        right: -280px;
        width: 260px;
        height: calc(100vh - 60px);
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        display: block;
        padding: 0;
    }
    .header-mobil.active {
        right: 0;
    }
    .header-mobil li {
        display: block;
        height: auto;
        line-height: 48px;
        padding: 0 20px;
        margin: 0;
        font-size: 14px;
        color: #333;
        border-bottom: 1px solid #eee;
        text-align: left;
        background: #fff;
    }
    .header-mobil li.name {
        background: #0092ee;
        color: #fff;
        border-radius: 0;
    }

    /* ----- Banner 区域（保留动画）----- */
    .imgBox {
        margin-top: 60px;
        height: 200px;
        width: 100%;
        left: 0;
        transform: none;
        overflow: hidden;
    }
    .imgBox img {
        width: auto;
        height: 100%;
        min-width: 100%;
        object-fit: cover;
        margin-left: 0;
    }
    .fontsCon, .fontsCon1, .fontsCon2 {
        left: 5%;
        width: 90%;
        top: 18%;
    }
    .fontsCon1 { top: 36%; }
    .fontsCon2 { top: 56%; }
    .fontsCon li {
        font-size: 20px;
        margin-left: 10px;
        opacity: 0; /* 动画起始状态，由 animated 类控制 */
        display: inline-block;
    }
    .fontsCon li:first-child { margin-left: 0; }
    .fontsCon1 li:first-child { font-size: 18px; }
    .fontsCon1 li:last-child { font-size: 11px; }
    .fontsCon2 li {
        font-size: 16px;
        width: auto;
        display: inline-block;
    }
    /* 确保动画生效 */
    .fontsCon .animated, .fontsCon2 .animated {
        opacity: 1 !important;
    }

    /* ----- 三大服务模块（增加间距）----- */
    .service {
        height: auto;
        padding: 30px 0;
    }
    .service ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 0;
    }
    .service ul li {
        width: 100%;
        margin: 0;
        height: auto;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    .service ul li .iconfont {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    .service ul li h4 {
        font-size: 16px;
        margin: 12px 0 8px;
    }
    .service ul li p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* ----- 大数据与人工智能系统 ----- */
    #twoPage {
        height: auto;
        padding: 40px 0;
    }
    #twoPage .con {
        flex-direction: column;
        gap: 20px;
    }
    #twoPage .newLeft {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 0;
    }
    .firstCircle, .midCircle, .lastCircle {
        width: 120px;
        height: 120px;
    }
    #twoPage .aiSystems {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        height: auto;
    }
    #twoPage .systemRow {
        flex-wrap: wrap;
        gap: 10px;
    }
    #twoPage .systemRow h5 {
        width: 100%;
        margin-bottom: 8px;
        font-size: 14px;
    }

    /* ----- 通信与信息系统 ----- */
    #fivePage {
        height: auto;
        padding: 40px 0;
    }
    #fivePage .con {
        flex-direction: column;
        gap: 20px;
    }
    #fivePage .commSystems {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        margin-right: 0;
        order: 2;
    }
    #fivePage .pageLeft {
        width: 100%;
        height: auto;
        min-height: 200px;
        position: relative;
        margin-bottom: 0;
        order: 1;
        background: none;
    }
    #fivePage .after {
        position: relative;
        width: 100%;
        height: auto;
        background-size: contain;
        background-position: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
        box-sizing: border-box;
    }
    #fivePage .after > div {
        position: static;
        transform: none;
        margin: 0;
        padding: 6px 12px;
        font-size: 12px;
        animation: none;
        display: inline-block;
        border: 1px solid #0092ee;
        border-radius: 20px;
        background: rgba(255,255,255,0.9);
    }

    /* ----- 更多业务与产品 ----- */
    #threePage {
        height: auto;
        padding: 40px 0;
    }
    #threePage .con {
        flex-direction: column;
        gap: 20px;
    }
    #threePage .pageLeft {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-top: 0;
        background-size: contain;
        order: 1;
    }
    #threePage .products {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        order: 2;
    }
    #threePage .productRow {
        flex-wrap: wrap;
        gap: 10px;
    }
    #threePage .productRow h5 {
        width: 100%;
        margin-bottom: 8px;
        font-size: 14px;
    }

    /* ----- 成功案例轮播（保留自动播放）----- */
    #sixPage {
        height: auto;
        padding: 40px 0;
    }
    #sixPage .con {
        background: none;
        flex-direction: column;
    }
    .suc {
        font-size: 24px;
        margin-bottom: 25px;
        letter-spacing: 2px;
    }
    .swiper-container {
        width: 100% !important;
        height: auto;
        padding: 0 !important;
    }
    .swiper-slide {
        width: 100% !important;
        text-align: center;
    }
    .swiper-slide img {
        width: 90%;
        height: auto;
        max-height: 180px;
        object-fit: cover;
        border-radius: 8px;
    }
    .swiper-slide p {
        width: 100%;
        text-align: center;
        margin-top: 8px;
        font-size: 13px;
    }

    /* ----- 页脚 ----- */
    .footer {
        height: auto;
        padding: 25px 0;
    }
    .footer ul {
        width: 100%;
        padding-top: 0;
    }
    .footer ul li {
        font-size: 12px;
        margin: 6px 0;
        line-height: 1.5;
    }
    .footer ul li img {
        display: none;
    }

    /* ----- 通用元素优化 ----- */
    .title {
        font-size: 20px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    h5 {
        font-size: 14px;
        line-height: 1.4;
    }
    .dot {
        width: 6px;
        height: 6px;
        top: 9px;
    }
    .pageRight li {
        margin-bottom: 12px;
    }
    /* 增加段落间距 */
    p, .WD {
        margin-bottom: 12px;
        line-height: 1.6;
    }
}

/* 更小屏幕（≤480px）微调 */
@media screen and (max-width: 480px) {
    .fontsCon li {
        font-size: 16px;
        margin-left: 6px;
    }
    .fontsCon2 li {
        font-size: 13px;
    }
    .service ul li h4 {
        font-size: 15px;
    }
    .title {
        font-size: 18px;
    }
}