
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    background: linear-gradient(to bottom, #001f3f, #6a5acd);
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p, li, td {
    font-size: 1rem;
    color: #e0e0e0;
}

a {
    color: #39ff14;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00e676;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.header {
    grid-column: span 12;
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(to right, #001f3f, #39ff14);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
    transform: rotate(45deg);
    animation: moveGradient 10s linear infinite;
}

@keyframes moveGradient {
    0% { transform: translateX(-50%) rotate(45deg); }
    100% { transform: translateX(50%) rotate(45deg); }
}

.header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.module {
    grid-column: span 4;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.button {
    background-color: #39ff14;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background-color: #00e676;
}

pre {
    background: #000000;
    color: #39ff14;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

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

th, td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

th {
    background: #39ff14;
    color: #000;
}

@media (max-width: 768px) {
    .module {
        grid-column: span 6;
    }

    pre {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .module {
        grid-column: span 12;
    }

    h1 {
        font-size: 2rem;
    }

    pre {
        font-size: 0.7rem;
    }
}

