.demo {
    padding: 2em 0;
}

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

.ModalitiesSection {
    box-shadow: 0px 0px 15px #dbe9f2;
    border-radius: 10px;
    --swiper-navigation-size: 30px;
    /* 设置按钮大小 */
    background-color: #ffffff;
    margin-top: -105px;
}

.ModalitiesNavigationLi {
    position: static;
    transition: background-color 0.4s;
}

.ModalitiesNavigationLi.active {
    background-color: var(--cproj-color-primary);
}

/* 注释ModalitiesSelector样式 */
/* .ModalitiesSelector {
    display: inline-block;
    position: absolute;
    height: 100%;
    transition: 0.3s ease;
    background-color: rgb(12, 118, 201);
    border-radius: 157px;
    margin: 0px;
} */

.ModalitiesPrev {
    left: 0px;
    right: auto;
    width: 50px;
    height: 100%;
    top: auto;
    bottom: 0;
}

.ModalitiesNext {
    right: 0px;
    left: auto;
    width: 50px;
    height: 100%;
    top: auto;
    bottom: 0;
}

.tab .nav-tabs {
    border: none;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    /* padding: 20px 0px; */
    position: relative;
}

.nav-tabs>li {
    margin: 0px;
    /* padding: 20px 0px; */
    display: flex;
    justify-content: center;
    position: relative;
}

.tab .nav-tabs li a {
    /* padding: 15px 0px; */
    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;
    /* display: flex; */
    /* justify-content: center; */
    text-align: center;
    border-radius: 157px;
    display: inline-block;
    background: none;
    /* transition: transform 1s ease; */
    overflow: hidden;
    /* flex-direction: column; */
}

