
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0A1F3C, #000000);
    overflow-x: hidden;
}

header {
    width: 100%;
    padding: 20px;
    background: rgba(10, 31, 60, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5em;
    color: #39FF14;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #A728F3;
    transition: transform 0.3s, color 0.3s;
}

nav a:hover {
    transform: scale(1.1);
    color: #39FF14;
}

.banner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    position: relative;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 60, 0.6);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 3em;
    color: #39FF14;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.banner p {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 30px;
    animation: fadeInUp 1.5s ease-out;
}

.banner .cta-button {
    padding: 15px 30px;
    background: #39FF14;
    color: #0A1F3C;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s, transform 0.3s;
}

.banner .cta-button:hover {
    background: #A728F3;
    transform: scale(1.05);
}

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

.main {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 2em;
    color: #39FF14;
    margin-bottom: 20px;
    position: relative;
}

.section h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #A728F3;
    position: absolute;
    bottom: -10px;
    left: 0;
}

.section p {
    font-size: 1em;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 20px;
}

.section code {
    background: rgba(57, 255, 20, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.section pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.code-example {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.article-section {
    background: rgba(10, 31, 60, 0.8);
    padding: 30px;
    border-radius: 10px;
}

.article-section h2 {
    color: #39FF14;
}

.article-section pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #39FF14;
}

.footer {
    background: rgba(10, 31, 60, 0.9);
    padding: 30px 20px;
    text-align: center;
    color: #ffffff;
}

.footer .social-icons a {
    margin: 0 10px;
    color: #39FF14;
    font-size: 1.5em;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.footer .social-icons a:hover {
    color: #A728F3;
    transform: scale(1.2);
}

.footer .links a {
    display: inline-block;
    margin: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer .links a:hover {
    color: #39FF14;
}

.responsive-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    nav {
        margin-top: 10px;
    }
    .banner h1 {
        font-size: 2em;
    }
    .banner p {
        font-size: 1em;
    }
    .main {
        padding: 120px 10px 30px 10px;
    }
}
@media (max-width: 480px) {
    header .logo {
        font-size: 1.2em;
    }
    nav a {
        margin: 0 10px;
        font-size: 0.9em;
    }
    .banner h1 {
        font-size: 1.5em;
    }
    .banner p {
        font-size: 0.9em;
    }
    .banner .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .section h2 {
        font-size: 1.5em;
    }
}
@media (min-width: 1440px) {
    .main {
        max-width: 1400px;
    }
}

