:root {
--primary-color: #6366f1;
--primary-dark: #4f46e5;
--secondary-color: #10b981;
--bg-color: #ffffff;
--bg-secondary: #f9fafb;
--bg-tertiary: #f3f4f6;
--text-primary: #111827;
--text-secondary: #6b7280;
--text-tertiary: #9ca3af;
--border-color: #e5e7eb;
--code-bg: #1e293b;
--code-text: #e2e8f0;
--sidebar-width: 280px;
--header-height: 64px;
--max-width: 1400px;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
font-size: 16px;
line-height: 1.7;
color: var(--text-primary);
background-color: var(--bg-color);
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 1.3;
margin-bottom: 1rem;
color: var(--text-primary);
}
h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.875rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
h2:first-of-type { margin-top: 0; border-top: none; }
h3 { font-size: 1.375rem; margin-top: 1.75rem; }
h4 { font-size: 1.125rem; }
p {
margin-bottom: 1rem;
}
a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.2s;
}
a:hover {
color: var(--primary-dark);
text-decoration: underline;
}
.container {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 1.5rem;
}
.site-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--header-height);
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border-color);
z-index: 100;
display: flex;
align-items: center;
}
.site-header .container {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
}
.logo-icon {
font-size: 1.75rem;
}
.logo-text {
font-size: 1.375rem;
font-weight: 700;
color: var(--text-primary);
}
.version {
background: var(--primary-color);
color: white;
font-size: 0.75rem;
padding: 0.125rem 0.5rem;
border-radius: 9999px;
font-weight: 600;
}
.main-nav {
display: flex;
gap: 1.5rem;
}
.main-nav a {
color: var(--text-secondary);
font-weight: 500;
font-size: 0.9375rem;
padding: 0.5rem 0;
border-bottom: 2px solid transparent;
transition: all 0.2s;
}
.main-nav a:hover {
color: var(--primary-color);
text-decoration: none;
}
.main-nav a.active {
color: var(--primary-color);
border-bottom-color: var(--primary-color);
}
.main-container {
display: flex;
margin-top: var(--header-height);
min-height: calc(100vh - var(--header-height));
}
.sidebar {
position: fixed;
top: var(--header-height);
left: 0;
width: var(--sidebar-width);
height: calc(100vh - var(--header-height));
overflow-y: auto;
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
padding: 1.5rem 0;
padding-bottom: 4rem;
}
.sidebar-section {
margin-bottom: 1.5rem;
}
.sidebar-section h3 {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-tertiary);
padding: 0 1.5rem;
margin-bottom: 0.5rem;
}
.sidebar-section ul {
list-style: none;
}
.sidebar-section li a {
display: block;
padding: 0.375rem 1.5rem;
color: var(--text-secondary);
font-size: 0.9375rem;
transition: all 0.15s;
border-left: 3px solid transparent;
}
.sidebar-section li a:hover {
color: var(--primary-color);
background: rgba(99, 102, 241, 0.05);
text-decoration: none;
}
.sidebar-section li a.active {
color: var(--primary-color);
background: rgba(99, 102, 241, 0.1);
border-left-color: var(--primary-color);
font-weight: 500;
}
.content {
flex: 1;
margin-left: var(--sidebar-width);
padding: 2rem 3rem;
max-width: calc(100% - var(--sidebar-width));
}
.doc-section {
margin-bottom: 2rem;
scroll-margin-top: calc(var(--header-height) + 1rem);
}
.doc-section:first-child {
padding-top: 0;
}
.lead {
font-size: 1.25rem;
color: var(--text-secondary);
margin-bottom: 2rem;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin: 2rem 0;
}
.feature-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
transition: all 0.2s;
}
.feature-card:hover {
border-color: var(--primary-color);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
transform: translateY(-2px);
}
.feature-icon {
font-size: 2rem;
margin-bottom: 0.75rem;
}
.feature-card h3 {
font-size: 1.125rem;
margin-top: 0;
margin-bottom: 0.5rem;
}
.feature-card p {
color: var(--text-secondary);
font-size: 0.9375rem;
margin-bottom: 0;
}
pre {
background: var(--code-bg);
color: var(--code-text);
padding: 1rem 1.25rem;
border-radius: 8px;
overflow-x: auto;
font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
font-size: 0.875rem;
line-height: 1.6;
margin: 1rem 0;
}
code {
font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
font-size: 0.875em;
}
p code, td code {
background: var(--bg-tertiary);
color: var(--primary-color);
padding: 0.125rem 0.375rem;
border-radius: 4px;
font-size: 0.9em;
}
table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
font-size: 0.9375rem;
}
th, td {
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
th {
background: var(--bg-secondary);
font-weight: 600;
color: var(--text-primary);
}
tr:hover {
background: var(--bg-secondary);
}
.filter-table th:first-child,
.filter-table td:first-child {
width: 20%;
font-family: monospace;
color: var(--primary-color);
}
.filter-table th:nth-child(3),
.filter-table td:nth-child(3) {
width: 35%;
font-family: monospace;
font-size: 0.85rem;
}
.features-table td:first-child {
font-family: monospace;
color: var(--primary-color);
width: 20%;
}
.site-footer {
background: var(--bg-secondary);
border-top: 1px solid var(--border-color);
padding: 2rem 0;
margin-left: var(--sidebar-width);
text-align: center;
color: var(--text-secondary);
}
.site-footer p {
margin-bottom: 0.5rem;
}
@media (max-width: 1024px) {
.sidebar {
transform: translateX(-100%);
transition: transform 0.3s;
}
.sidebar.open {
transform: translateX(0);
}
.content {
margin-left: 0;
max-width: 100%;
padding: 1.5rem;
}
.site-footer {
margin-left: 0;
}
}
@media (max-width: 768px) {
.main-nav {
display: none;
}
.feature-grid {
grid-template-columns: 1fr;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
}
.language-rust { color: #c5a4fc; }
.language-toml { color: #9cd0e8; }
.language-html { color: #e2a478; }
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-tertiary);
}