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

    /* 根元素定义颜色变量 */
    :root {
        --primary-color: #1E1E38;
        --secondary-color: #3F007D;
        --accent-green: #5AFFC7;
        --accent-orange: #FF8C42;
        --background-gradient: linear-gradient(135deg, #1E1E38, #3F007D);
        --font-primary: 'Roboto', sans-serif;
        --font-secondary: 'Montserrat', sans-serif;
    }

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

    body {
        font-family: var(--font-secondary);
        background: var(--background-gradient);
        color: white;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    a {
        color: var(--accent-green);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    a:hover {
        color: var(--accent-orange);
    }

    /* 左侧导航栏 */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100%;
        background-color: rgba(31, 31, 56, 0.9);
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 1000;
    }

    .sidebar h1 {
        font-family: var(--font-primary);
        font-weight: bold;
        font-size: 24px;
        margin-bottom: 30px;
        color: var(--accent-green);
    }

    .sidebar a {
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 500;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .sidebar a:hover {
        transform: translateX(5px);
        color: var(--accent-orange);
    }

    /* 主内容区域 */
    .main-content {
        margin-left: 220px;
        padding: 40px;
        background: rgba(0, 0, 0, 0.5);
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* 3D旋转立方体 */
    .cube-container {
        position: relative;
        width: 200px;
        height: 200px;
        margin: 0 auto;
        perspective: 1000px;
    }

    .cube {
        width: 100%;
        height: 100%;
        position: absolute;
        transform-style: preserve-3d;
        animation: rotateCube 10s infinite linear;
    }

    .cube div {
        position: absolute;
        width: 200px;
        height: 200px;
        background-color: rgba(90, 255, 199, 0.8);
        border: 2px solid var(--accent-orange);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
    }

    .cube .front  { transform: rotateY(0deg) translateZ(100px); }
    .cube .back   { transform: rotateY(180deg) translateZ(100px); }
    .cube .right  { transform: rotateY(90deg) translateZ(100px); }
    .cube .left   { transform: rotateY(-90deg) translateZ(100px); }
    .cube .top    { transform: rotateX(90deg) translateZ(100px); }
    .cube .bottom { transform: rotateX(-90deg) translateZ(100px); }

    @keyframes rotateCube {
        from { transform: rotateX(0deg) rotateY(0deg); }
        to { transform: rotateX(360deg) rotateY(360deg); }
    }

    /* 模块化布局 */
    .modules {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .module {
        background: rgba(63, 0, 125, 0.8);
        padding: 20px;
        border-radius: 10px;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .module:hover {
        transform: translateY(-10px);
        background: rgba(90, 255, 199, 0.9);
    }

    .module h3 {
        font-family: var(--font-primary);
        font-weight: bold;
        margin-bottom: 10px;
        color: var(--accent-orange);
    }

    .module p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 示例展示 */
    .example-display {
        background: rgba(255, 255, 255, 0.1);
        padding: 30px;
        border-radius: 10px;
    }

    .example-display h2 {
        font-family: var(--font-primary);
        font-weight: bold;
        color: var(--accent-green);
        margin-bottom: 20px;
    }

    .example-display p {
        margin-bottom: 15px;
        font-size: 16px;
        line-height: 1.8;
    }

    .example-display code {
        background: rgba(255, 255, 255, 0.2);
        padding: 2px 4px;
        border-radius: 4px;
        font-family: 'Courier New', Courier, monospace;
        color: #FFD700;
    }

    .example-display pre {
        background: rgba(0, 0, 0, 0.7);
        padding: 15px;
        border-radius: 8px;
        overflow-x: auto;
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* 动画效果 */
    .dynamic-text {
        animation: fadeIn 2s ease-in-out;
    }

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

    .hover-effect {
        transition: transform 0.3s ease-in-out;
    }

    .hover-effect:hover {
        transform: scale(1.1);
    }

    .particle {
        position: absolute;
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        animation: move 5s infinite;
    }

    @keyframes move {
        from { transform: translateY(0); }
        to { transform: translateY(-100vh); }
    }

    /* 提示信息 */
    .reference-note {
        text-align: center;
        font-size: 14px;
        color: var(--accent-orange);
        margin-top: 20px;
    }

    /* 响应式设计 */
    @media (max-width: 1440px) {
        .sidebar {
            width: 180px;
        }
        .main-content {
            margin-left: 200px;
            padding: 30px;
        }
    }

    @media (max-width: 1200px) {
        .sidebar {
            width: 160px;
        }
        .main-content {
            margin-left: 180px;
            padding: 25px;
        }
    }

    @media (max-width: 1024px) {
        .sidebar {
            width: 140px;
        }
        .main-content {
            margin-left: 160px;
            padding: 20px;
        }
    }

    @media (max-width: 768px) {
        .sidebar {
            width: 100%;
            height: auto;
            position: relative;
            flex-direction: row;
            justify-content: space-around;
        }
        .main-content {
            margin-left: 0;
            padding: 15px;
        }
        .modules {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {
        .sidebar h1 {
            font-size: 20px;
        }
        .sidebar a {
            font-size: 14px;
        }
        .cube-container {
            width: 150px;
            height: 150px;
        }
        .module h3 {
            font-size: 18px;
        }
        .module p {
            font-size: 12px;
        }
    }

    @media (max-width: 320px) {
        .sidebar h1 {
            font-size: 18px;
        }
        .sidebar a {
            font-size: 12px;
        }
        .cube-container {
            width: 120px;
            height: 120px;
        }
        .module h3 {
            font-size: 16px;
        }
        .module p {
            font-size: 10px;
        }
    }

