/* VuePress 2.0 Modern Documentation Theme - Adjusted Royal Cobalt Palette */
:root {
    --vp-brand: #1d4ed8;
    --vp-brand-light: #2563eb;
    --vp-brand-dark: #1e40af;
    --vp-text: #0f172a;
    --vp-text-light: #475569;
    --vp-bg: #ffffff;
    --vp-bg-soft: #f8fafc;
    --vp-border: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--vp-bg);
    color: var(--vp-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--vp-brand);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--vp-brand-light);
}

.wrap {
    width: min(1140px, 100% - 32px);
    margin: 0 auto;
}

/* VuePress Navbar */
.vp-navbar {
    height: 62px;
    background: #ffffff;
    border-bottom: 1px solid var(--vp-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.vp-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--vp-text) !important;
    text-decoration: none !important;
}

.vp-site-brand img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.vp-navbar-items {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.vp-navbar-items a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--vp-text-light);
}

.vp-navbar-items a:hover, .vp-navbar-items a.active {
    color: var(--vp-brand);
}

.btn-header {
    background: var(--vp-brand);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-header:hover {
    background: var(--vp-brand-dark);
}

/* VuePress Centered Hero */
.vp-home {
    padding-bottom: 64px;
}

.vp-hero {
    text-align: center;
    padding: 64px 0 48px 0;
}

.vp-hero-image {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    margin: 0 auto 24px auto;
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.12);
}

.vp-hero h1 {
    font-size: clamp(34px, 4.8vw, 54px);
    font-weight: 900;
    color: var(--vp-text);
    margin-bottom: 14px;
    letter-spacing: -0.025em;
}

.vp-hero-description {
    font-size: 19px;
    color: var(--vp-text-light);
    max-width: 680px;
    margin: 0 auto 32px auto;
}

.vp-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.vp-btn.primary {
    background: var(--vp-brand);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.vp-btn.primary:hover {
    background: var(--vp-brand-dark);
    transform: translateY(-1px);
}

.vp-btn.secondary {
    background: var(--vp-bg-soft);
    border: 1px solid var(--vp-border);
    color: var(--vp-text);
}

.vp-btn.secondary:hover {
    background: #e2e8f0;
}

/* 6 Feature Cards Grid (.vp-features) */
.vp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0;
    border-top: 1px solid var(--vp-border);
    border-bottom: 1px solid var(--vp-border);
    background: var(--vp-bg-soft);
}

.vp-feature {
    background: #ffffff;
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.vp-feature:hover {
    border-color: var(--vp-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.vp-feature-icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.vp-feature h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--vp-text);
    margin-bottom: 8px;
}

.vp-feature p {
    font-size: 14.5px;
    color: var(--vp-text-light);
    line-height: 1.65;
}

/* Document Content Body */
.vp-content-body {
    max-width: 860px;
    margin: 64px auto 0 auto;
}

.vp-content-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--vp-text);
    margin: 40px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--vp-border);
}

.vp-content-body h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 24px 0 10px 0;
}

.vp-content-body p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.code-box {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.65;
    overflow-x: auto;
    margin: 20px 0 28px 0;
    border: 1px solid #1e293b;
}

/* Download Page */
.download-card {
    background: #ffffff;
    border: 1px solid var(--vp-border);
    border-radius: 12px;
    padding: 48px;
    max-width: 820px;
    margin: 44px auto;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.download-card h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--vp-text);
    margin-bottom: 12px;
}

.spec-table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    text-align: left;
}

.spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--vp-border);
    font-size: 14.5px;
}

.spec-table td:first-child {
    font-weight: 700;
    color: var(--vp-text-light);
    width: 130px;
}

/* Footer */
.vp-footer {
    border-top: 1px solid var(--vp-border);
    background: #ffffff;
    padding: 36px 0;
    font-size: 13.5px;
    color: var(--vp-text-light);
    text-align: center;
}

/* Responsive */
@media (max-width: 860px) {
    .vp-features {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 880px) {
    .nav-links, .nav-menu {
        display: none !important;
    }
}
