* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #333;
    height: fit-content;
}


.container {
    display: flex;
    overflow: hidden;
    height: 100vh;
}

.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    background-color: white;
    /* 改为白色背景 */
    color: #333;
    /* 文字颜色改为深色 */
    padding: 20px 0 0 20px;
    overflow-y: visible;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    /* 添加阴影增加层次感 */
}

.sidebar h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    /* 调整分割线颜色 */
    color: #2c3e50;
    /* 标题颜色 */
}

.tree {

    flex: 1;
    overflow-y: auto;
    list-style-type: none;
    min-height: 0
}

ul {
    list-style-type: none;
}

.tree li {
    margin: 5px 0;
}

.tree a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.tree a:hover {
    background-color: #f0f0f0;
    /* 悬停背景色 */
}

.tree summary {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    color: #333;

}

.tree summary:hover {
    background-color: #f0f0f0;
    /* 悬停背景色 */
}

/* 去掉details元素的默认三角图标 */
.tree details summary::-webkit-details-marker {
    display: none;
}

/* 可展开链接的样式 */
.expandable-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    color: #333;
}

.expandable-link:hover {
    background-color: #f0f0f0;
}

.link-text {
    flex: 1;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    margin-left: 8px;
}

.link-text:hover {
    color: #007bff;
}

.expand-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s, color 0.3s;
    cursor: pointer;
}

.expandable-link:hover .expand-icon {
    color: #007bff;
}

/* 子菜单样式 */
.submenu {
    display: none;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px dashed #e0e0e0;
    list-style-type: none;
}

.submenu.show {
    display: block;
}

/* 当子菜单展开时，旋转箭头 */
.expandable-link.expanded .expand-icon {
    transform: rotate(90deg);
}

.tree details ul {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px dashed #e0e0e0;
    /* 调整分割线颜色 */
}

.main-content {
    display: flex;
    flex: 1;
    border-left: solid 2px #dcdcdc;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 40px);
    background-color: white;
    border-radius: 5px;

}

/* 新增样式 */
.active {
    background-color: #e0e0e0 !important;
    font-weight: bold;
}

.content-page {
    padding: 36px;
    height: fit-content;
}

.content-page h1 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 42px;
}

.content-page h2 {
    margin: 40px 0 20px;
    font-size: 36px;
    color: #124378;
}

.content-page h3 {
    margin: 32px 0 16px;
    font-size: 20px;
    color: #1e2329;

}

.content-page h4 {
    margin: 16px 0 6px;
    font-size: 16px;
    color: #1e2329;

}

.content-page p {
    line-height: 2;
}

.content-page img {
    border-radius: 8px;
    margin: 16px 0;

}

.content-page video {
    border-radius: 8px;
    margin-top: 16px;
}

.content-page ul {
    line-height: 2;
}

.feature {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.feature:last-child {
    border-bottom: none;
}

.code {
    background-color: #62697c;
    border-radius: 8px;
    margin: 16px 0;
    color: white;
    width: fit-content;
    margin-right: 32px;
    min-width: 600px;
    
}


.code-header {
    padding: 8px 15px;

    background-color: #434a61;
    color: white;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
}


.code-container {
    margin: 0 0 20px;
    overflow: hidden;
    white-space: pre-line;
    line-height: 1.5;
    padding: 20px;

}


.json-container {
    margin: 0 0 20px;
    overflow: hidden;
    white-space: pre;
    line-height: 1.5;
    padding: 20px;

}

.image-container {
    margin: 16px 0;
    padding: 16px;
    width: fit-content;
    background-color: #EEE;

}

.image-container img {
    border-radius: 8px;
}

.copy-btn {
    background: none;
    border: none;
    color: #bbbbbb;
    cursor: pointer;
    font-size: 0.9em;
}

.copy-btn:hover {
    color: #f7f7f7;
}

pre {
    --ds-md-code-banner-background-color: var(--dsw-alias-markdown-code-block-banner);
    --ds-md-code-block-border-radius: 12px;
    --ds-md-code-block-font-size: calc(var(--ds-md-zoom) * var(--ds-font-size-xsp));
    color: var(--dsw-alias-label-primary);
    display: block;
    font: var(--dsw-font-markdown-code-block);
    font-family: Menlo,
        Monaco,
        "Cascadia Mono",
        Consolas,
        "Ubuntu Mono",
        "DejaVu Sans Mono",
        "Liberation Mono",
        "JetBrains Mono",
        "Fira Code",
        Cousine,
        "Roboto Mono",
        "Courier New",
        Courier,
        sans-serif,
        system-ui;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 16px;
    margin: 0 !important;
    unicode-bidi: isolate;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    /* 隐藏超出圆角部分的内容 */
}

th,
td {

    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #434a61;
    color: white;
    font-weight: bold;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #4665c920;
}

.highlight {
    background-color: #434a6110;
    font-weight: bold;
}

.communication-type {
    font-weight: bold;
    color: #2c3e50;
}

.analogy {
    font-style: italic;
    color: #7f8c8d;
}

.summary {
    background-color: #e8f4fc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.summary h2 {
    color: #2980b9;
    margin-top: 0;
}

.key-point {
    margin-bottom: 15px;
}

.key-point h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }

    th,
    td {
        padding: 10px;
    }
}