
/* 页面全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', '思源黑体', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #0074D9, #6F3ACB, #1E90FF);
    background-size: 400% 400%;
    animation: gradient-animation 10s ease infinite;
    overflow-x: hidden;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.header {
    text-align: center;
    padding: 40px 20px;
}

.header h1 {
    font-size: 48px;
    background: -webkit-linear-gradient(#4A90E2, #3B86FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.header p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    line-height: 1.5;
    color: #e0e0e0;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #fff;
}

.code-block pre {
    margin: 0;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particle-animation 5s infinite;
}

@keyframes particle-animation {
    from { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

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

    .card {
        padding: 15px;
    }

    .code-block {
        font-size: 12px;
    }
}

