
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #0A2463, #1E88E5);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

header {
    background: linear-gradient(to right, #0A2463, #0D47A1);
    color: #FFFFFF;
    text-align: center;
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    opacity: 0.8;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

nav a {
    color: #FF9800;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: #FFC107;
}

section {
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #FF9800;
}

h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #FFC107;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: rgba(0, 0, 0, 0.1);
    color: #FFC107;
}

td {
    color: #FFFFFF;
}

ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

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

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

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

    .parallax {
        height: 300px;
    }
}

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

    nav {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 1.5rem;
    }
}

.animate {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

