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

body {
    font-family: Arial, sans-serif;
    background: #0a001a;
    color: white;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(10, 0, 26, 0.9);
    padding: 1rem;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #7b2cbf;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

#stars {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff, #9d50bb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 2rem;
    color: #a0a0c0;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
}

.hero-content button {
    background: linear-gradient(90deg, #7b2cbf, #3a86ff);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-content button:hover {
    transform: translateY(-3px);
}

/* 通用部分 */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

/* 特色网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(123, 44, 191, 0.1);
}

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

/* 加入部分 */
.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.server-info, .community-links {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

.community-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-links a {
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: opacity 0.3s;
}

.community-links a:hover {
    opacity: 0.8;
}

.discord { background: #5865F2; }
.qq { background: #12B7F5; }

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: #888;
}

/* 响应式 */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4rem;
        flex-direction: column;
        background: rgba(10, 0, 26, 0.95);
        width: 100%;
        padding: 1rem;
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .join-content { grid-template-columns: 1fr; }
}
