
/* 全局样式定义 */
body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: #dcdcdc;
    background: linear-gradient(to bottom, #000033, #1A1A40);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 20px;
    color: #87ceeb;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
}

a[rel="nofollow"] {
    color: #39ff14;
    transition: color 0.3s ease;
}

a[rel="nofollow"]:hover {
    color: #00bfff;
}

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

.grid-item {
    background-color: #1a1a1a;
    color: #87ceeb;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

.button {
    background: linear-gradient(to right, #00bfff, #39ff14);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
}

.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.8));
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: move-particle 5s infinite;
}

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

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

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

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

pre code {
    display: block;
    background-color: #2a2a2a;
    color: #87ceeb;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
    color: #fff;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    animation: ripple-effect 0.5s;
}

@keyframes ripple-effect {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0); }
}

