/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #374151;
    line-height: 1.6;
}

.gitbook-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    margin-left: 100px;
    width: 280px;
    background-color: #f8fafc;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: rgb(0, 0, 0);
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* 导航样式 */
.sidebar-nav {
    padding: 16px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: #374151;
}

.nav-item.active {
    color: #2563eb;
    font-weight: 500;
}

.nav-item i {
    width: 16px;
    font-size: 14px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.content-header {
    padding: 16px 32px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 320px;
    margin-left: auto;
}

.search-container i {
    color: #9ca3af;
    font-size: 14px;
}

.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #374151;
}

.search-container input::placeholder {
    color: #9ca3af;
}

.search-container kbd {
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #6b7280;
    font-family: monospace;
}

/* 内容主体 */
.content-body {
    flex: 1;
    padding: 40px 48px;
    overflow-y: auto;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.content-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px;
    line-height: 1.2;
}

.logo-section {
    margin: 40px 0;
    text-align: center;
    background-color: #000000;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.content-text {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text strong {
    font-weight: 600;
    color: #111827;
}

.content-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.content-text table th {
    background-color: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.content-text table th:last-child {
    border-right: none;
}

.content-text table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: top;
}

.content-text table td:last-child {
    border-right: none;
}

.content-text table tr:last-child td {
    border-bottom: none;
}

.content-text table tr:hover {
    background-color: #f8fafc;
}

/* 页脚 */
.content-footer {
    padding: 24px 48px;
    border-top: 1px solid #e5e7eb;
    background-color: #f8fafc;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.powered-by i {
    font-size: 16px;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle i {
    font-size: 20px;
    color: #374151;
}

.mobile-menu-toggle:hover {
    background-color: #f3f4f6;
}

.mobile-menu-toggle:active {
    background-color: #e5e7eb;
}

/* 移动端覆盖层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 19;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        margin-left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 20;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-body {
        padding: 32px 24px;
    }
    
    .content-footer {
        padding: 24px;
    }
    
    .content-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .content-body {
        padding: 24px 16px;
    }
    
    .logo-section {
        padding: 40px 20px;
        margin: 24px 0;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .content-header {
        padding: 12px 16px;
    }
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.sidebar-footer .powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.sidebar-footer .powered-by i {
    font-size: 16px;
} 