        :root {
            --site-header-height: 100px;
            --site-nav-height: 56px;
            --docs-layout-width: min(1200px, calc(100% - 48px));
            --docs-sidebar-width: 320px;
            --bg-primary: #ffffff;
            --bg-secondary: #f8f9fa;
            --bg-tertiary: #f1f3f5;
            --bg-card: #ffffff;
            --bg-sidebar: #fafbfc;
            --text-primary: #1a1a2e;
            --text-secondary: #4a5568;
            --text-tertiary: #718096;
            --text-muted: #a0aec0;
            --border-color: #e2e8f0;
            --border-light: #edf2f7;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.10);
            --accent: #3b6df0;
            --accent-light: #e8edfc;
            --accent-hover: #2b52d4;
            --code-bg: #f7f8fa;
            --code-text: #383a42;
            --code-border: #e8eaed;
            --quote-bg: #f8fafc;
            --quote-border: #3b6df0;
            --quote-text: #4a5568;
            --tip-info-bg: #f0f4ff;
            --tip-info-border: #3b6df0;
            --tip-info-text: #2c3e6b;
            --tip-warning-bg: #fffbeb;
            --tip-warning-border: #f59e0b;
            --tip-warning-text: #6b4d0a;
            --tip-success-bg: #f0fdf4;
            --tip-success-border: #10b981;
            --tip-success-text: #0d4a2e;
            --table-bg: #ffffff;
            --table-header-bg: #f8fafc;
            --table-border: #e2e8f0;
            --table-stripe: #fafbfc;
            --scrollbar-thumb: #cbd5e0;
            --scrollbar-track: transparent;
            --overlay-bg: rgba(0, 0, 0, 0.4);
            --highlight-bg: #e8edfc;
            --highlight-text: #3b6df0;
            --breadcrumb-color: #718096;
            --breadcrumb-active: #1a1a2e;
            --search-bg: #ffffff;
            --search-border: #e2e8f0;
            --search-focus-border: #3b6df0;
            --btn-bg: #f1f5f9;
            --btn-hover-bg: #e2e8f0;
            --divider-color: #e8ecf1;
            --sidebar-divider: #edf2f7;
            --card-img-bg: #f1f5f9;
            --tag-bg: #f1f5f9;
            --tag-text: #4a5568;
            --back-to-top-bg: #ffffff;
            --back-to-top-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            --mode-toggle-bg: #f1f5f9;
            --mode-toggle-text: #4a5568;
        }

        body.dark-mode {
            --bg-primary: #0f1117;
            --bg-secondary: #161822;
            --bg-tertiary: #1c1f2e;
            --bg-card: #1a1d2b;
            --bg-sidebar: #13151f;
            --text-primary: #e4e6eb;
            --text-secondary: #c4c7ce;
            --text-tertiary: #9498a3;
            --text-muted: #6b6f7a;
            --border-color: #2a2d3a;
            --border-light: #222535;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
            --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.55);
            --accent: #5b8af7;
            --accent-light: #1e2a4a;
            --accent-hover: #7ba3ff;
            --code-bg: #1c1f2e;
            --code-text: #d4d6dc;
            --code-border: #2a2d3a;
            --quote-bg: #1a1d2b;
            --quote-border: #5b8af7;
            --quote-text: #c4c7ce;
            --tip-info-bg: #1a2340;
            --tip-info-border: #5b8af7;
            --tip-info-text: #c4d0f0;
            --tip-warning-bg: #2a2015;
            --tip-warning-border: #f59e0b;
            --tip-warning-text: #e8d5a0;
            --tip-success-bg: #152a20;
            --tip-success-border: #10b981;
            --tip-success-text: #a0dcc0;
            --table-bg: #1a1d2b;
            --table-header-bg: #1f2233;
            --table-border: #2a2d3a;
            --table-stripe: #1d2030;
            --scrollbar-thumb: #3a3d4a;
            --scrollbar-track: #1a1d2b;
            --overlay-bg: rgba(0, 0, 0, 0.7);
            --highlight-bg: #1e2a4a;
            --highlight-text: #5b8af7;
            --breadcrumb-color: #9498a3;
            --breadcrumb-active: #e4e6eb;
            --search-bg: #1c1f2e;
            --search-border: #2a2d3a;
            --search-focus-border: #5b8af7;
            --btn-bg: #242738;
            --btn-hover-bg: #2e3145;
            --divider-color: #242738;
            --sidebar-divider: #1f2233;
            --card-img-bg: #1f2233;
            --tag-bg: #242738;
            --tag-text: #c4c7ce;
            --back-to-top-bg: #1c1f2e;
            --back-to-top-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
            --mode-toggle-bg: #242738;
            --mode-toggle-text: #c4c7ce;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.7;
            font-size: 14px;
            transition: background-color 0.35s ease, color 0.35s ease;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            overflow-x: hidden;
        }

        .doc-site-header {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            width: 100%;
            height: var(--site-header-height);
            background: #ffffff;
            border-bottom: 1px solid #e8ecf1;
            box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
        }

        body.dark-mode .doc-site-header {
            background: #111827;
            border-bottom-color: #2a2d3a;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
        }

        body.doc-nav-stuck .doc-site-header {
            height: 56px;
            box-shadow: none;
            border-bottom: 0;
            background: transparent;
        }

        .doc-site-header a {
            color: inherit;
            text-decoration: none;
        }

        .doc-site-promo {
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #ffffff;
            font-size: 16px;
            letter-spacing: 1px;
            background-image: url(/images/bg1.png);
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 16px;
        }

        .doc-site-promo img {
            width: 26px;
            height: 26px;
            flex: 0 0 auto;
        }

        .doc-site-promo .tag {
            color: #febe00;
            font-size: 18px;
            font-weight: 700;
            margin: 0 2px;
        }

        body.doc-nav-stuck .doc-site-promo {
            visibility: hidden;
        }

        .doc-site-nav {
            width: min(1200px, calc(100% - 48px));
            height: 56px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            color: #111827;
        }

        .doc-site-nav-wrap {
            width: 100%;
            height: 56px;
            background: #ffffff;
            border-bottom: 1px solid #e8ecf1;
            transition: box-shadow 0.3s ease;
        }

        body.dark-mode .doc-site-nav-wrap {
            background: #111827;
            border-bottom-color: #2a2d3a;
        }

        .doc-site-nav-wrap.is-fixed {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1001;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            animation: slideDown 0.3s;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
            }

            to {
                transform: translateY(0);
            }
        }

        body.dark-mode .doc-site-nav {
            color: #e4e6eb;
        }

        .doc-site-logo {
            width: 140px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
        }

        .doc-site-logo img {
            width: 140px;
            height: 40px;
            display: block;
            object-fit: contain;
        }

        .doc-nav-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 30px;
            flex: 1;
            min-width: 0;
            font-size: 16px;
        }

        .doc-nav-link,
        .doc-nav-trigger {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            height: 36px;
            color: inherit;
            white-space: nowrap;
            transition: color 0.2s ease;
        }

        .doc-nav-link:hover,
        .doc-nav-trigger:hover,
        .doc-nav-link.is-active,
        .doc-nav-trigger.is-active,
        .doc-nav-dropdown:hover .doc-nav-trigger {
            color: #007bff;
        }

        .doc-nav-link::after,
        .doc-nav-trigger::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: #007bff;
            transition: width 0.3s ease;
        }

        .doc-nav-link:hover::after,
        .doc-nav-trigger:hover::after,
        .doc-nav-link.is-active::after,
        .doc-nav-trigger.is-active::after,
        .doc-nav-dropdown:hover .doc-nav-trigger::after {
            width: 100%;
        }

        .doc-nav-arrow {
            width: 8px;
            height: 8px;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: rotate(45deg) translateY(-2px);
            transition: transform 0.2s ease;
        }

        .doc-nav-dropdown {
            position: relative;
            height: 56px;
            display: flex;
            align-items: center;
        }

        .doc-nav-dropdown:hover .doc-nav-arrow {
            transform: rotate(225deg) translateY(-1px);
        }

        .doc-dropdown-panel {
            position: absolute;
            top: 52px;
            left: 50%;
            min-width: 150px;
            padding: 8px 0;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
            transform: translate(-50%, 8px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }

        .doc-site-nav-wrap.is-fixed .doc-dropdown-panel {
            top: 48px;
        }

        body.dark-mode .doc-dropdown-panel {
            background: #1a1d2b;
            border-color: #2a2d3a;
        }

        .doc-nav-dropdown:hover .doc-dropdown-panel {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, 0);
        }

        .doc-dropdown-panel a {
            display: block;
            padding: 9px 18px;
            color: #111827;
            font-size: 14px;
            line-height: 1.4;
            white-space: nowrap;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        body.dark-mode .doc-dropdown-panel a {
            color: #e4e6eb;
        }

        .doc-dropdown-panel a:hover {
            background: #f3f6ff;
            color: #007bff;
        }

        body.dark-mode .doc-dropdown-panel a:hover {
            background: #1e2a4a;
        }

        .doc-account {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            min-width: 190px;
            flex: 0 0 auto;
        }

        .doc-account-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .doc-account .btn,
        .doc-account-center-link {
            min-width: 64px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 16px;
            border-radius: 18px;
            font-size: 15px;
            cursor: pointer;
            border: 1px solid #d7e2ff;
            color: #1f5fff;
            background: #f3f6ff;
            white-space: nowrap;
        }

        .doc-account .login {
            color: #ffffff;
            border-color: #1f5fff;
            background: #1f5fff;
        }

        body.dark-mode .doc-account .btn,
        body.dark-mode .doc-account-center-link {
            border-color: #2f4b91;
            color: #8fb0ff;
            background: #17213c;
        }

        body.dark-mode .doc-account .login {
            color: #ffffff;
            border-color: #3b6df0;
            background: #3b6df0;
        }

        .doc-account-center {
            display: none;
        }

        .doc-account-center.is-visible {
            display: flex;
        }

        .doc-account-actions.is-hidden {
            display: none;
        }

        body.doc-nav-stuck .sidebar {
            top: 56px;
            height: calc(100vh - 56px);
        }

        body.doc-nav-stuck .mobile-menu-btn {
            top: 72px;
        }

        .page-wrapper {
            display: flex;
            width: var(--docs-layout-width);
            margin: var(--site-header-height) auto 0;
            min-height: calc(100vh - var(--site-header-height));
            position: relative;
        }

        /* ========== 侧边栏 ========== */
        .sidebar {
            width: var(--docs-sidebar-width);
            min-width: var(--docs-sidebar-width);
            background-color: var(--bg-sidebar);
            border-right: 1px solid var(--divider-color);
            position: fixed;
            left: max(24px, calc((100vw - 1200px) / 2));
            top: var(--site-header-height);
            height: calc(100vh - var(--site-header-height));
            overflow-y: auto;
            overflow-x: hidden;
            padding: 28px 20px 40px 24px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            z-index: 10;
            transition: background-color 0.35s ease, border-color 0.35s ease;
            scrollbar-width: thin;
            scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
        }

        #header-common:has(.classifyBox.is-fixed) + .page-wrapper .sidebar {
            top: var(--site-nav-height);
            height: calc(100vh - var(--site-nav-height));
        }

        .sidebar::-webkit-scrollbar {
            width: 5px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: var(--scrollbar-track);
            border-radius: 10px;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border-radius: 10px;
        }

        .sidebar-header {
            margin-bottom: 4px;
            flex-shrink: 0;
        }

        .sidebar-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 14px;
            padding-left: 2px;
        }

        /* 搜索框 */
        .search-wrapper {
            position: relative;
            margin-bottom: 8px;
            flex-shrink: 0;
        }

        .search-input {
            width: 100%;
            padding: 10px 14px 10px 38px;
            border: 1.5px solid var(--search-border);
            border-radius: 8px;
            background-color: var(--search-bg);
            color: var(--text-primary);
            font-size: 13px;
            outline: none;
            transition: all 0.25s ease;
            font-family: inherit;
        }

        .search-input::placeholder {
            color: var(--text-muted);
        }

        .search-input:focus {
            border-color: var(--search-focus-border);
            box-shadow: 0 0 0 3px var(--accent-light);
        }

        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            pointer-events: none;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-icon svg {
            width: 15px;
            height: 15px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

        .search-clear {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 16px;
            line-height: 1;
            transition: all 0.2s ease;
        }

        .search-clear.visible {
            display: flex;
        }

        .search-clear:hover {
            background-color: var(--btn-bg);
            color: var(--text-primary);
        }

        .search-no-results {
            padding: 20px 10px;
            text-align: center;
            color: var(--text-muted);
            font-size: 13px;
            display: none;
        }

        .search-no-results.visible {
            display: block;
        }

        /* 导航列表 */
        .nav-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
            overflow-y: auto;
        }

        .nav-category {
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .nav-category-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            cursor: pointer;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 500;
            color: var(--text-primary);
            transition: all 0.2s ease;
            user-select: none;
            gap: 8px;
            position: relative;
        }

        .nav-category-header:hover {
            background-color: var(--btn-bg);
        }

        .nav-category-header.active {
            background-color: var(--highlight-bg);
            color: var(--highlight-text);
            font-weight: 600;
        }

        .nav-category-arrow {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
        }

        .nav-category-header.active .nav-category-arrow {
            color: var(--highlight-text);
        }

        .nav-category.open .nav-category-arrow {
            transform: rotate(90deg);
        }

        .nav-category-arrow svg {
            width: 14px;
            height: 14px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.5;
        }

        .nav-submenu {
            list-style: none;
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0 4px;
        }

        .nav-category.open .nav-submenu {
            max-height: none;
        }

        .nav-article-item {
            padding: 8px 12px 8px 28px;
            cursor: pointer;
            border-radius: 5px;
            font-size: 14px;
            color: var(--text-secondary);
            transition: all 0.18s ease;
            position: relative;
            line-height: 1.5;
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .nav-article-item::before {
            content: '';
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background-color: var(--text-muted);
            transition: all 0.2s ease;
            opacity: 0.5;
        }

        .nav-article-item:hover {
            background-color: var(--btn-bg);
            color: var(--text-primary);
        }

        .nav-article-item.active {
            background-color: var(--highlight-bg);
            color: var(--highlight-text);
            font-weight: 500;
        }

        .nav-article-item.active::before {
            background-color: var(--accent);
            opacity: 1;
            width: 5px;
            height: 5px;
        }

        .nav-article-item.search-hidden {
            display: none;
        }

        .nav-category.search-hidden {
            display: none;
        }

        /* ========== 主内容区 ========== */
        .main-content {
            flex: 1;
            min-width: 0;
            margin-left: var(--docs-sidebar-width);
            padding: 28px 36px 60px 36px;
            animation: fadeIn 0.45s ease forwards;
            transition: background-color 0.35s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .content-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 12px;
        }

        /* 面包屑 */
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: var(--breadcrumb-color);
            flex-wrap: wrap;
            list-style: none;
        }

        .breadcrumb li {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .breadcrumb a {
            color: var(--breadcrumb-color);
            text-decoration: none;
            transition: color 0.2s ease;
            cursor: pointer;
        }

        .breadcrumb a:hover {
            color: var(--accent);
        }

        .breadcrumb .separator {
            color: var(--text-muted);
            font-size: 11px;
            flex-shrink: 0;
        }

        .breadcrumb .current {
            color: var(--breadcrumb-active);
            font-weight: 500;
            pointer-events: none;
        }

        /* 阅读模式切换 */
        .mode-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 20px;
            border: 1.5px solid var(--border-color);
            background-color: var(--mode-toggle-bg);
            cursor: pointer;
            font-size: 13px;
            color: var(--mode-toggle-text);
            transition: all 0.25s ease;
            white-space: nowrap;
            font-family: inherit;
            flex-shrink: 0;
        }

        .mode-toggle:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .mode-toggle-icon {
            width: 17px;
            height: 17px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .mode-toggle-icon svg {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
        }

        /* 卡片网格 */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 22px;
            animation: fadeIn 0.4s ease forwards;
        }

        .cards-pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 28px;
            flex-wrap: wrap;
        }

        .pagination-info {
            width: 100%;
            text-align: center;
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .pagination-btn,
        .pagination-page {
            min-width: 34px;
            height: 34px;
            padding: 0 11px;
            border-radius: 8px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-card);
            color: var(--text-secondary);
            font-size: 13px;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .pagination-btn {
            min-width: 68px;
        }

        .pagination-btn:hover:not(:disabled),
        .pagination-page:hover:not(.active) {
            border-color: var(--accent);
            color: var(--accent);
            background-color: var(--btn-bg);
        }

        .pagination-page.active {
            border-color: var(--accent);
            background-color: var(--highlight-bg);
            color: var(--highlight-text);
            font-weight: 600;
        }

        .pagination-btn:disabled {
            cursor: not-allowed;
            opacity: 0.45;
        }

        .pagination-ellipsis {
            min-width: 24px;
            text-align: center;
            color: var(--text-muted);
            font-size: 13px;
        }

        @media (max-width: 1200px) {
            :root {
                --docs-sidebar-width: 280px;
            }

            .cards-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 18px;
            }

            .sidebar {
                padding: 24px 16px 32px 18px;
            }

            .main-content {
                margin-left: var(--docs-sidebar-width);
                padding: 24px 24px 48px 24px;
            }
        }

        @media (max-width: 768px) {
            :root {
                --site-header-height: 64px;
                --docs-sidebar-width: 300px;
            }

            .doc-site-promo {
                display: none;
            }

            .doc-site-header {
                height: var(--site-header-height);
            }

            .doc-site-nav-wrap {
                height: var(--site-header-height);
            }

            .doc-site-nav-wrap.is-fixed {
                position: static;
                box-shadow: none;
                animation: none;
            }

            .doc-site-nav {
                width: calc(100% - 24px);
                height: 64px;
                gap: 14px;
            }

            .doc-site-logo,
            .doc-site-logo img {
                width: 118px;
                height: 34px;
            }

            .doc-nav-links {
                display: none;
            }

            .doc-account {
                min-width: 0;
            }

            .doc-account .btn,
            .doc-account-center-link {
                min-width: 54px;
                height: 30px;
                padding: 0 10px;
                font-size: 13px;
            }

            .page-wrapper {
                flex-direction: column;
                width: 100%;
            }

            .sidebar {
                position: fixed;
                left: -100%;
                top: var(--site-header-height);
                width: var(--docs-sidebar-width);
                min-width: var(--docs-sidebar-width);
                height: calc(100vh - var(--site-header-height));
                z-index: 100;
                transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: var(--shadow-lg);
                border-right: 1px solid var(--border-color);
            }

            .sidebar.mobile-open {
                left: 0;
            }

            .sidebar-overlay {
                display: none;
                position: fixed;
                inset: 0;
                background: var(--overlay-bg);
                z-index: 99;
                transition: opacity 0.35s ease;
            }

            .sidebar-overlay.visible {
                display: block;
            }

            .main-content {
                margin-left: 0;
                padding: 20px 16px 40px 16px;
                width: 100%;
            }

            .cards-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .cards-pagination {
                gap: 6px;
                margin-top: 22px;
            }

            .pagination-btn,
            .pagination-page {
                min-width: 32px;
                height: 32px;
                padding: 0 9px;
            }

            .pagination-btn {
                min-width: 60px;
            }

            .mobile-menu-btn {
                display: flex !important;
            }

            .content-header {
                padding-left: 40px;
            }
        }

        @media (max-width: 480px) {
            .cards-grid {
                grid-template-columns: 1fr;
                gap: 14px;
            }

            .main-content {
                padding: 16px 12px 36px 12px;
            }

            .sidebar {
                width: 85vw;
                min-width: 260px;
            }
        }

        .mobile-menu-btn {
            display: none;
            position: fixed;
            top: calc(var(--site-header-height) + 16px);
            left: 16px;
            z-index: 98;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--back-to-top-bg);
            border: 1.5px solid var(--border-color);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            transition: all 0.2s ease;
            color: var(--text-primary);
        }

        .mobile-menu-btn:hover {
            box-shadow: var(--shadow-lg);
        }

        .mobile-menu-btn svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

        /* 卡片样式 */
        .article-card {
            background-color: var(--bg-card);
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--border-light);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-sm);
            animation: fadeIn 0.4s ease forwards;
            animation-delay: calc(var(--card-index) * 0.06s);
            opacity: 0;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .article-card.visible {
            opacity: 1;
        }

        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
            border-color: var(--border-color);
        }

        .card-img-wrapper {
            width: 100%;
            aspect-ratio: 5 / 3;
            overflow: hidden;
            background-color: var(--card-img-bg);
            position: relative;
        }

        .card-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: block;
        }

        .article-card:hover .card-img-wrapper img {
            transform: scale(1.06);
        }

        .card-body {
            padding: 16px 18px 18px 18px;
            display: flex;
            flex: 1;
            flex-direction: column;
        }

        .card-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            line-height: 1.5;
            margin-bottom: 10px;
            min-height: 42px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.2s ease;
        }

        .article-card:hover .card-title {
            color: var(--accent);
        }

        .card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: auto;
        }

        .card-tag {
            font-size: 11px;
            color: var(--tag-text);
            background-color: var(--tag-bg);
            padding: 4px 10px;
            border-radius: 12px;
            font-weight: 500;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        .card-read-btn {
            font-size: 12px;
            color: var(--accent);
            font-weight: 500;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px 0;
            transition: all 0.2s ease;
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .card-read-btn:hover {
            color: var(--accent-hover);
            gap: 6px;
        }

        .card-read-btn .arrow {
            transition: transform 0.2s ease;
            font-size: 13px;
        }

        .card-read-btn:hover .arrow {
            transform: translateX(3px);
        }

        /* 文章详情 */
        .article-detail {
            max-width: 900px;
            animation: fadeIn 0.4s ease forwards;
        }

        .article-detail-header {
            margin-bottom: 28px;
        }

        .article-detail-title {
            font-size: 26px;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.35;
            margin-bottom: 12px;
            letter-spacing: -0.01em;
        }

        .article-detail-meta {
            display: flex;
            gap: 16px;
            font-size: 13px;
            color: var(--text-tertiary);
            flex-wrap: wrap;
            align-items: center;
        }

        .article-detail-meta .meta-dot {
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background-color: var(--text-muted);
            flex-shrink: 0;
        }

        .article-detail-category {
            display: inline-block;
            font-size: 12px;
            background-color: var(--accent-light);
            color: var(--accent);
            padding: 3px 10px;
            border-radius: 12px;
            font-weight: 500;
        }

        /* 文章正文排版 */
        .article-body {
            font-size: 14px;
            color: var(--text-primary);
            line-height: 1.85;
        }

        .article-body h1 {
            font-size: 22px;
            font-weight: 700;
            margin: 36px 0 14px 0;
            color: var(--text-primary);
            letter-spacing: -0.01em;
            padding-bottom: 8px;
            border-bottom: 1.5px solid var(--border-light);
        }

        .article-body h1:first-child {
            margin-top: 0;
        }

        .article-body h2 {
            font-size: 18px;
            font-weight: 600;
            margin: 28px 0 10px 0;
            color: var(--text-primary);
            letter-spacing: -0.005em;
        }

        .article-body h2:first-child {
            margin-top: 0;
        }

        .article-body p {
            margin-bottom: 14px;
            color: var(--text-secondary);
        }

        .article-body ul,
        .article-body ol {
            margin: 10px 0 16px 0;
            padding-left: 22px;
            color: var(--text-secondary);
        }

        .article-body ul li,
        .article-body ol li {
            margin-bottom: 6px;
            padding-left: 4px;
        }

        .article-body ul {
            list-style-type: disc;
        }

        .article-body ol {
            list-style-type: decimal;
        }

        .article-body blockquote {
            margin: 18px 0;
            padding: 14px 20px;
            background-color: var(--quote-bg);
            border-left: 3px solid var(--quote-border);
            border-radius: 0 6px 6px 0;
            color: var(--quote-text);
            font-style: italic;
            font-size: 13.5px;
        }

        .article-body .tip-box {
            margin: 18px 0;
            padding: 14px 18px;
            border-radius: 8px;
            font-size: 13.5px;
            line-height: 1.7;
            border-left: 3px solid;
        }

        .article-body .tip-box.tip-info {
            background-color: var(--tip-info-bg);
            border-left-color: var(--tip-info-border);
            color: var(--tip-info-text);
        }

        .article-body .tip-box.tip-warning {
            background-color: var(--tip-warning-bg);
            border-left-color: var(--tip-warning-border);
            color: var(--tip-warning-text);
        }

        .article-body .tip-box.tip-success {
            background-color: var(--tip-success-bg);
            border-left-color: var(--tip-success-border);
            color: var(--tip-success-text);
        }

        .article-body .tip-box strong {
            display: block;
            margin-bottom: 4px;
            font-weight: 600;
        }

        .article-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 18px 0;
            font-size: 13px;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--table-border);
        }

        .article-body table th,
        .article-body table td {
            padding: 10px 14px;
            text-align: left;
            border: 1px solid var(--table-border);
        }

        .article-body table th {
            background-color: var(--table-header-bg);
            font-weight: 600;
            color: var(--text-primary);
            font-size: 12.5px;
            letter-spacing: 0.02em;
        }

        .article-body table td {
            background-color: var(--table-bg);
            color: var(--text-secondary);
        }

        .article-body table tr:nth-child(even) td {
            background-color: var(--table-stripe);
        }

        .article-body img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 18px 0;
            display: block;
            background-color: var(--card-img-bg);
        }

        .article-body .article-image {
            width: 100%;
        }

        .article-body pre {
            margin: 18px 0;
            border-radius: 8px;
            overflow-x: auto;
            background-color: var(--code-bg);
            border: 1px solid var(--code-border);
            position: relative;
        }

        .article-body pre .code-lang-label {
            display: block;
            font-size: 11px;
            padding: 8px 16px 0 16px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-weight: 600;
            background-color: var(--code-bg);
            border-radius: 8px 8px 0 0;
        }

        .article-body pre code {
            display: block;
            padding: 14px 16px;
            font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.7;
            color: var(--code-text);
            white-space: pre;
            overflow-x: auto;
        }

        .article-body code {
            font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
            font-size: 12.5px;
            background-color: var(--code-bg);
            padding: 2px 6px;
            border-radius: 4px;
            color: var(--code-text);
            border: 1px solid var(--code-border);
        }

        .article-body pre code {
            background: none;
            padding: 14px 16px;
            border: none;
            border-radius: 0;
        }

        /* 返回顶部 */
        .back-to-top {
            position: fixed;
            bottom: 32px;
            right: 32px;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background-color: var(--back-to-top-bg);
            border: 1.5px solid var(--border-color);
            cursor: pointer;
            box-shadow: var(--back-to-top-shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transform: translateY(16px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 50;
            color: var(--text-primary);
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
            border-color: var(--accent);
            color: var(--accent);
        }

        .back-to-top svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.5;
        }

        /* 分类空状态 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }

        .empty-state svg {
            width: 48px;
            height: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        /* 响应式补充 */
        @media (max-width: 768px) {
            .back-to-top {
                bottom: 20px;
                right: 16px;
                width: 38px;
                height: 38px;
            }

            .article-detail-title {
                font-size: 21px;
            }

            .article-body h1 {
                font-size: 19px;
            }

            .article-body h2 {
                font-size: 16px;
            }
        }
