/* About Services Page - Category Cards */
.footer {
    margin-top: 0px !important;
}
.services-overview {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 50px;
}
.services-overview-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.services-overview-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px 25px;
    width: calc(25% - 15px);
    box-shadow: -2px 2px 10px 0px rgba(38, 41, 161, 0.15);
    text-align: center;
    transition: all 0.3s ease;
}
.services-overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.services-overview-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.services-overview-icon svg {
    width: 100%;
    height: 100%;
}
.services-overview-title {
    font-size: 24px;
    color: #1b1b1b;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'Hind-Medium', Arial, sans-serif;
    max-width: 60%;
    margin-right: auto;
    margin-left: auto;
}
.services-overview-item p {
    font-size: 18px;
    font-family: 'Hind-Light', Arial, sans-serif;
    color: #262626;
    line-height: 1.6;
}

/* About Services Page - Features Section */
.services-features {
    width: 100%;
    background: url('/images/staticimg/chbg_se.webp') no-repeat center center / cover;
    background-color: #1a2a3a; /* Fallback color */
    padding: 300px 0;
    margin-top: 100px;
    position: relative;
}
/* Optional overlay to ensure text readability over the image */
.services-features::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 1;
}
.services-features .wrap {
    position: relative;
    z-index: 2;
}
.services-features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.services-features-item {
    width: 25%;
    text-align: center;
    padding: 0 15px;
    cursor: pointer; /* Added cursor pointer for hover effect */
}
.services-features-icon {
    height: 70px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.services-features-icon img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}
.services-features-item p {
    color: #ffffff;
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 28px;
    line-height: 1.4;
    margin: 0;
}

/* About Services Page - Production Capability Section */
.prod-capability {
    padding: 80px 0;
}
.prod-cap-header {
    margin-bottom: 40px;
}
.prod-cap-header h2 {
    font-size: 50px;
    color: #1d1d1d;
    margin-bottom: 20px;
    font-weight: 600;
}
.prod-cap-header p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 18px;
    color: #343434;
    line-height: 1.6;
    /* max-width: 800px; */
}

/* Tabs */
.prod-cap-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.prod-cap-tab-btn {
    background-color: #ffffff;
    box-shadow: -1px 1px 5px 0px rgba(38, 41, 161, 0.3);
    border-radius: 3px;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 20px;
    color: #333333;
    width: 200px;
    height: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prod-cap-tab-btn:hover {
    background-color: #f8f9fa;
}
.prod-cap-tab-btn.active {
    color: #0055a2;
}
.prod-cap-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: #0055a2;
    border-radius: 0px 0px 3px 3px;
}

/* Tab Content */
.prod-cap-content {
    position: relative;
    min-height: 800px; /* Prevent layout shift during tab switch */
}
.prod-cap-tab-pane {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1;
}
.prod-cap-tab-pane.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Gallery Area */
.prod-cap-gallery {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.gallery-main {
    width: 900px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.gallery-main iframe {
    width: 100%;
    height: 100%;
    display: block;
}
.gallery-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 265px;
    flex-shrink: 0;
}
.gallery-side-item {
    position: relative;
    width: 265px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.gallery-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-side-item:hover img {
    transform: scale(1.1);
}
.gallery-side-item span {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 35px;
    line-height: 35px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.6);
    font-family: 'Hind-Medium', Arial, sans-serif;
}

/* Key Processes */
.prod-cap-processes h3 {
    font-size: 24px;
    color: #1d1d1d;
    margin-bottom: 20px;
    font-weight: 600;
}
.process-list {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.process-item {
    width: 226px;
    flex-shrink: 0;
}
.process-item .process-img {
    width: 226px;
    height: 146px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
}
.process-item .process-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.process-item .process-img:hover img {
    transform: scale(1.1);
}
.process-item span {
    display: block;
    font-size: 18px;
    color: #000000;
    font-family: 'Hind-Medium', Arial, sans-serif;
    line-height: 1.4;
    text-align: center;
}

/* Surface Treatment Capability Section */
.surface-treatment {
    background-color: #f5f5f5;
    padding: 80px 0;
}
.surface-header {
    margin-bottom: 40px;
}
.surface-header h2 {
    font-size: 50px;
    color: #1d1d1d;
    margin-bottom: 20px;
    font-weight: 600;
}
.surface-header p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 18px;
    color: #000000;
    line-height: 1.6;
    /* max-width: 900px; */
}

.surface-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

/* Left Tabs */
.surface-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}
.surface-tab-item {
    width: 416px;
    height: 134px;
    background-color: #ffffff;
    box-shadow: -4px 5px 10px 0px rgba(109, 133, 235, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}
.surface-tab-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background-color: transparent;
    border-radius: 0px 10px 10px 0px;
    transition: background-color 0.3s ease;
}
.surface-tab-item.active::before {
    background-color: #0055a2;
}

