/* FAQ Section Styles */
.faq-section {
    background: #fafafa;
}

.faq-main-container {
    display: flex;
    min-height: auto;
    width: 100%;
    gap: 40px;
    align-items: flex-start;
}

.faq-left-section {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.faq-right-section {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 500px;
    min-width: 500px;
}

.faq-image-container {
    width: 500px;
    height: 500px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Sora", sans-serif;
    color: #666;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.faq-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-contact-section {
    width: 500px;
    height: 200px;
    background: #ffffff;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0 0 8px 8px;
    border-top: none;
}

.faq-contact-text {
    font-family: "Sora", sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}



.faq-accordion {
    display: flex;
    flex-direction: column;
    font-family: "Sora", sans-serif;
    width: 100%;
}

.faq-accordion .section-title h2 {
    font-size: 32px;
    text-align: left;
    margin-bottom: 30px;
}

.faq-accordion-item {
    margin-top: 16px;
    border: 1px solid #fcfcfc;
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
}

.faq-accordion-item .faq-accordion-item-title {
    position: relative;
    margin: 0;
    display: flex;
    width: 100%;
    font-size: 15px;
    cursor: pointer;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 14px 20px;
    box-sizing: border-box;
    align-items: center;
    background: #5CB350;
    color: white;
    transition: background-color 0.3s ease;
}

.faq-accordion-item .faq-accordion-item-title:hover {
    background: #4a9a42;
}

.faq-accordion-item .faq-accordion-item-desc {
    max-height: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 22px;
    font-weight: 300;
    color: #444;
    background: #F9FAFF;
    padding: 0 20px;
    box-sizing: border-box;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-accordion-item input[type="checkbox"] {
    position: absolute;
    height: 0;
    width: 0;
    opacity: 0;
}

.faq-accordion-item input[type="checkbox"]:checked ~ .faq-accordion-item-desc {
    max-height: 200px;
    padding: 20px;
    border-top: 1px dashed #ddd;
}

.faq-accordion-item input[type="checkbox"]:checked ~ .faq-accordion-item-title .faq-icon:after {
    content: "-";
    font-size: 20px;
    transform: rotate(180deg);
}

.faq-accordion-item input[type="checkbox"] ~ .faq-accordion-item-title .faq-icon:after {
    content: "+";
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-accordion-item:first-child {
    margin-top: 0;
}

.faq-accordion-item .faq-icon {
    margin-left: 14px;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

/* 中等屏幕：当宽度小于1024px时开始调整 */
@media screen and (max-width: 1024px) {
    .faq-main-container {
        gap: 30px;
    }
}

/* 小屏幕：当宽度小于900px时，图片开始缩小 */
@media screen and (max-width: 900px) {
    .faq-right-section {
        flex: 0 0 400px;
        width: 400px;
        min-width: 400px;
    }
    
    .faq-image-container {
        width: 400px;
        height: 400px;
    }
    
    .faq-contact-section {
        width: 400px;
    }
}

/* 更小屏幕：当宽度小于768px时，切换到垂直布局 */
@media screen and (max-width: 768px) {
    .faq-main-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .faq-left-section {
        overflow: visible;
    }
    
    .faq-right-section {
        flex: none;
        width: 100%;
        max-width: 500px;
        min-width: auto;
        margin: 0 auto;
    }
    
    .faq-image-container {
        width: 100%;
        height: 300px;
        border-radius: 8px 8px 0 0;
    }
    
    .faq-contact-section {
        width: 100%;
        height: auto;
        min-height: 150px;
        border-radius: 0 0 8px 8px;
    }
    
    .faq-accordion .section-title h2 {
        font-size: 28px;
    }
}

/* 手机屏幕：当宽度小于480px时进一步优化 */
@media screen and (max-width: 480px) {
    .faq-main-container {
        gap: 20px;
    }
    
    .faq-image-container {
        height: 250px;
    }
    
    .faq-contact-section {
        padding: 20px;
        min-height: 120px;
    }
    
    .faq-accordion .section-title h2 {
        font-size: 24px;
    }
}