/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top:15px;
    padding:0;
}

.hero-content {
    flex: 1;
    margin:100px 0 73px 0;
    color:#000000;
    animation: slideIn 1s ease-out 0.3s forwards;
    opacity: 0; /* 可选：初始完全透明 */
}
.hero-content .container{
    padding:0;
}
/* 定义滑入动画关键帧 */
@keyframes slideIn {
    from {
        transform: translateX(-100%); /* 起点：左侧视口外 */
        opacity: 0;
    }
    to {
        transform: translateX(0); /* 终点：原始位置 */
        opacity: 1;
    }
}
.hero-content .text-1,.hero-content .text-2{
    font-size:65px;
    font-weight: 700;
    margin-bottom: 48px;
    line-height: 79px;
}
.hero-content .text-2{
    padding-left:70px;
}
.hero-content .text-3{
    font-size:48px;
    line-height: 58px;
}
.hero-content .text-4{
    font-size:26px;
    height: 31px;
    line-height: 31px;
    color:#4B5DEA;
    margin-top:28px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    margin-top: 56px;
    height: 92px;
}
.btn img{
    height: 100%;
}
.btn:hover {
    transform: translateY(-3px);
}
.hero-images{
    width: 605px;
}
.hero-images img {
    width: 100%;
}

/* How It Works Section */
.how-it-works {
    width: 100%;
    max-width: 100%;
    min-width: 1200px;
    margin-top:-162px;
    padding:162px 0 386px 0;
    background: linear-gradient(0deg,
    #FDF9F2 0%,    /* 红色（起点，右上角） */
    #FFD9B7 37%,   /* 绿色（1/3处） */
    #FFD9B7 60%,   /* 蓝色（2/3处） */
    #FDF9F2 100%   /* 黄色（终点，左下角） */
    );
}
.how-it-works .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:0;
}
.how-it-works .container img{
    width: 610px;
}
.how-it-works .container .how-it-works-content{
    margin-top:118px;
}
.how-it-works .container .how-it-works-content h1{
    line-height: 77px;
    font-size:64px;
    text-align: center;
}
.how-it-works .container .how-it-works-content .step-content{
    margin-top:140px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-flow: row wrap;
    gap: 24px;
}
.step-content .step-item{
    width: 310px;
    height: 210px;
    background: #FFD0AA;
    border-radius: 8px;
}
.step-content .step-item .step {
    margin:50px 0 28px;
    line-height: 24px;
    font-size:20px;
    color:#000000;
    text-align: center;
    font-weight: 700;
}
.step-content .step-item .step-tips {
    color:#736E6E;
    font-size:19px;
    text-align: center;
    padding:0 7px;
}
.step-content .step-item .step-tips p {
    line-height: 24px;
}

/* Advantages Section */
.advantages {
    margin:-167px 0 200px 0;
}
.advantages .container{
    padding:0;
}
.advantages h2{
    font-size:70px;
    line-height: 85px;
    margin-bottom: 82px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.advantage {
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.advantage:hover {
    transform: translateY(-10px)!important;
}

/*
.advantage:nth-child(1) {
    background: #FCE4EC;
    color: #CD4175;
}

.advantage:nth-child(2) {
    background: #F3E5F5;
    color: #8F3FAE;
}

.advantage:nth-child(3) {
    background: #E8F5E9;
    color: #5A9352;
}
*/
.advantage:nth-child(1) {
    background: #E3F2FD;
    color: #4D97D8;
}

.advantage:nth-child(3) {
    background: #FFF3E0;
    color: #EF6C00;
}

.advantage:nth-child(2) {
    background: #E0FFFD;
    color: #00796B;
}

.advantage-icon {
    font-size: 50px;
    margin-bottom: 30px;
}
.advantage-icon img{
    width: 64px;
}

.advantage h3 {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

/* Animation for scroll effects */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1320px) {
    .hero-images {
        margin-right: 0;
    }
    .how-it-works .container .how-it-works-content{
        margin: 60px 0 0 60px;
    }
    .advantages{
        margin: -295px 0 200px 0;
    }
}

@media (max-width: 768px) {
    .hero{
        flex-flow: column-reverse;
    }
    .hero-content{
        margin:20px 0;
    }
    .hero-images{
        width: 90%;
        margin:0;
    }
    .hero-content .text-1, .hero-content .text-2{
        font-size:20px;
        margin-bottom: 10px;
        line-height: 30px;
        padding:0;
    }
    .hero-content .text-3{
        font-size:18px;
        line-height:22px;
        margin-top:25px;
    }
    .hero-content .text-4{
        font-size:16px;
        margin-top:5px;
    }
    .btn{
        line-height:50px;
        height: 50px;
        font-size:20px;
        width: 100%;
        margin-top:35px;
    }
    .how-it-works{
        padding: 180px 0 386px 0;
        min-width: auto;
    }

    .how-it-works .container .how-it-works-content h1{
        font-size: 20px;
        text-align: left;
    }
    .step-content .step-item .step{
        margin: 38px 0 25px;
        font-size:16px;
    }
    .step-content .step-item{
        height: 175px;
        width: 100%;
    }
    .step-content .step-item .step-tips{
        font-size:15px;
    }
    .section-title {
        font-size: 28px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        margin-top:20px;
    }
    .how-it-works .container{
        flex-flow: column;
        padding: 0 20px;
    }
    .how-it-works-images{
        width: 100%;
    }
    .how-it-works .container img{
        width: 100%;
    }
    .how-it-works .container .how-it-works-content{
        margin:0;
    }
    .how-it-works .container .how-it-works-content .step-content{
        width: 100%;
        margin:0;
        gap: 24px 0;
    }
    .advantages{
        margin:-370px 0 60px 0;
    }
    .advantages .container{
        padding: 20px 20px 0;
    }
    .advantages h2{
        font-size:20px;
        line-height: 40px;
        margin-bottom:20px;
    }
    .advantage{
        padding:30px;
    }
    .advantage-icon img{
        width: 50px;
    }
    .advantage h3{
        font-size:17px;
    }
    .advantage-icon{
        margin-bottom: 20px;
    }
}