.ModalitiesSectionTriggerText {
    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 .ModalitiesSectionTriggerText {
    opacity: 1;
    transform: translateY(0);
}

.ModalitiesSectionNormalcyText {
    opacity: 1;
    color: rgb(0, 0, 0);
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab .nav-tabs li a:hover .ModalitiesSectionNormalcyText {
    opacity: 0;
    transform: translateY(20px);
}

.tab .nav-tabs li.active a {
    border: none;
    border-bottom-color: transparent;
    background-color: rgba(12, 118, 201, 0);
}

.tab .nav-tabs li.active a p {
    color: #ffffff;
    transform: none;
    transition: none;
}

/* .tab .nav-tabs li a:before {
    content: "";
    display: block;
    width: 20%;
    height: 5px;
    border-radius: 10px;
    background: #0070c0;
    position: absolute;
    bottom: 10px;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
} */

.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    transform: scaleX(1);
}

.tab .tab-content {
    padding: 10px;
    font-size: 17px;
    color: #6f6f6f;
    line-height: 30px;
    letter-spacing: 1px;
    position: relative;
}

.ModalitiesSection {
    /* padding: 0px 50px; */
}

.ModalitiesBlocksContainer {
    /* margin-bottom: 50px; */
}

/*********************************************** CategoryContentModalities.php ModalitiesBlockBox**********************************************/

.ModalitiesBlockBox .ModalitiesBlockContainer {
    padding: 50px 25px;
    /* border-radius: 10px; */
    /* margin: 40px 0px; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
}

.ModalitiesBlockBox.ModalitiesBackground:nth-child(4n+2) .ModalitiesBlockContainer {
    background-color: #fff4f0;

}

.ModalitiesBlockBox.ModalitiesBackground:nth-child(4n+4) .ModalitiesBlockContainer {
    background-color: #f0f6fa;
}

.ModalitiesBlockBox.ModalitiesBackground:nth-child(even) {
    background-color: transparent;
}

.ModalitiesBlockBox.ModalitiesBackground:nth-child(odd) .ModalitiesBlockContainer {
    flex-direction: row-reverse;
}

.ModalitiesBlockBox.ModalitiesBackground2:nth-child(4n+1) .ModalitiesBlockContainer {
    background-color: #fff4f0;

}

.ModalitiesBlockBox.ModalitiesBackground2:nth-child(4n+3) .ModalitiesBlockContainer {
    background-color: #f0f6fa;
}

.ModalitiesBlockBox.ModalitiesBackground2:nth-child(odd) {
    background-color: transparent;
}

.ModalitiesBlockBox.ModalitiesBackground2:nth-child(even) .ModalitiesBlockContainer {
    flex-direction: row-reverse;
}

.ModalitiesBlocksWrap .ModalitiesPostTitle {
    font-size: 36px;
    font-weight: 600;
    line-height: 59px;
    color: rgba(0, 0, 0, 1);
    margin: 33px 0px;
}

.ModalitiesBlockBox.ModalitiesBackground {
    padding: 40px 0px;
}

.ModalitiesBlockBoxContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0px 60px;
    width: 50%;
}

.ModalitiesBlockBoxContent h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 35px;
    color: rgba(0, 0, 0, 1);
}

.ModalitiesBlockBoxContent p {
    font-size: 24px;
    font-weight: 400;
    line-height: 43px;
    color: rgba(43, 43, 43, 1);
}

.ModalitiesRemainingContent {
    width: 50%;
}

.ModalitiesRemainingContent p img {
    width: 100%;
    /* padding: 50px; */
}

/*********************************************** CategoryContentModalities.php ModalitiesBlockBox end **********************************************/

/*********************************************** CategoryContentModalities.php card_block  **********************************************/

.card_block_wrap {
    background: rgba(240, 246, 250, 1);
    margin-bottom: 40px;
}

.card_block_container {
    padding: 50px 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card_block_container .card_block_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0px 25px;
    width: 50%;
}

.card_block_container .card_block_content h3 {
    font-size: 42px;
    font-weight: 500;
    line-height: 63px;
    color: rgba(43, 43, 43, 1);
}

.card_block_container .card_block_content p {
    font-size: 24px;
    font-weight: 400;
    line-height: 43px;
    color: rgba(43, 43, 43, 1);
}

.card_block_remaining {
    width: 50%;
    display: flex;
    justify-content: center;
}

/*********************************************** CategoryContentModalities.php card_block end **********************************************/

/*********************************************** CategoryContentModalities.php style1  **********************************************/
.style1-inner {
    margin-bottom: 50px;
}

.style1-left h3 {
    font-size: 42px;
    font-weight: 700;
    line-height: 52px;
    color: rgba(0, 0, 0, 1);
}

.style1-left P {
    font-size: 24px;
    font-weight: 400;
    line-height: 43px;
    color: rgba(43, 43, 43, 1);
}

.style1-right h3 {
    font-size: 36px;
    font-weight: 500;
    line-height: 59px;
    color: rgba(0, 0, 0, 1);
    text-align: center;
    margin: 80px 0px 35px 0px;
}

.style1-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.style1-item {
    width: 320px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 34px;
    margin: 25px;
    border-radius: 40px;
    border: 1px solid rgba(128, 128, 128, 1);
}

.style1-img {
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style1-txt {
    margin: 30px 32px;
}

.style1-txt p {
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
    color: rgba(43, 43, 43, 1);
    text-align: center;
}

/*********************************************** CategoryContentModalities.php style1 end **********************************************/

/*********************************************** CategoryContentModalities.php style2  **********************************************/

.style2-top h3 {
    font-size: 42px;
    font-weight: 700;
    line-height: 52px;
    color: rgba(0, 0, 0, 1);
}

.style2-top p {
    font-size: 24px;
    font-weight: 600;
    line-height: 43px;
    color: rgba(43, 43, 43, 1);
}

.style2-body {
    display: flex;
    align-items: center;
    height: 550px;
    margin: 100px 0px 50px 0px;
}

.style2-img {
    width: 50%;
    display: flex;
    justify-content: center;
}

/*********************************************** CategoryContentModalities.php style2  **********************************************/

.style2-top h3 {
    font-size: 42px;
    font-weight: 700;
    line-height: 52px;
    color: rgba(0, 0, 0, 1);
}

.style2-top p {
    font-size: 24px;
    font-weight: 600;
    line-height: 43px;
    color: rgba(43, 43, 43, 1);
}

.style2-body {
    display: flex;
    align-items: center;
    height: 550px;
    margin: 100px 0px 50px 0px;
    position: relative;
    /* 新增：作为li定位的参考 */
}

.style2-img {
    width: 50%;
    display: flex;
    justify-content: center;
}

.style2-list {
    list-style: none;
    position: relative;
    width: 50%;
    height: 100%;
    margin: 0;
    padding: 0 20px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    overflow: visible;
}

/* 完全替换原有li样式，手动排布4个项 */
.style2-list li {
    position: absolute;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    color: rgba(43, 43, 43, 1);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 第1个li：左上半圆位置 */
.style2-list li:nth-child(1) {
    top: 0px;
    left: -50px;
}

/* 第2个li：左中上半圆位置 */
.style2-list li:nth-child(2) {
    top: 150px;
    left: 50px;
}

/* 第3个li：右中上半圆位置 */
.style2-list li:nth-child(3) {
    top: 300px;
    left: 50px;
}

/* 第4个li：右上半圆位置 */
.style2-list li:nth-child(4) {
    top: 450px;
    left: -50px;
}

/* 保留原有伪元素样式，调整位置适配手动排布 */
.style2-list li::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 16px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(172.31deg, #bff9ff 0%, #29cdff 98.26%);
    z-index: 2;
}

.style2-list li::after {
    content: "";
    position: absolute;
    left: -28px;
    top: 16px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at center, transparent 4px, #3dceeb 4px, #0875cf 100%);
    z-index: 1;
}

/*********************************************** CategoryContentModalities.php style2 end **********************************************/

/*********************************************** CategoryContentModalities.php style2 end **********************************************/

/*********************************************** CategoryContentModalities.php style3  **********************************************/

.style3-cards .ModalitiesPostTitle {
    font-size: 36px;
    font-weight: 600;
    line-height: 59px;
    color: rgba(0, 0, 0, 1);
    margin: 33px 0px;
}

.style3-card-box {
    display: grid;
    grid-template-columns: auto auto;
    /* 2 列，宽度由内容撑开 */
    gap: 24px;
    /* 行间距 12px，列间距 16px */
    justify-items: start;
    /* 水平靠左（默认）| center | end | stretch */
    align-items: center;
    /* 垂直居中（默认）| start | end | baseline */
    padding: 0;
    margin: 0;
    list-style: none;
}

.style3-card {
    width: 100%;
    min-height: 260px;
    border-radius: 20px;
    background: rgba(240, 241, 242, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
}

.style3-card-img {
    width: 120px;
    height: 120px;
    display: flex;
}

.style3-card-body {
    width: 70%;
    margin-left: 40px;
}

.style3-card-body h5 {
    font-size: 24px;
    font-weight: 500;
    color: rgba(43, 43, 43, 1);
}

.style3-card-body p {
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: rgba(43, 43, 43, 1);
}

.style3-card-body p span {
    color: var(--cproj-color-primary);
}

.style3-btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 52px;
}

.style3-btn-wrap .style3-btn {
    width: 180px;
    height: 60px;
    border-radius: 238px;
    background: var(--cproj-color-primary);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: rgba(255, 255, 255, 1);
    justify-content: space-around;
}

.style3-btn-wrap .style3-btn:after {
    content: "\f054";
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Font Awesome 5 Free';
}

.style3-btn-wrap .style3-btn:hover {
    color: #ffffff;
    background: rgb(2, 133, 250);
}

/*********************************************** CategoryContentModalities.php style3 end **********************************************/

@media only screen and (max-width: 1400px) {

    /*********************************************** CategoryContentModalities.php style2 **********************************************/
    .style2-list li {
        font-size: 18px;
    }

    /*********************************************** CategoryContentModalities.php style2 end **********************************************/
}

@media only screen and (max-width: 991px) {

    /*********************************************** CategoryContentModalities.php ModalitiesBlockBox **********************************************/

    .ModalitiesBlocksWrap .ModalitiesPostTitle {
        margin: 20px 0px;
        font-size: 18px;
        font-weight: 600;
        line-height: 28px;
    }

    .ModalitiesBlockBox .ModalitiesBlockContainer {
        /* flex-wrap: wrap; */
        /* align-items: stretch; */
        padding: 14px 15px;
        border-radius: 24px;
    }

    .ModalitiesBlockBox.ModalitiesBackground:nth-child(odd) .ModalitiesBlockContainer,
    .ModalitiesBlockBox.ModalitiesBackground .ModalitiesBlockContainer {
        flex-direction: column-reverse;
    }

    .ModalitiesBlockBoxContent {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        margin: 0px;
    }

    .ModalitiesBlockBoxContent h3 {
        font-size: 15px;
        font-weight: 600;
        line-height: 21px;
        color: rgba(43, 43, 43, 1);
        /* padding: 0px 15px; */
        margin-top: 8px;
    }

    .ModalitiesBlockBoxContent p {
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;
        color: rgba(43, 43, 43, 1);
        /* padding: 0px 15px; */
        margin: 8px 0px;
    }

    .ModalitiesRemainingContent {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        /* padding: 0px 15px; */
    }

    /*********************************************** CategoryContentModalities.php ModalitiesBlockBox end **********************************************/
    /*********************************************** CategoryContentModalities.php card_block **********************************************/

    .card_block_container {
        flex-wrap: wrap;
        padding: 25px 0px;
    }

    .card_block_container .card_block_content {
        width: 100%;
        margin: 0px;
        text-align: center;
    }

    .card_block_container .card_block_content p {
        font-size: 18px;
        font-weight: 500;
        line-height: 24px;
        color: rgba(43, 43, 43, 1);

    }

    .card_block_remaining {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    /*********************************************** CategoryContentModalities.php card_block end **********************************************/

    /*********************************************** CategoryContentModalities.php style1 **********************************************/

    .style1-left h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .style1-left P {
        font-size: 14px;
        line-height: 21px;
    }

    .style1-right h3 {
        font-size: 16px;
        line-height: 26px;
        margin: 40px 0px 5px 0px;
    }

    .style1-item {
        width: 220px;
        height: 275px;
        align-items: center;
        padding-top: 23px;
    }

    .style1-img {
        width: 74px;
        height: 74px;
        border-radius: 59px;
    }

    .style1-txt {
        margin: 21px 22px;
    }

    .style1-txt p {
        font-size: 14px;
        line-height: 21px;
    }

    /*********************************************** CategoryContentModalities.php style1 end **********************************************/

    /*********************************************** CategoryContentModalities.php style2 **********************************************/

    .style2-top h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .style2-top p {
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;
    }

    .style2-body {
        flex-direction: column;
        height: auto;
        margin: 34px 0px 40px 0px;
    }

    .style2-img {
        width: 78%;
    }

    .style2-img {
        width: 100%;
    }

    .style2-list {
        height: auto;
        width: 100%;
    }

    .style2-list li {
        position: relative;
        font-size: 14px;
        line-height: 21px;
        color: rgba(43, 43, 43, 1);
        transform: none;
    }

    .style2-list li:nth-child(n) {
        top: auto;
        left: auto;
    }

    .style2-list li::before {
        width: 6px;
        height: 6px;
    }

    .style2-list li::after {
        width: 6px;
        height: 6px;
    }

    /*********************************************** CategoryContentModalities.php style2 end **********************************************/

    /*********************************************** CategoryContentModalities.php style3 **********************************************/

    .style3-cards .ModalitiesPostTitle {
        margin: 20px 0px;
        font-size: 18px;
        font-weight: 600;
        line-height: 28px;
    }

    .style3-card-box {
        display: flex;
        flex-direction: column;
    }

    .style3-card {
        height: auto;
        border-radius: 9px;
        padding: 20px 19px;
    }

    .style3-card-img {
        width: 58px;
        height: 58px;
    }

    .style3-card-body {
        width: 70%;
        margin-left: 40px;
    }

    .style3-card-body h5 {
        font-size: 15px;
        line-height: 22px;
    }

    .style3-card-body p {
        font-size: 13px;
        line-height: 16px;
    }

    .style3-btn-wrap {
        margin-top: 20px;
    }

    .style3-btn-wrap .style3-btn {
        width: 130px;
        height: 39px;
        border-radius: 164px;
        padding: 12px 12px 12px 16px;
        font-size: 15px;
        font-weight: 600;
        line-height: 15px;
    }

    .style3-btn-wrap .style3-btn:after {
        font-size: 24px;
    }

    .style2-list li::before {
        left: -14px;
        top: 10px;
    }

    .style2-list li::after {
        left: -14px;
        top: 10px;
    }

    /*********************************************** CategoryContentModalities.php style3 end **********************************************/
}

@media only screen and (max-width: 479px) {
    .tab .nav-tabs {
        border: none;
    }

    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
    }

    .ModalitiesSection {
        margin-top: -95px;
    }

    .tab .nav-tabs li a {
        font-size: 13px;
        padding: 0px 10px;
        margin: 0;
        border-bottom: 2px solid transparent;
    }

    .tab .nav-tabs li a:before {
        height: 2px;
    }
}