
    /* 全局样式重置 */
    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    /* 定义颜色变量 */
    :root {
        --primary-gradient: linear-gradient(135deg, #d291bc, #f9a8d4);
        --secondary-gradient: linear-gradient(135deg, #a1c4fd, #c2e9fb);
        --accent-color: #f39c12;
        --text-color: #ecf0f1;
        --background-color: #2c3e50;
        --button-bg: rgba(255, 255, 255, 0.2);
        --button-hover-bg: #e74c3c;
        --header-font: 'Bauhaus', sans-serif;
        --body-font: 'Inter', sans-serif;
    }

    body {
        font-family: var(--body-font);
        background: var(--primary-gradient);
        color: var(--text-color);
        overflow-x: hidden;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        animation: background-animation 15s linear infinite;
    }

    @keyframes background-animation {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    header {
        width: 100%;
        text-align: center;
        padding: 40px 20px;
        background: var(--secondary-gradient);
        border-radius: 15px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        position: relative;
        margin-bottom: 30px;
    }

    header h1 {
        font-family: var(--header-font);
        font-size: 3rem;
        color: var(--accent-color);
        text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    }

    .floating-element {
        position: absolute;
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        top: 20px;
        right: 20px;
        animation: float 6s ease-in-out infinite;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-20px); }
    }

    main {
        width: 100%;
        max-width: 1200px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 40px;
    }

    .card {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .card:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-10px);
    }

    .card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .card h2 {
        font-family: var(--header-font);
        font-size: 1.8rem;
        color: var(--accent-color);
        margin-bottom: 10px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    }

    .card p {
        font-family: var(--body-font);
        font-size: 1rem;
        line-height: 1.6;
    }

    .highlight {
        background: rgba(44, 62, 80, 0.7);
        padding: 20px;
        border-radius: 10px;
        margin-top: 20px;
        overflow-x: auto;
    }

    pre {
        background: rgba(0, 0, 0, 0.6);
        padding: 15px;
        border-radius: 10px;
        overflow-x: auto;
    }

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

    footer {
        width: 100%;
        text-align: center;
        padding: 20px;
        background: var(--secondary-gradient);
        border-radius: 15px;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    }

    footer p {
        font-family: var(--body-font);
        color: var(--text-color);
    }

    /* 按钮样式 */
    .button {
        display: inline-block;
        padding: 15px 30px;
        background: var(--button-bg);
        border: none;
        color: white;
        font-size: 1rem;
        border-radius: 20px;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
        position: relative;
        z-index: 1;
        text-decoration: none;
    }

    .button:hover {
        background: var(--button-hover-bg);
        transform: scale(1.05);
    }

    /* 浮动按钮样式 */
    .floating-button {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background: var(--button-bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        animation: float 4s ease-in-out infinite;
        cursor: pointer;
        z-index: 1000;
    }

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

    /* 示例展示样式 */
    .example-display {
        background: rgba(44, 62, 80, 0.8);
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        margin-bottom: 40px;
    }

    .example-display h2 {
        font-family: var(--header-font);
        font-size: 2rem;
        color: var(--accent-color);
        margin-bottom: 20px;
        text-align: center;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    }

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

    @media (max-width: 1200px) {
        main {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        }
    }

    @media (max-width: 1024px) {
        .card {
            padding: 15px;
        }

        .floating-element {
            width: 50px;
            height: 50px;
        }
    }

    @media (max-width: 768px) {
        header {
            padding: 30px 15px;
        }

        header h1 {
            font-size: 2rem;
        }

        .example-display {
            padding: 20px;
        }

        .button {
            padding: 12px 25px;
            font-size: 0.9rem;
        }
    }

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

        .card h2 {
            font-size: 1.5rem;
        }

        .button {
            padding: 10px 20px;
            font-size: 0.8rem;
        }
    }

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

        .card h2 {
            font-size: 1.3rem;
        }

        .button {
            padding: 8px 16px;
            font-size: 0.7rem;
        }
    }

