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

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    margin-top: 20px;
    margin-bottom: 10px;
}

p, li, code, pre {
    font-size: 1rem;
    margin-bottom: 15px;
}

pre {
    background-color: rgba(0, 0, 70, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
}

code {
    background-color: rgba(28, 181, 224, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

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

a:hover {
    color: #ffd700;
}

.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.sidebar {
    width: 25%;
    background: linear-gradient(180deg, #1a1a1a, #333);
    color: #fff;
    padding: 20px;
    position: fixed;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.main-content {
    margin-left: 25%;
    padding: 20px;
    flex-grow: 1;
}

.header {
    background: linear-gradient(90deg, #000046, #1cb5e0);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(28, 181, 224, 0.5) 10%, transparent 10%);
    animation: moveGradient 5s linear infinite;
}

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

.button {
    background-color: #1cb5e0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #000046;
    box-shadow: 0 0 15px #1cb5e0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

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

.image-grid img:hover {
    transform: scale(1.1);
}

.node {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    margin: 20px auto;
}

.node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid #1cb5e0;
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 10px;
    }

    pre {
        font-size: 0.9rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

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

    p, li, code {
        font-size: 0.9rem;
    }

    .button {
        padding: 8px 15px;
    }
}

