/* --- 全局样式 --- */
:root {
    --primary-color: #5865F2; /* Discord 紫蓝色 */
    --secondary-color: #43b581; /* 绿色，用于点缀 */
    --background-color: #23272A; /* 深灰色背景 */
    --surface-color: #2C2F33; /* 卡片背景色 */
    --text-color: #ffffff;
    --text-muted-color: #99AAB5;
    --font-family: 'Noto Sans SC', sans-serif;
    --header-font: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--header-font);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted-color);
    max-width: 600px;
    margin: -1rem auto 2rem;
}

.content-section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 导航栏 --- */
header {
    background-color: rgba(35, 39, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-muted-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

/* --- 首页 Hero --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x1080.png?text=服务器壮观景象') center center/cover no-repeat;
    /* 替换上面 url() 中的链接为你自己的服务器背景图 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted-color);
}

.cta-buttons a {
    margin: 0 0.5rem;
}

/* --- 按钮 --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

/* --- 特色区域 --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- 模组列表 --- */
.mod-categories {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.mod-category {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
}

.mod-category h4 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.mod-category ul {
    list-style: none;
    margin-top: 1rem;
}

.mod-category ul li {
    padding: 0.3rem 0;
    color: var(--text-muted-color);
}

#modlist {
    text-align: center;
}

/* --- 如何加入 & 规则 --- */
.join-steps, .rules-list {
    max-width: 800px;
    margin: 0 auto;
}

.join-steps li, .rules-list li {
    background-color: var(--surface-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    list-style-position: inside;
}

.join-steps li h3 {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.rules-list {
    list-style: none;
}

.rules-list li::before {
    content: "✔";
    color: var(--secondary-color);
    margin-right: 10px;
    font-weight: bold;
}

/* --- 社区 --- */
.text-center {
    text-align: center;
}

#community .fab {
    margin-right: 10px;
}

/* --- 页脚 --- */
footer {
    background-color: var(--surface-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--text-muted-color);
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    nav ul {
        display: none; /* 简单处理，可以换成汉堡菜单 */
    }
    .mod-categories {
        flex-direction: column;
    }
}
