@charset "utf-8";
/* ==========================================================================
   移动端适配（官网前端）
   这个站是 Vue 打包产物，没有源码，所以用一层外部 CSS 覆盖；
   只在 <=991px / <=767px 生效，桌面端表现保持不变。
   ========================================================================== */

/* ---------- 全局 ---------- */
@media (max-width: 991px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
        -webkit-text-size-adjust: 100%;
    }

    img {
        max-width: 100%;
    }

    /* 轮播换页时下一张会向右溢出几像素，在根容器上裁掉 */
    #app {
        overflow-x: hidden;
    }

    /* 内容容器左右留白收窄 */
    .layout-width {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* 版块标题统一缩小，原来 40px+ 会撑破屏幕 */
    .blend h3 {
        font-size: 24px !important;
        line-height: 1.35 !important;
    }

    .blend p {
        font-size: 13px !important;
        line-height: 1.7 !important;
        padding: 0 4px;
    }

    .blend {
        padding-top: 24px !important;
        padding-bottom: 0 !important;
    }

    /* 长英文/数字不撑破 */
    p,
    li,
    h1,
    h2,
    h3,
    h4,
    span {
        overflow-wrap: break-word;
    }

    /* ---------- 头部 ---------- */
    .el-header.head {
        height: auto !important;
        padding: 0 !important;
    }

    .head-tit {
        font-size: 12px !important;
        line-height: 1.5;
        padding: 5px 0 4px !important;
    }

    /* 欢迎语整句太长，手机上只留语言/阿里入口 */
    .head-tit .title {
        display: none !important;
    }

    .head-tit-r {
        width: 100%;
        justify-content: flex-end !important;
    }

    .head-tit-r .shop,
    .head-tit-r .el-dropdown-link {
        font-size: 12px !important;
    }

    .navList {
        height: 58px !important;
        min-height: 58px;
    }

    .navList .logo img {
        height: 36px !important;
        width: auto !important;
    }

    /* 汉堡按钮做成 42x42 的易点区域 */
    .nav-drawer {
        width: 42px !important;
        height: 42px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-drawer .el-icon-s-grid {
        font-size: 26px !important;
        color: #333 !important;
    }

    /* 抽屉宽度：内容区 78%，留出遮罩可点 */
    .el-drawer {
        width: 78% !important;
        max-width: 320px;
    }

    .el-drawer .el-drawer__body {
        padding: 0 !important;
    }

    /* ---------- 轮播 ---------- */
    .banner,
    .banner .el-carousel__container {
        height: 190px !important;
        overflow: hidden;
    }

    .banner .el-carousel__item img,
    .banner img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block;
    }

    /* 轮播指示点收小 */
    .banner .el-carousel__indicators--horizontal {
        bottom: 6px;
    }

    /* ---------- 产品分类 ---------- */
    .classify {
        margin-top: 20px !important;
        padding-top: 0 !important;
    }

    .classify ul {
        flex-wrap: wrap;
        gap: 12px 8px;
        margin-top: 18px !important;
        justify-content: space-between !important;
    }

    .classify li {
        width: calc(33.333% - 8px) !important;
        box-sizing: border-box;
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .classify li span:first-child {
        width: 100%;
        height: auto !important;
    }

    .classify li img {
        width: 100% !important;
        height: 96px !important;
        object-fit: contain;
        display: block;
    }

    .classify li span:last-child {
        font-size: 12px !important;
        margin-top: 6px;
        text-align: center;
    }

    /* ---------- 新品推荐 ---------- */
    .recommend {
        padding-top: 20px !important;
    }

    .recommend-top {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .recommend .left {
        width: 100% !important;
        height: auto !important;
    }

    .recommend .left h3 {
        font-size: 24px !important;
        line-height: 1.35 !important;
        margin-top: 0 !important;
    }

    .recommend .left p {
        font-size: 13px !important;
        line-height: 1.8 !important;
    }

    /* 桌面端这一块是 flex:0 0 500px，改成竖排后 flex-basis 会变成高度，
       必须显式改回 auto，否则图片下面空出 170px */
    .recommend .right {
        width: 100% !important;
        flex: 0 0 auto !important;
        margin: 12px 0 0 0 !important;
        height: auto !important;
        position: static !important;
    }

    .recommend .right img {
        width: 100% !important;
        height: auto !important;
    }

    /* 产品滚动条：卡片缩到 150px，一屏能露出两张 */
    .recommend .list {
        margin-top: 10px !important;
    }

    .recommend .list ul li {
        width: 150px !important;
        height: auto !important;
        flex: 0 0 150px !important;
    }

    .recommend .list ul li img {
        width: 150px !important;
        height: 150px !important;
        object-fit: cover;
    }

    .recommend .list .tit {
        font-size: 14px !important;
    }

    .recommend .list .be {
        font-size: 12px !important;
    }

    .recommend .control {
        justify-content: center !important;
        height: auto !important;
        padding: 12px 0 20px !important;
    }

    /* ---------- 企业简介 ---------- */
    .about {
        padding-top: 10px !important;
    }

    .about .pel {
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        padding-top: 12px !important;
    }

    .about .pel .img,
    .about .pel .num,
    .about .pel .company {
        width: 100% !important;
        height: auto !important;
    }

    .about .pel .img img {
        width: 100% !important;
        height: auto !important;
    }

    /* 30TH 装饰数字在手机上容易压住文字，缩一号并居中 */
    .about .pel .num {
        display: none !important;
    }

    .about .company {
        padding: 8px 0 0 !important;
    }

    /* 这几块原来写死 400px，小屏会左右溢出 */
    .about .company .introduce,
    .about .company h3,
    .about .company p,
    .about-right .patent .content,
    .about-right .patent .content * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .about .company h3 {
        font-size: 20px !important;
    }

    .about .company p {
        font-size: 13px !important;
        line-height: 1.85 !important;
    }

    .about-right {
        flex-direction: column !important;
        padding: 20px 16px 0 !important;
        box-sizing: border-box;
        height: auto !important;
        margin-top: 0 !important;
    }

    .about-right .patent {
        width: auto !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 16px 0 0 0 !important;
    }

    .about-right .patent .content {
        width: auto !important;
    }

    .about-right .img {
        width: 100% !important;
        height: auto !important;
        margin-top: 16px;
    }

    .about-right .img img {
        width: 100% !important;
        height: auto !important;
    }

    /* ---------- 留言 ---------- */
    .message {
        height: auto !important;
        padding: 24px 0 30px !important;
    }

    .message .content {
        flex-direction: column !important;
        align-items: stretch !important;
        padding-top: 0 !important;
    }

    .message .left,
    .message .right {
        width: 100% !important;
    }

    .message .left h3 {
        font-size: 24px !important;
    }

    .message .left p {
        font-size: 13px !important;
        line-height: 1.8 !important;
    }

    .message .right {
        margin-top: 18px;
        background: #fff;
        padding: 16px 14px;
        box-sizing: border-box;
    }

    .message .right h3.title {
        font-size: 18px !important;
    }

    /* 表单控件铺满，字号 16px 防 iOS 自动放大 */
    .message .form .el-input__inner,
    .message .form textarea,
    .message .form input {
        width: 100% !important;
        font-size: 16px !important;
        box-sizing: border-box;
    }

    .message .form .el-form-item {
        margin-bottom: 14px !important;
    }

    /* 标签改成上下结构，输入框才能铺满 */
    .message .form .el-form-item__label {
        float: none !important;
        display: block !important;
        width: auto !important;
        text-align: left !important;
        padding: 0 0 4px 0 !important;
        line-height: 1.6 !important;
    }

    .message .form .el-form-item__content {
        margin-left: 0 !important;
    }

    .message .form .el-button {
        width: 100%;
    }

    /* ---------- 联系页地图 ---------- */
    .map__x {
        height: 260px !important;
        margin-top: 12px;
    }

    /* 面包屑靠右会显得奇怪，手机上左对齐 */
    .breadcrumb,
    .el-breadcrumb {
        text-align: left !important;
        padding: 10px 0 0 !important;
    }

    /* ---------- 页脚 ---------- */
    /* Element 的 el-footer 默认写死 60px 高，手机上一屏内容会被裁掉 */
    .el-footer {
        height: auto !important;
        padding: 0 !important;
        min-height: 0 !important;
    }

    .foot {
        height: auto !important;
    }

    .foot-bottom {
        padding: 16px 0 !important;
        font-size: 12px !important;
        line-height: 1.8;
        height: auto !important;
    }

    .foot-bottom .layout-width {
        text-align: center;
        word-break: break-word;
    }

    /* 页脚联系方式：桌面是多列横排，手机上改成一列，否则一个字一行 */
    .foot-contact {
        width: 100% !important;
        height: auto !important;
        padding-bottom: 4px !important;
    }

    .foot-contact h3 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    .foot-contact ul {
        display: block !important;
        width: 100% !important;
    }

    .foot-contact li {
        display: flex !important;
        width: 100% !important;
        float: none !important;
        margin: 0 0 12px !important;
        align-items: flex-start;
    }

    .foot-contact li span.img {
        flex: 0 0 40px;
        margin-right: 10px;
    }

    .foot-contact li span:last-child {
        flex: 1 1 auto;
        text-align: left;
        font-size: 13px !important;
        line-height: 1.7 !important;
        word-break: break-word;
    }

    .foot-list {
        width: 100% !important;
        margin-top: 8px;
    }

    .foot-list ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px 0;
    }

    .foot-list ul li {
        font-size: 13px !important;
    }

    .foot-list p {
        text-align: center !important;
        font-size: 12px !important;
        line-height: 1.8 !important;
        margin-top: 10px !important;
        position: static !important;
    }

    .foot-img img {
        width: 100% !important;
        height: auto !important;
    }

    .go-top {
        right: 12px !important;
        bottom: 12px !important;
    }
}

/* ---------- 超小屏补充 ---------- */
@media (max-width: 380px) {
    .head-tit {
        font-size: 11px !important;
    }

    .banner,
    .banner .el-carousel__container {
        height: 160px !important;
    }

    .recommend .list li {
        width: 132px !important;
    }

    .recommend .list li img {
        width: 132px !important;
        height: 132px !important;
    }
}

/* ---------- 抽屉里的导航菜单（由 mobile.js 注入） ---------- */
.yd-mnav {
    list-style: none;
    margin: 0;
    padding: 8px 0 20px;
    background: #fff;
}

.yd-mnav li {
    border-bottom: 1px solid #f0f0f0;
}

.yd-mnav > li > a,
.yd-mnav > li > span.yd-mnav-parent {
    display: block;
    padding: 14px 20px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.yd-mnav > li > a:active {
    background: #f7f7f7;
}

.yd-mnav .yd-mnav-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
    background: #fafafa;
}

.yd-mnav .yd-mnav-sub a {
    display: block;
    padding: 11px 20px 11px 34px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.yd-mnav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.yd-mnav-head strong {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.yd-mnav-close {
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    background: #fff;
}
