.right-container {
    display: flex;
    flex: 1;
    height: 100vh;
    overflow: hidden;
}
/* 正文区（核心修复：滚动/锚点/Loading） */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #fff;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    scroll-behavior: smooth;
    /* 修复滚动条 */
    scrollbar-width: thin;
    scrollbar-color: #ddd #fff;
}
.content-area::-webkit-scrollbar {
    width: 8px;
}
.content-area::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 4px;
}
.content-area::-webkit-scrollbar-track {
    background-color: #fff;
}
/* 锚点导航 */
.title-nav {
    width: 250px;
    background-color: #fff;
    padding: 30px 0;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
    /* 修复导航滚动 */
    scrollbar-width: thin;
    scrollbar-color: #ddd #fff;
}
.title-nav::-webkit-scrollbar {
    width: 6px;
}
.title-nav::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}
.title-group {
    display: none;
    flex-direction: column;
    padding: 0 10px;
}
.title-group.active {
    display: flex;
}
.nav-group-title {
    padding: 10px 15px;
    font-size: 20px;
    color: #999;
    font-weight: 600;
    margin-bottom: 5px;
}
.title-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    border-radius: 6px;
    margin: 0 5px 8px;
    font-weight: 500;
    user-select: none;
    text-align: left;
}
.title-item.active {
      color: #1890ff;
}
.title-item:hover {
    color: #1890ff;
    transform: translateY(-1px);
}
/* 标题样式 */
.content-module .module-title {
    font-size: 28px;
    margin: 20px 0 20px;
    color: #212529;
    padding-bottom: 10px;
    border-bottom: 2px solid #212529;
}
.content-module .sub-title {
  font-size: 20px;
    margin: 30px 0 15px;
    color: #FFFFFF;
    padding: 10px;
    background-color: #406E94;
    border-radius: 6px;
}
.content-module .code-title {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #FFFFFF;
    padding: 10px;
    background-color: #406E94;
    border-radius: 6px;

}
.content-module .code-sub-title {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #495057;
    padding-left: 10px;
    border-left: 2px solid #ced4da;
    
}
.content-module .code-file-title {
    font-size: 18px;
    /* margin: 20px 0 10px; */
    color: #495057;
    padding-left: 10px;
    float: right;
    color: #1890ff;
    cursor: pointer;
}
.content-module .code-sub-sec-title {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #495057;
    padding-left: 10px;
}
/* 文本/表格/代码块 */
.content-module .text-content {

    font-size: 15px;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
}

.content-module .text-content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.content-module .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px;
    font-size: 14px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.content-module .data-table th {
    background-color: #C4D8E8;
    color: #000000;
    font-weight: 500;
    padding: 12px 15px;
    text-align: left;
}
.content-module .data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}
.content-module .data-table tr:nth-child(even) {
    background-color: #f8f9fa;
}
.content-module .data-table tr:hover {
    background-color: #e9ecef;
}
.content-module .code-box {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0 25px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}
/* Loading样式（核心修复：居中/适配） */
.loading-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 400px;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
.loading-text {
    color: #495057;
    font-size: 14px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 分片内容样式 */
.content-section {
    margin-bottom: 40px;
    scroll-margin-top: 20px; /* 修复锚点滚动偏移 */
}


/* 右侧导航区域 */
/* .title-nav {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 200px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: white;
  border-left: 1px solid #eee;
  padding: 10px;
} */