
    /* 全局样式 */
    body {
        margin: 0;
        padding: 0;
        font-family: 'Open Sans', sans-serif;
        background: linear-gradient(135deg, #000f4c, #6a00ff);
        color: #ffffff;
        overflow-x: hidden;
    }

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

    /* 头部样式 */
    header {
        text-align: center;
        padding: 50px 20px;
        background: rgba(0, 0, 0, 0.5);
        border-bottom: 2px solid #6a00ff;
    }

    header h1 {
        font-family: 'Roboto Bold', sans-serif;
        font-size: 3em;
        margin-bottom: 20px;
        text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
        background: linear-gradient(90deg, #ff4e50, #f9d423);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    header p {
        font-size: 1.2em;
        line-height: 1.6;
    }

    /* 导航菜单 */
    nav {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin: 20px 0;
    }

    nav a {
        text-decoration: none;
        color: #ffffff;
        font-size: 1em;
        position: relative;
        transition: color 0.3s ease;
    }

    nav a::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: #f9d423;
        transition: width 0.3s;
    }

    nav a:hover::after {
        width: 100%;
    }

    nav a:hover {
        color: #f9d423;
    }

    /* 主内容区 */
    main {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 20px;
    }

    /* 模块化卡片布局 */
    .cards {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .card {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        width: 250px;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
    }

    .card:hover {
        transform: scale(1.05);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    }

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

    .card h4 {
        font-family: 'Roboto Bold', sans-serif;
        font-size: 1.5em;
        margin-bottom: 10px;
        text-align: center;
    }

    .card p {
        font-size: 1em;
        line-height: 1.5;
        text-align: justify;
    }

    /* 示例展示区 */
    .example {
        background: rgba(255, 255, 255, 0.1);
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .example h2 {
        font-family: 'Roboto Bold', sans-serif;
        font-size: 2em;
        margin-bottom: 20px;
        text-align: center;
        background: linear-gradient(90deg, #ff4e50, #f9d423);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .example p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 20px;
        text-align: justify;
    }

    .example pre {
        background: #1a1a2e;
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        margin-bottom: 20px;
    }

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

    /* 表格样式 */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    table, th, td {
        border: 1px solid #6a00ff;
    }

    th, td {
        padding: 12px;
        text-align: center;
    }

    th {
        background: rgba(106, 0, 255, 0.7);
        color: #ffffff;
    }

    /* 图片展示 */
    .gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .gallery img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
    }

    /* 页脚样式 */
    footer {
        text-align: center;
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
        border-top: 2px solid #6a00ff;
    }

    footer p {
        font-size: 1em;
    }

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

        .card {
            width: 220px;
        }

        .gallery img {
            width: 130px;
            height: 130px;
        }
    }

    @media (max-width: 1200px) {
        .cards {
            justify-content: space-around;
        }

        .card {
            width: 200px;
        }

        .gallery img {
            width: 120px;
            height: 120px;
        }
    }

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

        .card {
            width: 80%;
        }

        .gallery img {
            width: 100px;
            height: 100px;
        }
    }

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

        nav {
            flex-direction: column;
            gap: 10px;
        }

        .card {
            width: 100%;
        }

        .gallery img {
            width: 80px;
            height: 80px;
        }
    }

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

        nav a {
            font-size: 0.9em;
        }

        .example pre {
            padding: 10px;
        }
    }

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

        nav a {
            font-size: 0.8em;
        }

        .card {
            width: 90%;
        }

        .gallery img {
            width: 70px;
            height: 70px;
        }
    }

    /* 动画效果 */
    @keyframes fadeInOut {
        0% { opacity: 0; }
        50% { opacity: 1; }
        100% { opacity: 0; }
    }

    .animated {
        animation: fadeInOut 5s infinite;
    }

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

    a:hover {
        text-decoration: underline;
    }

    /* 按钮样式 */
    .btn {
        display: inline-block;
        padding: 10px 20px;
        background: #ff4e50;
        color: #ffffff;
        border-radius: 5px;
        transition: background 0.3s ease;
    }

    .btn:hover {
        background: #e43f3a;
    }

    /* 代码块样式 */
    pre {
        background: #1a1a2e;
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
    }

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

