
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    background: radial-gradient(circle, rgba(30, 39, 46, 1) 0%, rgba(255, 255, 255, 0) 70%);
    color: #FFFFFF;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
}

a {
    color: #4CAF50;
    text-decoration: none;
    rel: nofollow;
}

a:hover {
    color: #3498DB;
    transition: color 0.3s ease;
}

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

.header {
    background: linear-gradient(135deg, #1E272E, #2C3E50);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 3em;
    margin: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,87,34,0.5), transparent);
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.navbar {
    display: flex;
    justify-content: center;
    background-color: rgba(44, 62, 80, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    padding: 15px 20px;
    font-size: 1.1em;
}

.navbar a:hover {
    background-color: #3498DB;
}

.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #2C3E50, #1E272E);
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.module {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
}

.module img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.module-content {
    animation: scroll-animation 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.module-content.active {
    opacity: 1;
    transform: translateY(0);
}

.pre-code {
    background-color: #2C3E50;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
}

.pre-code code {
    color: #4CAF50;
    font-family: 'Roboto Mono', monospace;
    white-space: pre-wrap;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #4CAF50;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: #1E272E;
}

.footer {
    background: linear-gradient(135deg, #1E272E, #2C3E50);
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 0;
    font-size: 1em;
}

@media (max-width: 1440px) {
    .header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    .module {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 30px 0;
    }
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .module {
        grid-template-columns: 1fr;
    }
    .navbar a {
        padding: 10px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2em;
    }
    .module-content {
        padding: 10px;
    }
}

@media (max-width: 320px) {
    .navbar a {
        padding: 8px;
        font-size: 0.9em;
    }
    .section h2 {
        font-size: 2em;
    }
}

@keyframes scroll-animation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button {
    background-color: #4CAF50;
    border: none;
    padding: 15px 25px;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #3498DB;
}

.code-preview {
    background-color: #1E272E;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 20px;
}

.code-preview pre {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.aurora {
    background: radial-gradient(circle, rgba(255,87,34,0.5), transparent);
    animation: aurora-move 15s linear infinite;
}

