
    /* 全局样式 */
    body {
        margin: 0;
        padding: 0;
        font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体，确保文本清晰易读 */
        background: linear-gradient(135deg, #1E276B, #5A4FCF); /* 应用从深蓝到紫色的渐变背景，营造科技感氛围 */
        color: #fff; /* 全局字体颜色设为白色，确保在深色背景上的可读性 */
        line-height: 1.6;
    }

    /* 导航栏样式 */
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: rgba(30, 39, 107, 0.9); /* 半透明背景，增加层次感 */
        padding: 15px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000; /* 确保导航栏在最上层 */
        box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 轻微阴影，提升立体感 */
    }

    .navbar a {
        color: #fff;
        text-decoration: none;
        margin-left: 20px;
        transition: color 0.3s;
    }

    .navbar a:hover {
        color: #FF9900; /* 悬停时颜色变为点缀色，增强互动性 */
    }

    /* 主要内容容器 */
    .container {
        max-width: 1200px;
        margin: 100px auto 50px; /* 顶部预留空间以避免被导航栏遮挡 */
        padding: 0 20px;
        display: grid;
        grid-template-columns: none;
        gap: 20px;
    }

    /* 章节样式 */
    section {
        grid-column: span 12;
        padding: 20px;
        background: rgba(255, 255, 255, 0.1); /* 半透明背景，区分不同区域 */
        border-radius: 10px; /* 圆角边框，增加现代感 */
        box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* 阴影效果，提升层次感 */
        margin-bottom: 20px;
    }

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

    section p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* 图片装饰样式 */
    .decorative-image {
        width: 100%;
        border-radius: 15px; /* 圆角效果 */
        box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* 阴影，增加立体感 */
        transition: transform 0.3s, box-shadow 0.3s; /* 动画效果 */
    }

    .decorative-image:hover {
        transform: scale(1.05); /* 放大效果 */
        box-shadow: 0 8px 16px rgba(0,0,0,0.4); /* 加深阴影 */
    }

    /* 代码块样式 */
    pre {
        background: #2e3440; /* 深色背景 */
        padding: 15px;
        border-radius: 8px;
        overflow-x: auto;
        font-family: 'Courier New', Courier, monospace; /* 等宽字体 */
        margin-bottom: 20px;
    }

    pre code {
        color: #d8dee9; /* 代码文字颜色 */
        font-size: 14px;
    }

    /* 按钮样式 */
    .btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #5A4FCF; /* 主色按钮 */
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.3s;
        text-decoration: none;
    }

    .btn:hover {
        background-color: #FF9900; /* 悬停时变为点缀色 */
        transform: scale(1.05); /* 放大效果 */
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .container {
            grid-template-columns: repeat(6, 1fr); /* 中等屏幕调整为6列 */
        }

        section h2 {
            font-size: 20px;
        }

        section p {
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .container {
            grid-template-columns: repeat(2, 1fr); /* 小屏幕调整为2列 */
        }

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

        .navbar a {
            margin: 10px 0;
        }

        section h2 {
            font-size: 18px;
        }

        section p {
            font-size: 13px;
        }
    }

    /* 提示文本样式 */
    .reference-note {
        text-align: center;
        font-size: 18px;
        margin-bottom: 30px;
        color: #FF9900; /* 点缀色 */
    }

    /* 过渡动画 */
    .fade-in {
        animation: fadeIn 2s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* 导航链接样式 */
    .chapter-nav {
        margin-bottom: 40px;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .chapter-nav a {
        background-color: rgba(255, 153, 0, 0.8); /* 点缀色背景 */
        color: #fff;
        padding: 10px 15px;
        border-radius: 5px;
        text-decoration: none;
        transition: background-color 0.3s;
    }

    .chapter-nav a:hover {
        background-color: #FFD580; /* 悬停时变浅 */
        color: #1E276B; /* 主色文字 */
    }

    /* CSS代码示例样式 */
    .css-example {
        background: #1E276B;
        padding: 20px;
        border-radius: 10px;
        margin: 20px 0;
    }

    .css-example code {
        display: block;
        white-space: pre-wrap;
        word-wrap: break-word;
        color: #C3E88D; /* 代码颜色 */
        font-size: 14px;
    }

    /* 图标样式 */
    .icon {
        width: 24px;
        height: 24px;
        fill: #fff;
        transition: fill 0.3s;
    }

    .icon:hover {
        fill: #FF9900;
    }

    /* 页脚样式 */
    footer {
        text-align: center;
        padding: 20px;
        background-color: rgba(30, 39, 107, 0.9);
        color: #fff;
        position: relative;
    }

    /* 分隔线样式 */
    .divider {
        height: 2px;
        background: linear-gradient(90deg, #1E276B, #5A4FCF);
        border: none;
        margin: 40px 0;
    }

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

    a:hover {
        color: #FF9900;
    }

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

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

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

    th {
        background-color: #5A4FCF;
        color: #fff;
    }

    tr:nth-child(even) {
        background-color: rgba(255, 153, 0, 0.1);
    }

    /* 列表样式 */
    ul, ol {
        margin: 10px 0 10px 20px;
    }

    li {
        margin-bottom: 5px;
    }

    /* 表单样式（若有） */
    input, textarea, select {
        width: 100%;
        padding: 10px;
        margin: 5px 0 15px 0;
        border: none;
        border-radius: 5px;
        font-size: 14px;
    }

    input:focus, textarea:focus, select:focus {
        outline: none;
        box-shadow: 0 0 5px #FF9900;
    }

    /* 强调文本 */
    .highlight {
        background-color: #FF9900;
        color: #1E276B;
        padding: 2px 5px;
        border-radius: 3px;
    }

    /* 引用样式 */
    blockquote {
        border-left: 4px solid #FF9900;
        padding-left: 15px;
        color: #d8dee9;
        margin: 20px 0;
        font-style: italic;
    }

    /* 切换开关样式（若有） */
    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 34px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .slider {
        background-color: #5A4FCF;
    }

    input:checked + .slider:before {
        transform: translateX(26px);
    }

