
/* 
整体样式设计
主色调使用深蓝色和紫色，辅以电光蓝，营造科技感与信任感。
*/

/* 通用样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #182C4E 70%, #5B30F0 25%, #00FFDB 5%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(24, 44, 78, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar:hover {
    background-color: rgba(24, 44, 78, 1);
}

.navbar .menu {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.navbar .menu a {
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .menu a:hover {
    color: #00FFDB;
    transform: scale(1.1);
}

/* 主要容器 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 文章样式 */
article {
    background-color: rgba(30, 42, 71, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

article h2, article h3, article h4 {
    color: #00FFDB;
}

article pre {
    background-color: #1E2A47;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

article code {
    color: #5B30F0;
    font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.image-gallery 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;
}

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

/* 提示信息样式 */
.prompt {
    text-align: center;
    font-size: 18px;
    margin: 40px 0;
    padding: 20px;
    background: rgba(91, 48, 240, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 导航章节样式 */
.chapter-nav {
    position: fixed;
    top: 60px;
    right: 20px;
    background-color: rgba(24, 44, 78, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

/* 折叠区域样式 */
.collapsible {
    background-color: rgba(24, 44, 78, 0.8);
    color: #ffffff;
    cursor: pointer;
    padding: 10px 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 10px 0;
}

.active, .collapsible:hover {
    background-color: #5B30F0;
}

.content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(24, 44, 78, 0.7);
    border-radius: 5px;
}

.content p {
    margin: 15px 0;
}

.code-example {
    background-color: #1E2A47;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* CSS代码示例样式 */
.code-example code {
    color: #00FFDB;
    font-family: 'Courier New', Courier, monospace;
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(24, 44, 78, 0.9);
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.footer a {
    color: #00FFDB;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #5B30F0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chapter-nav {
        position: static;
        margin: 20px 0;
    }
}

