/* ===== 模具方案页面专属样式 ===== */
/* 所有类名使用 .mj- 前缀，避免与其他页面冲突 */

/* ===== Banner 图片切换过渡（使用通用 g_banner 结构） ===== */
#mjBannerImg {
    transition: opacity .3s ease;
}

/* ===== Banner 与联系我们页面(lxwm)完全一致 ===== */
.mj-banner-tall {
    position: relative;
    min-height: clamp(360px, 38vw, 600px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: #0056b7;
}

.mj-banner-tall .x-con {
    width: 100%;
    min-height: clamp(360px, 38vw, 600px);
    position: relative;
    display: flex;
    align-items: flex-end;
}

.mj-banner-tall .public-img {
    position: absolute;
    inset: 0;
}

.mj-banner-tall .public-img::before {
    display: none;
}

.mj-banner-tall .public-img::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 21, 47, .78), rgba(7, 21, 47, .36) 58%, rgba(7, 21, 47, .08));
    content: "";
}

.mj-banner-tall .public-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mj-banner-tall .container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 80px 0 clamp(60px, 7vw, 110px);
}

/* ===== Banner 大标题（与联系我们页面一致） ===== */
.mj-banner-tall .x-title {
    margin: 0;
    color: #fff;
    font-size: .50rem !important;
    font-weight: 400;
    line-height: calc(60/50);
    max-width: none;
    letter-spacing: normal;
}

/* muju 的 section 同时带 g_banner 与 x-ny-banner 两个类，
   会命中全局 .x-ny-banner .x-con .container .x-title（4 个类，权重 0,4,0）
   的 font-md（MiSans Demibold）；products.html 用的是 font-mr（MiSans Regular）。
   这里用同等权重选择器覆盖为 font-mr，否则会被全局规则压过。 */
.mj-banner-tall .x-con .container .x-title {
    font-family: 'font-mr', 'PingFang SC', 'Microsoft YaHei', 'Microsoft YaHei UI', 'SimSun', 'SimHei', 'Arial';
}

.mj-banner-tall .x-title br {
    display: none;
}

/* ===== Banner 小字介绍（与 products.html 的 .x-p 统一） ===== */
.mj-banner-desc {
    max-width: 6.6rem;
    margin: .22rem 0 0;
    /* products.html banner 描述为 rgba(255,255,255,.75)，此处对齐 */
    color: rgba(255, 255, 255, .75);
    font-size: .18rem;
    line-height: calc(32/18);
    font-weight: 400;
}

/* ============================================================
   移动端 Banner 文案排版统一 —— 对齐 products.html
   基准（products.html @390px，根字号 50px）：
     .container 走全局 width:90%，左右各留 25px 安全边距
     h1.x-title 25px（= .50rem，由 head.html 的 banner-typography-unify.css 统一）
     banner 描述 9px / line-height 16px
   muju 与 products 的标题同为 <h1 class="x-title font50">，
   全站统一样式已保证字号一致，此处**不再覆盖 font-size**，
   只修正原本错位的容器宽度与左右内边距（原为 width:100% + 左右 padding 0）。
   ============================================================ */
@media (max-width: 991px) {
    .mj-banner-tall,
    .mj-banner-tall .x-con {
        min-height: clamp(360px, 38vw, 600px);
    }

    .mj-banner-tall .container {
        /* 恢复全局 .container 的 90% 宽度与居中，保留安全边距 */
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 48px 0 36px;
    }

    /* 描述文案：仅解除桌面端 6.6rem 宽度限制并贴合移动端间距，
       字号/行高沿用全站基准 .18rem / calc(32/18)，与 products 的 .x-p 等值 */
    .mj-banner-desc {
        max-width: 100%;
        margin-top: .1rem;
    }
}

/* ===== 数据条 ===== */
.mj-stats {
    padding: .45rem 0;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.mj-stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .2rem;
    text-align: center;
}

.mj-stat-item {
    position: relative;
}

.mj-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: .55rem;
    background: linear-gradient(180deg, transparent, #d8e2ef, transparent);
}

.mj-stat-num {
    font-size: .44rem;
    font-weight: 700;
    color: #0056b7;
    line-height: 1.2;
    font-family: 'font-shuzi', 'PingFang SC', 'Microsoft YaHei', Arial;
}

.mj-stat-num span {
    font-size: .2rem;
    font-weight: 400;
    margin-left: 2px;
}

.mj-stat-label {
    margin-top: .08rem;
    font-size: .15rem;
    color: #687b90;
}

/* ===== 分类导航（Tab切换）- 与产品页面一致 ===== */
.mj-cat-nav {
    background: transparent;
    border-bottom: none;
    padding: 0;
    margin-top: -.6rem;
    position: relative;
    z-index: 10;
}

