/* service-scope */
.service-scope-section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.service-scope-title {
    font-size: 50px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.service-swiper .service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 300px;
    overflow: hidden;
}

.service-swiper .service-item img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    transition: all 0.8s ease;
}

.service-swiper .service-item:hover img {
    transform: scale(1.05);
}

.service-swiper .service-item .service-content {
    text-align: center;
}

.service-swiper .service-item .service-content p {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    font-family: var(--family-font-secondary);
}

.service-swiper {
    position: relative;
}

.service-swiper .swiper-button-next,
.service-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f7f6f6;
    border: 1px solid rgba(26, 26, 26, 0.05);
    opacity: 0;
    transform: scale(0) translate(-50%, -50%);
    transform-origin: center center;
    transition: all 0.2s ease-in-out;
    position: absolute;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    pointer-events: none;
    /* 位置变化不使用 transition，让按钮立即跟随鼠标 */
    will-change: transform;
    overflow: visible;
}

/* 当按钮可见时，允许点击 */
.service-swiper .swiper-button-next.visible,
.service-swiper .swiper-button-prev.visible {
    pointer-events: auto;
    cursor: none;
}

.service-swiper .swiper-button-next {
    right: -10px;
    left: auto;
}

.service-swiper .swiper-button-prev {
    left: 35px;
    right: auto;
}

/* 隐藏默认的箭头 */
.service-swiper .swiper-button-next::after,
.service-swiper .swiper-button-prev::after {
    display: none;
}

.service-swiper:hover .swiper-button-next,
.service-swiper:hover .swiper-button-prev {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
    pointer-events: auto;
}

.service-swiper .swiper-button-next .nav-arrow,
.service-swiper .swiper-button-prev .nav-arrow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f7f6f6;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: auto;
    opacity: 1;
    transform: scale(1);
}

.service-swiper .swiper-button-next .nav-arrow svg,
.service-swiper .swiper-button-prev .nav-arrow svg {
    width: 20px;
    height: 20px;
    color: #1d2d5e;
    transition: all 0.3s ease;
}

/* prev 按钮的默认图标需要旋转180度 */
.service-swiper .swiper-button-prev .nav-arrow:not(.hover-icon) svg {
    transform: rotate(180deg);
}

/* hover-icon 默认状态：透明且稍微缩小 */
.service-swiper .swiper-button-next .hover-icon,
.service-swiper .swiper-button-prev .hover-icon {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* hover 时：默认图标淡出并缩小，hover-icon 淡入并放大 */
.service-swiper .swiper-button-next:hover .nav-arrow:not(.hover-icon),
.service-swiper .swiper-button-prev:hover .nav-arrow:not(.hover-icon) {
    opacity: 0;
    transform: scale(0.8);
}

.service-swiper .swiper-button-next:hover .hover-icon,
.service-swiper .swiper-button-prev:hover .hover-icon {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* prev 按钮的 hover-icon 需要旋转180度 */
.service-swiper .swiper-button-prev .hover-icon svg {
    transform: rotate(180deg);
}






/* Industries served */
.industries-section {
    padding: 0 0 80px 0;
    background-color: var(--section-bg);
    overflow: hidden;
    position: relative;
}

.industries-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 48px;
}

.industries-title {
    font-size: 50px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.industries-title h2{
    font-size: 50px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.industries-title-inner {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    animation: scroll-horizontal 20s linear infinite;
    will-change: transform;
}

.industries-title-inner span {
    font-size: 80px;
    font-weight: 700;
    color: #2a2a2a;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .industries-title-inner span {
        font-size: 50px;
    }

    .industries-title-inner {
        gap: 40px;
    }
}






/* Industries swiper - 左右两侧部分可见的布局（对称） */

/* 导航按钮样式 */
.industries-swiper .swiper-button-next,
.industries-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    top: 50%;
    opacity: 0;
    transform: scale(0) translate(-50%, -50%);
    transform-origin: center center;
    transition: all 0.4s ease-in-out;
}

.industries-swiper .swiper-button-next:hover,
.industries-swiper .swiper-button-prev:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.industries-swiper .swiper-button-next {
    right: 0px;
}

.industries-swiper .swiper-button-prev {
    left: 40px;
}

.industries-swiper .swiper-button-next::after,
.industries-swiper .swiper-button-prev::after {
    display: none;
}

.industries-swiper .swiper-button-next .nav-arrow,
.industries-swiper .swiper-button-prev .nav-arrow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industries-swiper .swiper-button-next .nav-arrow svg,
.industries-swiper .swiper-button-prev .nav-arrow svg {
    width: 20px;
    height: 20px;
    color: #1d2d5e;
}

.industries-swiper .swiper-button-prev .nav-arrow svg {
    transform: rotate(180deg);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .industries-container {
        padding: 0 20px;
    }

    .industries-swiper {
        margin-top: 40px;
    }

    .industries-swiper .swiper-button-next {
        right: -10px;
    }

    .industries-swiper .swiper-button-prev {
        left: -10px;
    }

    .industries-swiper .swiper-button-next,
    .industries-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .industries-swiper .swiper-button-next .nav-arrow svg,
    .industries-swiper .swiper-button-prev .nav-arrow svg {
        width: 16px;
        height: 16px;
    }
}

.industries-swiper:hover .swiper-button-next,
.industries-swiper:hover .swiper-button-prev {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
    pointer-events: auto;
}

.industries-swiper .swiper-button-next .nav-arrow,
.industries-swiper .swiper-button-prev .nav-arrow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f7f6f6;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: auto;
    opacity: 1;
    transform: scale(1);
}

