/* 专业Wiki样式 */

/* 全局样式重置与基础设置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 网格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-8, .col-md-4 {
    position: relative;
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 992px) {
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
}

.navbar-brand a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

/* 英雄区域图标样式 */
.hero-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-icon {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.hero-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-icon.main-icon {
    width: 120px;
    height: 80px;
}

.hero-icon.wiki-icon {
    width: 100px;
    height: 60px;
}

@media (max-width: 768px) {
    .brand-icon {
        width: 30px;
        height: 30px;
    }
    
    .hero-icon.main-icon {
        width: 90px;
        height: 60px;
    }
    
    .hero-icon.wiki-icon {
        width: 75px;
        height: 45px;
    }
    
    .hero-icons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .brand-icon {
        width: 25px;
        height: 25px;
    }
    
    .hero-icon.main-icon {
        width: 75px;
        height: 50px;
    }
    
    .hero-icon.wiki-icon {
        width: 60px;
        height: 35px;
    }
    
    .hero-icons {
        gap: 10px;
    }
}

/* 导航菜单分组 */
.navbar-start {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* 菜单分组样式 - 仅在宽屏设备上显示 */
@media (min-width: 992px) {
    .menu-group {
        position: relative;
        display: inline-block;
    }

    .menu-group .menu-group-title {
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .menu-group .menu-group-title:hover {
        background-color: #f0f0f0;
    }

    .menu-group .menu-group-content {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 10px 0;
        min-width: 200px;
        z-index: 1001;
        display: none;
    }

    .menu-group:hover .menu-group-content {
        display: block;
    }

    .menu-group-content .navbar-item {
        margin: 0;
        width: 100%;
    }

    .menu-group-content .navbar-item a {
        display: block;
        width: 100%;
        padding: 8px 15px;
        border-radius: 0;
    }

    .menu-group-content .navbar-item a:hover {
        background-color: #f0f0f0;
    }

    .menu-group-content .menu-section-title {
        padding: 8px 15px;
        margin: 0;
        border-top: none;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 5px;
    }
}

/* 宽屏设备滚动条样式 */
@media (min-width: 992px) {
    /* 为滚动条添加上下箭头 */
    ::-webkit-scrollbar-button {
        background: #f1f1f1;
        border: 1px solid #c1c1c1;
        border-radius: 4px;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* 上箭头 */
    ::-webkit-scrollbar-button:vertical:decrement {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 2L2 5h6L5 2z' fill='%23666'/%3E%3C/svg%3E");
    }

    /* 下箭头 */
    ::-webkit-scrollbar-button:vertical:increment {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 8L2 5h6L5 8z' fill='%23666'/%3E%3C/svg%3E");
    }

    ::-webkit-scrollbar-button:hover {
        background-color: #e9ecef;
    }

    /* 悬停时箭头变色 */
    ::-webkit-scrollbar-button:hover:vertical:decrement {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 2L2 5h6L5 2z' fill='%23333'/%3E%3C/svg%3E");
    }

    ::-webkit-scrollbar-button:hover:vertical:increment {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 8L2 5h6L5 8z' fill='%23333'/%3E%3C/svg%3E");
    }
}

/* 竖屏设备上的导航样式 */
@media (max-width: 991px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        flex: 1 0 auto;
        justify-content: space-between;
    }
    
    .navbar-menu {
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        z-index: 1000;
        background-color: white;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .menu-group {
        width: 100%;
    }

    .menu-group .menu-group-title {
        padding: 8px 12px;
        border-radius: 4px;
        font-weight: 500;
        border-bottom: 1px solid #e0e0e0;
        cursor: pointer;
    }

    .menu-group .menu-group-content {
        padding: 10px 0;
        /* 移除最大高度限制，让内容在同一滚动区域内 */
    }

    .menu-group-content .navbar-item {
        margin: 5px 0;
        width: 100%;
    }

    .menu-group-content .navbar-item a {
        display: block;
        width: 100%;
        padding: 8px 12px;
    }
}

.navbar-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

.navbar-menu {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-menu.active {
    display: flex;
}

@media (min-width: 992px) {
    .navbar-toggle {
        display: none;
    }
    
    .navbar-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        width: auto;
        flex: 1;
        min-width: 0;
    }
    
    .navbar-start {
        flex-direction: row;
        flex-wrap: nowrap;
        width: auto;
        gap: 10px;
        padding: 5px 0;
    }
    
    .navbar-end {
        flex-direction: row;
        width: auto;
        white-space: nowrap;
    }
    
    .navbar-item {
        margin: 0 5px;
        width: auto;
        white-space: nowrap;
    }
    
    .navbar-item a {
        display: inline-block;
        width: auto;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .search-form {
        width: auto;
        margin: 0;
    }
    
    .search-form input {
        width: 200px;
    }
}

.navbar-start, .navbar-end {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar-item {
    margin: 0 5px;
}

.navbar-item a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-item a:hover {
    background-color: #f0f0f0;
}

.menu-section-title {
    font-weight: 600;
    color: #333;
    padding: 8px 12px;
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button.is-primary {
    background-color: #007bff;
    color: white;
}

.button.is-primary:hover {
    background-color: #0069d9;
}

.button.is-light {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.button.is-light:hover {
    background-color: #e9ecef;
}

.button.is-info {
    background-color: #17a2b8;
    color: white;
}

.button.is-info:hover {
    background-color: #138496;
}

.button.is-static {
    background-color: #e9ecef;
    color: #495057;
    cursor: default;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* 搜索表单 */
.search-form {
    display: flex;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.search-form:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.search-form input {
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
}

.search-form input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.search-form button {
    border-radius: 0 4px 4px 0;
    border: 1px solid #17a2b8;
    transition: all 0.3s ease;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    font-size: 14px;
}

.search-form button:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* 英雄区域 */
.hero {
    background-color: #f8f9fa;
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.hero-body {
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.hero .button {
    margin: 5px;
}

/* 内容区域 */
.content-wrapper {
    min-height: 80vh;
    padding: 30px 0;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6c757d;
    margin: 0 5px;
}

/* 文章卡片 */
.article-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 可点击卡片样式 */
.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.article-card-link:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-card-link .title {
    color: #333;
    transition: color 0.3s ease;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.article-card-link:hover .title {
    color: #007bff;
}

.article-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.article-card h3 a {
    color: #333;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #007bff;
}

.article-card .article-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.article-card .article-excerpt {
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-card .article-tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

@media (max-width: 992px) {
    .sidebar {
        position: static;
        height: auto;
        overflow-y: visible;
        margin-top: 30px;
    }
}

.sidebar-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.sidebar-box ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.sidebar-box ul li a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sidebar-box ul li a:hover {
    color: #007bff;
    padding-left: 5px;
}

/* 目录样式 */
.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 8px;
    padding-left: 0;
    position: relative;
}

.toc-list li a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
}

.toc-list li a:hover {
    color: #007bff;
    padding-left: 5px;
}

/* 目录嵌套样式 */
.toc-list li ul {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.toc-list li ul li {
    margin-bottom: 6px;
}

.toc-list li ul li a {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 分类面板样式 */
.panel-block {
    display: block;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.panel-block:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.panel-icon {
    margin-right: 10px;
    color: #6c757d;
}

/* 内容页面 */
.article-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.article-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.article-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #495057;
}

.article-content ul, .article-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 5px;
    color: #495057;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Markdown 代码样式 */
.article-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

/* Markdown 引用样式 */
.article-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin: 15px 0;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 0 4px 4px 0;
}

/* Markdown 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: #fff;
}

.article-content th, .article-content td {
    padding: 12px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.article-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.article-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Markdown 链接样式 */
.article-content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Markdown 水平线样式 */
.article-content hr {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

/* Markdown 删除线样式 */
.article-content del {
    text-decoration: line-through;
    color: #6c757d;
}

/* Markdown 任务列表样式 */
.article-content input[type="checkbox"] {
    margin-right: 8px;
}

/* SimpleMDE 编辑器样式调整 */
.editor-toolbar {
    border: 1px solid #ced4da;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #f8f9fa;
}

.CodeMirror {
    border: 1px solid #ced4da;
    border-radius: 0 0 4px 4px;
    font-family: 'Courier New', Courier, monospace;
}

.article-content .toc {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.article-content .toc h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.article-content .toc ul {
    list-style: none;
    padding-left: 15px;
}

.article-content .toc ul li {
    margin-bottom: 8px;
}

.article-content .toc ul li a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content .toc ul li a:hover {
    color: #007bff;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination button, .pagination a {
    color: #007bff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #fff;
    cursor: pointer;
}

.pagination button:hover, .pagination a:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.pagination .active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 页脚 */
.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
    color: #6c757d;
}

/* BGJQWIKI 页脚 */
.bgjq-wiki-footer {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-section {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.info-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.info-section p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-actions .button {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.bgjq-wiki-image {
    width: 150px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    background-color: white;
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: center;
}

.bgjq-wiki-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .bgjq-wiki-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-info {
        width: 100%;
        min-width: unset;
    }
    
    .bgjq-wiki-image {
        width: 120px;
        padding: 6px;
    }
    
    .info-section {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .footer-info {
        grid-template-columns: 1fr;
    }
    
    .bgjq-wiki-image {
        width: 100px;
        padding: 4px;
    }
    
    .info-section {
        padding: 10px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .button {
        width: 100%;
    }
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tag.is-primary {
    background-color: #007bff;
    color: white;
}

.tag.is-light {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

/* 编辑表单 */
.edit-form {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.edit-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 登录/注册表单 */
.auth-form {
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.auth-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}

/* 管理面板样式 */
.admin-panel {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-panel h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 通知样式 */
.notification {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.notification.is-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.notification.is-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.is-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,123,255,0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误信息 */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 成功信息 */
.success-message {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 侧边栏菜单 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.sidebar-menu.active {
    transform: translateX(0);
}

.sidebar-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.sidebar-menu-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.sidebar-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
}

.sidebar-menu-close:hover {
    color: #333;
}

.sidebar-menu-content {
    padding: 15px;
}

.sidebar-menu-content .sidebar-box {
    box-shadow: none;
    margin-bottom: 15px;
    border: none;
    padding: 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }
    
    .navbar-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
    }
    
    .navbar-start, .navbar-end {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-item {
        margin: 5px 0;
        width: 100%;
    }
    
    .navbar-item a {
        display: block;
        width: 100%;
    }
    
    .search-form {
        width: 100%;
        margin: 10px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .content-wrapper {
        padding: 20px 0;
    }
    
    .article-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .article-content h1 {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .hero p {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .hero .button {
        display: block;
        width: 80%;
        margin: 10px auto;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hero-body > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* 分享按钮移动端适配 */
    .buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .buttons .button {
        flex: 1 1 calc(50% - 5px);
        font-size: 12px;
        padding: 8px;
    }
    
    /* 相关文章移动端适配 */
    .columns.is-multiline .column {
        flex: 1 1 100%;
    }
    
    /* 面包屑导航移动端适配 */
    .breadcrumb {
        font-size: 0.8rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 搜索表单移动端适配 */
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        border-right: 1px solid #ced4da;
        border-radius: 4px;
        margin-bottom: 5px;
    }
    
    .search-form button {
        border-radius: 4px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 树形目录样式 */
.tree-directory-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tree-directory-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tree-directory-title {
    margin: 0;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    user-select: none;
}

.tree-directory-title:hover {
    background-color: #f8f9fa;
}

.tree-directory-title .toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.tree-directory-title.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.tree-directory-content {
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 15px 20px;
}

.tree-directory-content.collapsed {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.tree-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tree-category {
    margin-bottom: 5px;
}

.tree-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    user-select: none;
}

.tree-category-header:hover {
    background-color: #f0f0f0;
}

.tree-toggle-icon {
    width: 16px;
    text-align: center;
    color: #6c757d;
    font-size: 0.8rem;
}

.tree-folder-icon {
    color: #ffc107;
    width: 18px;
    text-align: center;
}

.tree-category-name {
    font-weight: 500;
    color: #333;
}

.tree-count {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 5px;
}

.tree-articles {
    list-style: none;
    padding-left: 32px;
    margin: 5px 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.tree-articles.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.tree-article {
    margin: 3px 0;
}

.tree-article a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tree-article a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    padding-left: 15px;
}

.tree-file-icon {
    color: #6c757d;
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.tree-article a:hover .tree-file-icon {
    color: #007bff;
}

/* 分隔区域样式 */
.directory-divider {
    height: 30px;
    margin: 10px 0;
    border-bottom: 2px dashed #e0e0e0;
    position: relative;
}

.directory-divider::after {
    content: '条目列表';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.85rem;
}

/* 侧边栏树形目录样式 */
.sidebar-tree-directory h3 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    user-select: none;
}

.sidebar-tree-directory h3:hover {
    color: #007bff;
}

.sidebar-tree-directory h3 svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#sidebarTreeContent {
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#sidebarTreeContent.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
}

.sidebar-tree-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-tree-category {
    margin-bottom: 5px;
}

.sidebar-tree-category-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.3s ease;
    user-select: none;
}

.sidebar-tree-category-header:hover {
    color: #007bff;
}

.sidebar-tree-category-header svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.sidebar-tree-toggle {
    width: 18px;
    text-align: center;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-tree-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sidebar-tree-folder {
    color: #ffc107;
    width: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-tree-folder svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-tree-articles {
    list-style: none;
    padding-left: 26px;
    margin: 3px 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 300px;
    opacity: 1;
}

.sidebar-tree-articles.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.sidebar-tree-articles li {
    margin: 2px 0;
}

.sidebar-tree-articles li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-tree-articles li a:hover {
    color: #007bff;
    padding-left: 5px;
}

.sidebar-tree-articles li a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* 树形目录响应式适配 */
@media (max-width: 768px) {
    .tree-directory-content {
        max-height: 400px;
    }

    .tree-directory-title {
        padding: 12px 15px;
        font-size: 1.1rem;
    }

    .tree-directory-content {
        padding: 10px 15px;
    }

    .tree-articles {
        padding-left: 25px;
    }

    .directory-divider {
        height: 25px;
        margin: 8px 0;
    }

    .directory-divider::after {
        font-size: 0.75rem;
        padding: 0 10px;
    }

    #sidebarTreeContent {
        max-height: 300px;
    }
}

