
    /* 引入Google字体 */
    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto&display=swap');

    /* CSS变量定义 */
    :root {
        --primary-color: #0A192F;
        --secondary-color: #000000;
        --highlight-color: #FFD700;
        --neon-purple: #8A2BE2;
        --text-color: #FFFFFF;
        --font-title: 'Montserrat', sans-serif;
        --font-body: 'Roboto', sans-serif;
        --transition-speed: 0.3s;
    }

    /* 全局样式 */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: var(--text-color);
        font-family: var(--font-body);
        line-height: 1.6;
        overflow-x: hidden;
    }

    a {
        color: var(--highlight-color);
        text-decoration: none;
        transition: color var(--transition-speed) ease;
    }

    a:hover {
        color: var(--neon-purple);
    }

    /* 固定侧边栏导航 */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100vh;
        background: rgba(10, 25, 47, 0.9);
        padding-top: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform var(--transition-speed) ease;
    }

    .sidebar a {
        margin: 20px 0;
        font-family: var(--font-title);
        font-size: 1.1rem;
        color: var(--text-color);
    }

    /* 主内容区域 */
    .main-content {
        margin-left: 220px;
        padding: 20px;
        animation: fadeIn 2s ease-in-out;
    }

    /* 头部样式 */
    header {
        text-align: center;
        padding: 50px 0;
        background: linear-gradient(120deg, var(--secondary-color), var(--primary-color));
        animation: aurora-move 15s linear infinite;
    }

    header h1 {
        font-family: var(--font-title);
        font-size: 3rem;
        color: var(--highlight-color);
        margin-bottom: 20px;
    }

    header p {
        font-size: 1.2rem;
        color: var(--text-color);
    }

    /* 章节样式 */
    section {
        margin: 50px 0;
    }

    section h2 {
        font-family: var(--font-title);
        font-size: 2.5rem;
        color: var(--neon-purple);
        margin-bottom: 20px;
        position: relative;
    }

    section h2::after {
        content: '';
        width: 50px;
        height: 4px;
        background: var(--highlight-color);
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    }

    section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 图片样式 */
    .image-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .image-gallery img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform var(--transition-speed) ease;
    }

    .image-gallery img:hover {
        transform: scale(1.05);
    }

    /* 动画效果 */
    @keyframes aurora-move {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

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

    @keyframes slideUp {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    /* 示例展示样式 */
    .example-section {
        background: rgba(255, 255, 255, 0.1);
        padding: 30px;
        border-radius: 10px;
        margin-top: 50px;
        animation: slideUp 1s ease forwards;
    }

    .example-section h3 {
        font-family: var(--font-title);
        font-size: 2rem;
        color: var(--highlight-color);
        margin-bottom: 15px;
    }

    .example-section pre {
        background: rgba(0, 0, 0, 0.8);
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        font-family: 'Courier New', Courier, monospace;
        color: #FFD700;
    }

    .example-section code {
        font-family: 'Courier New', Courier, monospace;
        color: #FFD700;
    }

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

    table, th, td {
        border: 1px solid var(--neon-purple);
    }

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

    th {
        background: var(--neon-purple);
        color: var(--text-color);
    }

    td {
        background: rgba(255, 215, 0, 0.1);
    }

    /* 响应式设计 */
    @media (max-width: 1440px) {
        .sidebar {
            width: 180px;
        }

        .main-content {
            margin-left: 200px;
        }

        header h1 {
            font-size: 2.5rem;
        }

        section h2 {
            font-size: 2rem;
        }
    }

    @media (max-width: 1200px) {
        .sidebar {
            width: 160px;
        }

        .main-content {
            margin-left: 180px;
        }

        header h1 {
            font-size: 2.2rem;
        }

        section h2 {
            font-size: 1.8rem;
        }

        .image-gallery img {
            width: 120px;
            height: 120px;
        }
    }

    @media (max-width: 1024px) {
        .sidebar {
            width: 140px;
        }

        .main-content {
            margin-left: 160px;
        }

        header h1 {
            font-size: 2rem;
        }

        section h2 {
            font-size: 1.6rem;
        }

        .image-gallery img {
            width: 100px;
            height: 100px;
        }
    }

    @media (max-width: 768px) {
        .sidebar {
            position: relative;
            width: 100%;
            height: auto;
            flex-direction: row;
            justify-content: space-around;
            padding: 20px 0;
        }

        .main-content {
            margin-left: 0;
            padding: 20px;
        }

        header {
            padding: 30px 0;
        }

        header h1 {
            font-size: 1.8rem;
        }

        section h2 {
            font-size: 1.4rem;
        }

        .image-gallery {
            justify-content: space-between;
        }

        .image-gallery img {
            width: 80px;
            height: 80px;
        }
    }

    @media (max-width: 480px) {
        header h1 {
            font-size: 1.5rem;
        }

        section h2 {
            font-size: 1.2rem;
        }

        .image-gallery img {
            width: 60px;
            height: 60px;
        }

        table, th, td {
            font-size: 0.8rem;
        }
    }

    @media (max-width: 320px) {
        header h1 {
            font-size: 1.2rem;
        }

        section h2 {
            font-size: 1rem;
        }

        .image-gallery img {
            width: 50px;
            height: 50px;
        }

        .sidebar a {
            font-size: 0.9rem;
            margin: 10px 0;
        }
    }

