/* 基础样式 */
:root {
    --primary-color: #6a5acd;
    --primary-dark: #5a4abf;
    --secondary-color: #7b68ee;
    --text-color: #e0e0e0;
    --text-dark: #333;
    --bg-color: #1a1a2e;
    --bg-light: #16213e;
    --card-bg: #0f3460;
    --card-hover: #133b6e;
    --accent-color: #e94560;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 白天模式变量 */
.light-mode {
    --text-color: #333;
    --text-dark: #111;
    --bg-color: #f5f7fa;
    --bg-light: #e4e9f2;
    --card-bg: #ffffff;
    --card-hover: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.fas {
    font-size: 1.2rem;
}

/* 导航栏样式 */
nav {
    margin-bottom: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav a:hover {
    background-color: rgba(123, 104, 238, 0.1);
    color: var(--secondary-color);
}

nav a.active {
    background-color: var(--secondary-color);
    color: white;
}

/* 主要内容区域 */
main {
    margin-bottom: 50px;
}

section {
    margin-bottom: 50px;
}

h2, h3, h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.1) 0%, rgba(123, 104, 238, 0.05) 100%);
    z-index: -1;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* 快速链接区域 */
.quick-links {
    margin-bottom: 60px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

.link-card:hover {
    transform: translateY(-5px);
    background-color: var(--card-hover);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.link-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.link-card span {
    display: block;
    font-weight: 500;
}

.qq-group {
    cursor: pointer;
}

.qr-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    width: 200px;
    z-index: 10;
}

.qq-group:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 15px);
}

.qr-tooltip img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.qr-tooltip p {
    font-size: 0.9rem;
    text-align: center;
}

/* 特色区域 */
.features {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(123, 104, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.feature-card h4 {
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* 版本信息 */
.version-info {
    margin-bottom: 60px;
}

.version-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.version-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: var(--border-radius);
    color: var(--warning-color);
}

.warning i {
    font-size: 1.2rem;
}

/* 服务器特色区域 */
.server-difference {
    margin-bottom: 60px;
}

.difference-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.difference-text {
    flex: 1;
    min-width: 300px;
}

.difference-image {
    flex: 1;
    min-width: 300px;
}

.minecraft-frame {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.minecraft-frame i {
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.3;
}

.difference-text ul {
    list-style: none;
}

.difference-text li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.difference-text li i {
    color: var(--success-color);
    margin-top: 3px;
}

/* 插件区域 */
.plugins-section {
    margin-bottom: 60px;
}

.section-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.plugin-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.plugin-card h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.plugin-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 加入区域 */
.join-section {
    text-align: center;
    padding: 60px 0;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 60px;
}

.join-content {
    max-width: 600px;
    margin: 0 auto;
}

.join-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(123, 104, 238, 0.1);
    transform: translateY(-3px);
}

/* 页脚样式 */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    margin-top: 20px;
}

.to-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.to-top:hover {
    color: var(--secondary-color);
}

.to-top i {
    font-size: 0.9rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav ul {
        justify-content: center;
    }

    .difference-content {
        flex-direction: column;
    }

    .difference-text, .difference-image {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .join-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}