:root {
    --bg-color: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #eaeaea;
    --code-bg: #f8f9fa;
    --link-color: #0066cc;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
nav {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
}
.nav-left { display: flex; align-items: center; }
.logo {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
    margin-right: 2rem;
}
.nav-links a {
    margin-right: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}
.lang-switch {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}
.lang-switch:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}
main {
    flex: 1;
    max-width: 800px;
    width: 90%;
    margin: 3rem auto;
}
h1 { font-size: 2rem; margin-bottom: 1rem; font-weight: 600; letter-spacing: -0.5px; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }
pre {
    background-color: var(--code-bg);
    padding: 1.2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    color: var(--text-main);
}
code { font-family: inherit; }
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
    text-decoration: none;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}
th, td {
    text-align: left;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}
th { color: var(--text-muted); font-weight: normal; }
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}
.doc-nav {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.doc-nav a {
    margin-right: 1rem;
    color: var(--text-muted);
}
.doc-nav a:hover {
    color: var(--text-main);
}