
/* 
整体页面样式设计
采用HTML5和CSS3技术，结合响应式设计理念，确保在各种设备上都能有良好的展示效果。使用深蓝色作为主色调，搭配白色和蓝绿色作为辅助色，点缀色为亮黄色，遵循黄金比例配色原则（70%主色、25%辅色、5%点缀色），营造出专业且科技感十足的视觉效果。
*/

/* 设置全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #001f3f 70%, #003366 25%, #00cec9 5%);
    color: #ffffff;
    line-height: 1.6;
}

/* 样式重置 */
* {
    box-sizing: border-box;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 31, 63, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    padding: 20px;
}

/* 标题样式 */
h2, h3, h4 {
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    border-bottom: 2px solid #00cec9;
    padding-bottom: 10px;
}

h3 {
    font-size: 20px;
    color: #00cec9;
}

h4 {
    font-size: 18px;
    color: #ffeaa7;
}

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #f1f1f1;
}

/* 代码块样式 */
pre {
    background: rgba(0, 31, 63, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 14px;
    position: relative;
}

/* 代码块中的代码样式 */
code {
    color: #00cec9;
    font-family: 'Courier New', Courier, monospace;
}

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

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

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

.button:hover {
    background: linear-gradient(45deg, #00cec9, #009e9e);
    transform: scale(1.05);
}

/* 加载动画样式 */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 磨砂玻璃效果样式 */
.frosted-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

/* 响应式网格布局 */
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.sidebar, .main-content, .recommendation {
    background: rgba(0, 31, 63, 0.5);
    border-radius: 10px;
    padding: 20px;
    flex: 1;
}

.sidebar {
    min-width: 200px;
}

.main-content {
    flex: 3;
}

.recommendation {
    min-width: 200px;
}

@media (max-width: 768px) {
    .content-grid {
        flex-direction: column;
    }
    .sidebar, .main-content, .recommendation {
        flex: 1 1 100%;
    }
}

/* 导航系统样式 */
.chapter-navigation {
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgba(0, 31, 63, 0.8);
    padding: 15px;
    border-radius: 8px;
    max-width: 200px;
}

.chapter-navigation h4 {
    margin-bottom: 10px;
    color: #ffeaa7;
}

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

.chapter-navigation li {
    margin-bottom: 10px;
}

.chapter-navigation a {
    color: #00cec9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.chapter-navigation a:hover {
    color: #ffeaa7;
}

/* CSS3代码示例样式 */
.code-example {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.code-example pre {
    background: rgba(0, 31, 63, 0.9);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.code-example code {
    color: #00cec9;
    font-family: 'Courier New', Courier, monospace;
}

/* 提示信息样式 */
.prominent-note {
    background: rgba(255, 230, 167, 0.2);
    color: #ffeaa7;
    padding: 20px;
    border-left: 5px solid #ffeaa7;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 18px;
    text-align: center;
}

/* 页面底部样式 */
.footer {
    background: rgba(0, 31, 63, 0.9);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

