/* ===== 模具方案页面专属样式 ===== */
/* 所有类名使用 .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;
}

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

/* ===== Banner 小字介绍（与联系我们页面一致） ===== */
.mj-banner-desc {
    max-width: 6.6rem;
    margin: .22rem 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: .18rem;
    line-height: calc(32/18);
    font-weight: 400;
}

@media (max-width: 991px) {
    .mj-banner-tall,
    .mj-banner-tall .x-con {
        min-height: clamp(360px, 38vw, 600px);
    }
}

/* ===== 数据条 ===== */
.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: 1199px) {
    .mj-solDesc {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

@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;
    }

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

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

    .mj-solRight {
        border-left: none;
        border-top: 1px solid #eef2f7;
    }
}

@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 .container {
        gap: .08rem;
    }

    .mj-cat-link {
        padding: .07rem .18rem;
        font-size: .13rem;
    }

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

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

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

    .mj-solDesc {
        padding: .3rem .25rem;
    }

    .mj-solTitle {
        font-size: .19rem;
    }

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

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

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

    .mj-solNav {
        padding: .15rem .2rem;
    }

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

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