
/* 全局样式设置 */
/* 设置网页的背景色为深蓝到紫色的渐变，符合科技感与金融主题 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 固定顶部导航栏样式 */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(32, 58, 67, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.navigation a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.navigation a:hover {
    color: #ffa500;
}

/* 主要内容区域样式 */
.main-content {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 章节导航系统样式 */
.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.chapter-nav a {
    background-color: rgba(255, 140, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.chapter-nav a:hover {
    background-color: #ffa500;
    transform: scale(1.05);
}

/* 文章内容区块样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

article h2, article h3 {
    color: #ffa500;
    font-family: 'Montserrat', sans-serif;
}

article h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

article h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

article p {
    font-size: 16px;
    margin-bottom: 20px;
}

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #ffa500;
}

/* 图片样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* 按钮与CTA样式 */
.button, .cta-button {
    background-color: #ff8c00;
    border: none;
    padding: 15px 30px;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.button:hover, .cta-button:hover {
    background-color: #ffa500;
    transform: translateY(-3px);
}

/* 渐变背景样式 */
.gradient-background {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    width: 100%;
    height: 100%;
}

/* 留白与容器样式 */
.container {
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        align-items: flex-start;
    }
    .chapter-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .chapter-nav a {
        margin: 5px 0;
    }
    article {
        padding: 20px;
    }
}

/* CSS3代码示例样式 */
.code-example {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    color: #ff8c00;
    margin-bottom: 30px;
}

.code-example code {
    display: block;
    white-space: pre-wrap;
}

/* 微动画与过渡效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-screen {
    height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 2s ease-in-out;
}

.abstract-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.gptkong.com/static/images/data-lines.svg') repeat;
    opacity: 0.1;
    pointer-events: none;
}

/* 样式代码高亮 */
pre code.language-css {
    color: #ff8c00;
}

pre code.language-javascript {
    color: #00ffcc;
}

