/* Custom Solution Section */
.solution-section {
    padding: 100px 0;
    /* background-color: #f9f9f9; */
    padding: 100px 0;
    /* 添加以下样式 */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.solution-section.alternative-style {
    /* Different background, padding, etc. */
    /* background-color: #f8f8f8; */
    padding: 40px 0;
    /* 确保继承父级的宽度限制 */
    /* max-width: inherit; */
}


.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: calc(1rem + 1.5vw);
    color: #333;
    margin-bottom: 20px;
}

.solution-section.alternative-style .section-header h2 {
    font-size: 36px;
    color: #AE8753;
    margin-bottom: 20px;
}

.solution-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    margin: 0 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: #000;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: calc(33.333% - 20px);
    margin: 0 10px;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0);
    transition: filter 0.3s ease;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-content {
    transform: translateY(0);
}

.carousel-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.carousel-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-dot.active {
    background: #000;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.solution-buttons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.solution-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-btn {
    background-color: #000;
    color: white;
}

.download-btn {
    background-color: #f0f0f0;
    color: #000;
}

.solution-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.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.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    /* max-width: 900px; */
    width: 90%;
    position: relative;
    overflow: hidden;
}

.modal-flex-container {
    display: flex;
    min-height: 500px;
}

.modal-image-column {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.modal-form-column {
    flex: 1;
    padding: 40px;
}

.catalog-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}

.catalog-title {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    margin-top: 20px;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in forwards;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    /* Start invisible */
}

/* Rest of your modal styles remain the same */

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

.modal-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.file-upload {
    display: flex;
    align-items: center;
}

.file-upload-btn {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.file-name {
    color: #666;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #333;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .carousel-item {
        min-width: calc(50% - 20px);
    }

    /* 增加section-header的底部间距 */
    .section-header {
        margin-bottom: 60px;
    }

}

@media (max-width: 768px) {
    .carousel-item {
        min-width: calc(100% - 20px);
    }

    .tab-button {
        padding: 10px 15px;
        font-size: 1rem;
        margin: 5px;
    }

    .solution-buttons {
        flex-direction: column;
        align-items: center;
    }

    .solution-btn {
        width: 80%;
        max-width: 300px;
    }

    /* 进一步增加section-header的底部间距 */
    .section-header {
        margin-bottom: 80px;
    }

    .solution-section {
        margin-top: 300px;
    }

    .solution-section.alternative-style {
        margin-top: 50px;
    }

    .modal-flex-container {
        flex-direction: column;
    }

    .modal-image-column {
        padding: 20px;
    }

    .modal-form-column {
        padding: 30px;
    }

    .catalog-image {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        top: 0;
        transform: none;
        margin: 30% auto;
        max-height: 500px;
        overflow-y: auto;
    }

    /* 调整solution-section的内边距 */
    .solution-section {

        padding: 100px 0 60px 0;
    }

    .solution-section.alternative-style {
        padding: 50px 0;
    }

}

@media (max-width:480px) {
    .solution-section {
        margin-top: 550px;
    }

    .solution-section.alternative-style {
        margin-top: 50px;
    }


}