
    /* 定义CSS变量以统一颜色管理 */
    :root {
        --primary-color: #0A1F44;
        --accent-color: #8C66FF;
        --highlight-color: #FFD700;
        --secondary-color: #00FFB4;
        --background-gradient: linear-gradient(135deg, #0A1F44, #8C66FF, #ffffff);
        --button-hover: linear-gradient(45deg, #FFD700, #00FFB4);
        --font-primary: 'Roboto', sans-serif;
        --font-secondary: 'Montserrat', sans-serif;
    }

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

    body {
        font-family: var(--font-primary);
        background: var(--background-gradient);
        color: #ffffff;
        line-height: 1.6;
        animation: background-animate 15s linear infinite;
    }

    /* 页面动画 */
    @keyframes background-animate {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* 头部样式 */
    header {
        background: rgba(10, 31, 68, 0.8);
        padding: 20px;
        text-align: center;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }

    header h1 {
        font-family: var(--font-secondary);
        font-size: 2em;
        color: var(--highlight-color);
        animation: title-move 10s linear infinite;
    }

    @keyframes title-move {
        0% { color: var(--highlight-color); }
        50% { color: var(--secondary-color); }
        100% { color: var(--highlight-color); }
    }

    /* 主内容区 */
    main {
        margin-top: 80px;
        padding: 20px;
    }

    section {
        padding: 60px 20px;
        position: relative;
        overflow: hidden;
    }

    .parallax {
        background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
        background-attachment: fixed;
        background-size: cover;
        height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-color);
        text-align: center;
        font-family: var(--font-secondary);
        font-size: 2em;
    }

    .content {
        background: rgba(255, 255, 255, 0.1);
        padding: 40px;
        border-radius: 10px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    .content h2 {
        font-family: var(--font-secondary);
        color: var(--highlight-color);
        margin-bottom: 20px;
    }

    .content p {
        font-family: var(--font-primary);
        color: #ffffff;
        margin-bottom: 20px;
    }

    .content pre {
        background: rgba(0, 0, 0, 0.7);
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        font-family: 'Courier New', Courier, monospace;
        color: #00FFB4;
    }

    .content code {
        color: #00FFB4;
        font-family: 'Courier New', Courier, monospace;
    }

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

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

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

    /* 按钮样式 */
    .btn {
        background: var(--highlight-color);
        color: var(--primary-color);
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-family: var(--font-secondary);
        transition: background 0.3s ease;
        text-decoration: none;
    }

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

    /* 示例展示样式 */
    .example {
        background: rgba(255, 255, 255, 0.2);
        padding: 30px;
        border-radius: 10px;
        margin-top: 40px;
    }

    .example h3 {
        font-family: var(--font-secondary);
        color: var(--highlight-color);
        margin-bottom: 15px;
    }

    .example article {
        font-family: var(--font-primary);
        color: #ffffff;
        line-height: 1.8;
    }

    .example table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .example table, .example th, .example td {
        border: 1px solid #8C66FF;
    }

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

    .example th {
        background: rgba(140, 102, 255, 0.7);
    }

    /* 提示信息样式 */
    .reference {
        text-align: center;
        margin-top: 50px;
        font-size: 1.2em;
        color: var(--accent-color);
        font-family: var(--font-secondary);
    }

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

    @media (max-width: 1200px) {
        header h1 {
            font-size: 1.8em;
        }
    }

    @media (max-width: 1024px) {
        .parallax {
            height: 400px;
            font-size: 1.5em;
        }

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

    @media (max-width: 768px) {
        .parallax {
            background-attachment: scroll;
            height: auto;
            padding: 40px 20px;
        }

        .content {
            padding: 20px;
        }

        .example table, .example th, .example td {
            font-size: 0.9em;
        }
    }

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

        .parallax {
            font-size: 1.2em;
            padding: 30px 10px;
        }

        .content, .example {
            padding: 15px;
        }

        .btn {
            padding: 8px 16px;
            font-size: 0.9em;
        }
    }

    @media (max-width: 320px) {
        .parallax {
            font-size: 1em;
            padding: 20px 5px;
        }

        .content, .example {
            padding: 10px;
        }

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

