
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0000FF, #8A2BE2, #00FF7F);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin: 10px 0;
    font-size: 1rem;
}

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

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

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

button {
    background-color: #0000FF;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover {
    background-color: #8A2BE2;
    transform: scale(1.1);
}

pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
}

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

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

.parallax {
    height: 300px;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 40px 0;
}

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    pre {
        font-size: 0.8rem;
    }
}

.tip {
    text-align: center;
    font-size: 1.2rem;
    margin: 20px 0;
    color: #FFD700;
}

