﻿/* 大纲树样式 - 三层结构 */
.outline-tree-container {
    padding: 0px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding-left: 10px;
    padding-bottom: 10px;
    max-width:900px;
    width:700px;

}

/* 第一层：章 */
.chapter-item {
    font-weight: bold;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #808080;
    margin-top: 2px;
    color: #666;
    position: relative;
}

/* 第二层：节 - 添加小箭头 */
.section-item {
    font-weight: 600;
    font-size: 14px;
    padding: 6px 0 6px 30px;
    margin: 4px 0;
      color: #666;
    border-bottom: 1px dotted #808080;
    position: relative;

}

/* 第二层小箭头样式 */
.section-item::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #3498db; /* 蓝色箭头 */
}

/* 第三层：小节 - 保持小圆点 */
.subsection-item {
    font-size: 13px;
    padding: 5px 0 5px 50px;
    margin: 3px 0;
    color: #666;
    position: relative;
    border-bottom: 1px dotted #808080;
}

/* 第三层小圆点样式 */
    .subsection-item::before {
        content: "";
        position: absolute;
        left: 38px;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        background-color: #3498db; /* 蓝色圆点 */
        border-radius: 50%;
        transition: background-color 0.2s; /* 添加过渡效果 */
    }

/* 悬停效果 */
.section-item:hover, .subsection-item:hover {
    background-color: #f0f7ff;
    transition: background-color 0.2s;
}

/* 章节图标悬停效果 */
.section-item:hover::before {
    border-left-color: #e74c3c; /* 悬停时箭头变红色 */
}
/* 悬停时小圆点变红色 */
.subsection-item:hover::before {
    background-color: #e74c3c; /* 悬停时变为红色 */
}
