
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Merriweather', serif;
    background: linear-gradient(to bottom, #0A192F, #1C2B4F);
    color: #E6E8EB;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #7B61FF;
}

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

.section {
    background: linear-gradient(to right, #0A192F, #1C2B4F);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
    border-radius: 10px;
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #7B61FF, #3AFF94);
    color: #0A192F;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #3AFF94;
    color: #0A192F;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.button:hover::before {
    width: 200px;
    height: 200px;
}

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

pre {
    background: #0A192F;
    color: #E6E8EB;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #3AFF94;
}

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

    pre {
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 1s ease-in-out;
}

/* 背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0A192F, #1C2B4F);
    z-index: -1;
    animation: particles 5s infinite;
}

@keyframes particles {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

