
    /* 基础重置 */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* 根变量定义 */
    :root {
        --primary-gradient: linear-gradient(135deg, #4568DC, #B06AB3);
        --secondary-gradient: linear-gradient(135deg, #FFC107, #FF5722);
        --background-color: #f5f5f5;
        --text-color: #333333;
        --title-font: 'Montserrat', sans-serif;
        --body-font: 'Roboto', sans-serif;
        --accent-color: #FFC107;
        --nav-background: rgba(255, 255, 255, 0.9);
        --nav-text-color: #333333;
        --section-padding: 60px 20px;
    }

    /* 全局样式 */
    body {
        background: var(--primary-gradient);
        color: var(--text-color);
        font-family: var(--body-font);
        line-height: 1.6;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* 导航栏样式 */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--nav-background);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav ul {
        list-style: none;
        display: flex;
        justify-content: center;
        padding: 15px 0;
    }

    nav ul li {
        margin: 0 20px;
    }

    nav ul li a {
        text-decoration: none;
        color: var(--nav-text-color);
        font-family: var(--title-font);
        font-size: 1rem;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: var(--accent-color);
    }

    /* 头部横幅样式 */
    .hero {
        height: 100vh;
        background: var(--primary-gradient);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 20px;
    }

    .hero h1 {
        font-family: var(--title-font);
        font-size: 3rem;
        color: #ffffff;
        margin-bottom: 20px;
        animation: fadeInDown 1s ease-out;
    }

    .hero p {
        font-size: 1.2rem;
        color: #ffffff;
        max-width: 600px;
        margin-bottom: 30px;
        animation: fadeInUp 1.5s ease-out;
    }

    .hero button {
        padding: 15px 30px;
        font-size: 1rem;
        border: none;
        border-radius: 30px;
        background: var(--secondary-gradient);
        color: #ffffff;
        cursor: pointer;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .hero button:hover {
        transform: scale(1.05);
        background: var(--accent-color);
    }

    /* 动画定义 */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    /* 模块化布局样式 */
    section {
        padding: var(--section-padding);
        background-color: #ffffff;
        margin: 20px 0;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    section:nth-child(even) {
        background-color: #fafafa;
    }

    section h2 {
        font-family: var(--title-font);
        font-size: 2rem;
        color: var(--primary-gradient);
        margin-bottom: 20px;
        text-align: center;
    }

    section p {
        font-size: 1rem;
        color: var(--text-color);
        max-width: 800px;
        margin: 0 auto 20px;
        line-height: 1.8;
    }

    section pre {
        background: #f0f0f0;
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        max-width: 800px;
        margin: 0 auto 20px;
    }

    section pre code {
        font-family: 'Courier New', Courier, monospace;
        color: #c7254e;
        background-color: #f9f2f4;
        display: block;
        padding: 10px;
        border-radius: 4px;
    }

    /* 图像样式 */
    .images {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin: 20px 0;
    }

    .images img {
        width: 320px;
        height: 320px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .images img:hover {
        transform: scale(1.05);
    }

    /* 示例展示样式 */
    .example-display {
        background: linear-gradient(to right, #ece9e6, #ffffff);
        padding: 40px 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .example-display h3 {
        font-family: var(--title-font);
        font-size: 1.5rem;
        color: #333333;
        margin-bottom: 15px;
        text-align: center;
    }

    /* 按钮样式 */
    .cta-button {
        display: inline-block;
        padding: 12px 25px;
        background: var(--accent-color);
        color: #ffffff;
        border: none;
        border-radius: 25px;
        text-decoration: none;
        font-size: 1rem;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .cta-button:hover {
        background: #ffb300;
        transform: translateY(-3px);
    }

    /* 通知样式 */
    .notice {
        text-align: center;
        font-size: 0.9rem;
        color: #555555;
        margin: 40px 0;
    }

    /* 代码块预览样式 */
    .code-preview {
        background: #2d2d2d;
        color: #f8f8f2;
        padding: 20px;
        border-radius: 5px;
        overflow-x: auto;
        font-family: 'Courier New', Courier, monospace;
        margin-bottom: 20px;
    }

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

        section h2 {
            font-size: 1.8rem;
        }

        .images img {
            width: 280px;
            height: 280px;
        }
    }

    @media (max-width: 1200px) {
        nav ul li {
            margin: 0 10px;
        }

        .hero h1 {
            font-size: 2rem;
        }

        section h2 {
            font-size: 1.6rem;
        }

        .images img {
            width: 240px;
            height: 240px;
        }
    }

    @media (max-width: 1024px) {
        .images {
            flex-direction: column;
            align-items: center;
        }

        .hero p {
            font-size: 1rem;
        }
    }

    @media (max-width: 768px) {
        nav ul {
            flex-direction: column;
            align-items: center;
        }

        nav ul li {
            margin: 10px 0;
        }

        .hero h1 {
            font-size: 1.8rem;
        }

        section h2 {
            font-size: 1.4rem;
        }

        .images img {
            width: 200px;
            height: 200px;
        }
    }

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

        section h2 {
            font-size: 1.2rem;
        }

        .images img {
            width: 160px;
            height: 160px;
        }
    }

    @media (max-width: 320px) {
        nav ul {
            flex-direction: column;
            align-items: center;
        }

        .hero h1 {
            font-size: 1.2rem;
        }

        section h2 {
            font-size: 1rem;
        }

        .images img {
            width: 140px;
            height: 140px;
        }
    }

