.section {
    padding: 90px 0;
}
.section:nth-child(odd){
    background-color: #f8fafc;
}
.section:nth-child(even){
    background-color: #fff;
}
.tag{
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0068b7;
    margin-bottom: 18px;
}

.article ul , .article ol,.content-item ul , .content-item ol{
    list-style:unset;
}

.article .list-paddingleft-2{
    padding-left: 20px;
}

.technology-details-item-content-child-item-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.technology-details-item-content {
    gap: 20px;
}

.technology-details-item-content-child-item-info.odd,
.technology-details-item-content.odd {
    flex-direction: row-reverse;
}

.technology-details-item-content-child-item-info.even,
.technology-details-item-content.even {
    flex-direction: row;
}

.technology-details-item-content-child-item-info.top,
.technology-details-item-content.top {
    flex-direction: column-reverse;
}

.technology-details-item-content-child-item-info.bottom,
.technology-details-item-content.bottom {
    flex-direction: column;
}

.technology-details-item-content-child-item-img,
.technology-details-item-content-child-item-info-text {
    flex: 1;
    overflow: hidden;
}

.technology-details-item-content-child-item-img img {
    max-width: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.technology-details-item-content-child-item-img img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.technology-details-item-content-desc {
    font-size: 18px;
    line-height: 1.7;
}

/* Challenge card style (fallback branch) */
.technology-details-item-content-child:has(> .technology-details-item-content-child-item > .content-item) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.technology-details-item-content-child.is-technology-grid:has(> .technology-details-item-content-child-item > .content-item) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.technology-details-item-content-child:has(> .technology-details-item-content-child-item > .content-item)
> .technology-details-item-content-child-item:has(> .content-item) {
    margin-bottom: 0 !important;
}

.technology-details-item-content-child-item > .content-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.technology-details-item-content-child-item > .content-item:hover {
    border-color: #d3deea;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.technology-details-item-content-child-item > .content-item .content-item-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.technology-details-item-content-child-item > .content-item .content-item-body {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.technology-details-item-content-child-item > .content-item .content-item-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
    color: #1f2937;
}

.technology-details-item-content-child-item > .content-item .content-item-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #5f6b7a;
}

@media (max-width: 1200px) {
    .technology-details-item-content-child:has(> .technology-details-item-content-child-item > .content-item) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .technology-details-item-content-child.is-technology-grid:has(> .technology-details-item-content-child-item > .content-item) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .technology-details-item-content-child-item-info.odd,
    .technology-details-item-content-child-item-info.even,
    .technology-details-item-content.odd,
    .technology-details-item-content.even {
        flex-direction: column;
    }

    .technology-details-item-content-desc,
    .technology-details-item-content-child-item-info-desc p,
    .technology-details-item-content-child-item-info-desc span {
        font-size: 14px !important;
    }

    .technology-details-item-content-child-item-info,
    .technology-details-item-content {
        gap: 20px;
    }

    .technology-details-item-content-child:has(> .technology-details-item-content-child-item > .content-item) {
        grid-template-columns: 1fr;
    }

    .technology-details-item-content-child.is-technology-grid:has(> .technology-details-item-content-child-item > .content-item) {
        grid-template-columns: 1fr;
    }

    .technology-details-item-content-child-item > .content-item {
        border-radius: 10px;
    }

    .technology-details-item-content-child-item > .content-item .content-item-body {
        padding: 16px 14px 14px;
    }

    .technology-details-item-content-child-item > .content-item .content-item-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .technology-details-item-content-child-item > .content-item .content-item-desc {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* 相关分类卡片区块 */
.related-catalog-section {
    padding: 30px 0;
    background-color: #f8f9fa;
}

.related-catalog-section .section-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

/* 行等高：Bootstrap 3 row 默认非 flex，需显式开启 */
.related-catalog-section .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* 列需 flex 以撑满行高 */
.related-catalog-section .row > [class*="col-"] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.related-catalog-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.related-catalog-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    /* transform: translateY(-4px); */
    text-decoration: none;
    color: inherit;
}

.related-catalog-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.related-catalog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-catalog-card:hover .related-catalog-card__img img {
    transform: scale(1.05);
}

/* body 填充剩余空间，使各卡片描述起始位置一致 */
.related-catalog-card__body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 16px 20px 20px;
}

