/** * Base overrides applied to all pages. * Touches links, inline code, code blocks, custom blocks, blockquotes, navbar, sidebar. */ html { font-feature-settings: 'cv11', 'ss01', 'ss03'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: var(--vp-font-family-base); } /* --- Top navbar: blur + remove the hard bottom line --- */ .VPNav, .VPNavBar { background: rgba(255, 255, 255, 0.72) !important; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); } .dark .VPNav, .dark .VPNavBar { background: rgba(13, 17, 23, 0.72) !important; } .VPNavBar.has-sidebar .content, .VPNavBar:not(.home) { border-bottom: 1px solid var(--vp-c-divider); } /* --- Sidebar: brand-tinted active item, slim left accent bar --- */ .VPSidebarItem.is-active > .item .link .text, .VPSidebarItem.is-active > .item > .text { color: var(--vp-c-brand-1); font-weight: 600; } .VPSidebarItem.is-link.is-active > .item { position: relative; } .VPSidebarItem.is-link.is-active > .item::before { content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 3px; height: 16px; border-radius: 2px; background: var(--kimi-brand-gradient); } /* --- Headings: tighter tracking, no underline on h2 --- */ .vp-doc h1, .vp-doc h2, .vp-doc h3 { letter-spacing: -0.02em; } .vp-doc h2 { border-top: none; padding-top: 24px; margin-top: 48px; } /* --- Links --- */ .vp-doc a:not(.header-anchor) { color: var(--vp-c-brand-1); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: text-decoration-color var(--kimi-transition), color var(--kimi-transition); font-weight: 500; } .vp-doc a:not(.header-anchor):hover { color: var(--vp-c-brand-2); text-decoration-color: currentColor; } /* --- Inline code --- */ .vp-doc :not(pre) > code { background: var(--kimi-brand-soft); color: var(--vp-c-brand-1); padding: 2px 6px; border-radius: 6px; font-weight: 500; font-size: 0.875em; border: none; } /* Inline code inside headings: drop the chip, keep just the brand-colored monospace word */ .vp-doc :is(h1, h2, h3, h4, h5, h6) code { background: transparent; padding: 0; border-radius: 0; font-size: 0.9em; font-weight: inherit; color: var(--vp-c-brand-1); } /* --- Code blocks --- */ .vp-doc div[class*='language-'] { border-radius: var(--kimi-radius-code); background: var(--vp-c-bg-soft); margin: 20px 0; box-shadow: var(--vp-shadow-1); } .vp-doc div[class*='language-'] pre { padding: 20px 24px; } .vp-doc div[class*='language-'] code { font-family: var(--vp-font-family-mono); font-size: 13.5px; line-height: 1.7; } .vp-doc div[class*='language-'] .lang { color: var(--vp-c-text-3); font-size: 12px; } .vp-doc div[class*='language-'] button.copy { border-radius: 8px; } /* --- Blockquote --- */ .vp-doc blockquote { border-left: 3px solid var(--vp-c-brand-1); background: var(--kimi-brand-soft); padding: 14px 18px; border-radius: 0 var(--kimi-radius-code) var(--kimi-radius-code) 0; margin: 20px 0; } .vp-doc blockquote > p { color: var(--vp-c-text-2); margin: 0; } /* --- Custom blocks (tip / warning / danger / info) --- */ .vp-doc .custom-block { border-radius: var(--kimi-radius-code); border: none; padding: 16px 20px; margin: 20px 0; } .vp-doc .custom-block .custom-block-title { font-weight: 600; letter-spacing: -0.005em; } .vp-doc .custom-block.tip { background: rgba(10, 122, 255, 0.08); color: var(--vp-c-text-1); } .dark .vp-doc .custom-block.tip { background: rgba(61, 149, 255, 0.12); } .vp-doc .custom-block.warning { background: rgba(234, 179, 8, 0.10); color: var(--vp-c-text-1); } .vp-doc .custom-block.danger { background: rgba(239, 68, 68, 0.10); color: var(--vp-c-text-1); } .vp-doc .custom-block.info { background: rgba(148, 163, 184, 0.12); color: var(--vp-c-text-1); } .vp-doc .custom-block.tip .custom-block-title { color: var(--vp-c-brand-1); } .vp-doc .custom-block.warning .custom-block-title { color: #ca8a04; } .vp-doc .custom-block.danger .custom-block-title { color: #dc2626; } .dark .vp-doc .custom-block.warning .custom-block-title { color: #eab308; } .dark .vp-doc .custom-block.danger .custom-block-title { color: #ef4444; } /* --- Tables --- */ .vp-doc table { border-radius: var(--kimi-radius-code); overflow: hidden; border-collapse: separate; border-spacing: 0; display: table; width: 100%; } .vp-doc tr { background: transparent !important; border-top: 1px solid var(--vp-c-divider); } .vp-doc tr:first-child { border-top: none; } .vp-doc th { background: var(--vp-c-bg-soft); font-weight: 600; color: var(--vp-c-text-1); } /* --- Outline / TOC --- */ .VPDocAsideOutline .outline-link.active, .VPDocAsideOutline .outline-link:hover { color: var(--vp-c-brand-1); } /* --- Buttons globally (e.g. hero CTAs) --- */ .VPButton.brand { background: var(--kimi-brand-gradient) !important; border: none !important; box-shadow: var(--vp-shadow-3); transition: transform var(--kimi-transition), box-shadow var(--kimi-transition); } .VPButton.brand:hover { transform: translateY(-2px); box-shadow: var(--vp-shadow-4); } .VPButton.alt { background: transparent !important; border: 1px solid var(--vp-c-divider) !important; color: var(--vp-c-text-1) !important; transition: border-color var(--kimi-transition), transform var(--kimi-transition); } .VPButton.alt:hover { border-color: var(--vp-c-brand-1) !important; transform: translateY(-2px); } /* --- Hero default frontmatter (used as fallback when custom Home not rendered) --- */ .VPHero .name, .VPHero .text { letter-spacing: -0.03em; } /* --- Footer --- */ .VPFooter { border-top: 1px solid var(--vp-c-divider); background: transparent; } /* --- Step rail (numbered steps on guides/web) --- */ .vp-doc .step-num { display: inline-flex; align-items: center; justify-content: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: #f4f5f7; color: #8a919c; font-size: 0.85em; font-weight: 500; line-height: 1; margin-right: 0.6em; vertical-align: 0.1em; } .vp-doc .step { position: relative; border-left: 2px solid #f0f2f5; padding-left: 1.4em; margin-left: 0.75em; padding-bottom: 0.6em; } .vp-doc .step:last-of-type { border-left-color: transparent; } .vp-doc .step .step-num { position: absolute; left: -0.78em; top: 0.15em; margin-right: 0; } /* --- Feature compare table (fixed-width ✓ columns on guides/web) --- */ .feature-compare-table table { table-layout: fixed; width: 100%; } .feature-compare-table th:nth-child(1), .feature-compare-table td:nth-child(1) { width: 8em; white-space: nowrap; } .feature-compare-table th:nth-child(2), .feature-compare-table td:nth-child(2), .feature-compare-table th:nth-child(3), .feature-compare-table td:nth-child(3) { width: 4.5em; text-align: center; }