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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    z-index: 4;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: left;
    cursor: pointer;
}

.logo span {
    font-size: 1rem;
    color: #333;
    font-family: "Microsoft YaHei", sans-serif;
    font-weight: 500;
}

.logo .en-name {
    font-size: 0.7rem;
    color: #666;
    font-family: "Arial", sans-serif;
    margin-top: 1px;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

.hero {
    height: 100vh;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 3;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    transform: translateY(-10%);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    margin-top: -0.8rem;
    font-weight: normal;
    font-family: "Bubblegum Sans", cursive;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.85);
    animation: glow 2s ease-in-out infinite alternate-reverse;
}

.hero-content h3 {
    font-size: 2rem;
    letter-spacing: 8px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4);
    font-family: "Righteous", cursive;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    font-weight: normal;
    letter-spacing: 6px;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    }
    to {
        text-shadow: 2px 2px 25px rgba(0, 0, 0, 0.6),
                    0 0 40px rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .hero-content h3 {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.4;
    pointer-events: none;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 导航栏适配 */
    .navbar {
        padding: 10px 15px;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 10px;
        text-align: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .nav-links a {
        padding: 5px 10px;
        font-size: 14px;
    }

    /* 首页适配 */
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content h3 {
        font-size: 1.5rem;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
    .logo span {
        font-size: 16px;
    }

    .logo .en-name {
        font-size: 12px;
    }

    .nav-links a {
        padding: 5px 8px;
        font-size: 13px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.2rem;
    }
} 