
/* 基础样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #000033, #1a1aff, #000033);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    line-height: 1.6;
}

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

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

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

a:hover {
    color: #ffffff;
}

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

.header {
    text-align: center;
    padding: 40px 0;
    background: rgba(0, 0, 51, 0.8);
    border-bottom: 2px solid #00ffcc;
}

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

.section {
    background: rgba(26, 26, 175, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

pre {
    background: rgba(0, 0, 51, 0.9);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
}

code {
    color: #ffffff;
}

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

    .header h1 {
        font-size: 2rem;
    }

    pre {
        font-size: 0.9rem;
    }
}

.animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.tip {
    text-align: center;
    font-size: 1rem;
    color: #00ffcc;
    margin-top: 20px;
}

