:root {
    --mc-green: #4CAF50;
    --mc-dark: #1a1a1a;
    --mc-light: #e0e0e0;
    --mc-gray: #aaaaaa;
    --mc-dark-green: #2E7D32;
    --mc-darker: #121212;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--mc-darker);
    color: var(--mc-light);
    background-image: url('photos/g_0.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
}

/* 主导航栏 */
nav {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--mc-green);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand img {
    height: 40px;
}

.nav-brand h2 {
    color: var(--mc-green);
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--mc-light);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--mc-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mc-green);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* 圆角按钮样式 */
.nav-join-button, .rules-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--mc-green);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--mc-green);
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-join-button:hover, .rules-button:hover {
    background-color: transparent;
    color: var(--mc-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--mc-green);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--mc-gray);
}

/* 分隔线 */
.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(76, 175, 80, 0), rgba(76, 175, 80, 0.75), rgba(76, 175, 80, 0));
    margin: 2rem auto;
    width: 50%;
}
/* Logo */
@media (max-width: 600px) {
        .server-icon {
            width: 80px;
            height: 80px;
        }
    }
.flogo {
        margin-bottom: 1.5rem;
        animation: float 3s ease-in-out infinite;
    }
    

    .server-icon {
        width: 120px;
        height: 120px;
        border-radius: 20px;
        object-fit: contain;
        border: 3px solid var(--mc-green);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }
    
    /* 浮动动画 */
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(0px); }
    }
/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    background-color: var(--mc-green);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--mc-green);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.button:hover {
    background-color: transparent;
    color: var(--mc-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.button-secondary {
    background-color: transparent;
    color: var(--mc-green);
}

.button-secondary:hover {
    background-color: var(--mc-green);
    color: white;
}

/* 服务器信息 */
.server-mesg {
    margin-top: 2rem;
    background-color: rgba(30, 30, 30, 0.7);
    padding: 1rem;
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 内容区块 */
.section {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    color: var(--mc-green);
    margin-top: 0;
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

h3 {
    color: var(--mc-green);
    margin-top: 1.5rem;
}

/* 特色列表 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: rgba(30, 30, 30, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--mc-green);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 团队成员 */
.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: rgba(30, 30, 30, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mc-green);
    margin-bottom: 1rem;
}

/* 时间线 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--mc-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--mc-green);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: scale(1.02);
}

/* 玩家作品展示 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 200px;
    transition: transform 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    text-align: center;
}

/* 服务器规则按钮 */
.rules-button-container {
    margin-top: 2rem;
}

/* 页脚 */
footer {
            background-color: #000000e5;
            color: #bdc3c7;
            padding: 15px 0;
            margin-top: 30px;
        }
        
        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 15px;
            text-align: center;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }
        
        .footer-links a {
            color: var(--footer-text);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: white;
        }

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--mc-light);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--mc-green);
}

.copyright {
    margin-top: 1rem;
    color: var(--mc-gray);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        text-align: center;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 1rem;
    }
    
    .top-bar-links, .top-bar-social {
        gap: 0.8rem;
        font-size: 0.8rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .left, .right {
        left: 0;
    }
    
    .button {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .nav-join-button, .rules-button {
        background-color: #27ae60;
            color: white;
            border: none;
            border-radius: 50px;
            padding: 10px 20px;
            font-size: 1rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            transition: all 0.3s;
            margin-top: 12px;
            font-weight: 600;
    }
}