:root {
    --bg: #0b0f14;
    --bg-2: #111827;
    --panel: rgba(16, 23, 34, 0.92);
    --panel-solid: #121a26;
    --text: #e6edf3;
    --muted: #9aa4b2;
    --accent: #ff8a3d;
    --accent-2: #3dd6ff;
    --border: rgba(148, 163, 184, 0.22);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --code-bg: #0b121a;
    --code-border: rgba(148, 163, 184, 0.2);
    --radius: 16px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "IBM Plex Sans", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: #0b0f14;
    font-family: var(--font-body);
    line-height: 1.7;
    letter-spacing: 0.1px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 120px 120px, 160px 160px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

#app {
    position: relative;
    z-index: 1;
}

::-moz-selection {
    background: rgba(255, 138, 61, 0.35);
    color: var(--text);
}

::selection {
    background: rgba(255, 138, 61, 0.35);
    color: var(--text);
}

.sidebar {
    background: var(--panel);
    border-right: 1px solid var(--border);
    box-shadow: 14px 0 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    transition: width 0.4s ease;
}

.sidebar-toggle {
    background-color: var(--panel);
    border-radius: 10px;
}

.sidebar a {
    color: var(--text);
}

.sidebar a:hover {
    color: var(--accent);
}

.app-name-link {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text) !important;
    letter-spacing: 0.2px;
}

.sidebar-nav > ul > li > a {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.sidebar-nav li.active > a {
    color: var(--accent);
}

.sidebar-nav li.active > a::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 8px;
    transform: translateY(-1px);
}

.content {
    background: transparent;
}

.markdown-section {
    max-width: 920px;
    padding: 40px 44px;
    margin: 32px auto 72px;
    background: rgba(13, 19, 28, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: fade-rise 0.5s ease both;
}

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4 {
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -0.02em;
}

.markdown-section h1 {
    font-size: 2.6rem;
    margin-top: 0;
    color: var(--text);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .markdown-section h1 {
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.markdown-section h2 {
    font-size: 1.8rem;
    margin-top: 2.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.markdown-section h3 {
    font-size: 1.35rem;
    margin-top: 1.6rem;
}

.markdown-section p,
.markdown-section li {
    color: var(--text);
    font-size: 1.02rem;
}

.markdown-section ul,
.markdown-section ol {
    padding-left: 1.4rem;
}

.markdown-section a {
    color: var(--accent-2);
    text-decoration-line: underline;
    text-decoration-color: rgba(61, 214, 255, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.markdown-section a:hover {
    color: var(--accent);
    text-decoration-color: rgba(255, 138, 61, 0.6);
}

.markdown-section blockquote {
    background: rgba(18, 26, 38, 0.9);
    border-left: 4px solid var(--accent);
    color: var(--muted);
    padding: 16px 20px;
    border-radius: 12px;
}

.markdown-section blockquote p {
    color: var(--muted);
}

.markdown-section code {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 6px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e2e8f0 !important;
}

.markdown-section pre {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 12px;
    padding: 18px 20px;
    overflow: auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.markdown-section pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.92rem;
}

.docsify-copy-code-button {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    top: 25px !important;
    right: 10px !important;
}

.docsify-copy-code-button.success {
    color: #0b0f14 !important;
}

.markdown-section table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background: rgba(12, 18, 28, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.markdown-section th,
.markdown-section td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.markdown-section th {
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    background: rgba(17, 24, 39, 0.85);
}

.markdown-section tr:nth-child(2n) {
    background: rgba(12, 18, 28, 0.4);
}

.markdown-section hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.markdown-section p.tip,
.markdown-section p.warn {
    background: rgba(18, 26, 38, 0.85);
    border-left: 4px solid var(--accent-2);
    color: var(--muted);
    border-radius: 12px;
    padding: 14px 18px;
}

.markdown-section p.warn {
    border-left-color: #f59e0b;
}

.markdown-section kbd {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.search {
    border-bottom: 1px solid var(--border);
}

.search input {
    background: var(--panel-solid) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-family: var(--font-body) !important;
}

.search .clear-button {
    color: var(--muted) !important;
}

.search .matching-post {
    border-bottom: 1px solid var(--border);
}

.github-corner svg {
    fill: var(--accent);
    color: #0a0f15;
}

#lang-switch-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: opacity 0.15s, transform 0.15s;
}

#lang-switch-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(8, 12, 18, 0.7);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

@media (max-width: 900px) {
    .markdown-section {
        margin: 20px 16px 48px;
        padding: 28px 24px;
    }
    
    .markdown-section h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .markdown-section {
        margin: 16px 10px 40px;
        padding: 22px 18px;
    }
    
    .sidebar-toggle {
        border-radius: 8px;
    }
}