/* 轮播图样式 */
.carousel-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}
.carousel-title {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 0px;
}
.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 200px;
    perspective: 1000px;
    margin-top: 20px;
}

.carousel-inner {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
}

.carousel-item {
    position: absolute;
    width: 28%;
    height: 100%;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 定义不同位置的卡片样式 */
.carousel-item.active {
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 5;
    opacity: 1;
}

.carousel-item.prev {
    left: 30%;
    transform: translateX(-50%) scale(0.8);
    z-index: 4;
    opacity: 0.8;
}

.carousel-item.prev2 {
    left: 10%;
    transform: translateX(-50%) scale(0.6);
    z-index: 3;
    opacity: 0.6;
}

.carousel-item.next {
    left: 70%;
    transform: translateX(-50%) scale(0.8);
    z-index: 4;
    opacity: 0.8;
}

.carousel-item.next2 {
    left: 90%;
    transform: translateX(-50%) scale(0.6);
    z-index: 3;
    opacity: 0.6;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: none;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(255,255,255,0.9);
}

.carousel-control.prev {
    left: 0px;
}

.carousel-control.next {
    right: 0px;
}

/* FAQ 样式 */
.faq-container {
    width: 90%;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #feffef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 15px 20px;
    background-color: #feffef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s;
}
.faq-question h1{
    padding-right: 10px;
}
.faq-question:hover {
    background-color: #feffef;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1200px;
}

.faq-answer p {
    margin-bottom: 0;
    line-height: 1.6;
}

#ani_home {
    aspect-ratio: 1500/720;
    width: 90%;
    max-width: 1500px;
    margin: 10px auto 0px auto;
    overflow: hidden;
}
.iframe_home {
    width: 100%;
    height: 100%;
    max-width: 1500px;
    border: none;
    transform-origin: top left; /* 缩放基准点 */
    overflow: hidden;
}

.p1_container{
    display: grid;
    width: 90%;
    margin: 0 auto;
}
.p1_left{
    grid-row: 1;
    grid-column: 1;
}
.p1_title{
    padding-top: 20px;
    text-align: center;
}
#p1_content{
    padding-top: 10px;
    width: 100%;
    margin: 0 auto;
}
#p1_right {
    width: 70%;
    height: auto;
    aspect-ratio: 1/1;
    max-width: 740px;
    margin: 0 auto;
    overflow: hidden;
    grid-row: 2;
    grid-column: 1;
}
.iframe_p1 {
    width: 100%;
    height: 100%;
}

.p2_container{
    background-color: #fffff0; 
    width: 100%;
    margin: 20px auto 0px auto;
}
.p2_bg{
    height: 100%;
    background-image: url('../images/home_p2_bg.png'); 
    background-repeat: no-repeat;
}
.p2_top{
    width: 90%;
    text-align: center;
    margin: 30px auto 0px auto;
}
.p2_bottom{
    width: 80%;
    margin: 20px auto 0px auto;
    display: grid;
    gap: 40px;
    padding-bottom: 30px;
}
.p2_a1{
    grid-row: 1;
    grid-column: 1;
}
.p2_a1 iframe{
    aspect-ratio: 280/390;
    height: 180px;
    display: block; 
    margin: 0 auto;
}
.p2_a2{
    grid-row: 1;
    grid-column: 2;
}
.p2_a2 iframe{
    aspect-ratio: 280/390;
    height: 180px;
    display: block; 
    margin: 0 auto;
}
.p2_a3{
    grid-row: 2;
    grid-column: 1;
}
.p2_a3 iframe{
    aspect-ratio: 280/390;
    height: 180px;
    display: block; 
    margin: 0 auto;
}
.p2_a4{
    grid-row: 2;
    grid-column: 2;
}
.p2_a4 iframe{
    aspect-ratio: 280/390;
    height: 180px;
    display: block; 
    margin: 0 auto;
}

.p3_container{
    background-color: #c4eeda; 
    width: 100%;
}
.p3_bg{
    background-image: url('../images/home_p3_bg.png'); 
    background-repeat: no-repeat;
}
.p3_bottom{
    width: 65%;
    text-align: center;
    margin: 20px auto;
}
.p3_button{
    width: 70%; 
    max-width: 310px;
    aspect-ratio: 310/90;
    background-image: url('../images/home_p3_btn.png'); 
    margin: 0 auto; 
    clear: both;
    background-size: 100% 100%; 
    background-repeat: no-repeat;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.p4_container{
    width: 90%;
    text-align: center;
    margin: 40px auto;
}
#p4_top{
    width: 100%;
    text-align: center;
}
.p4_middle{
    width: 90%;
    text-align: center;
    margin: 30px auto 0px auto;
    display: grid;
}
.p4_middle img{
    width: 130px;
    height: auto;
    max-width: 358px;
}
.p4_middle h1{
    font-size: calc(16px + 1vw);
}
.p4_middle_a1{
    grid-row: 1;
    grid-column: 1;
    width: 90%;
    margin: 0 auto;
}
.p4_middle_a2{
    grid-row: 1;
    grid-column: 2;
    width: 90%;
    margin: 0 auto;
}
.p4_middle_a3{
    grid-row: 2;
    grid-column: 1;
    width: 90%;
    margin: 20px auto;
}
.p4_middle_a4{
    grid-row: 2;
    grid-column: 2;
    width: 90%;
    margin: 20px auto;
}

