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

    body {
        font-family: 'Poppins', sans-serif;
        background: linear-gradient(135deg, #4c6ef5, #8e44ad);
        color: #fff;
        line-height: 1.6;
        padding: 20px;
        animation: backgroundMove 15s linear infinite;
    }

    /* 动画效果 */
    @keyframes backgroundMove {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    /* 容器 */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    /* 头部样式 */
    header {
        text-align: center;
        padding: 50px 0;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
    }

    header h1 {
        font-size: 3rem;
        margin-bottom: 20px;
        color: #ff9a9e;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    header p {
        font-size: 1.2rem;
        color: #fad0c4;
    }

    /* 主体内容 */
    main {
        margin-top: 40px;
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .grid-item {
        background: linear-gradient(135deg, #3498db, #2ecc71);
        padding: 20px;
        border-radius: 8px;
        transition: transform 0.3s ease, background 0.5s ease;
        position: relative;
        overflow: hidden;
    }

    .grid-item:nth-child(odd) {
        background: linear-gradient(135deg, #f37335, #fa983a);
    }

    .grid-item:nth-child(even) {
        background: linear-gradient(135deg, #6a11cb, #2575fc);
    }

    .grid-item:hover {
        transform: scale(1.05);
        background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    }

    .grid-item img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    .grid-item h3 {
        margin-bottom: 10px;
        font-size: 1.5rem;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    .grid-item p {
        font-size: 1rem;
        color: #f0f0f0;
    }

    /* 示例展示 */
    .sample-article {
        background: rgba(255, 255, 255, 0.1);
        padding: 30px;
        border-radius: 10px;
        margin-top: 50px;
    }

    .sample-article h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: #ffd700;
    }

    .sample-article p {
        margin-bottom: 15px;
        font-size: 1rem;
    }

    .sample-article pre {
        background: rgba(0, 0, 0, 0.7);
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        margin-bottom: 15px;
    }

    .sample-article code {
        color: #00ff00;
        font-family: Consolas, monospace;
    }

    /* 提示信息 */
    .reference-note {
        text-align: center;
        margin-top: 40px;
        font-size: 1.2rem;
        color: #ffeb3b;
    }

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

    @media (max-width: 1200px) {
        .grid-container {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        }
    }

    @media (max-width: 1024px) {
        header {
            padding: 40px 0;
        }

        .sample-article {
            padding: 25px;
        }
    }

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

        .grid-container {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        }
    }

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

        .grid-item h3 {
            font-size: 1.2rem;
        }
    }

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

        .sample-article h2 {
            font-size: 1.5rem;
        }

        .reference-note {
            font-size: 1rem;
        }
    }

    /* 链接样式 */
    a {
        color: #ff9a9e;
        text-decoration: none;
        position: relative;
    }

    a::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #ff9a9e;
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
    }

    a:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    /* 代码块样式 */
    pre {
        background: rgba(0, 0, 0, 0.8);
        padding: 20px;
        border-radius: 8px;
        overflow-x: auto;
        margin-bottom: 20px;
    }

    code {
        font-family: 'Courier New', Courier, monospace;
        color: #00ff7f;
        font-size: 0.95rem;
    }

    /* 按钮样式 */
    .btn {
        display: inline-block;
        padding: 10px 20px;
        margin-top: 20px;
        background: #ff9a9e;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .btn:hover {
        background: #fad0c4;
    }

