
/* 
整体页面样式
主色调为深蓝色，辅以橙色和绿色点缀，背景采用渐变色，确保视觉效果丰富且协调。
页面采用响应式网格系统，使用CSS Grid布局，适应不同屏幕尺寸，保证无论在手机、平板还是桌面设备上都有良好的显示效果。
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0D2C4B, #F5F5F5);
    color: #333333;
    line-height: 1.6;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(13, 44, 75, 0.95);
    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: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    top: 60px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

/* 主要内容容器 */
.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 100px 30px 50px 30px;
}

/* 文章主体样式 */
article {
    grid-column: 2 / span 10;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

article h2 {
    font-size: 24px;
    color: #0D2C4B;
    margin-bottom: 15px;
    position: relative;
}

article h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background-color: #FF9800;
    position: absolute;
    bottom: -10px;
    left: 0;
}

article section {
    margin-bottom: 30px;
}

article p {
    font-size: 16px;
    color: #333333;
    margin-bottom: 15px;
}

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

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

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

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 提示信息样式 */
.notification {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 5px solid #FF9800;
    margin-bottom: 30px;
    font-size: 18px;
    color: #0D2C4B;
}

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

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .chapter-nav {
        position: static;
        margin-top: 20px;
    }
}

/* 按钮样式 */
.button-cta {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FF9800;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.button-cta:hover {
    background-color: #E68900;
    transform: translateY(-3px);
}

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

a:hover {
    color: #FF9800;
}

/* 装饰性元素 */
.decorative-line {
    height: 2px;
    background: linear-gradient(90deg, #0D2C4B, #FF9800, #32CD32);
    margin: 20px 0;
    border: none;
}

/* 章节分割 */
.section-divider {
    margin: 40px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #32CD32;
    border-radius: 2px;
}

/* 代码块样式示例 */
.code-sample {
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.code-sample code {
    color: #D32F2F;
    font-size: 14px;
}

/* 结尾样式 */
.footer {
    text-align: center;
    padding: 30px;
    background-color: rgba(13, 44, 75, 0.95);
    color: #FFFFFF;
    font-size: 16px;
}

