
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0A192F, #64FFDA);
    color: #FFFFFF;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

header {
    text-align: center;
    padding: 60px 0;
    background: rgba(10, 25, 47, 0.8);
    position: relative;
}
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

h1 {
    font-size: 48px;
    background: linear-gradient(90deg, #0A192F, #64FFDA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 2s ease-in-out;
}

nav {
    margin-top: 20px;
}

nav a {
    color: #64FFDA;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

section {
    padding: 80px 0;
    background: rgba(10, 25, 47, 0.9);
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

h2, h3, h4 {
    color: #64FFDA;
}

p, ul {
    font-size: 18px;
    line-height: 1.6;
    color: #FFFFFF;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    position: relative;
    padding-left: 20px;
}

ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #64FFDA;
}

pre {
    background: #0A192F;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 16px;
    line-height: 1.5;
    margin: 20px 0;
}

code {
    color: #64FFDA;
    font-family: 'Courier New', Courier, monospace;
}

button {
    background-color: #0A192F;
    color: #64FFDA;
    border: 2px solid #64FFDA;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #64FFDA;
    color: #0A192F;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 40px 0;
    background: rgba(10, 25, 47, 0.8);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.module {
    background: #1E2A47;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

img {
    width: 100%;
    border-radius: 8px;
}

.code-preview {
    background: #0A192F;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-preview code {
    display: block;
    white-space: pre;
    color: #64FFDA;
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    nav a {
        font-size: 16px;
        margin: 0 10px;
    }
    .container {
        padding: 30px 0;
    }
    button {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    nav a {
        font-size: 14px;
        margin: 0 5px;
    }
    .module-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 56px;
    }
    nav a {
        font-size: 20px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 80%;
    }
}

@media (min-width: 1440px) {
    h1 {
        font-size: 64px;
    }
}

