
        @font-face {
    font-family: 'MiSans';
    src: url('https://byte.8i5.net/font/misans/MiSans-Semibold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*{
                margin: 0;
            padding: 0;
            box-sizing: border-box;
	font-family: "MiSans",system-ui, -apple-system, sans-serif;
}
        body {
             background-image: url('banner.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            position: relative;
            color: #2c1810;
            line-height: 1.6;
            min-height: 100vh;
            overflow-x: hidden;
        }
        
        /* 书本容器 */
        .book-container {
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            min-height: 100vh;
            display: flex;
        }
        
        /* 顶部导航栏 */
.book-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #037e47;
    color: #f8f4e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    z-index: 1000;
    border-bottom: 3px solid #fff;
}

/* 主导航菜单 */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #f8f4e6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.nav-link i {
    font-size: 14px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #f8f4e6;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .book-header {
        padding: 0 15px;
        height: 60px;
    }
    
    .book-title {
        font-size: 18px;
    }
    
    .book-title i {
        font-size: 20px;
    }
}
        
        /* 左侧目录 - 书脊样式 */
        .book-sidebar {
            width: 320px;
            background: linear-gradient(135deg, #d2b48c 0%, #daa520 100%);
            border-right: 8px solid #037e47;
            box-shadow: inset -10px 0 20px rgba(139, 69, 19, 0.2);
            padding-top: 80px;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            z-index: 900;
            overflow-y: auto;
            transition: transform 0.3s ease;
        }
        
        /* 目录搜索框 */
        .search-container {
            padding: 20px;
            border-bottom: 3px solid #8b4513;
            background: rgba(255,255,255,0.1);
        }
        
        .search-input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #8b4513;
            border-radius: 25px;
            background: rgba(255,255,255,0.9);
            font-size: 16px;
            color: #2c1810;
            font-family: 'Georgia', serif;
            box-shadow: inset 2px 2px 5px rgba(139, 69, 19, 0.1);
        }
        
        .search-input:focus {
            outline: none;
            border-color: #daa520;
            box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
        }
        
        /* 分类列表 */
        .category-section {
            padding: 20px;
        }
        
        .category-title {
            font-size: 18px;
            font-weight: bold;
            color: #2c1810;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid #8b4513;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .category-list {
            list-style: none;
        }
        
        .category-item {
            margin-bottom: 10px;
        }
        
        .category-toggle {
            width: 100%;
            padding: 12px 16px;
            background: linear-gradient(135deg, #f8f4e6 0%, #f0e6d2 100%);
            border: 2px solid #8b4513;
            border-radius: 8px;
            color: #2c1810;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s ease;
            box-shadow: 2px 2px 5px rgba(139, 69, 19, 0.1);
            font-family: 'Georgia', serif;
        }
        
        .category-toggle:hover {
            background: linear-gradient(135deg, #f0e6d2 0%, #e6d7b8 100%);
            transform: translateY(-2px);
            box-shadow: 3px 3px 8px rgba(139, 69, 19, 0.2);
        }
        
        .category-toggle i {
            transition: transform 0.3s ease;
        }
        
        .category-toggle.active i {
            transform: rotate(180deg);
        }
        
        .doc-list {
            margin-top: 8px;
            margin-left: 10px;
            display: none;
        }
        
        .doc-list.show {
            display: block;
        }
        
        .doc-item {
            margin-bottom: 8px;
        }
        
        .doc-link {
            display: block;
            padding: 10px 14px;
            background: rgba(248, 244, 230, 0.9);
            border: 1px solid #d2b48c;
            border-radius: 6px;
            color: #2c1810;
            text-decoration: none;
            font-size: 15px;
            transition: all 0.3s ease;
            box-shadow: 1px 1px 3px rgba(139, 69, 19, 0.1);
        }
        
        .doc-link:hover {
            background: rgba(240, 230, 210, 0.9);
            border-color: #8b4513;
            transform: translateX(5px);
            box-shadow: 2px 2px 6px rgba(139, 69, 19, 0.2);
        }
        
        .doc-link.active {
            background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
            color: #f8f4e6;
            border-color: #8b4513;
            font-weight: bold;
        }
        
        /* 右侧书页内容 */
        .book-content {
            flex: 1;
            margin-left: 320px;
            padding: 90px 40px 40px;
            min-height: 100vh;
            background: linear-gradient(135deg, #fefcf8 0%, #faf7f0 100%);
            box-shadow: inset 10px 0 20px rgba(139, 69, 19, 0.1);
        }
        
        /* 初始状态 */
        .content-initial {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: calc(100vh - 130px);
            text-align: center;
            padding: 40px;
            background: linear-gradient(135deg, #f8f4e6 0%, #f0e6d2 100%);
            border: 3px solid #d2b48c;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
        }
        
        .content-initial i {
            font-size: 64px;
            color: #8b4513;
            margin-bottom: 20px;
            opacity: 0.7;
        }
        
        .content-initial h2 {
            font-size: 32px;
            color: #2c1810;
            margin-bottom: 15px;
            font-weight: bold;
        }
        
        .content-initial p {
            font-size: 18px;
            color: #654321;
            max-width: 600px;
            line-height: 1.8;
        }
        
        /* 加载状态 */
        .content-loading {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: calc(100vh - 130px);
        }
        
        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 6px solid #037e47;
            border-top: 6px solid #fff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-text {
            font-size: 18px;
            color: #654321;
            font-style: italic;
        }
        
        /* 内容容器 */
        .content-container {
            display: none;
        }
        
        .recipe-card {
            background: linear-gradient(135deg, #fefcf8 0%, #faf7f0 100%);
            border: 3px solid #d2b48c;
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
            position: relative;
        }
        
        .recipe-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(90deg, #8b4513 0%, #daa520 50%, #8b4513 100%);
            border-radius: 12px 12px 0 0;
        }
        
        /* Markdown样式 */
        .markdown-content {
            font-family: 'Georgia', serif;
            color: #2c1810;
        }
        
        .markdown-content h1 {
            font-size: 36px;
            font-weight: bold;
            color: #8b4513;
            margin: 30px 0 20px;
            padding-bottom: 15px;
            border-bottom: 3px solid #d2b48c;
            text-align: center;
        }
        
        .markdown-content h2 {
            font-size: 28px;
            font-weight: bold;
            color: #a0522d;
            margin: 25px 0 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #d2b48c;
        }
        
        .markdown-content h3 {
            font-size: 24px;
            font-weight: bold;
            color: #8b4513;
            margin: 20px 0 12px;
        }
        
        .markdown-content p {
            font-size: 18px;
            margin: 15px 0;
            line-height: 1.8;
            text-align: justify;
            text-indent: 2em;
        }
        
        .markdown-content ul, .markdown-content ol {
            font-size: 18px;
            margin: 15px 0 15px 40px;
            line-height: 1.8;
        }
        
        .markdown-content ul {
            list-style-type: disc;
        }
        
        .markdown-content ol {
            list-style-type: decimal;
        }
        
        .markdown-content li {
            margin: 8px 0;
        }
        
        .markdown-content blockquote {
            font-style: italic;
            font-size: 18px;
            margin: 20px 0;
            padding: 20px;
            background: linear-gradient(135deg, #f8f4e6 0%, #f0e6d2 100%);
            border-left: 5px solid #daa520;
            border-radius: 0 8px 8px 0;
            color: #654321;
        }
        
        .markdown-content pre {
            background: #2c1810;
            color: #f8f4e6;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
            font-size: 16px;
        }
        
        .markdown-content code {
            background: #f0e6d2;
            color: #8b4513;
            padding: 3px 8px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            font-size: 16px;
        }
        
        .markdown-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 20px 0;
            box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
            border: 3px solid #d2b48c;
        }
        
        .markdown-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 16px;
        }
        
        .markdown-content th, .markdown-content td {
            padding: 12px 15px;
            border: 2px solid #d2b48c;
            text-align: left;
        }
        
        .markdown-content th {
            background: linear-gradient(135deg, #d2b48c 0%, #daa520 100%);
            color: #2c1810;
            font-weight: bold;
        }
        
        .markdown-content tr:nth-child(even) {
            background: rgba(248, 244, 230, 0.5);
        }
        
        /* 错误状态 */
        .content-error {
            display: none;
            padding: 40px;
            background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
            border: 3px solid #b71c1c;
            border-radius: 15px;
            text-align: center;
            margin-top: 20px;
        }
        
        .content-error i {
            font-size: 48px;
            color: #b71c1c;
            margin-bottom: 20px;
        }
        
        .content-error h3 {
            font-size: 24px;
            color: #b71c1c;
            margin-bottom: 15px;
            font-weight: bold;
        }
        
        .content-error p {
            font-size: 18px;
            color: #c62828;
            line-height: 1.6;
        }
        
        /* 移动端菜单遮罩 */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 800;
            display: none;
            backdrop-filter: blur(2px);
        }
        
        .menu-overlay.show {
            display: block;
        }
        
        /* 响应式设计 */
        @media (max-width: 1024px) {
            .book-sidebar {
                transform: translateX(-100%);
                width: 280px;
            }
            
            .book-sidebar.show {
                transform: translateX(0);
            }
            
            .book-content {
                margin-left: 0;
                padding: 90px 20px 20px;
            }
            
            .mobile-menu-btn {
                display: flex;
            }
            
            .recipe-card {
                padding: 25px;
            }
            
            .markdown-content h1 {
                font-size: 28px;
            }
            
            .markdown-content h2 {
                font-size: 24px;
            }
            
            .markdown-content h3 {
                font-size: 20px;
            }
        }
        
        @media (max-width: 768px) {
            .book-header {
                padding: 0 15px;
                height: 60px;
            }
            
            .book-title {
                font-size: 20px;
            }
            
            .book-title i {
                font-size: 24px;
            }
            
            .book-content {
                padding: 80px 15px 15px;
            }
            
            .content-initial {
                padding: 25px 15px;
                height: calc(100vh - 100px);
            }
            
            .content-initial h2 {
                font-size: 24px;
            }
            
            .content-initial p {
                font-size: 16px;
            }
            
            .recipe-card {
                padding: 20px;
            }
            
            .markdown-content {
                font-size: 16px;
            }
            
            .markdown-content p {
                font-size: 16px;
                text-indent: 1.5em;
            }
            
            .markdown-content ul, .markdown-content ol {
                font-size: 16px;
                margin-left: 25px;
            }
        }
        /* 简化版版权页脚 */
.simple-footer {
    background-color: #037e47;
    color: #f8f4e6;
    padding: 20px 30px;
    border-top: 3px solid #fff;
    box-shadow: 0 -2px 10px rgba(139, 69, 19, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .simple-footer {
        padding: 15px 15px;
    }
    
    .footer-info p {
        font-size: 13px;
    }
}