/* 通用样式 */

* {
    box-sizing: border-box;
}

body {
    font-family:  "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #3d3f69;
}

html {
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* 背景图片 */
#background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.6s ease-in-out, background-color 0.6s ease-in-out;
  }

/* OVERLAY入场动画 */
#overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 2s ease;
}

.welcome-image {
    height: 120px;
    max-width: 60%; /* 图片最大宽度 */
    max-height: 60%; /* 图片最大高度 */
    animation: fadeIn 1s ease; /* 淡入效果 */
}

.welcome-text{
    font-size: 100px;
    color: #322840;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn{
    from {
        opacity: 0;
    }to{
        opacity: 1;
    }
}

#overlay.hide{
    opacity: 0;
    pointer-events: none;
}
/* 固定 header */
header {
    background-color: 	rgb(61, 63, 105, 0.8);
    color: white;
    padding: 0;
    position: fixed; /* 固定定位 */
    width: 100%;
    z-index: 1000; /* 确保 header 在最上层 */
    backdrop-filter: blur(5px); /* 背景模糊效果 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* 从上到下的阴影 */
}

header .logo{
    max-height: 80%;
    height: auto;
    width: auto;
    object-fit: contain;
    padding-left: 100px;
    /*mix-blend-mode: multiply; /* 遮盖白底背景 */
}

nav {
    display: flex;
    gap: 50px;
    margin: 0 auto;
}

nav a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

/* 默认导航链接样式 */
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover{
    box-shadow: 0 0 10px white;
}

/* 选中状态的导航链接样式 */
.nav-link.active {
    /*  background-color: #d96cf2; */
    background-color: white;
    color: black;
}
.nav-link.active:after{
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 100%;
    height: 100%;
    background-color: #2cc4d9;
    border-radius: 30px;
    z-index: -1; /* 置于主背景下方 */

}
/* Contact 链接样式 */
.contact-link {
    color: white;
    font-weight: bold;
    text-decoration: none;
    align-items: center;
    display: flex;
    padding: 15px 40px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    background-color: #d96cf2;
    box-shadow: 3px 5px 0px 0px black;
    transition: all .3s;
}
.contact-link:hover{
    background-color: #2cc4d9;
}
.contact-link:active{
    transform: translate(0,4px);
    box-shadow: 0px 1px 0px black;
}
.content{
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease, transform 1s ease;
}
.content.fade-in{
    opacity: 1;
    transform: translateY(0);
}

#home {
    height: auto;
    background-image: url('resources/Homepage_bkg_wave.svg');
    background-color: #1f1a32;
    background-size: cover;           /* 关键：铺满整个屏幕 */
    background-position: center;      /* 图片居中 */
    background-repeat: no-repeat;     /* 不重复 */
    .intro-slogan{
        height: 100vh;
        color: white;
        /* color: #3d3f69; */
        font-family: "Montserrat", sans-serif;
        display: flex; /* 弹性布局 */
        gap: 30px; /* Logo 和 Slogan 之间的间距 */
        text-align: center; /* 居中 */
        justify-content: center;
        align-items: center;
        padding-top: 0px;
        .logo{
            margin-right: 50px;
        }
        .line1{
            text-align: left;
            font-size: 50px;
            color: #2cc4d9;
            font-style: italic;
        }
        .line2{
            text-align: left;
            font-size: 80px; /* 大字体 */
            font-weight: 900; /* 加粗 */
            white-space: nowrap;
            color: #d96cf2;
        }
        .line3{
            text-align: left;
            font-size: 40px;
            color: #2cc4d9;
            font-style: italic;
        }
        .amp {
                font-size: 1.5em; /* 更大字体 */
                color: #d96cf2; /* 不同颜色（番茄红） */
        }
    }   
    .logo{
        max-height: 150px;
        height: 150px;
        width: auto;
    }
    p{
        text-align: center;
        padding: 0 200px;
        margin: 0;
    }
}

