
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0, #330066);
    color: white;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica', sans-serif;
    font-weight: bold;
    color: #ff00cc;
    text-shadow: 0 0 10px rgba(255, 0, 204, 0.8);
}

p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

a:hover {
    color: #ff00cc;
}

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

.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 204, 0.5);
    transition: transform 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img.loaded {
    opacity: 1;
}

pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    color: #00ffcc;
}

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

button {
    background: linear-gradient(90deg, #ff00cc, #333399);
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

button:hover {
    transform: scale(1.1);
}

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

.feature {
    animation: fadeIn 2s ease-in-out;
}

.node {
    width: 20px;
    height: 20px;
    background-color: #ff00cc;
    border-radius: 50%;
    position: absolute;
}

.connection {
    position: absolute;
    width: 1px;
    height: 100px;
    background-color: rgba(255, 0, 204, 0.5);
}

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

    pre {
        font-size: 12px;
    }
}

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

    p {
        font-size: 14px;
    }
}

