
/* 
整体页面样式设计，融合未来感与高级质感。使用柔和的渐变色作为背景，搭配科技感十足的装饰元素。布局采用Flexbox和Grid，确保响应式设计在不同设备上均有良好的展示效果。以下为主要样式说明：
*/

/* 设置全局字体和基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E3A8A 70%, #F97316 25%, #FF8C00 5%);
    color: #4B5563;
    line-height: 1.6;
}

/* 定义导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 58, 138, 0.9);
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

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

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

/* 模块化内容块 */
.module {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 文章样式 */
article {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

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

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

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #F97316, #F59E0B);
    border: none;
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.5s, box-shadow 0.5s;
}

.button:hover {
    background: linear-gradient(45deg, #F59E0B, #F97316);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 图片样式 */
img.decorative {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 代码块样式 */
.code-block {
    background-color: #F3F4F6;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
    color: #D97706;
}

.code-block code {
    display: block;
}

/* 导航系统样式 */
.navigation {
    position: fixed;
    top: 60px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navigation a {
    display: block;
    margin: 5px 0;
    color: #1E3A8A;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.navigation a:hover {
    color: #F97316;
}

/* 提示信息样式 */
.notice {
    text-align: center;
    font-size: 18px;
    color: #1E3A8A;
    margin-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .navigation {
        display: none;
    }
}

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

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

/* 折叠区域样式 */
.collapsible {
    background-color: #F3F4F6;
    color: #1E3A8A;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.collapsible:hover {
    background-color: #E5E7EB;
}

.collapsible:after {
    content: '\002B';
    color: #1E3A8A;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2212";
}

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #F9FAFB;
    border-radius: 5px;
}


