/* Future Page Styles */


.future_page {
    width: 100%;
    /* overflow-x: hidden; */
}

/* Hero Section */
.future_hero {
    position: relative;
    width: 100%;

    min-height: 500px;
    background-image: url('../assets/images/future/hero_bg_future.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.future_hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.future_hero_content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 20px;
}

.future_hero_content h1 {


    margin-bottom: 30px;
        line-height: 1.2;
    letter-spacing: .5px;
}



/* Introduction Section */
.future_intro {
    padding: 100px 60px;
    background-image: url('../assets/images/future/intro_bg.webp');
    text-align: center;
    position: relative;
    min-height: 100px;
    height:max-content;
}

.future_intro_text {

    max-width: 100%;
    margin: 0 auto 40px;
    color: var(--suncell-black);
}

.scroll_down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    color: #333;
}

.future-image {
    /* width: 80%;
    max-height: calc(90vh - 260px); 减去标题和padding的高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.future-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Sustainable Model Section */
.future_sustainable {
    /* padding: 20px 0; */
    background-color: var(--suncell_green_bg);
    padding: 0 0;
    min-height: 100px;
    height:100%;
    


}

.future_sustainable .container
{
    padding: 0 0;
}


.future_sustainable_desc {

    max-width: 100%;
    margin: 0 auto 40px;
    text-align: left;
    color: var(--suncell-black);
    
}

.future_comparison {
    margin-top: 50px;
}

.comparison_container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.comparison_left,
.comparison_right {
    flex: 1;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparison_right {
    background-color: #e8f5e9;
}

.comparison_header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.comparison_right .comparison_header {
    border-bottom-color: #4caf50;
}

.comparison_header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.comparison_right .comparison_header h3 {
    color: #2e7d32;
}

.comparison_items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison_item {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison_right .comparison_item {
    background-color: #f1f8e9;
}

.comparison_item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.comparison_item p {
    font-size: 16px;
    color: #666;
}

.comparison_right .comparison_item h4 {
    color: #2e7d32;
}

.comparison_right .comparison_item p {
    color: #33691e;
}

.comparison_vs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Certifications Section */
.future_certifications {
    padding: 20px 0;
    background-color: #ffffff;
    min-height:100px;
    height:max-content;

}

.future_certifications .container { 
        justify-content: top;
}
.certifications_wrapper {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 40px;
}

.certification_item {
    flex: 0 1 auto;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
    margin: 0 10px;
    max-width: 350px;
}


.certification_item:hover {
    transform: scale(1.05);
}

.certification_item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background-color: #4caf50;
    transition: transform 0.3s ease;
}

.certification_item.active::after {
    transform: translateX(-50%) scaleX(1);
}

.certification_item img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.certification_texts {
    position: relative;
    max-width: 100%;
    margin: 0 auto 20px;
    min-height: 150px;
    padding: 0 60px;

}

.certification_text {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.certification_text.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* .certification_text p {
    font-size: 20px; */
    /* font-weight: normal;
    margin-bottom: 20px;
    color: var(--suncell-dark);
} */

.certification_title {
    /* font-size: 16px; */
    line-height: 1.2;
    color: var(--suncell-black);
    font-weight: 600;
    margin-bottom: 20px;
}

.certification_desc {
    /* font-size: 16px; */
    line-height: 1.2;
    color: var(--suncell-dark);
    font-weight: normal;
    text-align: left;
    margin-top: 40px;
    /* min-height: 18rem; */
}

/* 证书浮层样式 */
.cert_modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert_modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.cert_modal_content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s;
}

.cert_modal_content img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
}

.cert_close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1001;
}

.cert_close:hover {
    color: #000;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mission Statement Section */


/* Container */
.container {
    width: 100%;
    
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Styles */
@media (max-width: 1280px) {
    /* 移除 future_sustainable 的固定高度限制 */
    .future_intro {
    padding: 20px 0;
    min-height: 600px;
}
    .certification_item {
        max-width: 200px;
    }
}
@media (max-width: 1024px) {
    .comparison_container {
        flex-direction: column;
        gap: 60px;
    }
    
    .comparison_vs {
        top: calc(50% - 30px);
        transform: translateX(-50%);
    }
    

    

}

@media (max-width: 768px) {


    .certification_item {
        flex: 1 1 calc(33% - 15px);
    }


    

    

    

    
    .certifications_wrapper {
        justify-content: space-between;
    }
    
    .certification_item {
        margin: 0 5px;
    }
    
    .cert_modal_content {
        max-width: 90%;
        padding: 15px;
    }
}






/* Manufacturing Section */
.future_manufacturing {
    padding: 0 0;
    position: relative;
    background-color: #f8f8f8;
    min-height: 500px;
}

.future_manufacturing .container {
    padding: 0 0;
}

.manufacturing_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manufacturing_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0 60px;
}

.manufacturing_content {
    text-align: left;
    color: #fff;
    
    padding: 20px;
}

.manufacturing_content h2 {
    color: #fff;

    margin-bottom: 20px;
}

.manufacturing_content p {
    color: #ffffff;

}

.two_column_big_pic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    position: relative;
}

.two_column_big_pic-column {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.two_column_big_pic-column.left {
    background-size: cover;
    background-position: center;
}

.two_column_big_pic-column.right {
    background-size: cover;
    background-position: center;
}

.manufacturing_image_container {
    display: flex;
    width: 100%;

}

.manufacturing_image {
    flex: 1;
    position: relative;
    height: 90vh;

    overflow: hidden;
   
}

.manufacturing_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fill-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.image_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.fill-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}



/* Responsive styles for manufacturing section */
@media (max-width: 768px) {
    .manufacturing_image_container {
        flex-direction: column;
    }
    
    .manufacturing_image {
        height: 300px;
    }

    .two_column_big_pic{

    }
}


@media (max-width: 480px) {


    .future_hero
    {
        min-height: 600px;
        height:70vh;
    }

    .future_hero_content h1
    {
  
        margin-bottom:20px;
    }

    .future_hero_content p
    {
        font-size: 2rem;
    }

    .future_intro {
    padding: 60px 10px;
    min-height: 100px;
    }

    .future_intro_text
    {
        margin: 0 0;
    }

    .two_column_big_pic {

        grid-template-columns: 1fr;

    }

    .manufacturing_overlay {
        padding:0 10px;
    }

    .manufacturing_content
    {
        padding: 10px;
    }
    .future_manufacturing {
        padding: 0 0;
        position: relative;
        background-color: #f8f8f8;
        min-height: 300px;
        height:max-content;
    }

    .certification_texts {
    padding: 0 10px;
    }

    .certification_desc {
        padding-top: 10px;
        margin-top: 10px;
    }
    .cert_modal_content {
        max-width: 95%;
        padding: 10px;
    }
    
    .cert_close {
        top: 5px;
        right: 10px;
   
    }
}