
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Roboto Mono', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a2e, #2c3e50);
    color: #ffffff;
    padding: 20px;
}

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

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(to right, #3f51b5, #00c853);
    margin-bottom: 20px;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.module {
    background: #1a1a2e;
    border: 1px solid #3f51b5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

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

.module::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    background: #00c853;
    border-radius: 50%;
    box-shadow: 0 0 10px #00c853;
}

article {
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    margin-bottom: 20px;
}

article h2, article h3, article h4 {
    color: #00c853;
    margin-top: 20px;
}

article p {
    line-height: 1.8;
    margin-bottom: 15px;
}

pre {
    background: #1a1a2e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #3f51b5;
    font-family: 'Courier New', Courier, monospace;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    border: 1px solid #3f51b5;
    padding: 10px;
    text-align: center;
}

table th {
    background: #3f51b5;
    color: #ffffff;
}

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

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

@keyframes particle-animation {
    0% { transform: translateX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to right, #00c853, #3f51b5);
    margin-top: 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

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

    pre {
        font-size: 0.9rem;
    }
}

