
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0D1B2A, #1B263B);
    color: #E0E0E0;
    line-height: 1.6;
}
/* 导航栏样式 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(27, 38, 59, 0.9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #8A2BE2;
}
/* 主内容区块 */
.section {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
/* 标题样式 */
h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}
h2:hover, h3:hover, h4:hover {
    color: #8A2BE2;
}
/* 段落样式 */
p {
    font-size: 16px;
    color: #E0E0E0;
    margin-bottom: 20px;
}
/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* 代码块样式 */
pre {
    background: rgba(27, 38, 59, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}
code {
    color: #8A2BE2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
}
/* 按钮样式 */
.button {
    background: #8A2BE2;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.button:hover {
    background: #4B0082;
    transform: scale(1.05);
}
/* 模块样式 */
.card {
    background: rgba(27, 38, 59, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}
/* 星星背景动画 */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    animation: twinkling 20s linear infinite;
    z-index: -1;
}
@keyframes twinkling {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}
/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }
    .section {
        padding: 80px 10px 40px 10px;
    }
}

