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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #fff;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #4CAF50;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}

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

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

.nav-menu a {
    color: #ddd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

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

#minecraft-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #4a8fe7 0%, #3a7bd5 50%, #1a5fb4 100%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 0 #000;
}

.hero-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 300;
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.cta-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* 特色功能 */
.features {
    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;
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
}

.feature i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.feature p {
    color: #aaa;
}

/* 规则 */
.rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.rule {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #4CAF50;
}

.rule i {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* 加入部分 */
.join-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.step-number {
    background: #4CAF50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.address-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 5px;
}

#server-ip {
    font-family: monospace;
    font-size: 1.2rem;
    color: #4CAF50;
    flex: 1;
}

.copy-btn {
    background: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: #444;
}

.community-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.community-links a {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

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

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

/* 页脚 */
footer {
    background: rgba(0,0,0,0.9);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 2px solid #4CAF50;
}

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

.copyright {
    color: #888;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* 回到顶部 */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #4CAF50;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
}

.scroll-top:hover {
    background: #45a049;
}

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