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

    body {
        font-family: 'Roboto', sans-serif;
        background: linear-gradient(135deg, #007BFF, #6F42C1);
        color: #333333;
        line-height: 1.6;
        padding: 20px;
    }

    /* 容器布局 */
    .container {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.8);
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* 头部样式 */
    header {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 30px;
    }

    header h1 {
        font-size: 2.5rem;
        color: #007BFF;
        margin-bottom: 10px;
        animation: fadeInDown 1s ease-out;
    }

    header p {
        font-size: 1.2rem;
        color: #6C757D;
        animation: fadeInUp 1s ease-out;
    }

    /* 导航栏样式 */
    nav {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

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

    nav ul li a {
        text-decoration: none;
        color: #007BFF;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: #6F42C1;
    }

    /* 主要内容区域 */
    main {
        grid-column: 2 / 3;
    }

    main article {
        background: #FFFFFF;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        animation: slideIn 1s ease-out;
    }

    main article h2 {
        font-size: 1.8rem;
        color: #007BFF;
        margin-bottom: 15px;
    }

    main article h3 {
        font-size: 1.5rem;
        color: #6F42C1;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    main article p {
        margin-bottom: 15px;
        text-indent: 2em;
    }

    main article pre {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 5px;
        overflow-x: auto;
        margin-bottom: 15px;
    }

    main article pre code {
        font-family: 'Courier New', Courier, monospace;
        color: #343a40;
    }

    main article ul {
        list-style: disc inside;
        margin-bottom: 15px;
    }

    /* 侧边栏样式 */
    aside {
        grid-column: 3 / 4;
    }

    aside .widget {
        background: #FFFFFF;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        animation: fadeIn 1s ease-out;
    }

    aside .widget h4 {
        font-size: 1.3rem;
        color: #007BFF;
        margin-bottom: 10px;
    }

    aside .widget img {
        width: 100%;
        border-radius: 5px;
    }

    /* 底部样式 */
    footer {
        grid-column: 1 / -1;
        text-align: center;
        padding: 20px;
        background: rgba(0, 123, 255, 0.1);
        border-radius: 8px;
        animation: fadeInUp 1s ease-out;
    }

    footer p {
        color: #6C757D;
    }

    /* 按钮样式 */
    .button {
        display: inline-block;
        background-color: #007BFF;
        color: #FFFFFF;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .button:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    }

    /* 动画效果 */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

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

    @media (max-width: 1200px) {
        .container {
            grid-template-columns: 1fr 2fr;
        }

        aside {
            grid-column: 2 / 3;
        }
    }

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

        nav ul {
            flex-direction: column;
            align-items: center;
        }

        nav ul li {
            margin-bottom: 10px;
        }

        main, aside {
            grid-column: 1 / -1;
        }
    }

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

        main article h2 {
            font-size: 1.5rem;
        }

        main article h3 {
            font-size: 1.3rem;
        }

        .container {
            padding: 20px;
        }
    }

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

        nav ul li a {
            font-size: 1rem;
        }

        main article h2 {
            font-size: 1.3rem;
        }
    }

    @media (max-width: 320px) {
        body {
            padding: 10px;
        }

        .button {
            padding: 8px 16px;
            font-size: 0.9rem;
        }
    }

