
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background: linear-gradient(135deg, #333333 0%, #4285F4 70%, #A17FE0 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 统一的容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

/* 侧边导航栏 */
.navbar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: #4285F4;
}

/* 主内容区域 */
.main-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* 标题样式 */
h1, h2, h3, h4 {
    color: #FFFFFF;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #A17FE0;
}

h3 {
    font-size: 1.75em;
    margin-bottom: 10px;
    color: #4285F4;
}

h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #8DC63F;
}

/* 段落样式 */
p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    color: #A17FE0;
    font-family: 'Courier New', Courier, monospace;
}

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

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

/* 提示文字样式 */
.highlight {
    background-color: rgba(255, 153, 0, 0.2);
    padding: 10px;
    border-left: 5px solid #FF9900;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* 导航系统样式 */
.chapter-nav {
    position: fixed;
    top: 10%;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px 0 0 10px;
}

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

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

/* 折叠区域样式 */
.collapsible {
    background-color: #4285F4;
    color: #FFFFFF;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #0A2D5E;
}

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .chapter-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.75em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    h4 {
        font-size: 1.25em;
    }
}

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

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

/* 链接样式 */
a {
    color: #4285F4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF9900;
}

/* 过渡效果 */
* {
    transition: all 0.3s ease;
}

/* 阴影效果 */
.box-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 关键帧动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 高亮代码块样式 */
.code-block {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 按需添加的样式 */
.additional-style {
    /* 添加更多自定义样式以满足设计需求 */
}