.mj-cat-nav .container {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
    padding: .1rem .3rem;
}

.mj-cat-link {
    position: relative;
    padding: .25rem .4rem;
    font-size: .2rem;
    font-weight: 500;
    color: #8a9bb0;
    border: none;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
    line-height: 1.5;
}

.mj-cat-link::after {
    display: none;
}

.mj-cat-link:hover {
    color: #0056b7;
    background: transparent;
    transform: none;
}

.mj-cat-link.active {
    color: #0056b7;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
    font-weight: 700;
}

/* ===== Tab 内容区 ===== */
.mj-tab-content {
    background: #f6f9fc;
    padding: .6rem 0 .8rem;
}

.mj-tab-content .mj-section {
    display: none;
}

.mj-tab-content .mj-section.active {
    display: block;
    animation: mjFadeIn .35s ease;
}

@keyframes mjFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 分类标题 ===== */
.mj-section-head {
    text-align: center;
    margin-bottom: .45rem;
}

.mj-section-num {
    display: inline-block;
    font-size: .15rem;
    font-weight: 600;
    color: #0056b7;
    letter-spacing: 4px;
    margin-bottom: .08rem;
}

.mj-section-title {
    font-size: .36rem;
    font-weight: 700;
    color: #1a2b45;
    line-height: 1.3;
}

.mj-section-title small {
    display: block;
    font-size: .15rem;
    font-weight: 400;
    color: #8a9bb0;
    letter-spacing: 3px;
    margin-top: .06rem;
    text-transform: uppercase;
}

.mj-section-desc {
    max-width: 680px;
    margin: .18rem auto 0;
    font-size: .15rem;
    line-height: 1.8;
    color: #687b90;
}

/* ===== 解决方案大卡片（三栏布局） ===== */
.mj-solFlex {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 86, 183, .06);
    border: 1px solid #e8eef5;
    min-height: 4.5rem;
}

/* 左侧：当前产品文字 */
.mj-solLeft {
    flex: 0 0 28%;
    max-width: 28%;
    padding: .5rem .4rem;
    border-right: 1px solid #eef2f7;
    position: relative;
}

.mj-solLeftItem {
    display: none;
    animation: mjFadeIn .35s ease;
}

.mj-solLeftItem.active {
    display: block;
}

.mj-solLeftTitle {
    font-size: .3rem;
    font-weight: 700;
    color: #1a2b45;
    margin-bottom: .25rem;
    line-height: 1.4;
}

.mj-solLeftText {
    font-size: .15rem;
    line-height: 2;
    color: #666;
}

.mj-solLeftText p {
    margin: 0 0 .05rem;
}

.mj-solLeftText .mj-cavity {
    color: #0056b7;
    font-weight: 600;
    margin-bottom: .1rem;
}

/* 中间：产品大图 */
.mj-solCenter {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    overflow: hidden;
}

.mj-solCenter::before {
    content: '';
    position: absolute;
    width: 85%;
    padding-top: 85%;
    background: radial-gradient(circle, #eef4fb 0%, #f5f8fc 60%, transparent 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mj-solImgWrap {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.mj-solImgItem {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}

.mj-solImgItem.active {
    opacity: 1;
    visibility: visible;
}

.mj-solImgItem img {
    max-width: 90%;
    max-height: 3.8rem;
    object-fit: contain;
}

/* 右侧：产品垂直导航 */
.mj-solRight {
    flex: 0 0 24%;
    max-width: 24%;
    padding: .5rem .3rem .5rem .4rem;
    border-left: 1px solid #eef2f7;
    display: flex;
    align-items: center;
}

.mj-solNav {
    width: 100%;
}

.mj-solNav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.mj-solNav ul::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: #e0e8f0;
}

.mj-solNav li {
    position: relative;
    padding: .22rem 0 .22rem .35rem;
    font-size: .17rem;
    color: #8a9bb0;
    cursor: pointer;
    transition: all .25s ease;
    line-height: 1.4;
}

.mj-solNav li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    border: 2px solid #c0cddc;
    border-radius: 50%;
    background: #fff;
    transition: all .25s ease;
    z-index: 2;
}

.mj-solNav li:hover {
    color: #0056b7;
}

.mj-solNav li.active {
    color: #0056b7;
    font-weight: 700;
    font-size: .19rem;
}

.mj-solNav li.active::before {
    background: #0056b7;
    border-color: #0056b7;
    box-shadow: 0 0 0 4px rgba(0, 86, 183, .15);
}

