/* xdeoat 响应式适配 v1  (2026-12-03)
   用途：关闭迅睿手机版后，让 PC 模板直接在手机上可用。
   只做覆盖，不改 public.min.css 本体。 */

/* 0. 桌面端不显示 poster（视频照常播）；必须写在媒体查询之前 */
.yb-slide-poster {
    display: none;
}

/* 1. 根因：container-custom 写死了 min-width:1200px，把所有页面撑成 1200 宽 */
@media (max-width: 1200px) {
    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .container-custom {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding-left: 17.5px;
        padding-right: 17.5px;
        box-sizing: border-box;
    }

    #header .header-mobile .header {
        width: 100%;
        box-sizing: border-box;
        padding-left: 17.5px;
        padding-right: 17.5px;
    }

    #header .header-mobile .header .logo {
        margin-left: 0;
    }
}

/* 2. 首屏：小屏不再占满一屏，也不再拉 1920×1080 视频 */
@media (max-width: 1024px) {
    .yb-swiper-container {
        height: auto !important;
        margin-top: 0 !important;
        aspect-ratio: 16 / 10;
        min-height: 260px;
        max-height: 70vh;
    }

    .yb-swiper-wrapper,
    .yb-swiper-slide {
        height: 100%;
    }

    .yb-slide-video {
        display: none;
    }

    .yb-slide-poster {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .yb-slide-content {
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .yb-slide-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .yb-slide-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .yb-slide-button {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .yb-swiper-controls {
        display: none;
    }
}

@media (max-width: 768px) {

    /* 公司简介块：原来是 990px 定高 + 绝对定位，手机上文字和图片叠在一起 */
    .index .index-box4-box .index-box4 {
        height: auto !important;
        background-image: none !important;
        background-color: #f5f5f5;
        padding: 0 17.5px 30px;
    }

    .index .index-box4-box .index-box4 .index-box4-h img {
        position: static;
        width: 100%;
        max-width: 100%;
        display: block;
        margin: 0 auto 20px;
    }

    .index .index-box4-box .index-box4 .content {
        padding-top: 0;
    }

    .index .index-box4-box .index-box4 .title .num {
        font-size: 80px;
    }

    .index .index-box4-box .index-box4 .title .cn {
        position: static;
        font-size: 18px;
        margin-bottom: 14px;
    }

    .index .index-box4-box .index-box4 .title .cn em {
        display: block;
        margin-top: 6px;
        font-size: 15px;
    }

    .index .index-box4-box .index-box4 .text-paragraph {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 20px;
    }

    .index .index-box4-box .index-box4 .list {
        max-width: none;
        display: flex;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .index .index-box4-box .index-box4 .list .item {
        float: none;
        width: 50%;
        min-width: 0;
        padding-right: 10px;
        margin-bottom: 16px;
        box-sizing: border-box;
    }

    .index .index-box4-box .index-box4 .list .item h3 em {
        font-size: 36px;
    }

    .index .index-box4-box .index-box4 .list .item p {
        font-size: 13px;
    }

    /* 新闻中心：去掉左侧固定图与 1260px 的横向轨道，卡片按屏宽排 */
    .index .index-box5 .wrap-box .le {
        display: none;
    }

    .index .index-box5 .wrap-box .ri {
        width: 100%;
        float: none;
    }

    .index .index-box5 .wrap-box .ri .ri-box {
        width: 100%;
    }

    .index .index-box5 .wrap-box .swiper-slide {
        width: 74vw;
    }

    .index .index-box5 .wrap-box .swiper-slide a {
        height: auto;
        min-height: 360px;
    }

    .index .index-box5 .wrap-box .swiper-slide a .h3 {
        font-size: 15px;
        line-height: 1.5;
        height: auto;
        max-height: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .index .index-box5 .wrap-box .swiper-slide a .classify {
        position: static;
        padding: 0;
        margin: 6px 0 0;
        font-size: 12px;
        color: #888;
    }

    .index .index-box5 .wrap-box .slide-btns {
        position: static;
        width: auto;
        margin: 10px 0 0;
        text-align: center;
    }

    .index .index-box5 .wrap-box .slide-btns .slide-btn {
        float: none;
        display: inline-block;
        width: 44px;
        height: 44px;
        margin: 0 6px;
    }

    .index .index-box5 .wrap-box .slide-btns::before {
        display: none;
    }

    .index .index-box5::before {
        display: none;
    }
}


@media (max-width: 480px) {
    .yb-slide-title {
        font-size: 1.25rem;
    }

    .yb-slide-description {
        font-size: 0.82rem;
        -webkit-line-clamp: 3;
    }

    .yb-swiper-container {
        aspect-ratio: 4 / 3;
        max-height: 60vh;
    }
}

/* 3. 字体：思源黑体 TTF(1.13MB) 换 WOFF2(589KB)；font-display:swap 避免文字等字体
   原 @font-face 在 common.min.css 且带 ?1021 版本号（CDN 已缓存，改不动），
   本文件加载顺序在其之后，同族名后声明者生效，故在此覆盖。 */
@font-face {
    font-family: 'ff400w';
    font-display: swap;
    src: url('../font/SourceHanSansCN-Regular.woff2') format('woff2');
}

/* 4. index-box2 浅蓝底纹：原 PNG 610KB（实际是近乎纯色的噪点图），换 3.4KB WebP */
.index .index-box2 {
    background-image: url('../image/index-box2-bg.webp');
}

/* 5. 字体族整体切到 ff400w（只指 woff2）：common.min.css 里 ff400 指向 1.1MB TTF，
   仅改 @font-face 浏览器仍会拉 TTF，所以把引用该族名的规则一并覆盖，令 TTF 不再被请求。 */
html,
body,
#header .header-wrap .head-right .nav dt a {
    font-family: 'ff400w', "PingFang SC", Helvetica, "Microsoft YaHei", arial, sans-serif;
}

/* 6. 首屏标题不再走 animate.css 的淡入：fadeInUp 期间文字不可见，
   会把桌面端 LCP 推迟到动画结束（实测 LCP 元素就是 .yb-slide-title）。 */
.yb-slide-title,
.yb-slide-description,
.yb-slide-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* 7. 手机端不再下载思源黑体（WOFF2 576KB 占移动端总流量 15%）：
   ff400w 只留给桌面，≤1024px 全部走系统字体。iOS 的苹方、Android 的
   Noto Sans CJK 与思源黑体同源，观感几乎无差别；页面里没有任何元素
   再引用 ff400w，浏览器就不会发起该字体请求。 */
@media (max-width: 1024px) {
    html,
    body,
    #header .header-wrap .head-right .nav dt a,
    .yb-slide-title,
    .yb-slide-description {
        font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Source Han Sans SC", arial, sans-serif;
    }
}