
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #1e1e1e, #282c34);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #39ff14;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

a:hover {
    color: #ffffff;
}

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

.section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
}

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

pre {
    background: #1e1e1e;
    color: #39ff14;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.button {
    display: inline-block;
    background-color: #39ff14;
    color: #000000;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #ffffff;
    color: #39ff14;
}

@keyframes particle-animation {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(50px);
        opacity: 1;
    }
}

.particle {
    width: 10px;
    height: 10px;
    background-color: #39ff14;
    border-radius: 50%;
    animation: particle-animation 3s infinite alternate;
}

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

    .section {
        padding: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tip {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #ffffff;
}

