
/* 全局样式与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #003366, #663399);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
p {
    margin-bottom: 1em;
}
a {
    color: #FFCC00;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #FF9900;
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.module {
    background: linear-gradient(135deg, #336699, #6699CC);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.code-block {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
th {
    background: rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .module {
        flex: 1 1 100%;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: move 5s infinite alternate;
}
@keyframes move {
    from { transform: translateX(-100vw); }
    to { transform: translateX(100vw); }
}

