:root {
    --primary: #e65100;
    --primary-dark: #bf360c;
    --secondary: #37474f;
    --bg: #fafafa;
    --card-bg: #ffffff;
    --text: #263238;
    --text-light: #546e7a;
    --border: #eceff1;
    --code-bg: #263238;
    --success: #2e7d32;
    --warning: #f57c00;
    --nav-width: 240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 0;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.75rem 2rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
}

.header h1 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0;
    display: inline;
}

.header .subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    display: inline;
    margin-left: 1rem;
}

.layout {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.nav {
    width: var(--nav-width);
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: fixed;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
}

.nav-title:first-child {
    margin-top: 0;
}

.nav a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav a:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav a.active {
    background: #fff3e0;
    border-left-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 500;
}

.content {
    flex: 1;
    margin-left: var(--nav-width);
    padding: 2rem 3rem;
    max-width: 900px;
}

h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

h2:first-child {
    margin-top: 0;
}

h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

code {
    background: var(--code-bg);
    color: #e0e0e0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.9em;
}

pre {
    background: var(--code-bg);
    color: #e0e0e0;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
}

.command {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.command-header {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-name {
    font-family: 'SF Mono', Consolas, monospace;
    font-weight: 600;
    color: var(--primary-dark);
}

.command-alias {
    background: var(--primary);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.command-body {
    padding: 1rem;
}

.command-desc {
    margin-bottom: 1rem;
    color: var(--text);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

th {
    background: #f5f5f5;
    font-weight: 600;
    color: var(--secondary);
}

td code {
    font-size: 0.85rem;
}

.tip {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.tip-title {
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 0.25rem;
}

.warning {
    background: #fff3e0;
    border-left: 4px solid var(--warning);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-title {
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 0.25rem;
}

.workflow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.workflow-step {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.workflow-arrow {
    color: var(--primary);
    font-size: 1.5rem;
}

.requirements {
    list-style: none;
    padding: 0;
}

.requirements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

ol {
    margin: 1rem 0 1rem 1.5rem;
}

ol li {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: var(--nav-width);
    border-top: 1px solid var(--border);
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.4);
    text-decoration: none;
    color: white !important;
}

@media (max-width: 768px) {
    .header {
        position: relative;
    }

    .layout {
        margin-top: 0;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .content {
        margin-left: 0;
        padding: 1.5rem;
    }

    footer {
        margin-left: 0;
    }
}
