
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0000FF, #8A2BE2, #FF4500);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    color: white;
    line-height: 1.6;
    padding: 20px;
}

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

h1, h2, h3 {
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
}

code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    display: block;
    margin: 10px 0;
    white-space: pre-wrap;
}

pre {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
}

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

a:hover {
    color: #8A2BE2;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

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

.module {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid transparent;
    border-image: linear-gradient(to right, #0000FF, #8A2BE2) 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
}

.icon {
    width: 48px;
    height: 48px;
    fill: white;
    filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.8));
    margin: 10px auto;
}

button {
    background: linear-gradient(to right, #0000FF, #8A2BE2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #FF4500, #8A2BE2);
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }
}

