
    /* 全局样式设置，包括字体、颜色和布局 */
    body {
        margin: 0;
        padding: 0;
        font-family: 'Helvetica', 'Arial', sans-serif; /* 使用清晰易读的无衬线字体 */
        background: linear-gradient(135deg, #e0f7fa, #a7ffeb); /* 自然有机的渐变背景色 */
        color: #333; /* 主体文字颜色 */
        line-height: 1.6;
    }

    /* 导航栏样式 */
    .navbar {
        position: fixed; /* 固定在顶部 */
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.9); /* 半透明背景 */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
        z-index: 1000;
        padding: 15px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 导航链接样式 */
    .navbar a {
        margin: 0 15px;
        text-decoration: none;
        color: #333;
        font-size: 16px;
        position: relative;
        transition: color 0.3s ease;
    }

    .navbar a:hover {
        color: #56ab2f; /* 点缀色悬停效果 */
    }

    /* 章节导航系统样式 */
    .chapter-nav {
        margin-top: 80px; /* 留出导航栏高度空间 */
        padding: 20px 30px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 60px;
        z-index: 900;
    }

    .chapter-nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
    }

    .chapter-nav li {
        margin-right: 20px;
    }

    .chapter-nav a {
        text-decoration: none;
        color: #333;
        font-size: 16px;
        transition: color 0.3s ease;
    }

    .chapter-nav a:hover {
        color: #ff7e5f; /* 点缀色悬停效果 */
    }

    /* 主要内容区块样式 */
    .section {
        padding: 60px 30px;
        background: #f9f9f9; /* 次要背景色 */
        margin: 20px 0;
    }

    .section:nth-child(even) {
        background: #ffffff; /* 交替背景色 */
    }

    .section-title {
        font-size: 2em;
        color: #56ab2f; /* 主色 */
        margin-bottom: 20px;
        text-align: center;
    }

    .section-content {
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.8;
        color: #444;
    }

    /* 图片样式 */
    .section img {
        width: 100%;
        max-width: 320px;
        height: auto;
        border-radius: 12px; /* 圆角 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影 */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .section img:hover {
        transform: scale(1.05); /* 悬浮放大效果 */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* 增强阴影 */
    }

    /* 按钮样式 */
    .button {
        background: linear-gradient(45deg, #a8e063, #56ab2f); /* 渐变背景 */
        border: none;
        padding: 10px 25px;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        border-radius: 25px;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .button:hover {
        background: linear-gradient(45deg, #56ab2f, #a8e063); /* 逆向渐变 */
        transform: scale(1.05); /* 放大效果 */
    }

    /* 代码块样式 */
    pre {
        background: #2d2d2d; /* 深色背景 */
        color: #f8f8f2; /* 浅色文字 */
        padding: 20px;
        border-radius: 8px;
        overflow-x: auto;
        margin: 20px 0;
        font-size: 14px;
    }

    pre code {
        font-family: 'Courier New', Courier, monospace;
    }

    /* 文章内的代码块样式 */
    .article-code {
        background: #f4f4f4;
        border-left: 4px solid #56ab2f; /* 点缀色边框 */
        padding: 10px 15px;
        margin: 20px 0;
        font-family: 'Courier New', Courier, monospace;
        font-size: 15px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* 加载动画样式 */
    .loading {
        position: relative;
        width: 100px;
        height: 100px;
        margin: 50px auto;
    }

    .leaf {
        position: absolute;
        width: 20px;
        height: 20px;
        background: #56ab2f;
        border-radius: 50% 50% 0 0;
        transform: rotate(-45deg);
        animation: float 2s infinite ease-in-out;
    }

    .leaf:nth-child(2) {
        left: 30px;
        animation-delay: 0.5s;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0) rotate(-45deg);
        }
        50% {
            transform: translateY(-20px) rotate(-45deg);
        }
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .navbar {
            padding: 10px 20px;
        }

        .chapter-nav ul {
            flex-direction: column;
        }

        .chapter-nav li {
            margin-bottom: 10px;
        }

        .section {
            padding: 40px 20px;
        }

        .section-title {
            font-size: 1.8em;
        }

        .button {
            width: 100%;
            padding: 12px;
            text-align: center;
        }

        .navbar a {
            margin: 5px 0;
            font-size: 14px;
        }
    }

    /* 交互式图表样式 */
    .interactive-chart {
        position: relative;
        width: 100%;
        height: 300px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        margin: 20px 0;
    }

    .interactive-chart::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(86, 171, 47, 0.1), rgba(86, 171, 47, 0.5));
        animation: wave 4s infinite linear;
    }

    @keyframes wave {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(100%);
        }
    }

    /* 植物插画样式 */
    .plant {
        width: 100px;
        height: 100px;
        background: #56ab2f;
        border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
        position: relative;
        margin: 20px auto;
        box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.2);
    }

    .plant::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        width: 4px;
        height: 40px;
        background: #654321;
        transform: translateX(-50%);
        border-radius: 2px;
    }

    /* 加强页面层次感 */
    .highlight {
        background: #ffeb3b;
        padding: 5px 10px;
        border-radius: 4px;
    }

    /* 固定底部提示 */
    .footer-note {
        position: fixed;
        bottom: 10px;
        width: 100%;
        text-align: center;
        font-size: 14px;
        color: #666;
    }