.industries-swiper .swiper-button-next .nav-arrow svg,
.industries-swiper .swiper-button-prev .nav-arrow svg {
    width: 20px;
    height: 20px;
    color: #1d2d5e;
    transition: all 0.3s ease;
}

/* prev 按钮的默认图标需要旋转180度 */
.industries-swiper .swiper-button-prev .nav-arrow:not(.hover-icon) svg {
    transform: rotate(180deg);
}

/* hover-icon 默认状态：透明且稍微缩小 */
.industries-swiper .swiper-button-next .hover-icon,
.industries-swiper .swiper-button-prev .hover-icon {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* hover 时：默认图标淡出并缩小，hover-icon 淡入并放大 */
.industries-swiper .swiper-button-next:hover .nav-arrow:not(.hover-icon),
.industries-swiper .swiper-button-prev:hover .nav-arrow:not(.hover-icon) {
    opacity: 0;
    transform: scale(0.8);
}

.industries-swiper .swiper-button-next:hover .hover-icon,
.industries-swiper .swiper-button-prev:hover .hover-icon {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* prev 按钮的 hover-icon 需要旋转180度 */
.industries-swiper .swiper-button-prev .hover-icon svg {
    transform: rotate(180deg);
}

/* irregular-section 动画 */
.irregular-section:not(.animate) {
    opacity: 0;
    transform: translateY(50px);
}

.irregular-section {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.irregular-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.irregular-section:not(.animate) .irregular-panel {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.irregular-panel {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.irregular-section.animate .irregular-panel-large {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.2s;
}

.irregular-section.animate .irregular-panel-small:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.4s;
}

.irregular-section.animate .irregular-panel-small:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.5s;
}

.irregular-section.animate .irregular-panel-bottom {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.6s;
}



/* industries section 动画 */
.industries-section:not(.animate) {
    opacity: 0;
    transform: translateY(50px);
}

.industries-section {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.industries-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.industries-section:not(.animate) .industry-item {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.industries-swiper .industry-item {
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.industries-section.animate .industry-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Industries content swiper layout */
.industries-content {
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
    position: relative;
}

.industries-swiper {
    width: 100%;
    padding: 0;
    position: relative;
}

.industries-swiper .swiper-wrapper {
    align-items: stretch;
}

.industries-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* slide内包含两个group的容器 */
.industries-swiper .slide-groups-wrapper {
    display: flex;
    gap: 20px;
    width: fit-content;
    margin: 0 auto;
    justify-content: center;
}

/* 每组容器：包含6个item - 4行2列布局 */
.industries-swiper .industry-group {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    /* flex-shrink: 0; */
}

/* 每组内的布局：
   第1行：小1（左列），长1（右列，跨2行）
   第2行：小2（左列）
   第3行：小3（左列），长2（右列，跨2行）
   第4行：小4（左列）
*/
.industries-swiper .industry-group .industry-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.industries-swiper .industry-group .industry-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.industries-swiper .industry-group .industry-item:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / 3;
}

.industries-swiper .industry-group .industry-item:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
}

.industries-swiper .industry-group .industry-item:nth-child(5) {
    grid-column: 1;
    grid-row: 4;
}

.industries-swiper .industry-group .industry-item:nth-child(6) {
    grid-column: 2;
    grid-row: 3 / 5;
}

.industry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* cursor: pointer; */
    opacity: 0;
    transform: translateX(50px) scale(0.5);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.3s ease, box-shadow 0.3s ease;
}

/* 当item进入视口时触发动画 */
.industry-item.item-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* 为每个item添加不同的延迟，创造依次出现的效果 */
.industries-swiper .swiper-slide .industry-group .industry-item:nth-child(1).item-visible {
    transition-delay: 0s;
}

.industries-swiper .swiper-slide .industry-group .industry-item:nth-child(2).item-visible {
    transition-delay: 0.1s;
}

.industries-swiper .swiper-slide .industry-group .industry-item:nth-child(3).item-visible {
    transition-delay: 0.2s;
}

.industries-swiper .swiper-slide .industry-group .industry-item:nth-child(4).item-visible {
    transition-delay: 0.3s;
}

.industries-swiper .swiper-slide .industry-group .industry-item:nth-child(5).item-visible {
    transition-delay: 0.4s;
}

.industries-swiper .swiper-slide .industry-group .industry-item:nth-child(6).item-visible {
    transition-delay: 0.5s;
}

.industry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.industry-item:hover img {
    filter: blur(0);
    transform: scale(1.05);
}

.industry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.industry-overlay h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    font-family: var(--family-font-secondary);
    margin: 0;
}

.industry-item-small {
    height: 250px;
}

.industry-item-large {
    height: 520px;
}

@keyframes scroll-horizontal-grid {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--scroll-distance));
    }
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .industries-swiper .slide-groups-wrapper {
        gap: 20px;
    }

    .industry-item-small {
        height: 200px;
    }

    .industry-item-large {
        height: 420px;
    }
}

