
/* 主体背景采用深蓝至黑色渐变，营造科技感 */
body {
    background: linear-gradient(135deg, #0A192F, #020c1b);
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 防止出现横向滚动条 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar a {
    color: #64FFDA;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
}

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

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #FFD60A;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* 提示信息样式 */
.prompt {
    text-align: center;
    padding: 100px 20px 50px 20px;
    font-size: 20px;
    color: #FFD60A;
    background: rgba(2, 12, 27, 0.8);
}

/* 内容容器 */
.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧面板 */
.left-panel {
    flex: 1;
    padding: 20px;
}

/* 右侧面板 */
.right-panel {
    flex: 1;
    padding: 20px;
}

/* 文章样式 */
article {
    background: rgba(2, 22, 43, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    margin-bottom: 50px;
}

article:hover {
    box-shadow: 0 4px 16px rgba(100, 255, 218, 0.7);
}

h2 {
    font-size: 48px;
    color: #64FFDA;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    color: #FFD60A;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

pre {
    background: #02162b;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
}

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

/* 图片样式 */
img.decorative {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
}

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

/* 章节导航 */
.chapter-nav {
    position: fixed;
    right: 20px;
    top: 100px;
    background: rgba(2, 12, 27, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.chapter-nav a {
    display: block;
    color: #64FFDA;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.chapter-nav a:hover {
    color: #FFD60A;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 30px;
    }
    
    .navbar {
        flex-direction: column;
    }
    
    .navbar a {
        margin-bottom: 10px;
    }
    
    .chapter-nav {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 0;
    }
    
    .container {
        padding: 20px;
    }
    
    h2 {
        font-size: 36px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p {
        font-size: 14px;
    }

    img.decorative {
        width: 100%;
        height: auto;
    }
}

/* 按钮样式 */
.button {
    background: #64FFDA;
    color: #02162b;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: #FFD60A;
    transform: scale(1.05);
}

/* 代码示例样式 */
.code-example {
    background: #02162b;
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
    margin-bottom: 30px;
}

.code-example code {
    display: block;
    color: #FFD60A;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
}

/* 页面底部样式 */
.footer {
    background: rgba(2, 12, 27, 0.9);
    padding: 40px 20px;
    text-align: center;
    color: #64FFDA;
    border-top: 1px solid #64FFDA;
}

.footer a {
    color: #FFD60A;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #64FFDA;
}

/* 动画效果 */
@keyframes flow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

.flow-line {
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, #64FFDA, #FFD60A);
    animation: flow 5s linear infinite;
}

.data-flow {
    position: relative;
    width: 100%;
    height: 300px;
    background: #0A192F;
    overflow: hidden;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #64FFDA;
}

th {
    background: #02162b;
    color: #FFD60A;
}

td {
    background: #02162b;
}

tr:hover td {
    background: rgba(100, 255, 218, 0.1);
}

/* 微动画 */
@keyframes drawLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #64FFDA;
    transform-origin: left center;
    animation: drawLine 3s ease forwards;
}

