
/* 全局样式 */
body {
    font-family: 'Merriweather', serif;
    color: #C0C0C0;
    background: linear-gradient(to bottom, #0A1A2F, #0A1928);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    color: #9B59B6;
    margin-top: 2rem;
}

p, li {
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    color: #1ABC9C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9B59B6;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.left-section {
    width: 60%;
    padding-right: 20px;
}

.right-section {
    width: 40%;
    text-align: right;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.background-gradient {
    background: linear-gradient(to bottom, #0A1A2F, #9B59B6);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.2); }
    100% { transform: translateY(0) scale(1); }
}

.icon {
    transition: all 0.3s ease;
}

.icon:hover {
    transform: rotate(360deg);
    color: #1ABC9C;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-section, .right-section {
        width: 100%;
        text-align: center;
    }

    pre code {
        font-size: 0.9rem;
        white-space: pre-wrap;
        word-break: break-word;
    }
}

/* 装饰性粒子效果 */
.particles-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.particles-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    z-index: -1;
}

.particle-item {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: particle-move 10s infinite ease-in-out;
}

@keyframes particle-move {
    0% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(100px, -50px); opacity: 0.5; }
    100% { transform: translate(-100px, 100px); opacity: 1; }
}

/* 自适应布局 */
@media (max-width: 480px) {
    h1, h2, h3 {
        font-size: 1.5rem;
    }

    p, li {
        font-size: 0.9rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

