/* d:\aist\Api\docs\docs.css */
:root {
    --docs-sidebar-width: 280px;
    --docs-header-height: 60px;
    --docs-primary-color: #0066ff;
    --docs-bg-main: #ffffff;
    --docs-bg-sidebar: #f9f9f9;
    --docs-text-main: #1a1a1a;
    --docs-text-muted: #666666;
    --docs-border-color: #eeeeee;
    --docs-code-bg: #f5f5f5;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--docs-text-main);
    background-color: var(--docs-bg-main);
    line-height: 1.6;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.docs-header {
    height: var(--docs-header-height);
    border-bottom: 1px solid var(--docs-border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 18px;
    gap: 10px;
}

.logo-img {
    height: 30px;
}

/* Layout */
.docs-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.docs-sidebar {
    width: var(--docs-sidebar-width);
    background: var(--docs-bg-sidebar);
    border-right: 1px solid var(--docs-border-color);
    overflow-y: auto;
    padding: 20px 0;
}

.docs-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 60px;
    scroll-behavior: smooth;
}

/* Sidebar Menu */
.menu-group {
    margin-bottom: 20px;
}

.menu-group-title {
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--docs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-item {
    display: block;
    padding: 8px 24px;
    color: var(--docs-text-main);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: #f0f0f0;
    color: var(--docs-primary-color);
}

.menu-item.active {
    color: var(--docs-primary-color);
    background: #e6f0ff;
    border-left-color: var(--docs-primary-color);
    font-weight: 500;
}

/* Markdown Content */
.markdown-body {
    max-width: 850px;
    margin: 0 auto;
}

.markdown-body h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--docs-border-color);
    padding-bottom: 0.5rem;
}

.markdown-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body code {
    background: var(--docs-code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    font-size: 85%;
}

.markdown-body pre {
    background: #282c34;
    color: #abb2bf;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Pricing Table Style */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pricing-table th, .pricing-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--docs-border-color);
}

.pricing-table th {
    background: #f8f8f8;
    font-weight: 600;
}

.price-tag {
    color: #ff4d4f;
    font-weight: 700;
}

.low-price-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #52c41a;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

/* Vben Style 404 */
.vben-exception {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.vben-exception img {
    width: 350px;
    max-width: 100%;
    margin-bottom: 24px;
}

.vben-exception-status {
    color: #434e59;
    font-size: 72px;
    font-weight: 600;
    line-height: 72px;
    margin-bottom: 24px;
}

.vben-exception-msg {
    color: var(--docs-text-muted);
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 16px;
}

.vben-exception-btn {
    margin-top: 24px;
}
