
/* 主体样式设置 */

/* 设置整体背景，采用深蓝色和灰白色的渐变，符合科技感和专业性的要求 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2c3e50 70%, #ecf0f1 25%, #e74c3c 5%);
    color: #333;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(44, 62, 80, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* 导航链接样式 */
.navbar ul {
    list-style: none;
    display: flex;
    padding: 20px;
    margin: 0;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #e74c3c;
}

/* 章节导航系统样式 */
.chapter-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: rgba(236, 240, 241, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chapter-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-nav ul li {
    margin: 10px 0;
}

.chapter-nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
    transition: color 0.3s ease;
}

.chapter-nav ul li a:hover {
    color: #e74c3c;
}

/* 主内容区块样式 */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 独立视觉区块，图文并茂 */
.section:nth-child(even) {
    background: rgba(236, 240, 241, 0.5);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h2, .section h3, .section h4 {
    color: #2c3e50;
}

.section p {
    font-size: 16px;
    line-height: 1.6;
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #0072ff, #00c6ff);
}

/* 图片样式：圆角、阴影、悬浮效果 */
.image-decoration {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-decoration:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 代码块样式，与正文区分 */
.code-block {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin: 20px 0;
}

/* 关键内容高亮 */
.highlight {
    color: #e74c3c;
    font-weight: bold;
}

/* 垂直分隔线使用渐变线条 */
.divider {
    height: 2px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    margin: 40px 0;
    border: none;
}

/* 过渡效果应用于整个页面 */
body, html {
    scroll-behavior: smooth;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .chapter-nav {
        position: static;
        margin: 20px 0;
    }

    .section {
        padding: 80px 10px;
    }
}

/* 按需添加更多CSS样式以满足内容排版和美观要求 */

/* 示例：按钮动画 */
@keyframes buttonAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.button-animated {
    animation: buttonAnimation 2s infinite;
}

/* 示例：卡片悬停动画 */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* 更多样式根据需求继续添加，确保整体页面美观、协调 */


