
body {
    margin: 0;
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #2196F3, #E91E63),
                repeating-linear-gradient(
                    45deg,
                    rgba(255, 255, 255, 0.1),
                    rgba(255, 255, 255, 0.1) 10px,
                    transparent 10px,
                    transparent 20px
                );
    color: #fff;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to right, #FF4081, #00E676);
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

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

h1, h2, h3 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    background: -webkit-linear-gradient(#FF4081, #00E676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5em;
    margin-bottom: 20px;
}

article {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

p {
    color: #f0f0f0;
    font-size: 1em;
    line-height: 1.8;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #f0f0f0;
}

pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    color: #00ff00;
}

code {
    background: #1e1e1e;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
}

button {
    background: linear-gradient(to bottom, #FFC107, #FF9800);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #fff;
    font-size: 1em;
}

button:hover {
    background: linear-gradient(to top, #FFC107, #FF9800);
}

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

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

    h1 {
        font-size: 2em;
    }

    pre {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    header {
        font-size: 1.2em;
    }

    article {
        padding: 15px;
    }
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: particle-flow 10s infinite linear;
}

@keyframes particle-flow {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* 鼠标悬停按钮震动效果 */
button:focus {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

