
    /* 基础色彩定义 */
    :root {
        --main-color: #1a237e; /* 深蓝色 */
        --accent-color: #ffab40; /* 橙色点缀 */
        --background-color: #0d0d0d; /* 黑色背景 */
        --text-color: #ffffff; /* 白色文字 */
        --secondary-color: #6200ea; /* 星空紫 */
        --hover-color: #ff9100; /* 橙色悬停 */
    }

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

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

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

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

    /* 容器与网格系统 */
    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 20px;
        padding: 50px 0;
    }

    /* 头部样式 */
    header {
        grid-column: 1 / -1;
        text-align: center;
        padding: 20px 0;
        animation: fadeIn 2s ease-in-out;
    }

    header h1 {
        font-size: 3rem;
        font-family: 'Roboto Slab', serif;
        color: var(--text-color);
        margin-bottom: 10px;
    }

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

    /* 样式参考提示 */
    .style-reference {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 20px;
        font-size: 1rem;
        color: var(--accent-color);
    }

    /* 章节样式 */
    article {
        grid-column: 1 / -1;
        background: rgba(255, 255, 255, 0.1);
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }

    article h2, article h3, article h4 {
        color: var(--accent-color);
        margin-bottom: 15px;
    }

    article p {
        margin-bottom: 15px;
        color: var(--text-color);
    }

    article pre {
        background: #262626;
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        margin-bottom: 15px;
    }

    article code {
        color: #ffab40;
        font-family: 'Courier New', Courier, monospace;
    }

    /* 图片样式 */
    .image-gallery {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-top: 30px;
    }

    .image-gallery img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
    }

    /* 动态背景粒子 */
    .background-particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
    }

    .particle {
        position: absolute;
        width: 5px;
        height: 5px;
        background: white;
        border-radius: 50%;
        animation: particles 10s infinite linear;
    }

    @keyframes particles {
        from {
            transform: translateY(0) translateX(0);
        }
        to {
            transform: translateY(-1000px) translateX(1000px);
        }
    }

    /* 响应式设计 */
    @media (max-width: 1440px) {
        header h1 {
            font-size: 2.5rem;
        }
    }

    @media (max-width: 1200px) {
        .container {
            width: 95%;
        }
    }

    @media (max-width: 1024px) {
        article {
            padding: 20px;
        }
    }

    @media (max-width: 768px) {
        header h1 {
            font-size: 2rem;
        }
        article {
            padding: 15px;
        }
        .image-gallery img {
            width: 100px;
            height: 100px;
        }
    }

    @media (max-width: 480px) {
        header h1 {
            font-size: 1.5rem;
        }
        article {
            padding: 10px;
        }
        .image-gallery {
            flex-direction: column;
            align-items: center;
        }
        .image-gallery img {
            width: 80px;
            height: 80px;
        }
    }

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

    /* 动画效果 */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 按钮与链接效果 */
    .btn {
        display: inline-block;
        padding: 10px 20px;
        background: var(--accent-color);
        color: var(--background-color);
        border-radius: 5px;
        transition: background 0.3s ease;
    }

    .btn:hover {
        background: var(--hover-color);
    }

