/* 字体图标 */


body {
    padding: 0;
    margin: 0;
    font-family: 'Play';
    overflow-x: hidden;
}

main {
    width: 100%;
    min-height: 120vh;
    box-sizing: border-box;
}


:root {
    --cover-image-size: 320px;
    --image-mobile-size: 180px;
    --cover-font-size: clamp(6.0rem, 8.0vw, 9vw);
    --mobile-font-size: 1.6rem;
    --cover-desc-font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    --big: #4a90e2;
    --dot: #ebdcce;
    --dot-active: #ae5f15;
    --primary: #4a90e2;
    --secondary: #7ed321;
    --text-dark: #222;
    --text-light: #666;
    --bg-light: #f5f5f7;
}





/* ================================== home-cover ==================================== */

/* ================== 首页封面区域 ================== */
.home-cover {
    position: relative;
    width: 100%;
    height: 120vh;
    background-color: #e8f1ff;
}

.home0-container {
    position: relative;
    width: 100%;
    height: 90vh;
    background-color: #e8f1ff;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 40px;
    padding-top: 12vh;
    gap: 2%;
}

.cover-image-container {
    position: relative;
    top: -4vh;
    left: -400px;
    margin: 10px;
    width: var(--cover-image-size);
    animation: slideIn 4s 3s forwards ease-out;
    flex-shrink: 0;
    min-width: var(--cover-image-size);
}

.rotating-image {
    width: 100%;
    object-fit: cover;
    animation: rotate 14s 3s linear infinite;
}

.cover-text-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    flex: 1;
    position: relative;
    top: -4vh;
    min-width: 0;
    max-width: 55%;
    margin-left: 10%;
    margin-right: 12%;
    padding: 20px;
}

/* ================== 标题图片（替换文字） ================== */
.cover-title-image {
    opacity: 0;
    transform: scale(0.4) translateY(20px);
    animation: popIn 1.4s 3.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    margin-bottom: 20px;

    width: 110%;
    max-width: 600px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-self: center;
}

.cover-title-image img {
    max-width: 100%;
    height: auto;
    display: block;
    font-size: 24px;
    color: #666;
}

/* ================== 描述文字 ================== */
.cover-description {
    position: relative;
    left: 5vw;
    opacity: 0;
    transform: translate(20px, 30px);
    animation: fadeInUp 1.0s 3.8s forwards;
    /* 提前到 3s，配合标题 */
    max-width: 95%;
    margin: 0;
    /* background-color: #4ecdc4; */
    padding: 12px 20px;
    /* 增加内边距，让文字更舒适 */
    border-radius: 8px;
}

.cover-description p {
    margin: 0;
    font-size: var(--cover-desc-font-size);
    color: #223e66;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    /* 可选：居中对齐 */
}

/* ================== 右侧装饰图 ================== */
.home0-right {
    position: absolute;
    top: 0;
    right: -8vh;
    width: 42%;
}

.home0-right img {
    width: 100%;
    height: auto;
}

