
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #00008B, #6A0DAD);
    overflow-x: hidden;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    color: #00FFFF;
    margin-bottom: 10px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

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

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

.grid-item:hover {
    transform: translateY(-10px);
}

article {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    max-width: 1200px;
    margin: 20px auto;
}

article h2, article h3 {
    color: #00FFFF;
    margin-top: 20px;
}

code {
    display: block;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF00;
}

pre {
    overflow-x: auto;
    white-space: pre-wrap;
}

.glass-effect {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

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

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

    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    code {
        font-size: 0.9rem;
    }

    .parallax {
        height: 250px;
    }
}

