/* 文档容器样式 */
.document-container {
    display: flex;
    margin: 20px auto;
    min-height: calc(100vh - 180px);
    gap: 20px;
    padding: 0 5px;
}

/* 左侧大纲样式 */
.document-outline {
    width: 20%;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 100px);
}

.outline-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.outline-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #0063BF;
}

.outline-search-input {
    width: 80%;
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.outline-search-input:focus {
    border-color: #A292FB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(162, 146, 251, 0.1);
}

.outline-nav {
    padding: 15px 0;
    overflow-y: auto;
    max-height: calc(100% - 100px);
    text-align: left;
}

.outline-level-1 {
    list-style: none;
    padding: 0;
    margin: 0;
    /* font-weight: bold; */
}

.outline-level-1>li {
    margin-bottom: 5px;
}

.outline-level-2 {
    list-style: none;
    padding: 0 0 0 0px;
    margin: 5px 0 10px 0px;
}
.outline-level-2 li a::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 5px;
    height: 5px;
    margin-bottom: 3px;
    background-color: rgb(228, 155, 142);
    /* padding-left: 3px; */
    transform: rotate(45deg);
    border-radius: 1px;
    margin-right: 10px;
    margin-left: -15px;
}
.outline-link {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.level-2-gap{
    margin-left: 18px;
}

.outline-link:hover {
    background-color: #f8f7ff;
    color: #A292FB;
    /* font-weight: bold; */
}

.outline-link.active {
    background-color: #f0edff;
    color: #A292FB;
    border-left-color: #A292FB;
    font-weight: 500;
    /* font-weight: bold; */
}

/* 右侧内容区样式 */
.document-content {
    flex-grow: 1;
    padding: 10px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    text-align: left;
}

.content-section .fig-title{
    text-align: center;
    font-size: 0.8em;
    margin-bottom: 20px;
}
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}
.content-subsection img{
    width: 92%;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    /* 确保图片不会超出容器 */
    height: auto;
    /* 保持图片比例 */
    border-radius: 8px;
    /* 可选：添加圆角 */
    /* margin-bottom: 20px; */
    /* 图片底部间距 */

}
.content-section:first-child {
    display: block;
}
.bold-span{
    font-weight: bold;
}

.content-section h2 {
    color: #0063BF;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.content-section h3,.content-section h4 {
    color: #333;
    margin: 30px 0 15px 0;
}

.content-section p {
    margin: 0 0 18px 0;
    color: #555;
    font-size: 1.05em;
}
.content-section li {
    margin: 0 0 18px 0;
    color: #555;
    font-size: 1em;
}
/* 特性卡片样式 */
.feature-card {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #A292FB;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #A292FB;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content h4 {
    margin: 0 0 5px 0;
    color: #333;
}

/* 图片容器样式 */
.content-image {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.content-image:hover img {
    transform: scale(1.02);
}

.content-image-caption {
    padding: 12px 15px;
    background: #f8f9fa;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .document-container {
        flex-direction: column;
        gap: 20px;
    }

    .document-outline {
        width: 100%;
        max-height: 300px;
        position: relative;
    }

    .document-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    body {
        width: 100%;
        padding: 0 10px;
    }

    .outline-level-2 {
        padding-left: 15px;
    }
}

.abbr-container {
    /* height: 300px; */
    max-width: 400px;
    line-height: 1.5em;
    /* margin: 0 auto; */
    /* padding: 20px; */
}
.score-table{
    max-width: 98%;
    margin: 0 auto;
    line-height: 1.5em;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #333;
}

th,
td {
    padding: 0px 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f5f5f5;
}

.record-section {
    /* background-color: #f9f9fb;
    border: 1px solid #ddd; */
    /* padding: 20px; */
    border-radius: 12px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    font-family: 'Segoe UI', sans-serif;
    /* max-width: 800px; */
    /* margin: 0 auto; */
    /* padding-left: 10px; */
}

.record-section ul {
    list-style: none;
    padding-left: 0;
}

.record-section li {
    background-color: #ffffff;
    border-left: 4px solid #A292FB;
    margin: 12px 0;
    padding: 8px 18px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s;
}

.record-section li:hover {
    background-color: #f0f0ff;
}


.content-section .iterm{
    padding-left: 15px;
}
.content-section .iterm::before{
    /* content: "🔹";
    margin-right: 8px;
    color: #7b61ff;  */
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 5px;
    height: 5px;
    margin-bottom: 3px;
    background-color: #A292FB;
    /* padding-left: 3px; */
    transform: rotate(45deg);
    border-radius: 1px;
    margin-right: 10px;
    margin-left: -15px;
}

.clickToPage{
    color: #0063BF;
    padding: 0 20px;
    cursor: pointer;
    text-decoration: underline;
}
#effectscore td:nth-child(2),#effectscore th:nth-child(2){
    text-align: center;
    width: 10%;
}
#effectscore td:nth-child(1) {
    width: 20%;
}
#effectscore td:nth-child(3) {
    width: 70%;
}
.example-span{
    display: inline-block;
    width: 30px;
    color: #A292FB;
}
.term-span{
    display: inline-block;
    width: 30px;
    color: #A292FB;
    text-align: right;
    font-weight: bold;
    font-size: 1.2em;
}