
/* 页面全局样式 */
body {
    margin: 0;
    font-family: 'Merriweather', serif;
    background: linear-gradient(to bottom, #0A192F, #000000);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #FF7F50;
}

a {
    color: #4DB6AC;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #6A0DAD;
}

p, li {
    font-size: 1rem;
    color: #C5C6C7;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

@media (min-width: 768px) {
    .container {
        grid-template-columns: 200px 1fr;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: linear-gradient(to bottom, #0A192F, #1E272E);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.navbar a {
    display: block;
    margin: 10px 0;
    font-size: 1rem;
    color: #FF7F50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar a:hover {
    color: #6A0DAD;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

/* 内容区 */
.content {
    margin-left: 220px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.module {
    background-color: #1E272E;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.module h3 {
    margin-top: 0;
    color: #FF7F50;
}

.module img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3 {
    animation: fadeIn 1s ease-in-out;
}

button {
    background-color: #4DB6AC;
    color: #0A192F;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

button:hover {
    box-shadow: 0 0 10px #FF7F50, 0 0 20px #FF7F50, 0 0 30px #FF7F50;
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background-color: #0A192F;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #4DB6AC;
}

code {
    color: #FF7F50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1, h2, h3 {
        font-size: 1.2rem;
    }

    p, li {
        font-size: 0.9rem;
    }
}

/* 动态粒子背景 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #FFFFFF;
    border-radius: 50%;
    animation: move 5s infinite linear;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100vw, 100vh); }
}

