
/* CSS 样式 */
:root {
    --primary-color: #2E4053;
    --secondary-color: #AED6F1;
    --accent-color: #2ECC71;
    --background-gradient: linear-gradient(135deg, #2E4053, #1B2631);
    --text-shadow-effect: 1px 1px 3px rgba(0, 0, 0, 0.3);
    --hover-transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-gradient);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 2em 1em;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: var(--accent-color);
    text-shadow: var(--text-shadow-effect);
}

section {
    padding: 2em 1em;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.module {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2em;
}

.module img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.module img:hover {
    transform: scale(1.05);
}

h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    margin-top: 1em;
}

p {
    font-size: 1em;
    margin-bottom: 1em;
    text-shadow: var(--text-shadow-effect);
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Consolas', monospace;
    color: var(--accent-color);
}

code {
    color: var(--accent-color);
    font-weight: bold;
}

.button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--hover-transition);
}

.button:hover {
    background-color: #27AE60;
    transform: scale(1.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

table th, table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    text-align: center;
}

table th {
    background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .module {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.9em;
    }
}

.loader {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: loadingAnimation 2s infinite;
    margin: 2em auto;
}

@keyframes loadingAnimation {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

