
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1A374D 70%, #F0F5F9 25%, #FFC107 5%);
    color: #1A374D;
    line-height: 1.6;
}

/* 固定顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 55, 77, 0.9);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航链接样式 */
.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

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

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100% - 60px);
    background: #F0F5F9;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-y: auto;
}

.sidebar a {
    display: block;
    color: #1A374D;
    text-decoration: none;
    margin: 15px 0;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #4CAF50;
}

/* 主内容区样式 */
.main-content {
    margin-left: 280px;
    padding: 80px 20px 20px 20px;
}

/* 标题样式 */
h2, h3, h4 {
    color: #1A374D;
    margin-bottom: 10px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

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

/* 图片样式 */
img {
    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;
}

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

/* 代码块样式 */
pre code {
    background: #F0F5F9;
    padding: 15px;
    border-radius: 5px;
    display: block;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
    color: #1A374D;
    border-left: 5px solid #4CAF50;
}

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

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
}

/* 按钮样式 */
.button-primary {
    background: #FFC107;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button-primary:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

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

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

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

/* 导航系统样式 */
.chapter-nav {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(26, 55, 77, 0.8);
    padding: 15px;
    border-radius: 8px;
    z-index: 999;
}

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

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

/* 强调文本 */
strong {
    color: #4CAF50;
}

/* 链接样式 */
a {
    color: #1A374D;
    text-decoration: none;
}

a:hover {
    color: #4CAF50;
}

/* 高亮背景 */
.highlight {
    background: #FFE082;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 列表样式 */
ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* 留白与分隔 */
.section {
    margin-bottom: 40px;
}

.separator {
    height: 2px;
    background: #4CAF50;
    margin: 40px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 220px;
    }

    .chapter-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar, .sidebar, .main-content {
        padding: 10px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    p, li {
        font-size: 14px;
    }

    img {
        max-width: 100%;
    }
}

