
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E2D57, #F0F3F9);
    color: #333;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 45, 87, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

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

/* 主要内容区域 */
.main {
    padding: 100px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 章节导航 */
.chapter-nav {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.chapter-nav a {
    background: #FF8C00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.chapter-nav a:hover {
    background: #FFA500;
}

/* 文章样式 */
article {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

article h2, article h3, article h4 {
    color: #1E2D57;
}

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

article pre {
    background: #f0f3f9;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    background: #e0e0e0;
    padding: 2px 4px;
    border-radius: 4px;
}

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

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

/* 按钮样式 */
.button {
    background-color: #FF8C00;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background-color: #FFA500;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .chapter-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    article {
        padding: 20px;
    }
    img {
        max-width: 100%;
    }
}

