
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: #333;
    background: linear-gradient(135deg, #0074D9, #6a11cb);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    background: linear-gradient(135deg, #0074D9, #6a11cb);
    color: white;
    text-align: center;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: rotate(30deg);
    animation: moveBackground 10s infinite linear;
}

@keyframes moveBackground {
    from { transform: translateX(0) rotate(30deg); }
    to { transform: translateX(-50%) rotate(30deg); }
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.5rem;
    margin: 0;
}

.main-content {
    background: #f9f9f9;
    padding: 40px 20px;
    border-radius: 10px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

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

pre {
    background: #282c34;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

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

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

    .header p {
        font-size: 1.2rem;
    }

    .card {
        margin: 10px 0;
    }
}

.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #0074D9, #6a11cb);
    color: white;
    margin-top: 40px;
    font-size: 0.9rem;
}

