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

    body {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        background: linear-gradient(135deg, #8BC34A, #673AB7, #03A9F4);
        background-size: 200% 200%;
        animation: gradientMove 10s ease infinite;
        color: #333;
        line-height: 1.6;
        overflow-x: hidden;
    }

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

    a {
        color: #03A9F4;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    a:hover {
        color: #8BC34A;
    }

    /* 布局 */
    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    header {
        text-align: center;
        padding: 50px 0;
        color: #fff;
    }

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

    nav {
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    nav a {
        font-size: 1.1rem;
        font-weight: bold;
        position: relative;
    }

    nav a::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: #8BC34A;
        transition: width 0.3s;
        position: absolute;
        bottom: -5px;
        left: 0;
    }

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

    /* 主内容 */
    .main-section {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        padding: 40px 0;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 15px;
    }

    .main-section .text-content {
        flex: 1 1 500px;
    }

    .main-section h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: #673AB7;
    }

    .main-section p {
        margin-bottom: 20px;
    }

    .main-section img {
        width: 100%;
        max-width: 400px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    /* 示例展示 */
    .example-section {
        padding: 40px 0;
        background: linear-gradient(135deg, #fff, #f0f0f0);
        border-radius: 15px;
        margin-top: 60px;
    }

    .example-section h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 30px;
        color: #03A9F4;
    }

    .example-section article {
        max-width: 100%;
        overflow: auto;
    }

    .example-section pre {
        background: #2d2d2d;
        color: #f8f8f2;
        padding: 15px;
        border-radius: 8px;
        overflow: auto;
        font-size: 1rem;
    }

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

    .example-section table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    .example-section table, 
    .example-section th, 
    .example-section td {
        border: 1px solid #ddd;
    }

    .example-section th, 
    .example-section td {
        padding: 12px;
        text-align: left;
    }

    .example-section th {
        background-color: #673AB7;
        color: #fff;
    }

    /* 互动元素 */
    .button {
        display: inline-block;
        padding: 15px 30px;
        background: #8BC34A;
        color: #fff;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        transition: background 0.3s, transform 0.3s;
        position: relative;
        overflow: hidden;
    }

    .button::after {
        content: '';
        position: absolute;
        width: 300%;
        height: 300%;
        top: 50%;
        left: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%) rotate(45deg);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .button:hover {
        background: #673AB7;
        transform: scale(1.05);
    }

    .button:hover::after {
        opacity: 1;
        transition: opacity 0.5s;
    }

    /* 动画效果 */
    .ripple {
        position: relative;
        overflow: hidden;
    }

    .ripple::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.1);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .ripple:hover::before {
        opacity: 1;
        animation: rippleEffect 0.6s forwards;
    }

    @keyframes rippleEffect {
        0% { transform: scale(0); opacity: 1; }
        100% { transform: scale(4); opacity: 0; }
    }

    /* 响应式设计 */
    @media (max-width: 1440px) {
        .main-section {
            flex-direction: row;
        }
    }

    @media (max-width: 1200px) {
        .main-section {
            flex-direction: column;
            align-items: center;
        }
    }

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

        nav a {
            font-size: 1rem;
        }

        .example-section h2 {
            font-size: 2rem;
        }
    }

    @media (max-width: 768px) {
        .main-section {
            padding: 20px 0;
        }

        .main-section h2 {
            font-size: 2rem;
        }

        .example-section h2 {
            font-size: 1.8rem;
        }
    }

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

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

        .main-section h2 {
            font-size: 1.8rem;
        }

        .button {
            padding: 10px 20px;
        }

        .example-section h2 {
            font-size: 1.5rem;
        }
    }

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

        nav a {
            font-size: 0.9rem;
        }

        .main-section h2 {
            font-size: 1.5rem;
        }

        .example-section h2 {
            font-size: 1.2rem;
        }
    }

    /* 图片样式 */
    .image-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 20px;
    }

    .image-gallery img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 10px;
    }

    /* Footer */
    footer {
        text-align: center;
        padding: 30px 0;
        color: #fff;
        background: rgba(0, 0, 0, 0.5);
        margin-top: 60px;
    }

    /* 代码块样式 */
    pre {
        background: #2d2d2d;
        color: #f8f8f2;
        padding: 15px;
        border-radius: 8px;
        overflow-x: auto;
    }

    code {
        font-family: 'Courier New', Courier, monospace;
        font-size: 1rem;
    }


