/* 关于页面样式 */

.taoswin {
    height: calc(100% - 30px) !important;
    overflow: hidden;
}

div#page-primary {
    padding: 0px;
    overflow: hidden;
}

#content {
    padding: 0px 0px 0px 0px;
    height: 100%;
}

.about-right {
    padding: 20px 0px 0px 20px;
}

/* 三栏布局 */
.about-container {
    display: flex;
    gap: 1px;
    height: calc(100vh - 0px);
}

/* 左侧一级分类 */
.about-left {
    flex: 0 0 200px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    font-weight: bold;
    height: 100%;
}

/* 中间文章目录 */
.about-middle {
    flex: 0 0 200px;
    background: #f9f9f9;
    border-radius: 0px;
    padding: 20px 20px 20px 20px;
    overflow-y: auto;
    display: none;
    height: 100%;
    border-left: 1px #dbdbdb solid;
}

/* 中间栏显示状态 */
.about-middle.show {
    display: block;
}

/* 右侧文章内容 */
.about-right {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px 0px 0px 20px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

/* 两栏布局（当没有中间栏时） */
.about-container.two-column .about-right {
    flex: 1;
}

.about-container.two-column {
    gap: 20px;
}

/* 隐藏右侧内容中的h1标签 */
.about-right h1 {
    display: none;
}

.about-left h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

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

.category-item {
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #e0e0e0;
}

.category-item.active {
    background: #007bff;
    color: white;
}

/* 中间文章目录 */
.about-middle {
    flex: 0 0 200px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
}

.about-middle h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

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

.subcategory-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.subcategory-item:hover {
    background: #e0e0e0;
}

.subcategory-item.active {
    background: #28a745;
    color: white;
}

/* 右侧文章内容 */
.about-right {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.about-post-thumbnail {
    margin-bottom: 20px;
}

.about-post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-post-content {
    line-height: 1.6;
    color: #333;
}

.about-post-content p {
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        height: auto;
    }
    
    .about-left,
    .about-middle {
        flex: 0 0 auto;
        max-height: 200px;
    }
    
    .about-right {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    div#page-primary {
        padding: 10px;
    }
    
    .about-container {
        gap: 10px;
    }
    
    .about-left,
    .about-middle {
        flex: 0 0 150px;
        padding: 15px;
    }
    
    .about-right {
        padding: 15px;
    }
}