    /* ---- 根变量 & 字体 ---- */
    :root {
        --primary: #ff2442;
    }

    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        -webkit-font-smoothing: antialiased;
        background: #fafafa;
        user-select: auto;
        overflow-x: hidden;
    }

    .felx {
        display: flex;
    }

    [v-cloak] {
        display: none;
    }

    /* ---- 顶部导航栏 ---- */
    .login {
        color: #00000096;
    }

    .login:hover {
        color: rgba(38, 57, 224, 0.562);
    }

    .register {
        color: #00000096;
    }

    .register:hover {
        color: rgba(38, 57, 224, 0.562);
    }

    .color-bg-primary {
        transition: background-color .1s;
        background: var(--primary);
    }

    .color-bg-primary.disabled {
        background: #ffa1ae;
        cursor: not-allowed;
    }

    .d-button-with-content {
        padding: 0 20px;
    }

    .flex {
        display: flex;
        align-items: center;
    }

    .button-default {
        min-height: 36px;
    }

    .flexCenter {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .d-button-content-item {
        font-weight: bold;
        font-size: 16px;
        line-height: 24px;
        white-space: nowrap;
    }
    .markdown-body h2{
        border-bottom:none !important;
    }
    .stop {
        font-weight: 400;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        vertical-align: top;
        margin: 0;
        font-size: 14px;
        line-height: 22px;
        color: #fff;
    }

    /* ---- 安全区 ---- */
    .safe-area {
        width: 100%;
        height: 60px;
        background: #fafafa;
    }

    /* ---- 左侧导航栏 ---- */
    .d-grid.fixed {
        position: fixed;
        width: 282px;
        height: 100vh;
        background: #fafafa;
    }

    .d-v-menu-root {
        row-gap: 8px;
        padding: 4px 8px 4px 3px;
        overflow-y: auto;
        box-sizing: border-box;
        grid-div-columns: 12px 1fr;
        grid-auto-rows: min-content;
        grid-auto-flow: row;
    }

    .d-v-menu-item {
        display: block;
        width: 100%;
        line-height: 22px;
        padding: 4px 10px 4px 3px;
        box-sizing: border-box;
    }

    .space-p-right-small {
        padding-right: 8px;
    }

    .color-text-description {
        color: rgba(66, 66, 66, .47);
    }

    .color-text-paragraph {
        color: rgba(0, 0, 0, .57);
    }

    .color-current {
        color: #585858;
    }

    .d-text {
        display: inline-block;
        vertical-align: top;
        margin: 0;
        font-weight: 400;
        font-size: 14px;
        line-height: 22px;
    }

    .d-v-menu-title {
        column-gap: 8px;
        align-items: center;
    }

        .d-v-menu .d-grid-item:not(.description) {
            cursor: pointer;
        }

        .d-grid-item {
            width: 230px;
            margin-left: 10px; 
            border: unset;
            border-radius: 6px; 
            color: #555;
            position: relative;
            font-weight: 400;
            transition: all 0.2s ease;
            overflow: hidden;
            background: transparent;
        }

        .d-grid-item::before {
            display: none;
        }

        .d-grid-item:hover {
            background-color: rgba(0, 0, 0, 0.04);
            color: #333;
        }

        /* 选中状态：极简 */
        .d-grid-item.active {
            background-color: rgba(0, 0, 0, 0.06);
            color: #1a1a1a; /* 纯黑/深灰 */
            font-weight: 600;
        }

        .d-grid-item.active .d-text {
            color: #1a1a1a;
        }

        /*主内容区*/
        .auto-anchor {
            display: flex !important;
            padding-left: 282px;
            border-radius: 16px;
            border-color: #fafafa;
            min-height: calc(100vh - 100px);
            margin-bottom: 20px;
        }

        .auto-content {
            background-color: rgba(255, 255, 255, 1);
            border-radius: 16px;
            flex: 1 1 0%;
            padding-bottom: 35px;
        }

    .sticky-anchor {
        height: auto;
        padding-left: 40px;
        width: 240px !important;
        background: #fafafa;
    }

    .auto-content-title {
        line-height: 52px;
        font-weight: 600;
        font-size: 36px;
        margin-top: 6px;
    }

    .auto-content-time {
        color: rgba(0, 0, 0, .45);
        line-height: 22px;
        font-weight: 400;
        font-size: 14px;
        margin-top: 4px;
    }

    .markdown-body img{
        border:1px solid #eeeeee !important;
    }
    .auto-content-title-line {
        background-color: rgba(235, 235, 235, 1);
        width: 100%;
        height: 1.5px;
        margin-top: 16px;
        margin-bottom: 50px;
    }

    .markdown-body {
        width: 100%; /* 自适应宽度 */
        -webkit-text-size-adjust: 100%;
        color: #24292e;
        font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
        font-size: 16px;
        line-height: 1.5;
        word-wrap: break-word;
    }

    .doc-title {
        gap: 6px;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-top: 40px;
        vertical-align: top;
    }

    .markdown-body>:first-child {
        margin-top: 0 !important;
    }

    .markdown-body-title {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        font-style: normal;
        font-weight: normal;
        color: #000;
        font-size: 20px;
        line-height: 28px;
    }

    .markdown-body-title1 {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        font-style: normal;
        font-weight: normal;
        color: #000;
        font-size: 20px;
        line-height: 28px;
    }

    .markdown-body * {
        box-sizing: border-box;
    }

    .markdown-body li,
    .markdown-body p {
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 28px;
        color: rgba(0, 0, 0, .85);
    }

    .doc {
        gap: 6px;
        flex-direction: row;
        align-items: center;
        color: rgba(0, 0, 0, .47);
        cursor: pointer;
        display: inline-flex;
        vertical-align: top;
    }

    .title1 {
        gap: 6px;
        color: rgba(0, 0, 0, .9);
        flex-direction: row;
        align-items: center;
        cursor: pointer;
        display: inline-flex;
    }

    .d-text-nowrap {
        white-space: nowrap;
    }

    .d-text-ellipsis {
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /*右侧信息栏*/
    .ant-affix {
        position: fixed;
        top: 100px;
        width: 240px;
        height: 802px;
        z-index: 99 !important;
        left: 1240px;
        width: 200px !important;
        background-color: #fafafa !important;
        height: auto !important;
        position: sticky;
        box-sizing: border-box;
    }

    .ant-anchor-wrapper {
        max-height: calc(-100px + 100vh);
        width: 200px !important;
        overflow-x: hidden !important;
        margin-left: -4px;
        padding-left: 4px;
        overflow: auto;
        overflow-y: scroll;
        scrollbar-width: none;
        background-color: transparent;
    }

    .ant-anchor-wrapper::-webkit-scrollbar {
        width: 0;
        display: none;
    }

    .ant-anchor {
        box-sizing: border-box;
        margin: 0;
        color: rgba(0, 0, 0, .85);
        font-size: 14px;
        font-variant: tabular-nums;
        line-height: 1.5715;
        list-style: none;
        font-feature-settings: "tnum", "tnum";
        position: relative;
        padding: 0 0 0 2px;
    }

    .ant-anchor-ink {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }

    .ant-anchor-link {
        padding: 0 0 0 8px;
        position: relative;
        line-height: 1.413;
    }

    .ant-anchor-ink-ball {
        top: 10.5px;
        position: absolute;
        left: 50%;
        width: 3px;
        height: 22px;
        background-color: #1890ff;
        border: 2px;
        border-radius: 8px;
        transform: translateX(-50%);
        transition: top .3s ease-in-out;
    }

    .ant-anchor-link>a {
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 22px;
        color: rgba(0, 0, 0, .45);
        max-width: 150px;
    }

    .ant-anchor-link-title {
        margin-bottom: 0 !important;
        padding-bottom: 8px;
        position: relative;
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        transition: all .3s;
        text-decoration: none !important;
    }

    .ant-anchor-link.active .ant-anchor-link-title {
        color: #1890ff;
        font-weight: 500;
    }

    /* ---- 文档类型切换 Tab  ---- */
    .doc-type-switch {
        margin-bottom: 10px;
    }
    
    .switch-container {
        display: flex;
        background-color: #f2f3f5;
        border-radius: 8px;
        padding: 4px;
        position: relative;
    }
    
    .switch-item {
        flex: 1;
        text-align: center;
        padding: 6px 0;
        font-size: 14px;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        border-radius: 6px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .switch-item.active {
        background-color: #fff;
        color: #000;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        font-weight: 600;
    }
    
    .switch-item:hover:not(.active) {
        color: #333;
        background-color: rgba(0,0,0,0.02);
    }

    /*底部版权信息*/
    .doc-footer  .footer {
        background-color: #fafafa;
    }

    /* 移动端响应式布局 */
    @media screen and (max-width: 768px) {
        .safe-area {
            height: 56px;
        }
        .d-grid.fixed {
            position: static;
            width: 100%;
            height: auto;
            background: #fafafa;
        }

        .d-grid-item {
            width: 100%;
            margin-left: 0;
        }
        .auto-anchor {
            flex-direction: column;
            padding-left: 0;
            margin: 0 12px 20px;
            min-height: auto;
        }

        .auto-content {
            border-radius: 12px;
        }

        /* 去掉左右空白列 */
        .w-40,
        .w-80 {
            display: none;
        }

        .sticky-anchor {
            display: none;
        }

        .auto-content-title {
            font-size: 24px;
            line-height: 32px;
        }
    }