
/* 全局样式与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0d47a1, #6a1b9a);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}
p {
    font-size: 1rem;
    margin-bottom: 1rem;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
}
.header {
    text-align: center;
    margin-bottom: 2rem;
}
.header h1 {
    animation: textGradient 5s infinite;
    font-size: 2.5rem;
}
@keyframes textGradient {
    0% { color: #007BFF; }
    50% { color: #6610f2; }
    100% { color: #198754; }
}
.module {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease-in-out;
}
.module:hover {
    transform: scale(1.05);
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}
pre {
    background: #1e1e1e;
    color: #ffffff;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.button {
    display: inline-block;
    background: linear-gradient(90deg, #007BFF, #6610f2);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.button:hover {
    background: linear-gradient(90deg, #6610f2, #007BFF);
    transform: translateY(-2px);
}
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: float 5s infinite;
}
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.5; }
    100% { transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2rem;
    }
}
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    .module {
        padding: 1rem;
    }
}

