
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    line-height: 1.6;
}
a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ffffff;
}
header {
    background: rgba(0, 0, 70, 0.8);
    padding: 20px;
    text-align: center;
}
header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    margin: 0;
}
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    font-size: 1.1em;
    font-weight: bold;
}
.main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.article {
    flex: 2 1 600px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}
.article h2, .article h3, .article h4 {
    font-family: 'Roboto', sans-serif;
    color: #ffd700;
}
.article pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
.article code {
    font-family: 'Courier New', Courier, monospace;
    color: #ffeb3b;
}
.sidebar {
    flex: 1 1 300px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}
.sidebar h3 {
    color: #ffd700;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin-bottom: 10px;
}
.sidebar ul li a {
    color: #1cb5e0;
}
.footer {
    background: rgba(0, 0, 70, 0.8);
    text-align: center;
    padding: 20px;
    position: relative;
}
.footer p {
    margin: 0;
}
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: move 10s linear infinite;
}
@keyframes move {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(100vh); }
}
.button {
    background-color: #1cb5e0;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}
.button:hover {
    background-color: #000046;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
}

