
/* 全局样式定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #d4d4d4;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}
p {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 1rem;
}
a {
    color: #6a9eff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #b3d4ff;
}
code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #e0e0e0;
}
pre {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    max-width: 100%;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #000000, #2a2a2a);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}
.header nav a {
    margin-left: 1rem;
    font-size: 1rem;
}
.hero-section {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample7.png') no-repeat center center/cover, linear-gradient(to bottom, #000000, #3a3a3a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
}
.content-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #1a1a1a, #000000);
}
.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}
.image-grid img:hover {
    transform: scale(1.05);
}
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(to bottom, #333333, #000000);
    transition: right 0.3s ease-in-out;
    padding: 1rem;
}
.sidebar.open {
    right: 0;
}
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

