/*固件css*/
/* ========== RED|LINE 分类标题样式 ========== */
h4.parent-redline .oop-parent-name {
    color: #ffd5d5 !important;
}

/* ========== BLUE|LINE 分类标题样式 ========== */
h4.parent-blueline .oop-parent-name {
    color: #d5e3ff !important;
}

/* ========== RED|LINE & BLUE|LINE 子标题公共样式 ========== */
#redline .oop-child-title,
#blueline .oop-child-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    font-size: 3.5rem;
}

/* ========== RED|LINE 子标题颜色 ========== */
#redline .oop-child-title {
    color: #ffd5d5 !important;
}

/* ========== BLUE|LINE 子标题颜色 ========== */
#blueline .oop-child-title {
    color: #d5e3ff !important;
}

/* ========== GREEN|LINE 子标题颜色 ========== */
#greenline .oop-child-title {
    color: #75af828a !important;
}

/* ========== GREY|LINE 子标题颜色 ========== */
#greyline .oop-child-title {
    color: #afafafc4 !important;
}

/* ========== RED|LINE & BLUE|LINE 父分类 h4 高度 ========== */
#redline > h4,
#blueline > h4 {
    height: 3rem;
}

/* ========== RED|LINE & BLUE|LINE h4::before 标题栏 ========== */
#redline > h4::before,
#blueline > h4::before {
    content: 'FIRMWARE BY CATEGORIES';
    text-align: center;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-shadow: 2px 2px 4px #fff;
    color: var(--wd-primary-color);
    font-size: 30px;
}

/* ========== GREEN|LINE & GREY|LINE 子标题绝对定位 ========== */
#greenline .oop-child-title,
#greyline .oop-child-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    font-size: 4rem;
    line-height: 4.5rem;
}

/* ========== GREEN|LINE & GREY|LINE h4::before 标题栏 ========== */
#greenline > h4::before,
#greyline > h4::before {
    content: 'SOLUTIONS';
    text-align: center;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-shadow: 2px 2px 4px #fff;
    color: var(--wd-primary-color);
    font-size: 30px;
}

/* ========== 通用子标题阴影 ========== */
.oop-child-title {
    text-shadow: 2px 2px 4px #fff;
}

/* ========== parent-redline 子标题字号 (表格模式) ========== */
.parent-redline .oop-child-title {
    font-size: 30px;
}

/* ========== 子分类卡片容器 ========== */
.oop-child-term .oop-child-category {
    border: 0px solid;
    margin: 60px 20px 30px;
}

/* ========== 子分类图片区域 ========== */
.oop-child-term .oop-child-category .mtt-pic {
    background: #fff;
    position: relative;
    width: 100%;
    block-size: calc(100% + 10px) !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
    transition: all 0.2s linear;
    padding: 80px;
    box-shadow: 0 0 6px var(--wd-primary-color);
}

/* ========== 子分类图片 ========== */
.oop-child-term .oop-child-category .mtt-pic > img {
    transition: all 0.2s linear;
    height: 200px;
    width: 200px;
}

/* ========== 光扫特效伪元素 ========== */
.oop-child-term .oop-child-category .mtt-pic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 100%;
    width: 20px;
    background: #fff;
    opacity: 0;
    transition: all 0.2s linear;
    -webkit-transform: skewX(20deg) translateX(0) translateY(-50%);
    transform: skewX(20deg) translateX(0) translateY(-50%);
    -webkit-transition: all 0.3s linear;
}

/* ========== 子分类内容区（图片外层容器） ========== */
.oop-child-term .oop-child-category > div {
    position: relative;
}

/* ========== 子分类标题六边形样式 ========== */
.oop-child-term .oop-child-category > div h4 {
    -webkit-clip-path: polygon(50% 0%, 100% 0, 100% 35%, 100% 63%, 100% 80%, 51% 100%, 0 80%, 0 51%, 0% 35%, 0 0);
    clip-path: polygon(50% 0%, 100% 0, 100% 35%, 100% 63%, 100% 80%, 51% 100%, 0 80%, 0 51%, 0% 35%, 0 0);
    background: linear-gradient(to right, var(--wd-primary-color), #6088D6);
    padding: 0 10px;
    color: #fff;
    min-height: 120px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: absolute !important;
    border-radius: 15px;
    overflow: hidden;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 20px);
    font-size: 24px;
    font-weight: 500;
}

/* ========== 子分类按钮 ========== */
.oop-child-term .oop-child-category > div > a {
    padding: 10px 50px;
    font-size: 16px;
    white-space: nowrap;
    color: #fff;
    display: inline-block;
    margin: 0 auto;
    background: none;
    border: 1px solid #fff;
    text-transform: capitalize;
    border-radius: 30px;
    position: absolute;
    overflow: hidden;
    padding: 17px 50px;
    background: linear-gradient(to right, var(--wd-primary-color), #6088D6);
    left: 50%;
    transform: translateX(-50%);
    bottom: -24px;
}

/* ========== 子分类卡片悬停 ========== */
.oop-child-term .oop-child-category:hover {
    cursor: pointer;
    border-radius: 0.5rem !important;
}

/* ========== 光扫动画悬停触发 ========== */
.oop-child-term .oop-child-category:hover .mtt-pic::after {
    opacity: 1;
    -webkit-transform: skewX(20deg) translateX(800px) translateY(-50%);
    transform: skewX(20deg) translateX(800px) translateY(-50%);
}

/* ========== 图片悬停放大 ========== */
.oop-child-term .oop-child-category:hover .mtt-pic > img {
    transform: scale(1.2);
}

/* ========== 平板设备响应式处理 (768px - 1024px) ========== */
@media (min-width: 768px) and (max-width: 1024px) {
    .oop-child-term .oop-child-category {
        margin: 5.6rem 1rem 1.5rem;
    }

    .oop-child-term .oop-child-category .mtt-pic {
        padding: 1rem;
    }

    .oop-child-term .oop-child-category > div h4 {
        min-height: 5.6rem;
        font-size: 1.2rem;
    }

    #redline > h4::before,
    #blueline > h4::before,
    #greenline > h4::before,
    #greyline > h4::before,
    .parent-redline .oop-child-title {
        font-size: 1.8rem;
    }

    .oop-child-term .oop-child-category > div > a {
        bottom: -20px;
        font-size: 0.8rem;
        padding: 0.8rem 2rem;
    }
}

/* ========== 手机设备响应式处理 (<768px) ========== */
@media (max-width: 768px) {
    .oop-child-term .oop-child-category .mtt-pic {
        padding: 0.4rem;
    }

    #redline > h4::before,
    #blueline > h4::before,
    #greenline > h4::before,
    #greyline > h4::before,
    .parent-redline .oop-child-title {
        font-size: 1.4rem !important;
        white-space: nowrap;
    }

    .oop-child-term .oop-child-category > div h4 {
        top: -50px;
        min-height: 4.5rem;
        width: calc(100% + 1rem);
        font-size: 1.2rem;
    }

    .oop-child-term .oop-child-category > div > a {
        font-size: 0.8rem;
        padding: 0.8rem 2rem;
    }
}