
    /* 基础样式 */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        background: linear-gradient(135deg, #1e1e1e, #121212);
        color: #ffffff;
        font-family: 'Montserrat', 'Roboto', sans-serif;
        line-height: 1.6;
        padding-top: 60px; /* 为固定导航栏预留空间 */
    }

    a {
        color: #4CAF50;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    /* 导航栏样式 */
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(18, 18, 18, 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.5);
    }

    .navbar .logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: #4CAF50;
    }

    .navbar ul {
        list-style: none;
        display: flex;
    }

    .navbar ul li {
        margin-left: 20px;
    }

    .navbar ul li a {
        font-size: 1rem;
        transition: color 0.3s ease;
    }

    .navbar ul li a:hover {
        color: #4CAF50;
        text-shadow: 0 0 10px #4CAF50;
    }

    /* 主内容区样式 */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    article {
        background: rgba(30, 30, 30, 0.9);
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        margin-bottom: 40px;
    }

    article h2 {
        font-size: 2rem;
        color: #4CAF50;
        margin-bottom: 20px;
        text-align: center;
        position: relative;
    }

    article h2::after {
        content: '';
        width: 50px;
        height: 4px;
        background: #4CAF50;
        display: block;
        margin: 10px auto 0;
        border-radius: 2px;
    }

    article h3 {
        font-size: 1.5rem;
        color: #BB86FC;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    article p {
        margin-bottom: 15px;
        text-indent: 2em;
    }

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

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

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

    table, th, td {
        border: 1px solid #4CAF50;
    }

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

    th {
        background: #333333;
        color: #4CAF50;
    }

    /* 图片样式 */
    .image-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .image-gallery img {
        width: 100%;
        max-width: 320px;
        border-radius: 5px;
        transition: transform 0.3s ease;
    }

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

    /* 按钮样式 */
    .button {
        background: #4CAF50;
        color: #ffffff;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: box-shadow 0.3s ease, transform 0.1s ease-in-out;
        font-size: 1rem;
    }

    .button:hover {
        box-shadow: 0 0 10px #4CAF50, 0 0 20px #4CAF50, 0 0 30px #4CAF50;
    }

    .button:active {
        transform: scale(0.95);
    }

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

    @media (max-width: 1200px) {
        article {
            padding: 25px;
        }

        article h2 {
            font-size: 1.8rem;
        }

        article h3 {
            font-size: 1.4rem;
        }
    }

    @media (max-width: 1024px) {
        .navbar ul li {
            margin-left: 15px;
        }

        .image-gallery {
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .navbar {
            flex-direction: column;
            align-items: flex-start;
        }

        .navbar ul {
            flex-direction: column;
            width: 100%;
        }

        .navbar ul li {
            margin: 10px 0;
        }

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

        article {
            padding: 20px;
        }
    }

    @media (max-width: 480px) {
        .navbar .logo {
            font-size: 1.2rem;
        }

        .navbar ul li a {
            font-size: 0.9rem;
        }

        article h2 {
            font-size: 1.5rem;
        }

        article h3 {
            font-size: 1.2rem;
        }

        .button {
            width: 100%;
            text-align: center;
        }
    }

    @media (max-width: 320px) {
        .navbar {
            padding: 10px 15px;
        }

        .navbar .logo {
            font-size: 1rem;
        }

        .navbar ul li {
            margin-left: 10px;
        }

        article h2 {
            font-size: 1.2rem;
        }

        article h3 {
            font-size: 1rem;
        }

        .image-gallery img {
            max-width: 100%;
        }
    }

    /* 提示信息样式 */
    .reference-note {
        background: rgba(30, 30, 30, 0.8);
        padding: 15px;
        border-left: 4px solid #4CAF50;
        margin-bottom: 20px;
        border-radius: 5px;
        font-style: italic;
    }

    /* 代码示例样式优化 */
    .code-preview {
        background: #2c2c2c;
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        margin-bottom: 15px;
    }

    /* 底部样式 */
    .footer {
        background: rgba(18, 18, 18, 0.9);
        color: #ffffff;
        text-align: center;
        padding: 20px;
        border-top: 1px solid #4CAF50;
    }

    /* 动画特效 */
    .button, .navbar ul li a {
        position: relative;
    }

    .button::after, .navbar ul li a::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -5px;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: #4CAF50;
        transition: width 0.3s ease;
    }

    .button:hover::after, .navbar ul li a:hover::after {
        width: 100%;
    }

