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

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0d1b2a, #1b263b, #0d1b2a);
    background-size: 400% 400%;
    animation: gradientAnimation 15s linear infinite;
    line-height: 1.6;
    padding: 20px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #8e44ad;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ecf0f1;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #8e44ad;
}

.hero {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.hero-content {
    position: relative;
    text-align: center;
    color: #ffffff;
    z-index: 1;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    color: #9b59b6;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #bdc3c7;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 20px;
    background: #9b59b6;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.button:hover {
    transform: scale(1.1);
    background: #8e44ad;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-top: 40px;
}

.sidebar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
}

.sidebar h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: #8e44ad;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #9b59b6;
}

.content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
}

.content h2, .content h3, .content h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: #8e44ad;
    margin-bottom: 15px;
}

.content p {
    color: #ecf0f1;
    margin-bottom: 15px;
}

.content pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.content code {
    color: #f1c40f;
    font-family: 'Roboto Mono', monospace;
}

.content img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #95a5a6;
}

.example-section {
    margin-top: 40px;
}

.example-section h2 {
    margin-bottom: 20px;
}

.example-section article {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .hero {
        height: 50vh;
    }

    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .content p, .content h2, .content h3, .content h4 {
        font-size: 0.9rem;
    }
}

