
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0A3D62, #1B98E0);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    margin: 1.5em 0 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
a {
    color: #FFC300;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #FFD700;
}
p {
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin: 1em 0;
}
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
code {
    color: #1B98E0;
    font-family: 'Courier New', Courier, monospace;
}

/* 布局样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.header {
    background: linear-gradient(135deg, #1B98E0, #6A0DAD);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.header h1 {
    font-size: 2.5rem;
    color: #fff;
}
.main-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.sidebar {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.footer {
    background: linear-gradient(135deg, #6A0DAD, #0A3D62);
    padding: 20px;
    text-align: center;
    color: #fff;
}

/* 动画与交互 */
button {
    background: #FFC300;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
button:hover {
    transform: scale(1.1);
}
.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;
}
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #1B98E0;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2rem;
    }
    pre {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }
    .parallax {
        height: 300px;
    }
}

