﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
}

html {
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    margin: 0;
    height: 100vh;
    scroll-snap-type: y mandatory;
    background: #1a2a6c;
}

.page-section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3d4f61, #2C3E50);
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ECF0F1;
}

.section-desc {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 800px;
    color: #fff;
    overflow: hidden;
    padding: 30px 0;
}

.desc-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotate(10deg);
    animation: flyIn 1s forwards ease-out;
}

@keyframes flyIn {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3498DB;
    color: #ECF0F1;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        background: #2980B9;
    }

    .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: 0.5s;
        z-index: -1;
    }

    .cta-button:hover::before {
        left: 100%;
    }

.webName {
    position: fixed;
    top: 2rem;
    left: 4rem;
    z-index: 1000;
    padding: 1rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffe6c7;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #e60073, 0 0 20px #e60073, 0 0 25px #e60073;
    }

    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6;
    }
}

.infoBox {
    width: auto;
    height: 30vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2C3E50;
    color: #ECF0F1;
    text-align: center;
    padding: 2rem;
}

.moon {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 30%, transparent 70%), linear-gradient(transparent, rgba(255,255,255,0.1));
    box-shadow: 0 0 50px rgba(255,255,255,0.5), 0 0 100px rgba(255,255,255,0.3), 0 0 150px rgba(255,255,255,0.1);
    animation: float 8s infinite ease-in-out;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 移动端样式 */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }

    body {
        scroll-snap-type: none;
        overflow-x: hidden;
    }

    .page-section {
        height: auto;
        min-height: 100vh;
        scroll-snap-align: none;
        scroll-snap-stop: always;
        padding: 1rem;
    }

    .section-content {
        padding: 1rem;
        width: 90%;
    }

    .section-title {
        font-size: 2.2rem !important;
        margin-bottom: 1rem;
    }

    .section-desc {
        font-size: 1rem !important;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .webName {
        left: 1.5rem;
        top: 1.5rem;
        font-size: 1.2rem;
    }


    .infoBox {
        height: 20vh;
        padding: 1rem;
        font-size: 0.9rem;
    }

    #stars .star {
        display: none;
    }

        #stars .star:nth-child(-n+30) {
            display: block;
        }

    .desc-char {
        animation-duration: 0.8s !important;
    }

    .scroll-indicator {
        position: fixed;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .indicator-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
    }

        .indicator-dot.active {
            background-color: #ffe6c7;
            transform: scale(1.3);
        }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem !important;
    }

    .section-desc {
        font-size: 0.9rem !important;
    }

    .webName {
        font-size: 1rem;
    }

    .moon {
        width: 40px;
        height: 40px;
    }
}