/* ================== 动画定义 ================== */
@keyframes slideIn {
    from {
        left: -400px;
        transform: rotate(0deg);
    }

    to {
        left: calc(50% - var(--cover-image-size) - 18%);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes popIn {
    50% {
        opacity: 1;
        transform: scale(1.2) translateY(0);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== 响应式 ================== */
@media (max-width: 992px) {
    :root {
        --cover-image-size: 200px;
    }

    .home0-container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        height: auto;
        padding-top: 8vh;
    }

    .cover-image-container {
        left: -320px;
        animation: slideInMobile 3s forwards ease-out;
        top: 0;
    }

    .cover-text-content {
        align-items: center;
        max-width: 80%;
        margin: 0 auto;
        padding: 20px;
        top: 0;
    }

    .cover-title-image {
        animation: popIn 1s 1s forwards;
        margin-bottom: 16px;
    }

    .cover-description {
        animation: fadeInUp 0.8s 2.2s forwards;
        left: 0;
        transform: translate(0, 20px);
        max-width: 100%;
    }

    @keyframes slideInMobile {
        from {
            left: -300px;
            transform: rotate(0deg);
        }

        to {
            left: 0;
            transform: rotate(360deg);
        }
    }
}

@media (max-width: 768px) {
    :root {
        --cover-image-size: 180px;
    }

    .home0-container {
        gap: 20px;
    }

    .cover-title-image img {
        width: 90%;
    }
}

@media (max-width: 576px) {
    :root {
        --cover-image-size: 170px;
    }

    .home0-container {
        padding: 15px;
        gap: 20px;
    }

    .cover-title-image img {
        width: 80%;
    }

    .cover-description {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    :root {
        --cover-image-size: 160px;
    }

    .cover-title-image {
        animation: popIn 0.9s 0.8s forwards;
    }

    .cover-description {
        animation: fadeInUp 0.6s 2.0s forwards;
    }
}

/* -------------------- home page Wave Container --------------------- */
.waves-container {
    position: relative;
    top: -6vh;
    width: 100%;
    height: 24vh;
    min-height: 80px;
    max-height: 300px;
    overflow: visible;
}








/* ===================================  Home Part - 01  ==================================== */

.home-part01 {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(to bottom, #e6f2ff, #fff);
    overflow: hidden;
}

.hero-text {
    margin: 0;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    position: relative;
    text-align: center;
    max-width: 80%;
}

.hero-text.visible {
    opacity: 1;
    transform: translateY(0);
    animation: pulse-glow 3s infinite ease-in-out;
}

.hero-text p {
    font-size: 4vw;
    font-weight: bold;
    color: rgb(31, 55, 134);
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(252, 215, 200, 0.3),
            0 0 20px rgba(252, 215, 200, 0.2);
    }

    50% {
        text-shadow:
            0 0 20px rgba(252, 215, 200, 0.6),
            0 0 40px rgba(252, 215, 200, 0.5),
            0 0 60px rgba(252, 215, 200, 0.3);
    }
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 2.2rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 1.8rem;
    }
}






/* ===================================  Home Part1  ==================================== */

.home-part1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50vh;
    height: 100vh;
    margin: 0 auto;
    padding: 120px 50px 80px;
    /* background-color: #ffff; */
    background: linear-gradient(to bottom, #fff, #50829b);
}

.part1-content {
    position: relative;
    top: -15vh;
    display: flex;
    max-width: 1100px;
    width: 90%;
    gap: 100px;
    align-items: center;
    margin: 0 auto;
}

.part1-content .part1-text-content {
    flex: 3;
    /* max-width: 300px; */
    text-align: justify;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s ease-out, transform 1.2s ease-out;
}

.part1-content .part1-text-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.part1-content .part1-text-content h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
}

.part1-content .part1-text-content p {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #233242;
}

/* 图片内容 - 右侧 */
.part1-content .part1-image-content {
    flex: 3;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.part1-content .part1-image-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.part1-content .part1-image-content img {
    width: 60%;
    border-radius: 10px;
    display: block;
}

.part1-content .part1-img-cpt {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #233774;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .home-part1 {
        padding: 60px 15px;
        min-height: auto;
    }

    .part1-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .part1-content .part1-text-content,
    .part1-content .part1-image-content {
        flex: none;
        width: 100%;
    }

    .part1-content .part1-text-content h2 {
        font-size: 2rem;
    }

    .part1-content .part1-image-content img {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .home-part1 {
        padding: 40px 10px;
    }

    .part1-content {
        gap: 20px;
    }

    .part1-content .part1-text-content h2 {
        font-size: 1.8rem;
    }

    .part1-content .part1-text-content p {
        font-size: 1rem;
    }
}









/* ===================================  Home Part 2-1 (这里就用home2表示)  ==================================== */

.home-part2 {
    position: relative;
    width: 100%;
    min-height: 50vh;
    height: 230vh;
    margin: 0 auto;
    padding: 30px;
    background-color: #50829b;
}

.home2-on {
    position: relative;
    top: -30vh;
    left: -10vw;
    width: 100%;
    z-index: 0;
}

.home2-on::after {
    content: "";
    width: 100%;
    height: 40vh;
    background-color: #50829b;
}

.home2-on img {
    width: 120%;
}

.home2-right {
    position: absolute;
    top: -35vh;
    left: 70vw;
    width: 100%;
}

.home2-right img {
    width: 35%;
}


.home-part2-1 {
    max-width: 1100px;
    width: 100%;
    margin: 20vh auto 30vh;
}

.part2-content {
    display: flex;
    align-items: center;
    justify-self: center;
    flex-direction: row;
    gap: 100px;
    max-width: 1200px;
    width: 90%;
    height: 100%;
}

/* ----------------- home21  图片动画 ----------------- */
.home21-animation-container {
    flex: 3;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottle-svg,
.smoke-svg,
.cost-svg,
.charge-svg {
    position: absolute;
    /* background: none; */
}

.bottle-svg {
    z-index: 10;
    transition: opacity 0.5s ease;
    right: 20%;
    width: 90%;
}

.smoke-svg {
    bottom: 22vh;
    left: 14vw;
    transform: translateY(0vh);
    opacity: 0;
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
    width: 28%;
}

.cost-svg {
    left: -10vw;
    top: -4vh;
    opacity: 0;
    transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
    transform: translate(-2vh, 2vh);
    width: 42%;
}

.charge-svg {
    right: -14vw;
    top: 2vh;
    opacity: 0;
    transition: opacity 1s ease 1.1s, transform 1s ease 1.1s;
    transform: translate(-2vh, 2vh);
    width: 60%;
}

.in-view .bottle-svg {
    opacity: 1;
}

.in-view .smoke-svg {
    opacity: 1;
    transform: translateY(-7vh)
}

.in-view .cost-svg {
    opacity: 1;
    transform: translate(4vh, -4vh);
}

.in-view .charge-svg {
    opacity: 1;
    transform: translate(4vh, -4vh);
}


.part2-content .part2-text-content {
    position: relative;
    bottom: 13vh;
    flex: 2;
    opacity: 0;
    text-align: justify;
    transform: translateY(60px);
    transition: opacity 1.5s ease-out, transform 1.2s ease-out;
}

.part2-content .part2-text-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.part2-content .part2-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fcfdff;
}

.part2-content .part2-text-content p {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #fcf3dd;
}






/*  -------------------- home 2-2 ------------------------------ */

.home-part22 {
    max-width: 1150px;
    width: 100%;
    padding-top: 20vh;
    padding-bottom: 10vh;
}

.part22-content {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 120px;
}

.part22-text-content {
    position: relative;
    left: 60px;
    flex: 3;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

.part22-text-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.part22-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.part22-text-content p {
    font-size: 28px;
    font-weight: 600;
    text-align: justify;
    margin-bottom: 15px;
    color: #f5faff;
}

.part22-cards-container {
    position: relative;
    height: 60vh;
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.part22-card {
    position: absolute;
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.part22-card:nth-child(1) {
    top: -13vh;
    left: -1vw;
}

.part22-card:nth-child(1) img {
    width: 76%;
}

.part22-card:nth-child(2) {
    top: 20vh;
    left: 16vw;
}

.part22-card:nth-child(2) img {
    width: 115%;
}

.part22-card:nth-child(3) {
    top: 40vh;
    left: 3vw;
}

.part22-card:nth-child(3) img {
    width: 110%;
}

.part22-card.animate:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.8s ease-out 0.4s;
}

.part22-card.animate:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out 0.2s, transform 0.8s ease-out 0.8s;
}

.part22-card.animate:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out 0.4s, transform 0.8s ease-out 1.2s;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .home-part22 {
        padding: 60px 15px;
        min-height: auto;
    }

    .part22-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .part22-cards-container,
    .part22-text-content {
        flex: none;
        width: 100%;
    }

    .part22-text-content h2 {
        font-size: 2rem;
    }

    .part22-card {
        height: 100px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-part22 {
        padding: 40px 10px;
    }

    .part22-content {
        gap: 30px;
    }

    .part22-text-content h2 {
        font-size: 1.8rem;
    }

    .part22-text-content p {
        font-size: 1rem;
    }

    .part22-card {
        height: 80px;
        font-size: 12px;
    }
}


@media (max-width: 1300px) {
    .home2-on {
        top: -28vh;
        left: -10vw;
    }

    .home2-right {
        left: 76vw;
    }
}

@media (max-width: 1200px) {
    .home2-on {
        top: -26vh;
        left: -10vw;
    }


}

@media (max-width: 1100px) {
    .home2-on {
        top: -24vh;
        left: -10vw;
    }

    .home2-right {
        left: 78vw;
    }
}

@media (max-width: 960px) {
    .home2-on {
        top: -20vh;
        left: -10vw;
    }


}

@media (max-width: 768px) {
    .home-part2 {
        padding: 60px 15px;
        min-height: auto;
    }

    .home2-on {
        top: -22vh;
        left: -10vw;
    }

    .home2-right {
        top: -20vh;
        left: 80vw;
    }

    .part2-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .part2-content .part2-text-content,
    .part2-content .part2-image-content {
        flex: none;
        width: 100%;
    }

    .part2-content .part2-text-content h2 {
        font-size: 2rem;
    }

    .part2-content .part2-image-content img {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 650px) {
    .home2-on {
        top: -17vh;
        left: -10vw;
    }
}

@media (max-width: 480px) {
    .home-part2 {
        padding: 40px 10px;
    }

    .home2-on {
        top: -15vh;
        left: -10vw;
    }

    .part2-content {
        gap: 20px;
    }

    .part2-content .part2-text-content h2 {
        font-size: 1.8rem;
    }

    .part2-content .part2-text-content p {
        font-size: 1rem;
    }
}

@media (max-width:400px) {
    .home2-on {
        top: -12vh;
        left: -10vw;
    }
}

@media (max-width:340px) {
    .home2-on {
        top: -9vh;
    }
}









/* ===================================  Home part 3  ======================================== */

.home-part3 {
    display: flex;
    align-items: center;
    justify-self: center;
    position: relative;
    width: 100%;
    min-height: 50vh;
    height: 90vh;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

.home3-on {
    position: absolute;
    top: -40vh;
    left: -6vw;
    width: 100%;
}

.home3-on img {
    width: 110%;
}

.home3-left {
    position: absolute;
    top: 50vh;
    left: -3vw;
    width: 100%;
    z-index: 3;
}

.home3-left img {
    width: 28%;
}

.home3-right {
    position: absolute;
    top: -40vh;
    left: 74vw;
    width: 100%;
}

.home3-right img {
    width: 28%;
}

.part3-content {
    position: relative;
    /* top: 20vh; */
    max-width: 1400px;
    padding-top: 20vh;
    width: 100%;
    gap: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.part3-content .part3-text-content {
    opacity: 0;
    text-align: center;
    transform: translateY(60px);
    transition: opacity 1.5s ease-out, transform 1.2s ease-out;
    max-width: 1000px;
    padding: 20px;
}

.part3-content .part3-text-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.part3-content .part3-text-content p {
    position: relative;
    top: -24vh;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #38496f;
    line-height: 1.6;
}

@media (max-width: 1600px) {
    .home3-on {
        top: -38vh;
    }
}

@media (max-width: 1400px) {
    .home3-on {
        top: -38vh;
    }
}

@media (max-width: 1300px) {
    .home3-on {
        top: -32vh;
    }

    .home3-left {
        top: 60vh;
    }
}

@media (max-width: 1200px) {
    .home3-on {
        top: -30vh;
    }
}

@media (max-width: 1100px) {
    .home3-on {
        top: -29vh;
    }

    .home3-left {
        top: 70vh;
    }
}

@media (max-width: 1000px) {
    .home3-on {
        top: -22vh;
    }
}

@media (max-width: 900px) {
    .home3-on {
        top: -26vh;
    }

    .home3-left {
        top: 80vh;
    }
}

@media (max-width: 850px) {
    .home3-on {
        top: -22vh;
    }
}

@media (max-width: 768px) {
    .home-part3 {
        height: auto;
        min-height: 60vh;
        padding: 40px 15px;
    }

    .home3-on {
        top: -20vh;
    }

    .home3-left {
        top: 40vh;
    }

    .part3-content {
        flex-direction: column;
        gap: 30px;
    }

    .part3-content .part3-text-content p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 650px) {
    .home3-on {
        top: -18vh;
    }
}

@media (max-width: 540px) {
    .home3-on {
        top: -16vh;
    }

    .home3-left {
        left: -2vw;
    }
}

@media (max-width: 480px) {
    .home-part3 {
        padding: 30px 10px;
        min-height: 50vh;
    }

    .home3-on {
        top: -15vh;
    }

    .part3-content .part3-text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 5px;
    }
}

@media (max-width: 320px) {
    .home-part3 {
        padding: 20px 5px;
    }

    .part3-content .part3-text-content p {
        font-size: 0.9rem;
        padding: 0 3px;
    }
}










/* =======================================  Home Part 4-1  ========================================= */
.home-part4 {
    position: relative;
    width: 100%;
    height: 210vh;
    min-height: 60vh;
    margin: 0 auto;
    padding: 0px 50px 10px;
    background-color: #d9dcff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.home4-on {
    position: absolute;
    top: -32vh;
    left: -5vw;
    width: 100%;
    z-index: 2;
}

.home4-on img {
    width: 112%;
}


.home4-right {
    position: absolute;
    top: 58vh;
    left: 74vw;
    width: 100%;
}

.home4-right img {
    width: 30%;
}

.home-part41 {
    width: 100%;
    height: 45vh;
    padding-top: 18vh;
    /* background-color: lightyellow; */
}

.part41-content {
    position: relative;
    top: -20vh;
    max-width: 1000px;
    width: 100%;
    gap: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    z-index: 3;
}

.part41-text-content {
    margin: 0;
    padding: 0;
    flex: 3;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.part41-text-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.part41-text-content p {
    /* padding-bottom: 20px; */
    margin: 0;
    padding: 0;
    text-align: justify;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 17px;
    color: #5b5d91;
}

.part41-card-content {
    flex: 2;
    display: flex;
    justify-content: center;
}

.part41-card {
    width: 350px;
    height: 350px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
}

.part41-card img {
    width: 100%;
}

@media (max-width:1300px) {
    .home4-on {
        top: -28vh;
    }
}

@media (max-width:1250px) {
    .home4-on {
        top: -24vh;
    }
}

@media (max-width:1150px) {
    .home4-on {
        top: -23vh;
        left: -7vw;
    }

    .home4-on img {
        width: 120%;
    }
}

@media (max-width:900px) {
    .home4-on {
        top: -18vh;
        left: -7vw;
    }
}

@media (max-width:800px) {
    .home4-on {
        top: -14vh;
        left: -7vw;
    }
}

@media (max-width: 768px) {
    .home-part41 {
        padding: 60px 15px;
        min-height: auto;
    }

    .home4-on {
        top: -18vh;
        left: -3vw;
    }

    .home4-on img {
        width: 120%;
    }

    .part41-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .part41-text-content,
    .part41-card-content {
        flex: none;
        width: 100%;
    }

    .part41-text-content h2 {
        font-size: 2rem;
    }

    .part41-card {
        width: 150px;
        height: 150px;
        font-size: 16px;
    }
}

@media (max-width:720px) {
    .home4-on {
        top: -14vh;
        left: -7vw;
    }
}

@media (max-width:560px) {
    .home4-on {
        top: -12vh;
    }
}

@media (max-width:500px) {
    .home4-on {
        top: -10vh;
    }
}

@media (max-width: 480px) {
    .home-part41 {
        padding: 40px 10px;
    }

    .home4-on {
        top: -7vh;
    }

    .part41-content {
        gap: 30px;
    }

    .part41-text-content h2 {
        font-size: 1.8rem;
    }

    .part41-text-content p {
        font-size: 1rem;
    }

    .part41-card {
        width: 120px;
        height: 120px;
        font-size: 14px;
    }
}








/* ===================================  Home Part 4-2 ==================================== */
.home-part42 {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 120vh;
    padding: 0;
    box-sizing: border-box;
    /* background-color: lightyellow; */
}

.part42-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    height: 90%;
    padding: 10px;
    box-sizing: border-box;
}

.toushi {
    width: 60%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.cursor {
    cursor: pointer;
    position: relative;
    width: 80%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hole {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    --x: -9999px;
    --y: -9999px;
}

/* 底层：inner（细节图） */
.inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://static.igem.wiki/teams/5872/home-matl/main-img/purple-ball-inner.svg');
    background-repeat: no-repeat;
    background-size: 86%;
    background-position: center;
    z-index: 1;
}

/* 上层：outer（完整球体） + mask 挖洞 */
.outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://static.igem.wiki/teams/5872/home-matl/main-img/purple-ball-outer.svg');
    background-repeat: no-repeat;
    background-size: 84%;
    background-position: center;
    z-index: 2;
    pointer-events: none;

    /* 洞大小：80px 半径 */
    --mask-size: 80px;
    -webkit-mask: radial-gradient(circle at var(--x) var(--y), transparent var(--mask-size), black calc(var(--mask-size) + 2px));
    mask: radial-gradient(circle at var(--x) var(--y), transparent var(--mask-size), black calc(var(--mask-size) + 2px));
}

/* 文字区域 */
.part42-text-content {
    position: relative;
    top: -4vh;
    width: 140%;
    max-width: 1000px;
    padding: 5px 20px;
    border-radius: 12px;
    z-index: 10;
    backdrop-filter: blur(8px);
    transform: translateZ(0);
    transition: all 0.4s ease;
    text-align: center;
}

.part42-text-content span {
    color: #6f757a;
    font-size: 24px;
    font-weight: 500;
}

.part42-text-content p {
    color: #1d3a57;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* 响应式：调整洞大小 */
@media (max-width: 992px) {
    .cursor {
        width: 90%;
        height: 60vh;
    }

    .outer {
        --mask-size: 70px;
    }
}

@media (max-width: 768px) {
    .home-part42 {
        height: auto;
        min-height: 100vh;
    }

    .part42-container {
        height: auto;
        padding: 15px;
    }

    .part42-text-content {
        width: 95%;
        padding: 15px;
        margin-top: 20px;
        top: 0;
    }

    .part42-text-content p {
        font-size: 24px;
    }

    .cursor {
        width: 95%;
        height: 50vh;
    }

    .outer {
        --mask-size: 50px;
    }
}

@media (max-width: 480px) {
    .part42-text-content {
        padding: 12px;
        margin-top: 15px;
        font-size: 20px;
    }

    .part42-text-content span {
        font-size: 20px;
    }

    .part42-text-content p {
        font-size: 20px;
    }

    .cursor {
        height: 40vh;
    }

    .outer {
        --mask-size: 35px;
    }
}









/* ===================================  Home Part 5 ==================================== */
.home-part5 {
    position: relative;
    margin: 0px auto;
    width: 100%;
    height: 90vh;
    padding: 10px auto 0px;
    margin: 0vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #ffffff;
    /* overflow: hidden; */
    /* background-color: #cc7474; */
}

.home5-on {
    position: absolute;
    top: -28vh;
    left: -10vw;
    width: 100%;
}

.home5-on img {
    width: 120%;
}

@media (max-width:1350px) {
    .home5-on {
        top: -25vh;
    }

}

@media (max-width:1200px) {
    .home5-on {
        top: -20vh;
    }
}

@media (max-width:950px) {
    .home5-on {
        top: -16vh;
    }

    .home5-on img {
        width: 125%;
    }
}

@media (max-width:750px) {
    .home5-on {
        top: -12vh;
    }

    .home5-on img {
        width: 130%;
    }
}

@media (max-width:550px) {
    .home5-on {
        top: -8vh;
    }

    .home5-on img {
        width: 140%;
    }
}

@media (max-width:550px) {
    .home5-on {
        top: -6vh;
    }

    .home5-on img {
        width: 145%;
    }
}

.home5-icons-container {
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    margin: 0px auto;
    /* position: relative; */
    /* top: -40vh; */

}

.home5-icon-item {
    position: relative;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 3;
    /* background-color: lightyellow; */
}

.home5-icon-item:nth-child(1) {
    position: absolute;
    top: 0vh;
    left: 35vw;
}

.home5-icon-item:nth-child(2) {
    position: absolute;
    top: 30vh;
    right: 15vw;
}

.home5-icon-item:nth-child(3) {
    position: absolute;
    top: 55vh;
    left: 16vw;
}


.home5-icon-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.home5-icon-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.home5-icon-circle:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.home5-icon-circle img {
    width: 100%;
    height: 100%;
}

.home5-icon-text {
    position: relative;
    /* top: 16vh; */
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #142e6a;
    padding: 10px;
}

.home5-scroll-hint {
    position: relative;
    /* top: -30vh; */
    text-align: center;
    margin-top: 100px;
    font-size: 36px;
    font-weight: 700;
    color: #11275c;
    padding: 10px;
    animation: home5-pulse 2s infinite;
}






@keyframes home5-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .home5-icons-container {
        gap: 40px;
    }

    .home5-icon-item {
        width: 190px;
    }

    .home5-icon-circle {
        width: 170px;
        height: 170px;
    }

    .home5-icon-circle img {
        width: 100%;
        /* height: 170px; */
    }
}

@media (max-width: 768px) {
    .home5-section-title {
        font-size: 2.3rem;
    }

    .home5-text-content h2 {
        font-size: 1.7rem;
    }

    .home5-text-content p {
        font-size: 1.1rem;
    }

    .home5-icons-container {
        gap: 30px;
    }

    .home5-icon-item {
        width: 160px;
    }

    .home5-icon-circle {
        width: 150px;
        height: 150px;
    }

    .home5-icon-circle img {
        width: 100%;
    }

    .home5-icon-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .home5-icons-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .home5-icon-item {
        width: 100%;
        max-width: 280px;
    }
}











/* ======================================  Home Part 6 ================================== */
.home-part6 {
    position: relative;
    margin: 0px auto;
    width: 100%;
    height: 140vh;
    padding: 20px auto 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(to bottom, #fff, #c9d6eb);
}

.home6-left {
    position: absolute;
    top: -10vh;
    left: -5vw;
    width: 100%;
    z-index: 2;
    z-index: 1;
}

.home6-left img {
    width: 30%;
}

#fireworks-container {
    position: relative;
    /* top: -30vh; */
    width: 100%;
    /* max-width: 1300px; */
    height: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    /* background: white; */

}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: white; */
    background: linear-gradient(to bottom, #fff, #c9d6eb);
}

/* 叠加层 */
#overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* 图片动画 */
#overlay-image {
    width: 400px;
    height: 400px;
    opacity: 0;
    transform: scale(0) rotate(0deg);
    margin-bottom: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    /* color: white; */
    z-index: 11;
}

#overlay-image img {
    width: 100%;
}

/* 文字动画 */
#overlay-text {
    font-size: 3.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(50px);
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
    z-index: 11;
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    60% {
        transform: scale(1.2) rotate(360deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1.2rem;
    }

    #overlay-text {
        font-size: 2.5rem;
    }

    #fireworks-container {
        height: 400px;
    }

    #overlay-image {
        width: 150px;
        height: 150px;
        font-size: 40px;
    }
}










/*  ===================================  Home Part 7 ====================================== */
.home-part7 {
    position: relative;
    margin: 0px auto;
    width: 100%;
    height: 100vh;
    padding: 20px auto;
    margin: 0vh auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    background-color: #e6f2ff;
    text-align: center;
}

.home7-on {
    position: absolute;
    top: -64vh;
    left: -3vw;
    width: 100%;
}

.home7-on img {
    width: 105%;
}

@media (max-width: 1650px) {
    .home7-on {
        top: -60vh;
    }
}

@media (max-width: 1450px) {
    .home7-on {
        top: -59vh;
    }
}

@media (max-width: 1350px) {
    .home7-on {
        top: -55vh;
    }
}

@media (max-width: 1250px) {
    .home7-on {
        top: -51vh;
    }
}

@media (max-width: 1150px) {
    .home7-on {
        top: -46vh;
    }
}

@media (max-width: 1050px) {
    .home7-on {
        top: -42vh;
    }
}

@media (max-width: 950px) {
    .home7-on {
        top: -38vh;
    }
}

@media (max-width: 900px) {
    .home7-on {
        top: -36vh;
    }
}

@media (max-width: 800px) {
    .home7-on {
        top: -32vh;
    }
}

@media (max-width: 700px) {
    .home7-on {
        top: -24vh;
    }
}

@media (max-width: 550px) {
    .home7-on {
        top: -18vh;
    }
}

@media (max-width: 400px) {
    .home7-on {
        top: -12vh;
    }
}

.home7-right {
    position: absolute;
    top: -80vh;
    left: 40vw;
    width: 100%;
    z-index: 2;
}

.home7-right img {
    width: 32%;
}

.home7-title {
    position: relative;
    top: 10vh;
    font-size: 32px;
    font-weight: 700;
    color: #4e659c;
}

.carousel-container {
    position: relative;
    top: 10vh;
    width: 80%;
    margin: 30px 0;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 关键：让 .card-link 在 card 中居中 */
    flex: 0 0 200px;
    height: 240px;
    margin: 0 10px;
    padding: 10px 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 70%;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

.card-content {
    padding: 0px 10px;
    text-align: center;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e427c;
}

.card-description {
    font-size: 0.90rem;
    opacity: 0.8;
    line-height: 1.5;
}

.nav-btn {
    background-size: cover;
    position: absolute;
    background-position: center;
    background-repeat: no-repeat;
    top: 50%;
    border: none;
    background: #fff7f7a0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev img,
.next img {
    width: 100%;
}

/* .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
} */

.card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}


@media (max-width: 768px) {
    .card {
        flex: 0 0 250px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

}