
    /* CSS变量定义 */
    :root {
        --primary-color: #87CEEB; /* 浅蓝色 */
        --accent-color: #FFA500;  /* 暖橙色 */
        --background-color: #F5F5F5; /* 浅灰色 */
        --text-color: #333333;
        --header-height: 60px;
        --font-family: 'Roboto', sans-serif;
        --transition-speed: 0.3s;
    }

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

    body {
        font-family: var(--font-family);
        background: linear-gradient(135deg, var(--primary-color), var(--background-color));
        color: var(--text-color);
        line-height: 1.6;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    a {
        color: var(--accent-color);
        text-decoration: none;
        transition: color var(--transition-speed) ease;
    }

    a:hover {
        color: darken(var(--accent-color), 10%);
    }

    /* 头部样式 */
    header {
        height: var(--header-height);
        background: radial-gradient(circle, var(--primary-color), transparent);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        animation: headerMove 15s linear infinite;
    }

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

    .logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: white;
    }

    nav ul {
        list-style: none;
        display: flex;
        gap: 15px;
    }

    nav ul li a {
        color: white;
        font-weight: 500;
    }

    /* 主体内容样式 */
    main {
        flex: 1;
        padding: var(--header-height) 20px 20px 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
        color: white;
        padding: 60px 20px;
        border-radius: 10px;
        text-align: center;
        margin-bottom: 40px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 40px;
    }

    .feature-card {
        background: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

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

    .feature-card h3 {
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .feature-card p {
        font-size: 1rem;
    }

    /* 按钮样式 */
    .button {
        display: inline-block;
        padding: 10px 20px;
        background: var(--accent-color);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    }

    .button:hover {
        background: darken(var(--accent-color), 10%);
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* 示例展示样式 */
    .example-section {
        background: #ffffff;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-bottom: 40px;
    }

    .example-section h2 {
        margin-bottom: 20px;
        color: var(--primary-color);
    }

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

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

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

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

    @media (max-width: 1200px) {
        .hero h1 {
            font-size: 2rem;
        }
    }

    @media (max-width: 1024px) {
        nav ul {
            flex-direction: column;
            background: var(--primary-color);
            position: absolute;
            top: var(--header-height);
            right: 0;
            width: 200px;
            display: none;
        }

        nav ul.active {
            display: flex;
        }

        .menu-toggle {
            display: block;
            cursor: pointer;
            color: white;
            font-size: 1.5rem;
        }
    }

    @media (max-width: 768px) {
        .features {
            grid-template-columns: 1fr;
        }

        .hero h1 {
            font-size: 1.8rem;
        }
    }

    @media (max-width: 480px) {
        header {
            padding: 0 10px;
        }

        .hero {
            padding: 40px 10px;
        }

        .feature-card {
            padding: 15px;
        }

        .button {
            padding: 8px 16px;
        }
    }

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

        .feature-card h3 {
            font-size: 1.1rem;
        }

        .feature-card p {
            font-size: 0.9rem;
        }
    }

    /* 图像动画 */
    .animated-image {
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0% { transform: translatey(0px); }
        50% { transform: translatey(-20px); }
        100% { transform: translatey(0px); }
    }

    /* 按钮微动画 */
    .button {
        background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
        background-size: 200% 200%;
        animation: gradientShift 5s linear infinite;
    }

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

    /* Footer样式 */
    footer {
        background: var(--primary-color);
        color: white;
        text-align: center;
        padding: 20px;
    }

    footer p {
        margin: 0;
        font-size: 1rem;
    }

