.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("../images/section-one-bg.avif");
    background-size: 100% 100%;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    overflow: hidden;
    padding: 0 10px;

}

.hero-text {
    width: auto;
    max-width: 70%;
}

.hero-text h1 {
    font-size: 72px;
    height: 72px;
    line-height: 72px;
    letter-spacing: -0.05em;
}

.hero-text h2 {
    font-size: 72px;
    height: 72px;
    line-height: 72px;
    ;
    opacity: 0.9;
    letter-spacing: -0.05em;
    margin: 15px 0;
}

.hero-text h3 {
    font-size: 32px;
    height: 32px;
    line-height: 32px;
    opacity: 0.75;
    letter-spacing: -0.05em;
    margin: 0 0 35px;
}


/* 修改：渐变全程纯色#131924，取消尾部透明半透层，消除右侧白光 */
.hero-text h1,
.hero-text h2,
.hero-text h3 {
    background: linear-gradient(90deg, #131924, #131924);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(14px);
    animation: textShow 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    will-change: background-size, opacity, transform;
}

.hero-text h1 {
    animation-delay: 0s;
}

.hero-text h2 {
    animation-delay: 0.4s;
}

.hero-text h3 {
    animation-delay: 0.8s;
}

/* 按钮仅淡入上浮，无扫光 */
.hero-text a {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 1.2s;
}

@keyframes textShow {
    0% {
        background-size: 0% 100%;
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        background-size: 100% 100%;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-splitting] {
    display: block;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
}

.hero-text.visible [data-splitting] {
    animation: textReveal 0.28s ease-out forwards;
}

.hero-text.visible .hero-line:nth-child(1) [data-splitting] {
    animation-delay: 0.04s;
}

.hero-text.visible .hero-line:nth-child(2) [data-splitting] {
    animation-delay: 0.14s;
}

.hero-text.visible .hero-line:nth-child(3) [data-splitting] {
    animation-delay: 0.24s;
}

@keyframes textReveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #131924;
}


.hero-sub2 {
    font-size: 32px;
    height: 32px;
    line-height: 32px;
}

.hero-btn {
    transform: translateY(20px);
    transition: all 0.5s ease;
    transition-delay: 0.42s;
    max-width: 60%;
}

.hero-image {
    width: 740px;
    max-width: 110vw;
    max-height: 110vw;
    transform: rotate(15deg);
    margin: -260px 0 0 -30px;
    position: absolute;
    top: 50%;
    right: -96px;
}

.hero-image img {
    width: 100%;
}

/* @media (max-width: 1199px) and (min-width: 840px) {
    .hero-container {
        justify-content: space-evenly;
    }
} */

@media (max-width: 1199px) {
    .hero-container {
        width: 90%;
        justify-content: space-evenly;
    }

    .hero-image {
        width: 500px;
        position: static;
        margin: -330px -96px 0 0;
    }

    .hero-btn .btn-text {
        font-size: 15px;
        padding: 0
    }

    .hero-btn .dot {
        width: 36px;
        height: 36px;
    }

    .hero-btn .btn-text {
        width: 36px;
        height: 36px;
    }

    .hero-btn:hover .btn-text {
        transform: translateX(36px) rotate(6deg) !important;
    }

    .hero-text h1 {
        font-size: 58px;
        height: 58px;
        line-height: 58px;
    }

    .hero-text h2 {
        font-size: 58px;
        height: 58px;
        line-height: 58px;
        margin: 10px 0;
    }
}

@media (max-width: 960px) {
    .hero-container {
        width: 90%;
        justify-content: space-between;
    }
    .hero-image {
        margin: -165px 0 0 0;
        position: absolute;
        right: -58px;
    }
}

@media (max-width: 819px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
    }

    .hero-text {
        text-align: center;
        margin-top: -200px;
    }

    .hero-image {
        position: static;
        margin: 0;
        transform: translate(10%, 0%) rotate(15deg);
    }

    .hero-btn {
        width: 160px !important;
        max-width: 100%;
    }


    .hero-text h1 {
        font-size: 40px;
        height: 40px;
        line-height: 40px;
    }

    .hero-text h2 {
        font-size: 40px;
        height: 40px;
        line-height: 40px;
        margin: 8px 0 5px;
    }

    .hero-text h3 {
        font-size: 15px;
        height: 15px;
        line-height: 15px;
    }

}