/* 标题固定 2 行高，防止单行/双行卡片错位 */
.related-catalog-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    min-height: calc(18px * 1.4 * 2);
    margin: 0 0 8px;
    color: #222;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.related-catalog-card__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.view-details {
    display: inline-block;
    font-size: 14px;
    color: var(--main-color);
    text-decoration: none;
    white-space: nowrap;
    margin-top: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.view-details:hover {
    text-decoration: underline;
    color: var(--main-color);
    transform: translateX(2px);
}

/* Related product catalog slider */
.related-product-catalog {
    width: 100%;
    position: relative;
}


.related-product-slider {
    overflow: hidden;
}

.related-product-track {
    display: flex;
    gap: 18px;
    transition: transform 0.35s ease;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.related-product-track.is-dragging {
    cursor: grabbing;
}

.related-product-slide {
    flex: 0 0 calc((100% - 54px) / 4);
}

.related-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e4e8ef;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.related-product-card:hover {
    color: inherit;
    text-decoration: none;
}

.related-product-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    padding: 18px;
    background: #fff;
}

.related-product-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-product-card__body {
    padding: 18px 16px 20px;
    text-align: center;
}

.related-product-card__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
    color: #1f2937;
}

.related-product-card__desc {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #667085;
    min-height: 48px;
}

.related-product-card__link {
    display: inline-block;
    font-size: 14px;
    color: var(--main-color);
}

.related-product-nav {
    position: absolute;
    right: 0 !important;
    top: 0 !important;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 0;
}

.related-product-nav__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #d7deea;
    background: #fff;
    color: #111827;
    transition: all 0.2s ease;
}

.related-product-nav__btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.related-product-nav__btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.related-product-catalog--inline-nav {
    padding-top: 0;
}

.related-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.related-product-heading {
    margin: 0;
    font-size: 26px;
    line-height: 1.35;
    color: #1f2937;
}

.related-product-nav--inline {
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin-top: 0 !important;
}

/* Product slider: match existing product card style in page */
.related-product-slider--product .related-product-slide .product_message {
    width: 100%;
    height: 400px;
    padding: 18px 16px 16px;
    box-sizing: border-box;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e8ef;
    background-color: #fff !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    cursor: default;
    overflow: hidden;
}

.related-product-slider--product .related-product-slide .product_message::before,
.related-product-slider--product .related-product-slide .product_message::after {
    content: none !important;
    display: none !important;
}

.related-product-slider--product .related-product-slide .product_img {
    width: 100%;
    margin-bottom: 14px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-product-slider--product .related-product-slide .product_img .product_message_img {
    width: auto;
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.related-product-slider--product .related-product-slide .product_message:hover .product_message_img {
    transform: none !important;
}

.related-product-slider--product .related-product-slide .product_bg:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.related-product-slider--product .related-product-slide .product_info {
    margin-left: 0;
    justify-content: flex-start;
    gap: 0;
}

.related-product-slider--product .related-product-slide .product_info .product_title {
    display: block;
    text-align: center;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.35;
}

.related-product-slider--product .related-product-slide .product_info .product_title:hover {
    color: var(--main-color);
}

.related-product-slider--product .related-product-slide .product_info .product_text {
    text-align: center;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #667085;
    min-height: calc(14px * 1.7 * 2);
}

@media (max-width: 992px) {
    .related-catalog-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    .related-catalog-section .section-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .related-catalog-card__title {
        font-size: 16px;
    }

    .related-product-slide {
        flex: 0 0 100%;
    }

    .related-product-card__img {
        height: 150px;
    }

    .related-product-card__title {
        font-size: 18px;
    }

    .related-product-nav {
        position: static;
        justify-content: center;
        margin-top: 16px;
    }

    .related-product-header {
        margin: 10px 0 14px;
        align-items: center;
    }

    .related-product-heading {
        font-size: 20px;
    }

    .related-product-catalog {
        padding-top: 0;
    }

    .related-product-slider--product .related-product-slide .product_message {
        min-height: 340px;
        border-radius: 10px;
        padding: 14px 12px 12px;
    }

    .related-product-slider--product .related-product-slide .product_img {
        height: 160px;
        margin-bottom: 12px;
    }

    .related-product-slider--product .related-product-slide .product_img .product_message_img {
        max-height: 145px;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .related-product-slide {
        flex: 0 0 calc((100% - 18px) / 2);
    }
}
