/* ========== ≤1200px 移动端适配 ========== */
@media (max-width: 1200px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    * {
        box-sizing: border-box;
    }
    .contentMain {
        margin-top: 20px;
        overflow-x: hidden;
    }

    /* ===== tabs切换 ===== */
    .tabs-box {
        max-width: 100%;
        padding: 0 20px;
        gap: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    .tab{
        width: 240px;
        height: 48px;
    }
    .tab-name {
        font-size: 20px;
    }

    /* ===== 标题 ===== */
    .title-box {
        padding-top: 20px;
    }
    .title {
        font-size: 28px;
        line-height: 36px;
    }
    .subTitle {
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        padding: 0 15px;
    }

    /* ===== floor1 AI能力闭环 ===== */
    .floor1 {
        margin: 0 15px;
        margin-top: 20px;
    }
    .img-box {
        margin-top: 20px;
        max-width: 100%;
    }
    .img-box img {
        width: 100%;
        height: auto;
    }

    /* ===== floor2 AI算法库 ===== */
    .floor2 {
        margin-top: 30px;
    }
    .list-box {
        max-width: 100%;
        padding: 0 15px;
    }
    .list-item {
        margin-bottom: 20px;
    }
    .item-bg {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    /* ===== floor3 项目案例轮播 ===== */
    .floor3 {
        overflow: hidden;
    }
    .xmal-box {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    /* 移动端轮播容器溢出的处理 */
    .xmal-box .swiper-slide {
        width: auto !important;
    }
    .xmal-item {
        width: 100%;
        height: auto;
        min-height: 320px;
        transition: none !important;
    }
    /* 移动端取消缩放效果 */
    .swiper-slide-prev .xmal-item,
    .swiper-slide-next .xmal-item {
        transform: scale(1);
        opacity: 1;
    }
    .swiper-slide-active .xmal-item {
        transform: scale(1);
        opacity: 1;
    }

    /* 卡片内容 */
    .xmal-cont {
        padding: 20px;
        position: relative;
        flex-direction: column;
    }
    .cont-img {
        width: 100%;
        height: auto;
        max-height: 240px;
    }
    .cont-right {
        width: 100%;
        margin-left: 0;
        height: auto;
    }
    .cont-right .name {
        font-size: 22px;
        margin: 12px 0;
    }
    .cont-right .sub-name {
        font-size: 13px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }
    .btn-label {
        font-size: 16px;
    }
    .btn-box {
        gap: 6px;
    }
    .btn-img {
        width: 140px;
        height: 28px;
    }
    .btn-text {
        font-size: 13px;
    }

    /* 指示点 */
    .xmal-dots {
        margin: 20px auto 40px;
    }
    .xmal-dots span {
        width: 28px;
        height: 4px;
    }
    .xmal-dots span.active {
        width: 28px;
    }
    .btn{
        margin-bottom: 0;
    }
}

/* ========== 1001px-1200px：缩小版PC ========== */
@media (min-width: 1001px) and (max-width: 1200px) {
    .tabs-box {
        max-width: 900px;
    }
    .tab{
        width: 280px;
        height: 56px;
    }
    .tab-name {
        font-size: 26px;
    }

    .title {
        font-size: 34px;
    }
    .subTitle {
        font-size: 17px;
    }

    .floor1 {
        margin: 0 30px;
        margin-top: 25px;
    }

    /* floor2 两列 */
    .list-box {
        gap: 20px;
        justify-content: center;
    }
    .list-item {
        width: calc(50% - 10px);
    }
    .item-bg {
        height: 233px;
        min-height: 0;
    }
    .item-cont {
        padding: 0 24px;
    }
    .item-title {
        padding-top: 13px;
    }
    .name {
        font-size: 20px;
    }
    .line {
        margin-top: 8px;
        width: 50px;
    }
    .item-label {
        margin-top: 8px;
    }
    .lable-text {
        font-size: 14px;
        line-height: 36px;
    }
    .right {
        width: 14px;
        height: 14px;
    }

    /* floor3 轮播缩小 */
    .xmal-box {
        overflow: visible !important;
    }
    .xmal-item {
        width: 700px;
        min-height: 0;
        height: 310px;
    }
    .xmal-cont {
        flex-direction: row;
        position: absolute;
    }
    .cont-img {
        width: 300px !important;
        min-height: 200px;
    }
    .cont-right {
        width: 340px;
        height: auto;
        margin-left: 20px;
    }
    .cont-right .name {
        font-size: 24px;
    }
    .cont-right .sub-name {
        font-size: 14px;
    }
    /* 恢复缩放效果 */
    .swiper-slide-prev .xmal-item,
    .swiper-slide-next .xmal-item {
        transform: scale(0.85);
        opacity: 0.6;
    }
    .swiper-slide-active .xmal-item {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========== 701px-1000px ========== */
@media (min-width: 501px) and (max-width: 1000px) {
    .tabs-box {
        padding: 0 15px;
    }
    .tab{
        width: 200px;
        height: 40px;
    }
    .tab-name {
        font-size: 18px;
    }

    .title {
        font-size: 28px;
    }
    .subTitle {
        font-size: 14px;
    }

    /* floor3 单卡片 左右布局 */
    .xmal-box {
        overflow: hidden !important;
    }
    .xmal-box .swiper-slide {
        width: 100% !important;
    }
    .xmal-item {
        width: 90%;
        height: 260px;
        min-height: 0;
        margin: 0 auto;
    }
    .xmal-cont {
        flex-direction: row;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 20px;
    }
    .cont-img {
        width: 220px !important;
        height: 100%;
        object-fit: cover;
    }
    .cont-right {
        width: auto;
        flex: 1;
        height: auto;
        margin-left: 15px;
    }
    .cont-right .sub-name {
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .swiper-slide-prev .xmal-item,
    .swiper-slide-next .xmal-item,
    .swiper-slide-active .xmal-item {
        transform: scale(1);
        opacity: 1;
    }
}
@media (min-width: 801px) and (max-width: 1000px) {
/* floor2 两列小间距 */
    .list-box {
        gap: 12px;
    }
    .list-item {
        width: calc(50% - 6px);
    }
    .item-bg {
        height: 190px;
    }
    .item-cont {
        padding: 0 16px;
    }
    .item-title {
        padding-top: 8px;
    }
    .name {
        font-size: 16px;
    }
    .line {
        margin-top: 6px;
        width: 40px;
    }
    .item-label {
        margin-top: 7px;
    }
    .lable-text {
        font-size: 12px;
        line-height: 28px;
    }
    .right {
        width: 12px;
        height: 12px;
    }
}
@media (max-width: 800px) {
/* floor2 单列 */
    .list-box {
        padding: 0 10px;
        gap: 15px;
    }
    .list-item {
        width: 100%;
        margin-bottom: 10px;
    }
    .item-cont {
        padding: 0 16px;
    }
    .item-title {
        padding-top: 16px;
    }
    .name {
        font-size: 16px;
    }
    .line {
        margin-top: 6px;
        width: 40px;
        height: 2px;
    }
    .item-label {
        margin-top: 12px;
    }
    .right {
        width: 12px;
        height: 12px;
    }
    .lable-text {
        font-size: 12px;
        line-height: 28px;
    }
}
@media (max-width: 500px) {
    .tabs-box {
        padding: 0 5px;
        gap: 0;
    }
    .tab{
        width: 120px;
        height: 24px;
    }
    .tab-name {
        font-size: 12px;
    }

    .title {
        font-size: 22px;
        line-height: 28px;
    }
    .subTitle {
        font-size: 12px;
        line-height: 24px;
    }

    /* floor1 */
    .floor1 {
        margin: 0 10px;
        margin-top: 15px;
    }

    /* floor3 单卡片全宽 */
    .xmal-box {
        overflow: hidden !important;
    }
    .xmal-box .swiper-slide {
        width: 100% !important;
    }
    .xmal-item {
        width: calc(100% - 20px);
        height: auto;
        min-height: 400px;
        margin: 0 auto;
    }
    .xmal-cont {
        flex-direction: column;
        position: relative;
        padding: 15px;
    }
    .cont-img {
        width: 100% !important;
        max-height: 200px;
        height: 200px;
        object-fit: cover;
    }
    .cont-right .name {
        font-size: 18px;
        line-height: 24px;
    }
    .cont-right .sub-name {
        font-size: 12px;
        -webkit-line-clamp: 5;
    }
    .btn-label {
        font-size: 14px;
    }
    .btn-box {
        gap: 4px;
    }
    .btn-img {
        width: 120px;
        height: 24px;
    }
    .btn-text {
        font-size: 11px;
    }
    .swiper-slide-prev .xmal-item,
    .swiper-slide-next .xmal-item,
    .swiper-slide-active .xmal-item {
        transform: scale(1);
        opacity: 1;
    }

    .xmal-dots {
        margin: 15px auto 30px;
    }
    .xmal-dots span {
        width: 22px;
        height: 3px;
    }
}
