
/* 
整体页面样式定义
使用深蓝色作为主色调，辅以亮银色和磨砂灰色，搭配橙色作为点缀色
确保页面在不同设备上的响应式设计，适配320px到1920px的宽度范围
使用无衬线字体如Roboto和Open Sans，提升可读性和现代感
*/

/* 页面基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 1000;
}

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

.navbar a:hover {
    color: #e67e22;
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    right: 20px;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chapter-nav a {
    background: #16a085;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.chapter-nav a:hover {
    background: #1abc9c;
}

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

/* 文章标题样式 */
article h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ecf0f1;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

/* 文章副标题样式 */
article h3 {
    font-size: 20px;
    margin: 15px 0;
    color: #e74c3c;
}

/* 文章段落样式 */
article p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #bdc3c7;
}

/* 代码块样式 */
article pre {
    background: rgba(236, 240, 241, 0.2);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

/* 代码块内代码样式 */
article code {
    color: #2ecc71;
    font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
.article-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 20px 0;
}

.article-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* 装饰性元素样式 */
.decorative-line {
    height: 2px;
    background: linear-gradient(90deg, #e67e22, #f1c40f);
    margin: 40px 0;
}

/* 按钮样式 */
.btn {
    background: #e67e22;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    font-size: 16px;
}

.btn:hover {
    background: #d35400;
    transform: scale(1.05);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .navbar a {
        margin: 10px 0;
    }

    .chapter-nav {
        display: none;
    }

    article h2 {
        font-size: 22px;
    }

    article h3 {
        font-size: 18px;
    }

    article p {
        font-size: 15px;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes moveStream {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.data-stream {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 25%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0.1) 75%);
    background-size: 200% 100%;
    animation: moveStream 5s linear infinite;
}

/* 磨砂玻璃效果 */
.frosted-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
}

/* 数据流线样式 */
.data-flow {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2980b9, #6dd5fa);
    animation: moveStream 10s linear infinite;
}

