
/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background: linear-gradient(135deg, #0A192F, #645DD7);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
a {
    color: #2CCCE4;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #00FFC7;
}
header nav a {
    margin-left: 20px;
    color: #fff;
    rel: "nofollow";
}
main {
    padding-top: 80px;
}
section {
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}
section:nth-child(odd) {
    background: linear-gradient(135deg, #0A192F, #1B2A41);
}
section:nth-child(even) {
    background: linear-gradient(135deg, #645DD7, #4B4AE8);
}
.parallax {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}
.parallax h2 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
code {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    display: block;
    margin: 10px 0;
}
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}
button {
    background: #2CCCE4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    transform: scale(1.1);
    background: #00FFC7;
}
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #645DD7;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: 1.5rem;
    }
    pre {
        font-size: 14px;
    }
    section {
        padding: 40px 0;
    }
}

