
/* CSS 样式代码 */
:root {
    --primary-color: #001f3f;
    --secondary-color: #ffdc00;
    --accent-color: #39ff14;
    --background-gradient: linear-gradient(135deg, #001f3f, #ffdc00, #39ff14);
    --shadow-effect: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: var(--background-gradient);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-family: 'Courier New', monospace;
    color: var(--secondary-color);
    text-shadow: var(--shadow-effect);
}

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

.image-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-effect);
}

.image-box img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

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

.text-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-effect);
}

.code-block {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Consolas', monospace;
    overflow-x: auto;
}

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

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

.particle-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: move-particle 5s infinite ease-in-out;
}

@keyframes move-particle {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, -100px); }
}

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

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

footer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--secondary-color);
    text-align: center;
    border-top: 2px solid var(--secondary-color);
}

