* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--Primary-blue-linear, linear-gradient(180deg, #E1DEFF 13%, #E9EAFC 25.48%, #FCFBFC 98%));
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #ff6b6b;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff6b6b;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-btn {
        display: block;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .logo-img {
        height: 30px;
    }

    /* 第四页特殊样式 */
    #slide4 .slide-content {
        margin-top: -2rem; /* 整体上移 */
    }

    #slide4 .image-content {
        margin-top: 1rem; /* 减小图片顶部间距 */
    }

    #slide4 .text-content {
        margin-top: 0.5rem; /* 减小文字顶部间距 */
    }
}

.container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
    z-index: 1;
    padding-top: 80px; /* 为导航栏留出空间 */
    padding-bottom: 80px; /* 为页脚留出空间 */
}

.slide {
    min-height: calc(100vh - 160px); /* 减去导航栏和页脚的高度 */
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 20px 0;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    gap: 4rem;
    padding: 2rem;
    margin: 20px 0;
}

.slide-content.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    text-align: left;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
    margin-top: 2rem;
    margin-bottom: 1rem;
    min-height: 300px;
}

.image-content img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

h1, h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
}

p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.features {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    color: #333;
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Footer 样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 0.5rem 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer p {
    margin: 0.25rem 0;
    font-size: 0.8rem;
}

.footer a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.footer a:hover {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .container {
        padding-top: 70px;
    }

    .slide {
        min-height: calc(100vh - 150px);
        padding: 10px 0;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 1rem;
        margin: 10px 0;
    }

    .slide-content.reverse {
        flex-direction: column;
    }

    .text-content {
        text-align: center;
        order: 2;
        margin-top: 1rem;
    }

    .image-content {
        order: 1;
        margin-bottom: 1rem;
        min-height: 300px;
    }

    .image-content img {
        max-height: 300px;
        width: auto;
    }

    h1, h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1.2rem;
    }

    .features {
        justify-content: center;
    }

    .feature-item {
        width: 100%;
    }

    .feature-item i {
        font-size: 2rem;
    }

    .footer {
        padding: 0.3rem 0;
    }

    .footer p {
        margin: 0.2rem 0;
        font-size: 0.7rem;
    }

    .footer a {
        font-size: 0.7rem;
    }
} 