
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Merriweather:ital,wght@0,400;1,700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    font-family: 'Merriweather', serif;
    background: linear-gradient(135deg, #0D1B2A, #162447);
    color: #E0E1DD;
    line-height: 1.6;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #772CE8;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(60, 179, 113, 0.3) 10%, transparent 70%);
    transform: rotate(45deg);
    animation: spin 10s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #4CAF50;
}

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

code {
    color: #FFD700;
    font-family: Consolas, monospace;
}

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

.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #772CE8, #4CAF50);
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(119, 44, 232, 0.5);
}

.note {
    background: #162447;
    color: #FFFAF0;
    padding: 15px;
    border-left: 5px solid #4CAF50;
    margin: 20px 0;
    font-style: italic;
}

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

    section {
        padding: 15px;
    }

    .container {
        grid-template-columns: 1fr;
    }
}