/* ===== 底部CTA ===== */
.mj-cta {
    padding: .65rem 0;
    background: linear-gradient(135deg, #003d82 0%, #0056b7 100%);
    text-align: center;
    color: #fff;
}

.mj-cta-title {
    font-size: .32rem;
    font-weight: 700;
    margin-bottom: .12rem;
}

.mj-cta-desc {
    font-size: .15rem;
    opacity: .85;
    margin-bottom: .28rem;
}

.mj-cta-btn {
    display: inline-block;
    padding: .13rem .42rem;
    background: #fff;
    color: #0056b7;
    font-size: .16rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all .3s ease;
}

.mj-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    .mj-stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: .3rem;
    }

    .mj-stat-item:nth-child(2)::after {
        display: none;
    }

    .mj-solFlex {
        flex-direction: column;
        min-height: 0;
    }

    .mj-solLeft {
        flex: 1 1 auto;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #eef2f7;
    }

    .mj-solCenter {
        min-height: 3rem;
    }

    /* 列方向下必须解除基础的 flex-basis/max-width:24%，
       否则右栏宽度被压成容器宽度的 24%（实测约 106px），文字竖排溢出 */
    .mj-solRight {
        flex: 1 1 auto;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid #eef2f7;
    }

    /* 移动端：垂直导航改为横向排布，避免窄栏文字换行 */
    .mj-solNav ul {
        display: flex;
        flex-wrap: wrap;
        gap: .1rem;
    }

    .mj-solNav ul::before {
        display: none;
    }

    .mj-solNav li {
        flex: 1 1 auto;
        padding: .12rem .16rem;
        font-size: .15rem;
        text-align: center;
        white-space: nowrap;
        border: 1px solid #e0e8f0;
        border-radius: 999px;
    }

    .mj-solNav li::before {
        display: none;
    }

    .mj-solNav li.active {
        font-size: .15rem;
        color: #fff;
        background: #0056b7;
        border-color: #0056b7;
    }
}

@media (max-width: 767px) {
    .mj-stats {
        padding: .3rem 0;
    }

    .mj-stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: .2rem;
    }

    .mj-stat-num {
        font-size: .34rem;
    }

    .mj-stat-label {
        font-size: .12rem;
    }

    /* 分类导航：允许横向滑动，避免小屏换行挤压 */
    .mj-cat-nav {
        margin-top: -.35rem;
    }

    .mj-cat-nav .container {
        gap: 0;
        padding: .06rem .1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mj-cat-nav .container::-webkit-scrollbar {
        display: none;
    }

    .mj-cat-link {
        flex: 0 0 auto;
        padding: .12rem .16rem;
        font-size: .14rem;
        white-space: nowrap;
    }

    .mj-tab-content {
        padding: .4rem 0 .6rem;
    }

    .mj-section {
        padding: .45rem 0;
    }

    .mj-section-title {
        font-size: .26rem;
    }

    /* 解决方案卡片：移动端内边距收紧、图片区高度固定 */
    .mj-solLeft {
        padding: .3rem .25rem;
    }

    .mj-solLeftTitle {
        font-size: .22rem;
        margin-bottom: .15rem;
    }

    .mj-solLeftText {
        font-size: .13rem;
        line-height: 1.9;
    }

    .mj-solCenter {
        min-height: 2.5rem;
    }

    .mj-solImgItem {
        padding: .15rem;
    }

    .mj-solImgItem img {
        max-width: 100%;
        max-height: 2.2rem;
    }

    .mj-solRight {
        padding: .25rem;
    }

    .mj-solNav li {
        padding: .1rem .14rem;
        font-size: .13rem;
    }

    .mj-solNav li.active {
        font-size: .13rem;
    }

    /* Banner 文案：移动端缩小并撑满宽度 */
    .mj-banner-tall .container {
        padding: 60px 0 40px;
    }

    .mj-banner-desc {
        max-width: 100%;
        font-size: .15rem;
        line-height: 1.8;
    }

    .mj-cta {
        padding: .45rem 0;
    }

    .mj-cta-title {
        font-size: .24rem;
    }

    .mj-cta-desc {
        font-size: .13rem;
        line-height: 1.8;
    }

    .mj-cta-btn {
        padding: .11rem .34rem;
        font-size: .15rem;
    }
}

/* ===== 超小屏（iPhone SE 等 ≤374px） ===== */
@media (max-width: 374px) {
    .mj-cat-link {
        padding: .1rem .12rem;
        font-size: .13rem;
    }

    .mj-stat-num {
        font-size: .3rem;
    }

    .mj-solNav li {
        font-size: .12rem;
        padding: .09rem .1rem;
    }

    .mj-solNav li.active {
        font-size: .12rem;
    }
}
