
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    text-align: center;
}
a {
    text-decoration: none;
    color: #ff6f61;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    position: relative;
    z-index: 1;
}
.header {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center / cover;
    opacity: 0.1;
    z-index: -1;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}
.nav-links a {
    margin: 0 1rem;
    font-size: 1rem;
    transition: transform 0.3s ease-in-out;
}
.nav-links a:hover {
    transform: translateY(-5px);
}
.hero {
    background: linear-gradient(to bottom, #f3e7e9, #e3eeff);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}
.hero img {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    border-radius: 10px;
}
.article {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.article pre {
    background: #2d2d2d;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}
.article code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.grid-item {
    background: linear-gradient(to bottom, #ffffff, #f0f4f8);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.cta-button {
    display: inline-block;
    background: #ff6f61;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
    text-align: center;
    margin: 2rem auto;
}
.cta-button:hover {
    background: #e0564b;
    transform: scale(1.05);
}
.footer {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .grid-section {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links a {
        margin: 0.5rem 0;
    }
}