@media (min-width: 993px) and (max-width: 1280px) {
    .industry-overlay h3{
        font-size: 17px;
    }
    .industries-container{
        padding: 0 20px;
    }
    .service-scope-section{
        padding: 40px 0;
    }
    .service-scope-title{
        font-size: 40px;
    }
    .industries-title{
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .industries-swiper .slide-groups-wrapper {
        gap: 20px;
        flex-direction: column;
    }

    .industry-item-small {
        height: 180px;
    }

    .industry-item-large {
        height: 375px;
    }

    .industry-overlay h3 {
        font-size: 20px;
    }


    /* service-scope */
    .service-swiper .swiper-button-next,
    .service-swiper .swiper-button-prev {
        opacity: 1;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
    }

    .service-swiper .swiper-button-next .nav-arrow svg,
    .service-swiper .swiper-button-prev .nav-arrow svg {
        width: 18px;
        height: 18px;
    }

    .service-scope-section {
        padding: 40px 0;
    }

    .service-scope-title {
        font-size: 30px;
        margin-bottom: 15px;
    }


    /* .industries-section */
    .industries-section {
        padding: 0 0 40px 0;
    }

    .industries-title {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .industries-content {
        margin-top: 10px;
    }

    .industries-swiper {
        margin-top: 0;
    }

    .single-industry-slide .industry-item-single-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .single-industry-slide .industry-item {
        width: 100%;
        height: auto;
    }

    .single-industry-slide .industry-item-small,
    .single-industry-slide .industry-item-large {
        height: auto;
    }

    .single-industry-slide .industry-item img {
        width: 100%;
        height: auto;
    }

    .industries-swiper .swiper-button-next,
    .industries-swiper .swiper-button-prev {
        display: none;
    }

    /* industries-swiper pagination */
    .industries-swiper .swiper-pagination {
        position: relative;
        margin-top: 20px;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .industries-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background-color: rgba(26, 26, 26, 0.3);
        opacity: 1;
        border-radius: 50%;
        transition: all 0.3s ease;
        cursor: pointer;
        margin: 0 !important;
    }

    .industries-swiper .swiper-pagination-bullet-active {
        background-color: var(--primary-color);
        width: 24px;
        border-radius: 4px;
    }
}