
/* 基础样式与全局变量 */
:root {
    --main-color: #00008B; /* 深蓝色 */
    --accent-color: #39FF14; /* 电光绿 */
    --background-start: #0D1B2A; /* 渐变背景起始色 */
    --background-end: #000; /* 渐变背景结束色 */
    --text-light: #fff; /* 文字亮色 */
    --text-muted: #ccc; /* 辅助文字颜色 */
    --shadow-glow: 0 0 15px rgba(57, 255, 20, 0.7); /* 荧光效果 */
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, var(--background-start), var(--background-end));
    color: var(--text-light);
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: var(--shadow-glow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.module {
    flex: 1 1 calc(50% - 20px);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.code-block {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .module {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 0.9rem;
    }
}

/* 动态粒子效果 */
.particle-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0.5; }
    50% { transform: translateY(-100px) translateX(50px); opacity: 1; }
    100% { transform: translateY(0) translateX(-50px); opacity: 0.5; }
}

/* 固定导航栏 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.9);
    z-index: 1000;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
}

nav ul li a:hover {
    background: var(--accent-color);
    color: var(--background-end);
}

/* 自定义提示框 */
.tip {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
}

