
/* 渐变背景与全局样式 */
:root {
    --primary-gradient: linear-gradient(135deg, #00008B, #8A2BE2);
    --secondary-gradient: linear-gradient(90deg, #00FFFF, #FFFFFF);
    --hover-glow: rgba(255, 255, 255, 0.8);
    --font-title: 'Futura', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--primary-gradient);
    color: #fff;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    margin-top: 0;
}

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

section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    padding: 40px 0;
    background: var(--secondary-gradient);
    border-radius: 10px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #000;
}

button {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out;
}

button:hover {
    box-shadow: 0 0 10px var(--hover-glow);
}

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

code {
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: #0f0;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    section {
        margin-bottom: 15px;
    }
    header h1 {
        font-size: 2rem;
    }
}