.st-icon {
    width: 38px;
    height: 38px;
    margin-left: 20px;
    flex-shrink: 0;
}
.st-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.st-text .st-title {
    font-family: 'Hind-Medium', Arial, sans-serif;
    display: block;
    /* font-weight: 600; */
    font-size: 22px;
    color: #1f1f1f;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}
.surface-tab-item.active .st-text .st-title {
    color: #0055a2;
}
.st-text p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Right Image */
.surface-image {
    width: 700px;
    height: 442px;
    background-color: #b3c9e1;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.surface-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.surface-image:hover img {
    transform: scale(1.05);
}

/* Fabrication & Downstream Processing Section */
.fabrication-downstream {
    padding: 80px 0;
}
.fab-header {
    margin-bottom: 40px;
}
.fab-header h2 {
    font-size: 50px;
    color: #1d1d1d;
    margin-bottom: 20px;
    font-weight: 600;
}
.fab-header p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 18px;
    color: #343434;
    line-height: 1.6;
    max-width: 1000px;
}

.fab-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}
.fab-main-img {
    width: 642px;
    height: 370px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.fab-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fab-main-img:hover img {
    transform: scale(1.05);
}

.fab-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced gap to align better with the image height */
    justify-content: center;
}
.fab-list-item {
    display: flex;
    align-items: center;
}
.fab-icon {
    width: 38px;
    height: 38px;
    margin-left: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fab-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.fab-text .fab-title {
    font-family: 'Hind-Medium', Arial, sans-serif;
    display: block;
    /* font-weight: 500; */
    font-size: 22px;
    color: #1f1f1f;
    margin-bottom: 2px;
}
.fab-text p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 16px;
    color: #343434;
    line-height: 1.4;
    margin: 0;
}

.fab-bottom-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.fab-gallery-item {
    width: 282px;
    flex-shrink: 0;
}
.fab-gallery-img {
    width: 100%;
    height: auto;
    aspect-ratio: 282 / 180;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}
.fab-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.fab-gallery-item:hover .fab-gallery-img img {
    transform: scale(1.05);
}
.fab-gallery-item span {
    display: block;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 18px;
    color: #000000;
    text-align: center;
    line-height: 1.4;
}

/* Order Support Section */
.order-support {
    background-color: #eeeeee;
    padding: 80px 0px 120px 0px;
}
.order-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.order-left {
    flex: 1;
    max-width: 500px;
}
.order-left h2 {
    font-size: 50px;
    color: #1d1d1d;
    margin-bottom: 50px;
    font-weight: 600;
}
.order-features {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.order-feature-item {
    width: calc(50% - 20px);
    display: flex;
    flex-direction: column;
}
.order-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 15px;
}
.order-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.order-feature-item .order-feature-title {
    display: block;
    font-size: 22px;
    font-weight: 500;
    color: #1f1f1f;
    margin-bottom: 5px;
    min-height: 56px; /* 强制预留两行高度 */
}
.order-feature-item p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 18px;
    color: #343434;
    line-height: 1.4;
    margin: 0;
}