.p5_top{
    width: 90%;
    text-align: center;
    margin: 20px auto 20px auto;
}
.p5_top img{
    width: 45%;
    height: auto;
    max-width: 290px;
}

/* 当页面宽度大于等于576时 */
@media (min-width: 576px) {
    .p2_a1 iframe{
        height: 220px;
    }
    .p2_a2 iframe{
        height: 220px;
    }
    .p2_a3 iframe{
        height: 220px;
    }
    .p2_a4 iframe{
        height: 220px;
    }
    .carousel {
        height: 250px;
    }
}
@media (min-width: 768px) {
    .carousel {
        height: 300px;
    }
}
/* 当页面宽度大于等于992时 */
@media (min-width: 992px) {
    .p1_container{
        width: 90%;
        margin: 20px auto;
        grid-template-columns: 50% 50%;
    }
    .p1_left{
        grid-row: 1;
        grid-column: 1;
    }
    .p1_title{
        padding-top: 30px;
        width: 100%;
        margin: 0px 0px 0px auto;
    }
    h1{
        font-size: calc(16px + 1.2vw);
    }
    #p1_content{
        padding-top: 10px;
        width: 100%;
        margin: 0px 0px 0px auto;
    }
    #p1_right {
        grid-row: 1;
        grid-column: 2;
        width: 90%;
        margin-top: 20px;
    }
    .p2_a1{
        grid-row: 1;
        grid-column: 1;
        padding-top: 140px;
    }
    .p2_a2{
        grid-row: 1;
        grid-column: 2;
        padding-top: 10px;
    }
    .p2_a3{
        grid-row: 1;
        grid-column: 3;
        padding-top: 90px;
    }
    .p2_a4{
        grid-row: 1;
        grid-column: 4;
        padding-top: 10px;
    }
    .carousel {
        height: 350px;
    }
    .carousel-control {
        width: 80px;
        height: 80px;
    }
    .p4_middle img{
        width: 230px;
    }
    .p5_top img{
        width: 50%;
    }
}
@media (min-width: 1179px) {
    .carousel {
        height: 400px;
    }
    .p5_top img{
        width: 60%;
    }
}
@media (min-width: 1536px) {
    .p1_container{
        width: 88%;
    }
    .p2_a1 iframe{
        height: 260px;
    }
    .p2_a2 iframe{
        height: 260px;
    }
    .p2_a3 iframe{
        height: 260px;
    }
    .p2_a4 iframe{
        height: 260px;
    }
    .carousel {
        height: 450px;
    }
    .carousel-control {
        width: 100px;
        height: 100px;
    }
    .carousel-control.prev {
        left: -100px;
    }
    .carousel-control.next {
        right: -100px;
    }
    .p4_container{
        width: 88%;
    }
    .p4_middle_a1{
        grid-row: 1;
        grid-column: 1;
        width: 90%;
        margin: 0 auto;
    }
    .p4_middle_a2{
        grid-row: 1;
        grid-column: 2;
        width: 90%;
        margin: 0 auto;
    }
    .p4_middle_a3{
        grid-row: 1;
        grid-column: 3;
        width: 90%;
        margin: 0px auto;
    }
    .p4_middle_a4{
        grid-row: 1;
        grid-column: 4;
        width: 90%;
        margin: 0px auto;
    }
    .p5_top img{
        width: 290px;
        height: auto;
        max-width: 290px;
    }
    .faq-container {
        width: 88%;
    }
}
@media (min-width: 1920px) {
    .p1_container{
        width: 58%;
    }
    #p1_right {
        width: 90%;
    }
    .p2_bottom{
        width: 58%;
    }
    .p2_a1 iframe{
        height: 390px;
    }
    .p2_a2 iframe{
        height: 390px;
    }
    .p2_a3 iframe{
        height: 390px;
    }
    .p2_a4 iframe{
        height: 390px;
    }
    .carousel {
        height: 520px;
    }
    .carousel-control.prev {
        left: -150px;
    }
    .carousel-control.next {
        right: -150px;
    }
    .p4_container{
        width: 75%;
    }
    .faq-container {
        width: 60%;
    }
}