
    /* 导入字体 */
    @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto+Mono&display=swap');

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

    body {
        font-family: 'Roboto Mono', monospace;
        background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
        background-size: 300% 300%;
        animation: gradient-animation 15s ease infinite;
        color: #ffffff;
        line-height: 1.6;
        overflow-x: hidden;
    }

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

    /* 顶部导航栏 */
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 40px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }

    nav .logo {
        font-family: 'Orbitron', sans-serif;
        font-size: 24px;
        color: #00ffff;
    }

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

    nav ul li {
        margin-left: 20px;
    }

    nav ul li a {
        color: #ffffff;
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease;
    }

    nav ul li a::after {
        content: '';
        position: absolute;
        width: 0%;
        height: 2px;
        background: #ff00ff;
        left: 0;
        bottom: -5px;
        transition: width 0.3s ease;
    }

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

    /* 主容器 */
    .container {
        max-width: 1200px;
        margin: 150px auto 50px;
        padding: 20px;
        display: grid;
        grid-template-columns: 1fr 3fr;
        grid-gap: 40px;
    }

    /* 侧边导航 */
    .sidebar {
        background: rgba(255, 255, 255, 0.05);
        padding: 20px;
        border-radius: 10px;
        backdrop-filter: blur(5px);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    }

    .sidebar h3 {
        font-family: 'Orbitron', sans-serif;
        margin-bottom: 15px;
        color: #ff00ff;
    }

    .sidebar ul {
        list-style: none;
    }

    .sidebar ul li {
        margin-bottom: 10px;
    }

    .sidebar ul li a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .sidebar ul li a:hover {
        color: #00ffff;
    }

    /* 文章内容 */
    article {
        background: rgba(255, 255, 255, 0.1);
        padding: 30px;
        border-radius: 10px;
        backdrop-filter: blur(10px);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }

    article h2, article h3 {
        font-family: 'Orbitron', sans-serif;
        color: #00ffff;
        margin-bottom: 20px;
    }

    article h2 {
        font-size: 32px;
    }

    article h3 {
        font-size: 24px;
        margin-top: 30px;
    }

    article p {
        margin-bottom: 15px;
        font-size: 16px;
        color: #dddddd;
    }

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

    article code {
        color: #00ffff;
        font-family: 'Roboto Mono', monospace;
    }

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

    article table, article th, article td {
        border: 1px solid #444;
    }

    article th, article td {
        padding: 10px;
        text-align: left;
    }

    article th {
        background: #00ffff;
        color: #000;
    }

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

    .image-gallery img {
        width: calc(33.333% - 10px);
        border-radius: 5px;
    }

    /* 代码示例样式 */
    .code-block {
        background: #1e1e1e;
        padding: 20px;
        border-radius: 8px;
        overflow-x: auto;
        margin: 20px 0;
        position: relative;
    }

    .code-block::before {
        content: 'CSS 示例代码';
        position: absolute;
        top: -20px;
        left: 10px;
        background: #00ffff;
        color: #000;
        padding: 2px 5px;
        font-size: 12px;
        border-radius: 3px;
    }

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

    .btn:hover {
        box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    }

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

    @media (max-width: 1200px) {
        .container {
            max-width: 90%;
        }

        .image-gallery img {
            width: calc(50% - 10px);
        }
    }

    @media (max-width: 1024px) {
        nav {
            padding: 15px 30px;
        }

        .container {
            grid-template-columns: 1fr;
        }

        .image-gallery img {
            width: 100%;
        }
    }

    @media (max-width: 768px) {
        nav .logo {
            font-size: 20px;
        }

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

        article h2 {
            font-size: 28px;
        }

        article h3 {
            font-size: 20px;
        }
    }

    @media (max-width: 480px) {
        nav {
            flex-direction: column;
            align-items: flex-start;
        }

        nav ul {
            flex-direction: column;
            width: 100%;
        }

        nav ul li {
            margin: 10px 0;
        }

        .image-gallery img {
            width: 100%;
        }
    }

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

        .container {
            padding: 10px;
        }

        article {
            padding: 20px;
        }
    }

