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

    body {
        background: linear-gradient(135deg, #000046, #2c3e50);
        color: #fff;
        font-family: 'Roboto', sans-serif;
        line-height: 1.6;
        padding: 20px;
    }

    h1, h2, h3, h4 {
        font-family: 'Poppins', sans-serif;
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    h1 {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    h4 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    p {
        margin-bottom: 15px;
        font-size: 1rem;
        color: #ddd;
    }

    a {
        color: #1e90ff;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    /* 卡片容器 */
    .cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    /* 单个卡片 */
    .card {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }

    .card img {
        width: 100%;
        height: 160px;
        border-radius: 10px;
        object-fit: cover;
        margin-bottom: 15px;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
        color: #ff8c00;
    }

    .card-description {
        font-size: 1rem;
        margin-bottom: 15px;
        color: #ccc;
    }

    .card-button {
        background-color: #1e90ff;
        color: #fff;
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .card-button:hover {
        background-color: #3742fa;
    }

    /* 示例展示区 */
    .example-section {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 30px;
        margin-top: 40px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    .example-section h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #ff4757;
    }

    .example-section article {
        max-width: 800px;
        margin: 0 auto;
    }

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

    .example-section code {
        font-family: 'Courier New', Courier, monospace;
        color: #f1f1f1;
    }

    /* 底部提示 */
    .footer {
        text-align: center;
        margin-top: 40px;
        font-size: 1rem;
        color: #bbb;
    }

    /* 响应式设计 */
    @media (max-width: 1440px) {
        h1 {
            font-size: 2.2rem;
        }
        .card img {
            height: 140px;
        }
    }

    @media (max-width: 1200px) {
        .cards-container {
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        }
        h1 {
            font-size: 2rem;
        }
    }

    @media (max-width: 1024px) {
        .cards-container {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        }
        .example-section {
            padding: 25px;
        }
    }

    @media (max-width: 768px) {
        .cards-container {
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        }
        h1 {
            font-size: 1.8rem;
        }
    }

    @media (max-width: 480px) {
        .cards-container {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        }
        h1 {
            font-size: 1.6rem;
        }
    }

    @media (max-width: 320px) {
        .cards-container {
            grid-template-columns: 1fr;
        }
        .card {
            padding: 15px;
        }
        .example-section {
            padding: 20px;
        }
    }

