/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #2c5f2d;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.minecraft-block {
    width: 40px;
    height: 40px;
    background-color: #2c5f2d;
    border: 2px solid #fff;
    box-shadow: inset 0 0 0 2px #000;
    position: relative;
}

.minecraft-block::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background-color: #97bc62;
    box-shadow: inset 0 0 0 1px #000;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #2c5f2d 0%, #97bc62 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.server-info > div {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status .online {
    color: #4ade80;
    font-weight: 500;
}

/* 通用部分样式 */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c5f2d;
    font-weight: 700;
}

/* 特色功能样式 */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background-color: #fafafa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5f2d;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
}

/* 规则部分样式 */
.rules {
    background-color: #f5f5f5;
}

.rules-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.rule-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.rule-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2c5f2d;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rule-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c5f2d;
    font-weight: 600;
}

.rule-content p {
    color: #666;
    font-size: 0.95rem;
}

/* 展示区样式 */
.gallery {
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #fafafa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-placeholder {
    font-size: 4rem;
    margin-bottom: 1rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e8;
    border-radius: 8px;
}

.gallery-item p {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 页脚样式 */
footer {
    background-color: #2c5f2d;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .server-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .server-info > div {
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rule-item {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .feature-item,
    .gallery-item {
        padding: 1.5rem;
    }
}