.order-right {
    flex-shrink: 0;
}
.order-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 620px; /* 380 + 20 + 220 */
}
.order-img-large, .order-img-small {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.order-img-large {
    width: 380px;
    height: 260px;
}
.order-img-small {
    width: 220px;
    height: 260px;
}
.order-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.order-img-large:hover img,
.order-img-small:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .gallery-main {
        width: calc(100% - 285px);
    }
    .surface-content {
        flex-direction: column;
        align-items: center;
    }
    .surface-image {
        width: 100%;
        max-width: 700px;
        height: auto;
        aspect-ratio: 700/442;
    }
    .fab-main-img {
        width: calc(100% - 350px);
    }
    .fab-gallery-item {
        width: calc(25% - 15px);
    }
    .order-content {
        flex-direction: column;
    }
    .order-left {
        max-width: 100%;
        width: 100%;
    }
    .order-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
@media (max-width: 1024px) {
    .prod-cap-content {
        min-height: 1200px;
    }
    .services-overview-item {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
    .services-features-item {
        width: 50%;
        margin-bottom: 40px;
    }
    .services-features-item:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
    .services-features-item p {
        font-size: 24px;
    }
    .prod-cap-gallery {
        flex-direction: column;
        margin-bottom: 20px;
    }
    .gallery-main {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin-bottom: 20px;
    }
    .gallery-side {
        flex-direction: row;
        width: 100%;
        gap: 15px;
    }
    .gallery-side-item {
        flex: 1;
        width: auto;
        height: auto;
        aspect-ratio: 16/9;
    }
    .process-list {
        flex-wrap: nowrap; /* 不换行 */
        overflow-x: auto; /* 允许横向滚动 */
        -webkit-overflow-scrolling: touch; /* iOS 顺滑滚动 */
        padding-bottom: 10px; /* 给滚动条留点空间 */
        margin-left: -15px; /* 抵消右侧内边距，让滚动可以贴边 */
        padding-left: 15px; /* 保证最后一个元素滚动到底时有留白 */
    }
    .process-list::-webkit-scrollbar {
        display: none; /* 隐藏滚动条，保持美观 */
    }
    .process-item {
        /* 将宽度计算为屏幕的一大半以上，确保第二张图只露出一个边缘/半个，同时第一张图足够大 */
        width: 85vw; 
        flex-shrink: 0; /* 禁止缩小 */
        margin-bottom: 0;
    }
    .process-item .process-img {
        width: 100%;
        height: auto;
        aspect-ratio: 226/146;
    }
    .fab-main-content {
        flex-direction: column;
    }
    .fab-main-img {
        width: 100%;
        height: auto;
        aspect-ratio: 642/370;
    }
    .fab-bottom-gallery {
        flex-wrap: wrap;
    }
    .fab-gallery-item {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
}
@media (max-width: 767px) {
    .prod-capability {
        padding: 50px 0;
    }
    .prod-cap-content {
        min-height: auto;
    }
    .services-overview {
        margin-top: -40px;
    }
    .services-overview-item {
        width: 100%;
        margin-bottom: 20px;
        padding: 30px 28px;
    }
    .services-overview-title {
        font-size: 22px;
    }
    .services-overview-item p {
        font-size: 16px;
    }
    
    .services-features {
        padding: 120px 0;
        margin-top: 50px;
    }
    .services-features-item {
        width: 100%;
        margin-bottom: 40px;
    }
    /* Reset the tablet nth-last-child rule for mobile */
    .services-features-item:nth-last-child(-n+2) {
        margin-bottom: 40px;
    }
    .services-features-item:last-child {
        margin-bottom: 0;
    }
    .services-features-item p {
        font-size: 22px;
    }
    .services-features-icon {
        height: 60px;
        margin-bottom: 15px;
    }
    
    .prod-cap-header h2 {
        font-size: 32px;
    }
    .prod-cap-tabs {
        flex-direction: row;
        gap: 10px;
    }
    .prod-cap-tab-btn {
        flex: 1;
        width: auto;
        height: 40px;
        font-size: 16px;
        padding: 0 10px;
    }
    .gallery-main {
        flex-direction: column;
    }
    .gallery-side {
        flex-direction: column;
        gap: 15px;
    }
    .gallery-side-item {
          width: 100%;
          height: auto;
          aspect-ratio: 16/9;
      }
      /* Ensure process-item in 768px media query doesn't override our horizontal scroll */
      /* Removed the width: calc(50% - 7.5px); that was breaking the scroll */

      .surface-treatment {
          padding: 40px 0 20px;
    }
    .surface-header h2 {
        font-size: 32px;
    }
    .surface-header p {
        font-size: 16px;
    }
    .surface-tab-item {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    .st-icon {
        width: 40px;
        height: 40px;
        margin-left: 15px;
    }
    .st-text .st-title {
        font-size: 20px;
    }
    .st-text p {
        font-size: 16px;
    }
    
    .fabrication-downstream {
        padding: 20px 0;
    }
    .fab-header {
        margin-bottom: 20px;
    }
    .fab-header h2 {
        font-size: 32px;
    }
    .fab-main-content {
        margin-bottom: 20px;
    }
    .fab-gallery-item {
        width: 100%;
        margin-bottom: 20px;
    }
    .fab-gallery-item:last-child {
        margin-bottom: 0;
    }
    
    .order-support {
        padding: 20px 0 40px;
    }
    .order-left h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    .order-features {
        gap: 20px;
    }
    .order-feature-item {
        width: calc(50% - 10px);
        margin-bottom: 0;
    }
    .order-feature-item .order-feature-title {
        font-size: 20px;
        min-height: 48px; /* 移动端高度微调 */
    }
    .order-feature-item p {
        font-size: 16px;
    }
    .order-gallery {
        width: 100%;
        gap: 15px;
    }
    .order-img-large {
        width: calc(60% - 7.5px);
        height: auto;
        aspect-ratio: 380/260;
    }
    .order-img-small {
        width: calc(40% - 7.5px);
        height: auto;
        aspect-ratio: 220/260;
    }
}
