
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A192F, #3F007D);
    color: #FFFFFF;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #64FFDA;
}
h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}
p {
    font-size: 1em;
    margin-bottom: 15px;
}
a {
    color: #64FFDA;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFFFFF;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
/* 首屏样式 */
.hero-section {
    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;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
}
.hero-section h1 {
    z-index: 1;
    font-size: 3em;
    color: #64FFDA;
}
/* 模块化布局 */
.module {
    background: rgba(10, 25, 47, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.module:hover {
    transform: translateY(-5px);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}
/* 代码块样式 */
pre {
    background: #1E2D4B;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
code {
    color: #64FFDA;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}
/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}
/* 深色模式切换 */
body.light-mode {
    background: #FFFFFF;
    color: #000000;
}
body.light-mode h1, body.light-mode h2, body.light-mode h3 {
    color: #3F007D;
}
body.light-mode a {
    color: #3F007D;
}

