/* pvm - nvm-style documentation theme */

:root {
    --bg: #ffffff;
    --bg-code: #f6f8fa;
    --bg-terminal: #24292e;
    --text: #24292e;
    --text-secondary: #57606a;
    --text-code: #24292e;
    --text-terminal: #e1e4e8;
    --border: #d0d7de;
    --link: #0969da;
    --link-hover: #0550ae;
    --accent: #0969da;
    --green: #1a7f37;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --bg-code: #161b22;
        --bg-terminal: #161b22;
        --text: #c9d1d9;
        --text-secondary: #8b949e;
        --text-code: #c9d1d9;
        --text-terminal: #c9d1d9;
        --border: #30363d;
        --link: #58a6ff;
        --link-hover: #79c0ff;
        --accent: #58a6ff;
        --green: #3fb950;
    }
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

/* Links */
a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.logo {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* Hero */
.hero {
    text-align: center;
    padding: 48px 0 64px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.hero h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tagline-zh {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Sections */
.section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: none;
}

.section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.section h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text);
}

.section p {
    margin-bottom: 12px;
    color: var(--text);
}

.section ul, .section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.section li {
    margin-bottom: 6px;
    color: var(--text);
}

/* Inline code */
code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-code);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-code);
}

/* Code blocks */
.code-block {
    position: relative;
    margin: 16px 0;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.code-block pre {
    padding: 16px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-code);
}

.code-block.terminal {
    background: var(--bg-terminal);
    border-color: var(--bg-terminal);
}

.code-block.terminal code {
    color: var(--text-terminal);
}

.code-block.terminal .c {
    color: #6a737d;
}

.code-block.terminal .o {
    color: var(--green);
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    color: var(--text);
    border-color: var(--text-secondary);
}

/* Note */
.note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Feature list */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 600;
}

/* Mirror table */
.mirror-table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.mirror-table th,
.mirror-table td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--border);
}

.mirror-table th {
    background: var(--bg-code);
    font-weight: 600;
}

.mirror-table td code {
    font-size: 13px;
}

/* Version grid */
.version-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.version-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
}

.version-tag.latest {
    border-color: var(--green);
    color: var(--green);
}

/* Footer */
.footer {
    text-align: center;
    padding: 48px 0 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer p {
    margin-bottom: 8px;
}

.credit {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 16px;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .hero {
        padding: 32px 0 48px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .section h3 {
        font-size: 20px;
    }
    
    .mirror-table {
        font-size: 13px;
    }
    
    .mirror-table th,
    .mirror-table td {
        padding: 8px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
