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

    body {
        font-family: 'Roboto', sans-serif;
        line-height: 1.6;
        color: #ffffff;
        background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
        background-size: 180% 180%;
        animation: gradient-animation 10s ease infinite;
        padding: 20px;
    }

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

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

    h1, h2, h3, h4 {
        color: #6a11cb;
        font-weight: bold;
        margin-bottom: 20px;
    }

    p {
        margin-bottom: 20px;
        color: #e0e0e0;
    }

    em {
        color: #37ecba;
    }

    pre {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 15px;
        border-radius: 8px;
        overflow-x: auto;
        margin-bottom: 20px;
    }

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

    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    th, td {
        border: 1px solid #6a11cb;
        padding: 10px;
        text-align: left;
    }

    th {
        background-color: #302b63;
    }

    .interactive-button {
        background-color: #37ecba;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
    }

    .interactive-button:hover {
        background-color: #1d9c83;
        transform: scale(1.1);
    }

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

    .grid-item {
        background-color: rgba(31, 28, 53, 0.9);
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        padding: 20px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .grid-item:hover {
        transform: translateY(-10px);
    }

    .cube {
        width: 100px;
        height: 100px;
        perspective: 1000px;
        margin: 0 auto 20px;
    }

    .cube div {
        position: absolute;
        width: 100px;
        height: 100px;
        background-color: #ff7e5f;
        border: 1px solid #fff;
        transform-style: preserve-3d;
        animation: rotate-cube 5s infinite linear;
    }

    @keyframes rotate-cube {
        from { transform: rotateY(0deg); }
        to { transform: rotateY(360deg); }
    }

    .cube .face1 { transform: rotateY(0deg) translateZ(50px); }
    .cube .face2 { transform: rotateY(90deg) translateZ(50px); }
    .cube .face3 { transform: rotateY(180deg) translateZ(50px); }
    .cube .face4 { transform: rotateY(270deg) translateZ(50px); }

    .image-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .image-gallery img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }

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

    footer {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(31, 28, 53, 0.8);
        padding: 10px 20px;
        border-radius: 30px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    footer a {
        color: #37ecba;
        text-decoration: none;
        margin: 0 10px;
        transition: color 0.3s ease;
    }

    footer a:hover {
        color: #ffdd57;
    }

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

    @media (max-width: 1200px) {
        .container {
            padding: 10px;
        }
    }

    @media (max-width: 1024px) {
        .cube {
            width: 80px;
            height: 80px;
        }

        .grid-container {
            gap: 15px;
        }
    }

    @media (max-width: 768px) {
        .interactive-button {
            width: 100%;
            padding: 12px 0;
            font-size: 18px;
        }

        footer {
            padding: 15px 25px;
        }
    }

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

        h2 {
            font-size: 20px;
        }

        h3 {
            font-size: 18px;
        }

        p, table, pre, code {
            font-size: 14px;
        }

        .cube {
            width: 60px;
            height: 60px;
        }

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

        footer {
            padding: 10px 15px;
        }
    }

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

        h2 {
            font-size: 18px;
        }

        h3 {
            font-size: 16px;
        }

        p, table, pre, code {
            font-size: 12px;
        }

        .cube {
            width: 50px;
            height: 50px;
        }

        .image-gallery img {
            width: 60px;
            height: 60px;
        }

        footer {
            padding: 8px 12px;
        }
    }

