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

    /* 全局样式 */
    body {
        margin: 0;
        padding: 0;
        background: linear-gradient(135deg, #1E0066, #7B00D4);
        color: #F5F5DC;
        font-family: 'Roboto', sans-serif;
        line-height: 1.6;
        overflow-x: hidden;
    }

    /* 动态星空背景 */
    .stars {
        position: fixed;
        width: 100%;
        height: 100%;
        background: transparent;
        top: 0;
        left: 0;
        z-index: -1;
        overflow: hidden;
    }

    .star {
        position: absolute;
        background: white;
        border-radius: 50%;
        opacity: 0.8;
        animation: twinkle 5s infinite ease-in-out;
    }

    @keyframes twinkle {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 0.2; }
    }

    /* 生成多个星星 */
    /* 假设有50颗星星 */
    @for $i from 1 through 50 {
        .star:nth-child(#{$i}) {
            width: random(3)px;
            height: random(3)px;
            top: random(100)vh;
            left: random(100)vw;
            animation-delay: random(5)s;
            animation-duration: random(3)s + 2s;
        }
    }

    /* 标题样式 */
    header {
        text-align: center;
        padding: 2rem 1rem;
    }

    header h1 {
        font-family: 'Pacifico', cursive;
        font-size: 3rem;
        color: #32CD32;
        margin-bottom: 0.5rem;
    }

    header p {
        font-size: 1.2rem;
        color: #F5F5DC;
    }

    /* 导航栏 */
    .navbar {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.6);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }

    .navbar a {
        color: white;
        text-decoration: none;
        margin: 0 1rem;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    .navbar a:hover {
        color: #32CD32;
    }

    /* 主内容区 */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 6rem 2rem 2rem 2rem;
    }

    /* 模块样式 */
    .module {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 2rem;
        margin-bottom: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .module h2 {
        font-family: 'Pacifico', cursive;
        color: #32CD32;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .module p, .module ul {
        color: #F5F5DC;
    }

    .module ul {
        list-style: inside disc;
    }

    /* 按钮样式 */
    .button {
        position: relative;
        display: inline-block;
        padding: 0.75rem 1.5rem;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        overflow: hidden;
        transition: background-color 0.3s ease;
        font-size: 1rem;
    }

    .button:hover {
        background-color: #45a049;
    }

    .button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
    }

    .button:hover::before {
        width: 200px;
        height: 200px;
    }

    /* 代码块样式 */
    pre {
        background: rgba(0, 0, 0, 0.8);
        padding: 1rem;
        border-radius: 5px;
        overflow: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    code {
        color: #32CD32;
        font-family: 'Courier New', Courier, monospace;
    }

    /* 图片样式 */
    .images {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .images img {
        width: 100%;
        max-width: 320px;
        border-radius: 8px;
    }

    /* 示例展示区域 */
    .demo-section {
        background: rgba(255, 255, 255, 0.05);
        padding: 2rem;
        border-radius: 8px;
        margin-top: 2rem;
    }

    .demo-section h2 {
        font-family: 'Pacifico', cursive;
        color: #FFD700;
        margin-bottom: 1rem;
    }

    /* 提示语 */
    .hint {
        text-align: center;
        font-size: 1rem;
        color: #FFD700;
        margin-top: 2rem;
    }

    /* 响应式设计 */
    @media (max-width: 1440px) {
        .container {
            padding: 5rem 1.5rem 1.5rem 1.5rem;
        }
    }

    @media (max-width: 1200px) {
        .container {
            padding: 4rem 1.2rem 1.2rem 1.2rem;
        }

        header h1 {
            font-size: 2.5rem;
        }

        .module {
            padding: 1.5rem;
        }
    }

    @media (max-width: 1024px) {
        .navbar {
            flex-direction: column;
        }

        .navbar a {
            margin: 0.5rem 0;
        }
    }

    @media (max-width: 768px) {
        .container {
            padding: 3rem 1rem 1rem 1rem;
        }

        header h1 {
            font-size: 2rem;
        }

        .module {
            padding: 1rem;
        }
    }

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

        .button {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }

        .images {
            flex-direction: column;
            align-items: center;
        }
    }

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

        .module {
            padding: 0.8rem;
        }

        .button {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
        }
    }

