body {
    font-family: 'Microsoft YaHei', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}
.doc-navigation {
    display: flex;
    justify-content: space-between;
     margin-top: 10px;
}
.nav-button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}
.nav-button:hover {
    background-color: #45a049;
}
.prev-button {
    margin-right: auto;
}
.next-button {
    margin-left: auto;
}
.header {
    text-align: center;
    margin-bottom: 30px;
}
.version {
    color: #666;
    font-size: 0.9em;
}
h1 {
    color: #2b7ac1;
    border-bottom: 2px solid #2b7ac1;
    padding-bottom: 10px;
}
h2 {
    color: #3a8fc5;
    margin-top: 30px;
    border-left: 4px solid #3a8fc5;
    padding-left: 10px;
}
h3 {
    color: #4a9fcf;
    margin-top: 20px;
}
.chat-container {
    background-color: #e5e5e5;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
    white-space: normal;
    text-overflow: ellipsis;
}
.message-container {
    margin-bottom: 20px;
    position: relative;
    min-height: 60px;
}
.user-message {
    float: right;
    width: 100%;
    margin-right: 10px;
    text-align: right;
}
.bot-message {
    float: left;
    width: 100%;
    margin-left: 10px;
    text-align: left;
}
.message-content {
    position: relative;
    margin: 0 50px;
}
.username {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}
.chat-bubble {
    padding: 10px 15px;
    border-radius: 10px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    max-width: 100%;
    display: inline-block;
}
.user-bubble {
    background-color: #a0d7ff;
    border-radius: 10px 10px 0 10px;
    word-break: break-all;
    overflow-wrap: break-word;
    overflow: hidden;
    text-align: left;
}
.bot-bubble {
    background-color: white;
    border-radius: 10px 10px 10px 0;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}
.user-avatar {
    background-color: #a0d7ff;
    right: 0;
}
.bot-avatar {
    background-color: white;
    border: 1px solid #ddd;
    left: 0;
}
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.command {
    color: #2b7ac1;
    font-weight: bold;
}
.note {
    background-color: #fff8e1;
    padding: 10px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
}
.example {
    background-color: #f5f5f5;
    padding: 10px;
    border-left: 4px solid #9e9e9e;
    margin: 15px 0;
}
.clear {
    clear: both;
}
#sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 200px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
}
#sidebar h3 {
    margin-top: 0;
    color: #2b7ac1;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.1em;
}
#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#sidebar li {
    margin-bottom: 8px;
}
#sidebar a {
    color: #3a8fc5;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
    font-size: 0.9em;
}
#sidebar a:hover {
    color: #2b7ac1;
    text-decoration: underline;
}
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.3em;
    }
    h3 {
        font-size: 1.1em;
    }
    .user-message, .bot-message {
        width: 97%;
        margin-left: 8px;
        margin-right: 8px;
    }
    .message-content {
        margin: 0 45px;
    }
    .avatar {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
    #sidebar {
        display: none;
    }
}
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    h1 {
        font-size: 1.3em;
    }
    .user-message, .bot-message {
        width: 97%;
        margin-left: 5px;
        margin-right: 5px;
    }
    .message-content {
        margin: 0 40px;
    }
    .avatar {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }

/* 图片自适应样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 响应式图片容器 */
.image-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

/* 大屏幕下的图片尺寸 */
@media (min-width: 992px) {
    .image-container {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 中等屏幕下的图片尺寸 */
@media (max-width: 991px) and (min-width: 768px) {
    .image-container {
        max-width: 90%;
    }
}

/* 小屏幕下的图片尺寸 */
@media (max-width: 767px) {
    .image-container {
        max-width: 95%;
    }
}
}