/* ========================================
   MoyvShell 文档页面样式
   ======================================== */

/* 文档容器 */
.docs-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

/* 侧边栏 */
.docs-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid rgba(0, 191, 255, 0.1);
    padding: 2rem 0;
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--primary-color);
    background: rgba(0, 191, 255, 0.05);
    border-left-color: var(--primary-color);
}

.sidebar-nav a.active {
    color: var(--primary-color);
    background: rgba(0, 191, 255, 0.1);
    border-left-color: var(--primary-color);
}

/* 文档内容区 */
.docs-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem 4rem;
    max-width: 900px;
}

.docs-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* 文档章节 */
.docs-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.docs-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

.docs-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.docs-section ul,
.docs-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.docs-section li {
    margin-bottom: 0.5rem;
}

.docs-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.docs-section a:hover {
    text-decoration: underline;
}

/* 代码块 */
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    margin: 1rem 0;
    overflow: hidden;
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    line-height: 1.6;
}

/* 行内代码 */
code {
    background: rgba(0, 191, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

/* 提示框 */
.docs-tip {
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.docs-tip strong {
    color: var(--accent-color);
}

/* 表格 */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.docs-table th,
.docs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.docs-table th {
    background: rgba(0, 191, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

/* 键盘按键 */
kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: var(--primary-color);
    box-shadow: 0 2px 0 rgba(0, 191, 255, 0.2);
}

/* FAQ */
.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* 文档页脚 */
.docs-footer {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-secondary);
    border-radius: 16px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.docs-footer h2 {
    margin-bottom: 1rem;
}

.docs-footer ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.docs-footer li {
    margin-bottom: 0.5rem;
}

.docs-footer .btn {
    margin-top: 1.5rem;
}

/* 导航栏激活状态 */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* 滚动条美化 */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.3);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 191, 255, 0.5);
}

/* 响应式 */
@media (max-width: 1024px) {
    .docs-sidebar {
        width: 240px;
    }
    
    .docs-content {
        margin-left: 240px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .docs-sidebar {
        display: none;
    }
    
    .docs-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
    
    .docs-title {
        font-size: 1.8rem;
    }
    
    .docs-section h2 {
        font-size: 1.4rem;
    }
}