#about {
    height: auto;
    background-color: #e7f6fa;
    padding: 100px;
    align-items: center;
    .content{
        flex: 1;
    }
    .about-flex{
        display: flex;
    }
    #who{
        color: #3d3f69;
        font-family: "Montserrat", sans-serif;
        text-align: center;
        .slogan{
            font-size: 40px;
            color: #2cc4d9;
            font-weight: 450;
            .pink{
                font-size: 50px;
                color: #d96cf2;
            }
        }
        p{
            text-align: left;
            padding: 0 30px;
            font-size: 18px;
        }
    }
    #why{
        color: #3d3f69;
        font-family: "Montserrat", sans-serif;
        text-align: center;
        .slogan{
            font-size: 40px;
            color: #2cc4d9;
            font-weight: 450;
            .pink{
                font-size: 50px;
                color: #d96cf2;
            }
        }
        p{
            text-align: left;
            padding: 0 30px;
            font-size: 18px;
        }
    }
    #bottomline {
        width: 100%;
        margin-top: 30px;
        padding: 0px 0px;
        background-color: #e7f6fa;
        border-top: 1px solid #2cc4d9;
        text-align: center;
        color: #3d3f69;
        font-family: "Montserrat", sans-serif;
        p{
            font-size: 16px;
            line-height: 1.6;
        }
    }
}


#solutions {
    height: auto;
    background-color: #322840; 
    color: #e7f6fa;
    padding: 100px;
    align-items: center;
    .slogan{
        font-size: 40px;
        color: #2cc4d9;
        font-weight: 450;
        .pink{
            font-size: 50px;
            color: #d96cf2;
        }
    }
    #companies-content{
        margin:20px 0;
        font-family: "Montserrat", sans-serif;
        p{
            font-size: 18px;
        }
        .collab-title {
            color: #2cc4d9;
            font-size: 22px;
            margin-top: 40px;
            margin-bottom: 10px;
            font-weight: bold;
        }
    }
    #companies-logo{
        font-weight: 600;
        font-size: 70px;
        fill:white
    }

    #creators-content{
        margin-top: 120px;
        p{
            font-size: 18px;
        }
        .collab-title {
            color: #2cc4d9;
            font-size: 22px;
            margin-top: 40px;
            margin-bottom: 10px;
            font-weight: bold;
        }
    }
    #creators-logo{
        font-weight: 900;
        font-size: 70px;
        fill: black;
    }

    .tag-list{
        margin: 0;
        padding-inline: 0;
        list-style: none;
    }
    .scroller{
        max-width: auto;
    }

    .scroller-inner{
        flex-wrap: wrap;
        padding-block: 20px;
        display: flex;
        gap: 5rem;
        .logo{
            height: auto;
            width: auto;
            max-height: 50px;
            max-width: 250px;
        }
    }

    .scroller[data-animated="true"]{
        overflow: hidden;
        
        -webkit-mask: linear-gradient(
            90deg, 
            transparent,
            white 20%, 
            white 80%, 
            transparent
        );
        mask: linear-gradient(
            90deg
            transparent,
            white 20%, 
            white 80%, 
            transparent
        );

        .scroller-inner{
            width: max-content;
            flex-wrap: nowrap;
            animation: scroll var(--_animation-duration, 20s) var(--_animation-direction, forwards) linear infinite;
        }
    }
    .scroller[data-direction="right"]{
        --_animation-direction:reverse;
    }
}

@keyframes scroll {
    to{
        transform: translate(calc(-50% - 0.5rem));
    }
}

#contact {
    height: 100vh;
    background-color: #e7f6fa;
    padding: 100px 200px;
    align-items: center;
    font-size: 18px;
    .slogan{
        font-size: 40px;
        color: #2cc4d9;
        font-weight: 450;
        .pink{
            font-size: 50px;
            color: #d96cf2;
        }
    }
    .contact-title {
        color: #2cc4d9;
        font-size: 22px;
        margin-top: 40px;
        margin-bottom: 10px;
        font-weight: bold;
    }
    .logo {
        width: 50px;      /* 或根据需要调整大小，如 24px, 30px 等 */
        height: auto;
        vertical-align: middle; /* 让图标垂直对齐文字中线 */
        margin-left: 8px;       /* 图标和文字之间留点空隙 */
      }
}
.contact-button {
    color: white;
    font-weight: bold;
    text-decoration: none;
    align-items: center;
    display: flex;
    padding: 15px 40px;
    border-radius: 30px;
    background-color: #d96cf2;
    box-shadow: 3px 5px 0px 0px black;
    transition: all .3s;
    max-width: 200px;
}
.contact-button:hover{
    background-color: #2cc4d9;
}
.contact-button:active{
    transform: translate(0,4px);
    box-shadow: 0px 1px 0px black;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    section {
        padding: 1rem;
    }
}


