/* 基础样式重置 */
.demo {
    padding: 2em 0;
}

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

/* 导航容器核心样式 */
.ProductSection {
    box-shadow: 0px 0px 15px #dbe9f2;
    border-radius: 10px;
    --swiper-navigation-size: 30px;
    background-color: #ffffff;
    margin-top: -105px;
    position: relative;
}

/* ProductNavigationLi 动画效果 */
.ProductNavigationLi {
    transition: background-color 0.4s;
}

/* 激活/点击时动画 */
.ProductNavigationLi.active {
    background-color: var(--cproj-color-primary);
}

.ProductSectionNormalcyText {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Swiper导航按钮样式 */
.ProductPrev,
.ProductNext {
    width: 50px;
    height: 100%;
    top: auto;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cproj-color-primary);
}

.ProductPrev {
    left: 0px;
    right: auto;
}

.ProductNext {
    right: 0px;
    left: auto;
}

/* Tab导航栏布局 */
.tab .nav-tabs {
    border: none;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-tabs>li {
    margin: 0px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* 导航链接样式 */
.tab .nav-tabs li a {
    padding: 0px 20px;
    margin: 0px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(43, 43, 43, 1);
    text-transform: uppercase;
    border: none;
    z-index: 1;
    position: relative;
    transition: all 0.3s ease 0s;
    text-align: center;
    border-radius: 157px;
    display: inline-block;
    background: none;
    overflow: hidden;
}

/* 导航文字切换动画 */
.ProductSectionTriggerText {
    opacity: 0;
    color: var(--cproj-color-primary);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab .nav-tabs li a:hover .ProductSectionTriggerText {
    opacity: 1;
    transform: translateY(0);
}

.ProductSectionNormalcyText {
    opacity: 1;
    color: rgb(0, 0, 0);
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab .nav-tabs li a:hover .ProductSectionNormalcyText {
    opacity: 0;
    transform: translateY(20px);
}

/* 激活状态导航样式 */
.tab .nav-tabs li.active a {
    border: none;
    background-color: transparent;
}

.tab .nav-tabs li.active a .ProductSectionTriggerText {
    opacity: 1;
    transform: translateY(0);
    color: #ffffff;
}

.tab .nav-tabs li.active a .ProductSectionNormalcyText {
    opacity: 0;
    transform: translateY(20px);
}

/* Tab面板样式 */
.tab .tab-content {
    padding: 10px;
    font-size: 17px;
    color: #6f6f6f;
    line-height: 30px;
    letter-spacing: 1px;
    position: relative;
}

/* 内容块布局样式 */
.ProductBlockBox:nth-child(1) .ProductBlockContainer {
    padding: 0px 25px 0px 25px;
    margin-bottom: 70px;
    display: flex;
    justify-content: space-around;
}

.ProductBlockBox:nth-child(even) .ProductBlockContainer {
    flex-direction: row-reverse;
}

.ProductBlockBox:nth-child(odd) {
    background-color: transparent;
}

/* 背景色规则 */
.ProductBlockBox.ProductBackgroundBlue:nth-child(4n+2) {
    background-color: #ebf1f7;
}

.ProductBlockBox.ProductBackgroundBlue:nth-child(4n+4) {
    background-color: #e8f6fa;
}

.ProductBlockBox.ProductBackgroundPink:nth-child(4n+2) {
    background-color: #f7ebeb;
}

.ProductBlockBox.ProductBackgroundPink:nth-child(4n+4) {
    background-color: #faf3e8;
}

/* 内容块内部布局 */
.ProductRemainingContent {
    width: 550px;
}

.ProductRemainingContent p img {
    width: 100%;
    padding: 0px 50px;
}

.ProductBlockBoxContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0px 25px;
    width: 640px;
}

.ProductBackground .ProductBlockBoxContent {
    width: auto;
}

.ProductBlockBox .ProductBlockContainer {
    padding: 50px 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端响应式适配 */
@media only screen and (max-width: 479px) {
    .tab .nav-tabs {
        border: none;
    }

    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
    }

    .ProductSection {
        margin-top: -95px;
        padding: 0 20px;
    }

    .tab .nav-tabs li a {
        font-size: 13px;
        padding: 0px 10px;
        margin: 0;
        border-bottom: 2px solid transparent;
    }

    .ProductBlockBoxContent,
    .ProductRemainingContent {
        width: 100%;
        margin: 0;
    }

    .ProductBlockBox .ProductBlockContainer {
        flex-direction: column;
        padding: 20px 10px;
    }
}

/* 平板端适配 */
@media only screen and (min-width: 480px) and (max-width: 991px) {
    .ProductBlockBoxContent {
        width: 50%;
    }

    .ProductRemainingContent {
        width: 45%;
    }
}