
/* CSS 样式代码块 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000, #1a1a1a);
    color: #d7e3dc;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(90deg, #000, #3eb489, #000);
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 10px #3eb489, 0 0 20px #3eb489;
    margin: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(62, 180, 137, 0.1), rgba(62, 180, 137, 0.1) 10px, transparent 10px, transparent 20px);
    animation: slide 10s linear infinite;
    z-index: -1;
}

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

.section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.section h2 {
    font-size: 2rem;
    color: #3eb489;
    margin-bottom: 15px;
}

.module {
    background: rgba(62, 180, 137, 0.2);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

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

pre {
    background: #1a1a1a;
    color: #3eb489;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

button {
    background: #3eb489;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #2e7d55;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .container {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.8rem;
    }
}

