
    /* 基础重置 */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* CSS变量定义 */
    :root {
        --primary-color: #1E273D;
        --secondary-color: #000000;
        --accent-color: #4A90E2;
        --text-color: #E0E0E0;
        --highlight-color: #FF5722;
        --background-gradient: radial-gradient(circle at top left, #1E273D, #000000);
        --header-height: 60px;
        --footer-height: 40px;
        --transition-speed: 0.3s;
        --font-family-sans: 'Roboto', sans-serif;
        --font-family-mono: 'Fira Code', monospace;
    }

    /* 全局样式 */
    body {
        background: var(--background-gradient);
        color: var(--text-color);
        font-family: var(--font-family-sans);
        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);
    }

    a:hover {
        color: var(--highlight-color);
    }

    /* 头部样式 */
    header {
        height: var(--header-height);
        background: rgba(30, 39, 61, 0.9);
        display: flex;
        align-items: center;
        padding: 0 20px;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    header h1 {
        font-family: var(--font-family-mono);
        font-size: 1.5rem;
        color: var(--accent-color);
    }

    /* 导航栏样式 */
    nav {
        margin-left: auto;
    }

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

    nav li {
        margin-left: 20px;
    }

    nav a {
        font-size: 1rem;
        padding: 5px 10px;
        border-radius: 5px;
        transition: background var(--transition-speed), transform var(--transition-speed);
    }

    nav a:hover {
        background: rgba(74, 144, 226, 0.2);
        transform: scale(1.05);
    }

    /* 主容器样式 */
    .container {
        display: grid;
        grid-template-areas:
            "header header"
            "main sidebar"
            "footer footer";
        grid-template-columns: 3fr 1fr;
        grid-template-rows: var(--header-height) 1fr var(--footer-height);
        padding-top: var(--header-height);
        flex: 1;
    }

    /* 主内容样式 */
    main {
        grid-area: main;
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        margin: 10px;
        overflow: hidden;
    }

    /* 侧边栏样式 */
    aside {
        grid-area: sidebar;
        padding: 20px;
        background: rgba(30, 39, 61, 0.8);
        border-radius: 10px;
        margin: 10px;
    }

    /* 页脚样式 */
    footer {
        grid-area: footer;
        background: rgba(30, 39, 61, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-color);
        font-size: 0.9rem;
    }

    /* 标题样式 */
    h1, h2, h3 {
        color: var(--accent-color);
        margin-bottom: 15px;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* 段落样式 */
    p {
        margin-bottom: 15px;
    }

    /* 代码块样式 */
    pre {
        background: #2C3E50;
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        margin-bottom: 15px;
    }

    code {
        font-family: var(--font-family-mono);
        color: #ECF0F1;
    }

    /* 表格样式 */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 15px;
    }

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

    th {
        background: #34495E;
    }

    /* 列表样式 */
    ul {
        list-style: disc;
        padding-left: 20px;
        margin-bottom: 15px;
    }

    /* 图片样式 */
    img {
        width: 100%;
        max-width: 320px;
        height: auto;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    /* 动画样式 */
    @keyframes aurora-move {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .animated-bg {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
        animation: aurora-move 15s linear infinite;
    }

    button, .highlight {
        background-color: var(--accent-color);
        color: #FFFFFF;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        transition: transform var(--transition-speed), background-color var(--transition-speed);
    }

    button:hover, .highlight:hover {
        transform: scale(1.05);
        background-color: #4A76E2;
    }

    /* 响应式设计 */
    @media (max-width: 1440px) {
        .container {
            grid-template-columns: 3fr 1fr;
        }
    }

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

    @media (max-width: 1024px) {
        .container {
            grid-template-columns: 1fr;
            grid-template-areas:
                "header"
                "main"
                "sidebar"
                "footer";
        }
    }

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

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

        nav li {
            margin-left: 0;
            margin-bottom: 10px;
        }

        main, aside {
            padding: 15px;
            margin: 5px;
        }
    }

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

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

        nav li {
            margin-left: 0;
            margin-bottom: 5px;
        }

        .container {
            grid-template-areas:
                "header"
                "main"
                "sidebar"
                "footer";
        }

        header h1 {
            font-size: 1rem;
        }

        h2 {
            font-size: 1.5rem;
        }

        h3 {
            font-size: 1.2rem;
        }
    }

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

        nav a {
            font-size: 0.8rem;
            padding: 5px 8px;
        }

        h2 {
            font-size: 1.3rem;
        }

        h3 {
            font-size: 1rem;
        }

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

