
/* 
整体页面设计采用现代玻璃拟态风格，利用CSS3的高级特性如渐变、阴影、背景模糊等，营造出高端、科技感强的视觉效果。主色调选用深蓝色与紫色的渐变，辅以橙色和绿色作为点缀色，确保色彩的和谐与层次感。布局采用响应式网格系统，确保在不同设备上的良好展示效果。
*/

/* 设置全局字体和背景 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用无衬线字体提升可读性 */
    background: linear-gradient(135deg, #2c3e50, #8e44ad); /* 主色调渐变背景 */
    color: #ecf0f1; /* 主要文字颜色 */
    overflow-x: hidden; /* 防止横向滚动条 */
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(44, 62, 80, 0.8); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 背景模糊效果 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ecf0f1;
}

.navbar .nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #f39c12; /* 点缀色变换 */
}

/* 主内容区块样式 */
.section {
    padding: 100px 20px 60px 20px; /* 顶部留白以避开固定导航栏 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
}

.section p {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 20px;
}

/* 图片样式 */
.section img {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.5);
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #f39c12, #27ae60); /* 线性渐变背景 */
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #27ae60, #f39c12); /* 反转渐变色 */
}

/* 渐变线条装饰 */
.divider {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #27ae60);
    margin: 40px 0;
    border: none;
}

/* 章节导航样式 */
.navigation {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navigation a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    margin: 10px 0;
    transition: color 0.3s ease;
}

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

/* 代码块样式 */
code {
    background: rgba(0, 0, 0, 0.6);
    color: #f1c40f;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

pre {
    background: rgba(0, 0, 0, 0.8);
    color: #ecf0f1;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

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

    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .navbar .nav-links a {
        margin: 10px 0;
    }

    .navigation {
        position: static;
        width: 100%;
        margin: 20px 0;
    }

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

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

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* 提示信息样式 */
.reference-note {
    background: rgba(44, 62, 80, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 40px 0;
    font-size: 1.2em;
    color: #f1c40f;
}

