
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom, #000046, #1cb5e0);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #ff9800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

a {
    color: #00bcd4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #007bff;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #000046, #1cb5e0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul li a {
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.module {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
}

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

.code-block {
    background: #1e1e1e;
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
    }

    .container {
        grid-template-columns: 1fr;
    }
}

footer {
    background: linear-gradient(to left, #000046, #1cb5e0);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 2px solid #00bcd4;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: particles 5s infinite;
}

@keyframes particles {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 50px); }
}

