/* 响应式样式 */

/* 移动端导航 */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    left: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-nav-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px var(--shadow);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
}

/* 中等分辨率优化 */
@media (max-width: 1440px) and (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    #sidebar {
        width: 250px !important;
    }
    
    .header h1 {
        font-size: 1.85em;
    }
    
    #markdown-content h1 {
        font-size: 1.65em;
    }
    
    #markdown-content h2 {
        font-size: 1.3em;
    }
}

/* 移动端样式 */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-overlay.active {
        display: block;
    }
    
    .left-navigation {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 280px !important;
        min-width: 280px !important;
        max-height: 100vh !important;
        background: var(--container-bg);
        z-index: 999;
        transition: left 0.3s ease;
        padding: 20px;
        border-right: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    [data-theme="dark"] .left-navigation {
        background: var(--container-bg);
    }
    
    .left-navigation.active {
        left: 0;
    }
    
    .right-toc-nav {
        display: none !important;
    }
    
    .ai-floating-btn {
        width: 56px;
        height: 56px;
        right: 20px;
        bottom: 30px;
        font-size: 24px;
    }
    
    .theme-toggle-btn {
        right: 80px;
        bottom: 30px;
        width: 46px;
        height: 46px;
    }
    
    .ai-chat-window {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .ai-chat-header {
        border-radius: 0;
    }
    
    .ai-messages {
        padding: 12px;
    }
    
    .ai-input {
        font-size: 16px;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .header h1 {
        font-size: 1.4em;
    }
    
    .header p {
        font-size: 0.85em;
    }
    
    .category-nav {
        flex-direction: column;
        gap: 6px;
    }
    
    #layout {
        flex-direction: column;
    }
    
    .main-content-area {
        max-height: calc(100vh - 400px) !important;
    }
    
    .page-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .page-title-text {
        font-size: 1em;
    }
    
    .breadcrumb-nav {
        font-size: 0.75em;
        flex-wrap: wrap;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .ai-button-group button {
        font-size: 0.85em;
        padding: 8px 12px;
    }
    
    .container {
        padding: 10px;
    }
    
    .content {
        padding: 20px 15px;
    }
}

