/* 通用样式 */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: #f4f6fa;
    color: #222;
}

/* 导航栏 */
.navbar {
    background: #23272f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0 40px;
    display: flex;
    height: 60px;
    align-items: center;
}
.navbar li {
    margin-right: 32px;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.navbar a.active, .navbar a:hover {
    background: #3a3f4b;
}
.navbar .shop {
    color: #fff;
    background: #e53935;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(229,57,53,0.08);
}
.server-ip {
    color: #fff;
    font-size: 16px;
    margin-left: 24px;
    background: #1976d2;
    padding: 6px 18px;
    border-radius: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(25,118,210,0.08);
}
.server-qq {
    margin-left: 18px;
    color: #fff;
    background: #43a047;
    padding: 6px 18px;
    border-radius: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(67,160,71,0.08);
}

/* 首页大图和服务器名 */
.main-header {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.header-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
}
.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) blur(1px);
}
.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 24px;
}
.header-content h1 {
    font-size: 4.2rem;
    margin: 0 0 18px 0;
    letter-spacing: 2px;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
    font-weight: 800;
}
.header-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 18px;
}
.header-info .version, .header-info .header-ip {
    font-size: 1.5rem;
    background: rgba(0,0,0,0.32);
    display: inline-block;
    padding: 6px 28px;
    border-radius: 18px;
    margin: 0 4px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-info .header-ip {
    background: rgba(25,118,210,0.32);
    color: #fff;
    letter-spacing: 1px;
}
.header-info .header-online {
    font-size: 1.5rem;
    background: rgba(76,175,80,0.32);
    color: #fff;
    display: inline-block;
    padding: 6px 28px;
    border-radius: 18px;
    margin: 0 4px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76,175,80,0.08);
    letter-spacing: 1px;
}

/* 服务器特点 */
.features {
    max-width: 900px;
    margin: 48px auto 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 36px 32px 28px 32px;
    text-align: center;
}
.features h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: #3a3f4b;
}
.features ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto 18px auto;
    padding: 0 0 0 18px;
    font-size: 1.15rem;
    color: #444;
}
.features li {
    margin-bottom: 8px;
}
.feature-images {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.feature-images img {
    width: 180px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #e0e0e0;
}
.features .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 48px;
    margin-top: 28px;
    margin-bottom: 10px;
}
.feature-item {
    background: #f4f6fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 28px 18px 18px 18px;
    text-align: center;
    transition: box-shadow 0.18s;
}
.feature-item h3 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 1.25rem;
}
.feature-item p {
    margin: 0;
    color: #444;
    font-size: 1.08rem;
}

/* 联系我们 */
.contact {
    max-width: 900px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 32px 32px 24px 32px;
    text-align: center;
}
.contact h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
    color: #3a3f4b;
}
.contact a {
    color: #1976d2;
    text-decoration: none;
    font-weight: bold;
}
.contact a:hover {
    text-decoration: underline;
}

/* 页脚 */
footer {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin: 40px 0 16px 0;
}

/* 管理组页面 */
.team-main {
    max-width: 1000px;
    margin: 48px auto 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 36px 32px 28px 32px;
}
.team-title {
    text-align: center;
    font-size: 2.2rem;
    color: #3a3f4b;
    margin-bottom: 32px;
}
.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.team-card {
    background: #f7f8fa;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    width: 270px;
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.18s, box-shadow 0.18s;
}
.team-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.team-card .avatar {
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
}
.team-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    background: #e0e0e0;
}
.team-card .info h2 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #1976d2;
}
.team-card .info p {
    margin: 4px 0;
    font-size: 1.05rem;
    color: #444;
}

/* 规则页面markdown内容美化 */
.markdown-content h1 { font-size: 2.1rem; color: #1976d2; margin-top: 0; }
.markdown-content h2 { font-size: 1.5rem; color: #3a3f4b; margin-top: 32px; }
.markdown-content h3 { font-size: 1.2rem; color: #444; margin-top: 24px; }
.markdown-content ul, .markdown-content ol { margin-left: 24px; }
.markdown-content li { margin-bottom: 6px; }
.markdown-content { line-height: 1.8; color: #222; background: #fff; border-radius: 0 16px 16px 0; }
.sidebar {
    width: 270px;
    border-right: 1px solid #eee;
    padding: 28px 0 28px 0;
    background: #f7f8fa;
    border-radius: 16px 0 0 16px;
    overflow-y: auto;
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 60px);
    /* 60px为导航栏高度 */
    z-index: 10;
}
.sidebar .sidebar-title.collapsible:after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 6px;
    color: #aaa;
    transition: transform 0.2s;
}
.sidebar .sidebar-title.collapsible.collapsed:after {
    transform: rotate(-90deg);
}

/* 响应式 */
@media (max-width: 700px) {
    .features, .contact {
        padding: 18px 6px 12px 6px;
    }
    .main-header {
        height: 260px;
    }
    .header-content {
        max-width: 98vw;
        padding: 0 4px;
    }
    .header-content h1 {
        font-size: 2rem;
    }
    .header-info {
        flex-direction: column;
        gap: 10px;
    }
    .header-info .version, .header-info .header-ip {
        font-size: 1rem;
        padding: 4px 10px;
    }
    .header-info .header-online {
        font-size: 1rem;
        padding: 4px 10px;
    }
    .feature-images img {
        width: 100px;
        height: 60px;
    }
    .navbar ul {
        padding: 0 8px;
    }
    .navbar li {
        margin-right: 10px;
    }
    .features .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .server-ip {
        font-size: 13px;
        padding: 4px 10px;
        margin-left: 8px;
    }
    .server-qq {
        font-size: 13px;
        padding: 4px 10px;
        margin-left: 8px;
    }
}
@media (max-width: 900px) {
    .team-list {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .team-card {
        width: 95%;
        max-width: 350px;
    }
    .features .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
} 