
    /* 基础样式设置 */
    body {
        font-family: 'Roboto', sans-serif; /* 选择现代无衬线字体 */
        font-size: 16px; /* 正文字号建议15-17px */
        color: #333333; /* 主文字颜色 */
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* 主色调蓝紫色渐变 */
        margin: 0;
        padding: 0;
    }

    /* 加载动画样式 */
    .loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f0f4f8; /* 使用非白色背景 */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        animation: fadeOut 1s ease forwards;
    }

    .loader::after {
        content: '';
        width: 50px;
        height: 50px;
        border: 5px solid #6a11cb;
        border-top: 5px solid #2575fc;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    @keyframes fadeOut {
        0% { opacity: 1; }
        100% { opacity: 0; visibility: hidden; }
    }

    /* 章节导航栏样式 */
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        height: 60px;
        background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0 20px;
        transition: background 0.3s ease;
        z-index: 1000;
    }

    .navbar a {
        color: #ffffff;
        margin-left: 20px;
        text-decoration: none;
        font-size: 16px; /* h2/h3/h4字号16-18px */
        position: relative;
    }

    .navbar a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background: #ff9a9e; /* 点缀色 */
        left: 0;
        bottom: -5px;
        transition: width 0.3s ease;
    }

    .navbar a:hover::after {
        width: 100%;
    }

    /* 提示信息样式 */
    .reference-note {
        text-align: center;
        padding: 20px;
        background: rgba(0,0,0,0.5);
        color: #ffffff;
        font-size: 18px;
        margin-top: 80px; /* 留出导航栏空间 */
        margin-bottom: 40px;
        border-radius: 10px;
    }

    /* 主要容器样式 */
    .container {
        max-width: 1200px;
        margin: 0 auto 40px; /* 留白符合呼吸感原则 */
        padding: 0 20px;
    }

    /* 章节标题样式 */
    h2, h3, h4 {
        color: #ffffff;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* 段落样式 */
    p {
        font-size: 16px;
        line-height: 1.6;
        color: #f0f4f8; /* 辅助色 */
        margin-bottom: 20px;
    }

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

    pre code {
        color: #ffffff;
        font-family: 'Courier New', Courier, monospace;
        font-size: 14px;
    }

    /* 按钮样式 */
    .button {
        background: linear-gradient(45deg, #ff9a9e, #fad0c4); /* 点缀色渐变 */
        border: none;
        border-radius: 25px;
        color: white;
        padding: 10px 20px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .button:hover {
        background: linear-gradient(45deg, #a18cd1, #fbc2eb);
    }

    /* 图片样式 */
    .decorative-image {
        width: 100%;
        max-width: 320px;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        margin: 20px auto;
        display: block;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

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

    /* 卡片样式 */
    .card {
        background: rgba(255, 255, 255, 0.8);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin-bottom: 20px;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    }

    /* 层叠背景样式 */
    .layered-background {
        position: relative;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
    }

    .layered-background::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data-flow.svg') no-repeat center center;
        background-size: cover;
        opacity: 0.2;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .navbar {
            justify-content: center;
        }

        .navbar a {
            margin-left: 10px;
            font-size: 14px;
        }

        h2 {
            font-size: 20px;
        }

        h3 {
            font-size: 18px;
        }

        h4 {
            font-size: 16px;
        }

        p {
            font-size: 14px;
        }

        pre code {
            font-size: 12px;
        }

        .button {
            padding: 8px 16px;
        }
    }

    /* 实时数据图表样式 */
    .data-chart {
        width: 100%;
        height: 400px;
        background: #f0f4f8;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .data-chart::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #a1c4fd, #c2e9fb);
        top: 50%;
        transform: translateY(-50%);
        animation: move 5s linear infinite;
    }

    @keyframes move {
        0% { left: -100%; }
        100% { left: 100%; }
    }

    /* 表格样式 */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    table, th, td {
        border: 1px solid #ffffff;
    }

    th, td {
        padding: 10px;
        text-align: left;
    }

    th {
        background: #6a11cb;
        color: #ffffff;
    }

    td {
        background: #2575fc;
        color: #ffffff;
    }

    /* 代码块样式区分 */
    .css-code {
        background: #2d2d2d;
        color: #f8f8f2;
        padding: 15px;
        border-radius: 8px;
        overflow-x: auto;
        font-family: 'Courier New', Courier, monospace;
        margin-bottom: 20px;
    }

    /* 图标统一样式 */
    .icon {
        width: 24px;
        height: 24px;
        fill: #6a11cb;
        transition: fill 0.3s ease;
    }

    .icon:hover {
        fill: #2575fc;
    }

