/* 评论样式
---------------------------------------------------*/
/* 评论表单容器优化 */
.commentform {
    background: var(--ifm-background-surface-color);
    border: 1px solid var(--ifm-color-emphasis-200);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.commentform:focus-within {
    border-color: var(--ifm-color-primary);
    box-shadow: 0 4px 16px rgba(53, 120, 229, 0.15);
}

#comments {
    margin-top: 60px;
}

/* 评论输入框优化 */
.log_comment {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--ifm-color-emphasis-300);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--ifm-background-color);
    color: var(--ifm-color-content);
}

.log_comment:focus {
    outline: none;
    border-color: var(--ifm-color-primary);
    box-shadow: 0 0 0 2px rgba(53, 120, 229, 0.2);
}

.comment-post #comment {
    width: 100%;
    border: 1px solid var(--ifm-color-emphasis-300);
    font-size: 14px;
    border-radius: 8px;
    height: 120px;
    resize: vertical;
    padding: 16px;
    font-family: var(--ifm-font-family-base);
    line-height: 1.6;
    background: var(--ifm-background-surface-color, #ffffff);
    color: var(--ifm-color-content);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comment-post #comment:focus {
    outline: none;
    border-color: var(--ifm-color-primary);
    box-shadow: 0 0 0 3px rgba(53, 120, 229, 0.1);
    background: var(--ifm-background-surface-color, #ffffff);
}

.comment-post #comment::placeholder {
    color: var(--ifm-color-emphasis-600);
    opacity: 0.8;
}

/* 评论信息输入框布局优化 */
.comment-info {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.comment-info .com_control {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--ifm-color-emphasis-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--ifm-background-color);
    color: var(--ifm-color-content);
}

.comment-info .com_control:focus {
    outline: none;
    border-color: var(--ifm-color-primary);
    box-shadow: 0 0 0 2px rgba(53, 120, 229, 0.2);
}

.com_control {
    flex: 1;
    display: block;
    border-radius: 8px;
    border: 2px solid var(--ifm-color-emphasis-300);
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-family: var(--ifm-font-family-base);
    background: var(--ifm-background-surface-color, #ffffff);
    color: var(--ifm-color-content);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.com_control:focus {
    outline: none;
    border-color: var(--ifm-color-primary);
    box-shadow: 0 0 0 3px rgba(53, 120, 229, 0.1);
}

.comment-name {
    border-bottom-left-radius: 8px !important;
}

.comment-mail {
    border-bottom-right-radius: 8px !important;
}

/* 输入框占位符样式 */
.com_control::placeholder {
    color: var(--ifm-color-emphasis-600);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.com_control:focus::placeholder {
    opacity: 0.5;
}

@media (min-width: 578px) {
    .com_control::placeholder {
        text-align: left;
    }
}

/* 提交按钮区域优化 */
.comment-submit-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ifm-color-emphasis-200);
}

.comment-post #comment_submit {
    background: var(--ifm-color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(53, 120, 229, 0.2);
    margin: 0;
    float: none;
}

.comment-post #comment_submit:hover {
    background: var(--ifm-color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(53, 120, 229, 0.3);
}

.comment-post #comment_submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(53, 120, 229, 0.2);
}

/* 回复状态指示 */
.reply-indicator {
    color: var(--ifm-color-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: var(--ifm-color-primary-lightest);
    border-radius: 4px;
    display: none;
}

.reply-indicator.active {
    display: inline-block;
}

/* 取消回复按钮 */
.cancel-reply {
    color: var(--ifm-color-emphasis-600);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: none;
}

.cancel-reply:hover {
    color: var(--ifm-color-danger);
    /* 移除背景色变化 */
}

.cancel-reply.active {
    display: inline-block;
}

/* 评论头部样式 */
.comment-header {
    margin: 40px 0 30px 0;
    padding: 16px 0;
    border-bottom: 2px solid var(--ifm-color-emphasis-200);
}

.comment-header b {
    font-size: 18px;
    font-weight: 600;
    color: var(--ifm-color-content);
}

/* 评论项样式优化 */
.comment {
    margin: 20px 0;
    padding: 20px 0;
    font-size: 14px;
    overflow: hidden;
    color: var(--ifm-color-content);
    border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

.comment:last-child {
    border-bottom: none;
}

.comment .avatar {
    float: left;
    margin: 5px 12px 5px 0;
}

.comment .avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    border: 2px solid var(--ifm-color-emphasis-200);
}

.comment .comment-infos {
    background: var(--ifm-background-surface-color, #ffffff);
    padding: 16px 20px;
    border-radius: 12px;
   /*  margin-left: 72px;*/
    color: var(--ifm-color-content);
    border: 1px solid var(--ifm-color-emphasis-200);
    position: relative;
}

/* 评论气泡箭头 */
.arrow {
    position: absolute;
    margin-top: 8px;
    margin-left: -21px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: var(--ifm-color-emphasis-200);
}

.arrow::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 1px;
    width: 0;
    height: 0;
    border: 9px solid transparent;
    border-right-color: var(--ifm-background-surface-color, #ffffff);
}

.comment .comment-content {
    margin: 12px 0 8px 0;
    word-break: break-word;
    color: var(--ifm-color-content);
    line-height: 1.6;
}

.comment .comment-time {
    color: var(--ifm-color-emphasis-600);
    font-size: 12px;
    margin-left: 8px;
}

.comment .comment-reply {
    float: right;
    font-size: 12px;
    cursor: pointer;
    margin-top: -8px;
    /* 移除背景色变化 */
}

.comment .comment-reply:hover {
    color: var(--ifm-color-primary);
    text-decoration: none;
    /* 移除背景色变化 */
}

/* 子评论样式 */
.comment-children {
    margin: 16px 0 16px 40px;
    clear: both;
    border: none;
    padding: 0;
}

.comment-children .comment-infos {
    background: var(--ifm-color-emphasis-100);
    border-color: var(--ifm-color-emphasis-300);
}

.comment-children .arrow::after {
    border-right-color: var(--ifm-color-emphasis-100);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .commentform {
        padding: 16px;
        margin: 16px 0;
    }
    
    .comment-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-info .com_control {
        min-width: auto;
    }
    
    .comment-submit-area {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .comment-post #comment_submit {
        width: 100%;
        padding: 14px;
    }
    
    .comment .comment-infos {
        margin-left: 60px;
        padding: 12px 16px;
    }
    
    .comment .avatar img {
        width: 40px;
        height: 40px;
    }
    
    .comment-children {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .log_comment {
        min-height: 100px;
        padding: 12px;
    }
    
    .commentform {
        padding: 12px;
    }
    
    .comment .comment-infos {
        margin-left: 0;
        margin-top: 12px;
    }
    
    .comment .avatar {
        float: none;
        text-align: center;
        margin: 0 0 8px 0;
    }
    
    .arrow {
        display: none;
    }
}

.form-controls {
    display: block;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--borderColor);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-in-out
}

.comment-post {
    clear: both
}

.comment-post p {
    margin: 5px 0px
}

.comment-post small {
    font-size: 12px;
    color: #999
}

.comment-post input {
    padding: 7px 40px;
    font-size: small;
    color: #848797;
    width: 50%
}

.comment-post .input {
    width: 100px
}

.comment span {
    color: var(--fontColor);
}

.comment .comment-infos-unGravatar {
    padding: 5px
}

.com-bottom {
    margin-bottom: 80px;
}

.comment .comment-post {
    width: 90%;
    margin: 15px auto
}

/* 验证码模态框样式 */
#myModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#myModal .modal-dialog {
    position: relative;
    width: auto;
    margin: 10% auto;
    max-width: 500px;
}

#myModal .modal-content {
    background-color: var(--ifm-background-surface-color, #ffffff);
    border: 1px solid var(--ifm-color-emphasis-200);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
}

#myModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ifm-color-emphasis-200);
    background-color: var(--ifm-background-surface-color, #ffffff);
    border-radius: 12px 12px 0 0;
}

#myModal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ifm-color-content);
    margin: 0;
}

#myModal .close {
    color: var(--ifm-color-emphasis-600);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#myModal .close:hover {
    color: var(--ifm-color-danger);
    background-color: var(--ifm-color-danger-lightest);
}

#myModal .modal-body {
    padding: 20px;
    text-align: center;
}

#myModal .modal-body img {
    margin: 10px 0;
    border: 1px solid var(--ifm-color-emphasis-300);
    border-radius: 4px;
}

#myModal .modal-body input[type="text"] {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--ifm-color-emphasis-300);
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

#myModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--ifm-color-emphasis-200);
    background-color: var(--ifm-background-surface-color, #ffffff);
    border-radius: 0 0 12px 12px;
}

#myModal .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

#myModal .btn-secondary {
    background-color: var(--ifm-color-emphasis-200);
    color: var(--ifm-color-content);
    border-color: var(--ifm-color-emphasis-300);
}

#myModal .btn-secondary:hover {
    background-color: var(--ifm-color-emphasis-300);
}

#myModal .btn-primary {
    background-color: var(--ifm-color-primary);
    color: #ffffff;
    border-color: var(--ifm-color-primary);
}modal

#myModal .btn-primary:hover {
    background-color: var(--ifm-color-primary-dark);
    border-color: var(--ifm-color-primary-dark);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #myModal .modal-dialog {
        margin: 5% auto;
        max-width: 90%;
    }
    
    #myModal .modal-header,
    #myModal .modal-footer {
        padding: 12px 16px;
    }
    
    #myModal .modal-body {
        padding: 16px;
    }
}

/* 搜索侧边栏样式 */
.search-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* 初始隐藏在右侧 */
    width: 400px;
    height: 100vh;
    background-color: var(--ifm-background-surface-color, #ffffff);
    border-left: 1px solid var(--ifm-color-emphasis-200);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.search-sidebar.active {
    right: 0; /* 显示时滑入 */
}

.search-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--ifm-color-emphasis-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--ifm-color-emphasis-100);
}

.search-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ifm-color-content);
}

.search-close {
    color: var(--ifm-color-emphasis-600);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-close:hover {
    color: var(--ifm-color-danger);
}

.search-sidebar-content {
    padding: 20px;
}

.search-sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-sidebar-content li {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 6px;
    background-color: var(--ifm-color-emphasis-100);
    transition: background-color 0.2s ease;
}

.search-sidebar-content li:hover {
    background-color: var(--ifm-color-emphasis-200);
}

.search-sidebar-content a {
    color: var(--ifm-color-content);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.search-sidebar-content a:hover {
    color: var(--ifm-color-primary);
}

/* 搜索遮罩层 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 防止页面滚动 */
body.search-sidebar-open {
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .search-sidebar-header {
        padding: 15px;
    }
    
    .search-sidebar-content {
        padding: 15px;
    }
}

/* 移除原有的模态窗口样式 */
.modal {
    display: none !important;
}

.modal-content {
    display: none !important;
}

#myModal .modal-body {
    padding: 20px;
    text-align: center;
}

#myModal .modal-body img {
    margin: 10px 0;
    border: 1px solid var(--ifm-color-emphasis-300);
    border-radius: 4px;
}

#myModal .modal-body input[type="text"] {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--ifm-color-emphasis-300);
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

#myModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--ifm-color-emphasis-200);
    background-color: var(--ifm-background-surface-color, #ffffff);
    border-radius: 0 0 12px 12px;
}

#myModal .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

#myModal .btn-secondary {
    background-color: var(--ifm-color-emphasis-200);
    color: var(--ifm-color-content);
    border-color: var(--ifm-color-emphasis-300);
}

#myModal .btn-secondary:hover {
    background-color: var(--ifm-color-emphasis-300);
}

#myModal .btn-primary {
    background-color: var(--ifm-color-primary);
    color: #ffffff;
    border-color: var(--ifm-color-primary);
}

#myModal .btn-primary:hover {
    background-color: var(--ifm-color-primary-dark);
    border-color: var(--ifm-color-primary-dark);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #myModal .modal-dialog {
        margin: 5% auto;
        max-width: 90%;
    }
    
    #myModal .modal-header,
    #myModal .modal-footer {
        padding: 12px 16px;
    }
    
    #myModal .modal-body {
        padding: 16px;
    }
}

/* 搜索等模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    /* 提高 z-index 确保在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* 不显示时不占用高度 */
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    /* 圆角设计 */
    width: 60%;
    max-height: 80vh;
    /* 限制最大高度为视窗高度的80% */
    overflow-y: auto;
    /* 内容超出时显示垂直滚动条 */
    position: relative;
    /* 添加相对定位 */
    z-index: 10000;
    /* 确保内容比模态背景更高 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 添加阴影增强视觉层次 */
}

.modal-content ul {
    margin-top: 10px;
}

/* 在手机端调整宽度 */
@media (max-width: 768px) {
    .modal-content {
    margin: 10% auto;
    width: 90%;
    /* 手机端更宽 */
    max-height: 75vh;
    /* 手机端稍微降低最大高度 */
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 搜索框样式 */
#searchInput {
    border-radius: 9999px;
    border: 1px solid #ccc;
    padding: 2px 16px;
    outline: none;
    transition: border-color 0.3s;
    display: inline-block;
    /* 设置为 inline-block 以便水平对齐 */
    vertical-align: middle;
    /* 垂直居中对齐 */
    margin-right: auto;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#searchInput:focus {
    border-color: #3182ce;
}

.toggleButton_gllP {
    display: inline-block;
    /* 设置为 inline-block 以便水平对齐 */
    vertical-align: middle;
    /* 垂直居中对齐 */
}


/* ... existing code ... */

/* Docusaurus Admonitions 样式 */
.admonition {
    margin: 1rem 0;
    padding: 0;
    border-radius: 6px;
    border: 1px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.admonition-heading {
    padding: 0.75rem 1rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid;
}

.admonition-heading h5 {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.admonition-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.admonition-content {
    padding: 1rem;
    line-height: 1.6;
}

.admonition-content > *:first-child {
    margin-top: 0;
}

.admonition-content > *:last-child {
    margin-bottom: 0;
}

/* Note 样式 */
.admonition-note {
    border-color: var(--ifm-color-secondary-dark, #d4d5d8);
    background-color: var(--ifm-color-secondary-contrast-background, #fdfdfe);
}

.admonition-note .admonition-heading {
    background-color: var(--ifm-color-secondary-light, #eef0f2);
    border-bottom-color: var(--ifm-color-secondary-dark, #d4d5d8);
    color: var(--ifm-color-secondary-contrast-foreground, #474748);
}

/* Tip 样式 */
.admonition-tip {
    border-color: var(--ifm-color-success-dark, #009400);
    background-color: var(--ifm-color-success-contrast-background, #e6f6e6);
}

.admonition-tip .admonition-heading {
    background-color: var(--ifm-color-success-light, #26b226);
    border-bottom-color: var(--ifm-color-success-dark, #009400);
    color: var(--ifm-color-success-contrast-foreground, #003100);
}

/* Info 样式 */
.admonition-info {
    border-color: var(--ifm-color-info-dark, #4cb3d4);
    background-color: var(--ifm-color-info-contrast-background, #eef9fd);
}

.admonition-info .admonition-heading {
    background-color: var(--ifm-color-info-light, #6ecfef);
    border-bottom-color: var(--ifm-color-info-dark, #4cb3d4);
    color: var(--ifm-color-info-contrast-foreground, #193c47);
}

/* Warning 样式 */
.admonition-warning {
    border-color: var(--ifm-color-warning-dark, #e6a700);
    background-color: var(--ifm-color-warning-contrast-background, #fff8e6);
}

.admonition-warning .admonition-heading {
    background-color: var(--ifm-color-warning-light, #ffc426);
    border-bottom-color: var(--ifm-color-warning-dark, #e6a700);
    color: var(--ifm-color-warning-contrast-foreground, #4d3800);
}

/* Danger 样式 */
.admonition-danger {
    border-color: var(--ifm-color-danger-dark, #e13238);
    background-color: var(--ifm-color-danger-contrast-background, #ffebec);
}

.admonition-danger .admonition-heading {
    background-color: var(--ifm-color-danger-light, #fb565b);
    border-bottom-color: var(--ifm-color-danger-dark, #e13238);
    color: var(--ifm-color-white, #fff);
}

/* 暗色主题适配 */
html[data-theme='dark'] .admonition {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme='dark'] .admonition-note {
    border-color: var(--ifm-color-emphasis-300, #dadde1);
    background-color: var(--ifm-color-emphasis-100, #f5f6f7);
}

html[data-theme='dark'] .admonition-note .admonition-heading {
    background-color: var(--ifm-color-emphasis-200, #ebedf0);
    border-bottom-color: var(--ifm-color-emphasis-300, #dadde1);
    color: var(--ifm-color-emphasis-800, #444950);
}

/* 嵌套 Admonitions 样式 */
.admonition .admonition {
    margin: 0.5rem 0;
    border-width: 1px;
}

.admonition .admonition .admonition-heading {
    padding: 0.5rem 0.75rem;
}

.admonition .admonition .admonition-content {
    padding: 0.75rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admonition {
        margin: 0.75rem 0;
    }
    
    .admonition-heading {
        padding: 0.5rem 0.75rem;
    }
    
    .admonition-content {
        padding: 0.75rem;
    }
    
    .admonition-heading h5 {
        font-size: 0.85rem;
    }
}

/* 打印样式 */
@media print {
    .admonition {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 分页样式优化 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 8px;
    font-family: var(--ifm-font-family-base);
}

.pagination a,
.pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.08, 0.52, 0.52, 1);
    border: 1px solid transparent;
}

/* 链接样式 */
.pagination a {
    color: var(--ifm-color-content);
    background-color: var(--ifm-background-surface-color, #fff);
    border-color: var(--ifm-color-emphasis-300);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
    color: var(--ifm-color-primary);
    border-color: var(--ifm-color-primary);
    background-color: var(--ifm-color-emphasis-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* 当前页样式 (span) */
.pagination span {
    background-color: var(--ifm-color-primary);
    color: #fff;
    border-color: var(--ifm-color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: default;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .pagination {
        gap: 4px;
        margin: 24px 0;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 13px;
    }
}

/* 融合目标网站的头部样式 */
.irobot-header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-content {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    margin-right: 10px;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
}

/* Banner横幅样式 */
.banner {
    background: url('https://www.ysxdgy.com/static/upload/image/20230817/1692257503886782.jpg') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    margin-bottom: 1px;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.banner-content h1 {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner {
        padding: 40px 0;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 30px 0;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: -15px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #1890ff;
}

/* 导航栏链接颜色 */
.irobot-header .navbar__link {
    color: #fff;
}

.irobot-header .navbar__link:hover {
    color: #1890ff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.right-links-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.right-links-container a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.right-links-container a:hover {
    color: #1890ff;
}

/* 登录功能样式 */
.login-container {
    display: flex;
    align-items: center;
}

.login-btn {
    background-color: #1890ff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #40a9ff;
    color: #fff;
}

.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.user-link:hover {
    color: #1890ff;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0;
    background-color: #333;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    z-index: 1001;
    display: none;
    padding: 5px 0;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu:hover {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #1890ff;
    text-decoration: none !important;
}

.logo-small {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 10px;
}

.logo-small img {
    height: 35px;
    border-radius: 6px;
    background-color: #fff;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.phone-number {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    border-radius: 9999px;
    border: 1px solid #ccc;
    padding: 6px 16px;
    outline: none;
    transition: border-color 0.3s;
    font-size: 14px;
    width: 200px;
}

.search-box input:focus {
    border-color: #1890ff;
}

/* 融合目标网站的底部样式 */
.irobot-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer__copyright {
    margin-bottom: 20px;
}

.footer__copyright a {
    color: #1890ff;
    text-decoration: none;
}

.footer__copyright a:hover {
    text-decoration: underline;
}

.footer-actions {
    margin-top: 20px;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        overflow-x: auto;
        /* 确保下拉菜单不会被裁剪 */
        overflow-y: visible;
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header-nav {
        flex: 1;
        margin: 0 10px;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
    }
    
    .header-nav a {
        margin: 0 5px;
        white-space: nowrap;
        font-size: 12px;
    }
    
    .header-actions {
        flex-wrap: nowrap;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .search-box input {
        width: 100px;
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* 小屏幕移动端响应式样式 */
@media (max-width: 480px) {
    .header-content {
        padding: 10px 5px;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        overflow-x: auto;
    }
    
    .header-nav {
        flex: 1;
        margin: 0 5px;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
    }
    
    .header-nav a {
        margin: 0 4px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .search-box input {
        width: 80px;
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* 基础容器样式 */
.video-protect-wrapper {
    max-width: clamp(300px, 80vw, 1200px) !important; /* 最大宽度限制 */
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.video-protect-container {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #000 !important; /* 统一黑色背景 */
    box-sizing: border-box !important;
    /* 初始默认16:9比例（大多数视频），后续会被JS替换为真实比例 */
    aspect-ratio: 16/9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 视频与封面核心样式（统一规则） */
.video-protect-container video {
    position: relative !important;
    z-index: 20 !important; /* 高于覆盖层 */
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important; /* 保持比例，不拉伸 */
    box-sizing: border-box !important;
}

/* 覆盖层样式（仅拦截右键） */
.video-protect-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    pointer-events: none !important; /* 左键穿透 */
    background: transparent !important;
}

.video-protect-overlay:hover {
    pointer-events: auto !important; /* 右键拦截 */
}

/* 水印样式（固定左上角） */
.video-watermark {
    position: absolute !important;
    left: 15px !important;
    top: 15px !important;
    width: 60px !important;
    height: 60px !important;
    background: url('https://www.ysxdo.com/content/uploadfile/202604/a01e1775807460.png') no-repeat center !important;
    background-size: contain !important;
    opacity: 0.6 !important;
    z-index: 30 !important;
    pointer-events: none !important;
}

/* 隐藏所有浏览器的下载按钮 */
video::-webkit-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden !important;
}

video {
    --media-controls-download-button-display: none; /* Firefox */
}

/* 响应式适配（分设备统一规则） */
@media (min-width: 768px) { /* PC端 */
    .log-content {
        max-width: 1200px !important;
        padding: 0 20px !important;
    }
    .video-protect-container video {
        width: 100% !important; /* 封面和视频均占满容器 */
        height: auto !important;
    }
}

@media (max-width: 767px) { /* 手机端 */
    .video-protect-wrapper {
        max-width: 100vw !important;
        padding: 0 8px !important;
    }
    .video-protect-container video {
        width: 100% !important; /* 强制全屏宽 */
        height: auto !important;
    }
    .video-watermark {
        width: 60px !important;
        height: 30px !important;
        left: 10px !important;
        top: 10px !important;
    }
}

/* 全屏状态适配 */
video:fullscreen ~ .video-watermark,
video:-webkit-full-screen ~ .video-watermark {
    width: 60px !important;
    height: 30px !important;
    left: 20px !important;
    top: 20px !important;
}

video:fullscreen,
video:-webkit-full-screen {
    background-size: contain !important; /* 全屏封面同步 */
}

/* 全屏状态下隐藏覆盖层，确保控件可用 */
video:fullscreen ~ .video-protect-overlay,
video:-webkit-full-screen ~ .video-protect-overlay,
video:-moz-full-screen ~ .video-protect-overlay {
    display: none;
    pointer-events: none;
}

/* 代码块容器 */
.code-block-wrapper {
    position: relative;
    margin: 16px 0;
}

/* 代码块样式 */
pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 复制按钮容器 */
.code-block-wrapper .copy-button-container {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 999;
}

pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* 复制按钮样式 */
.copy-button {
    background-color: #5370bd !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    z-index: 999 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

/* 确保代码块内容不被复制按钮遮挡 */
pre code {
    display: block !important;
    padding-right: 80px !important;
}

.copy-button:hover {
    background-color: #4a67b0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* 暗色主题适配 */
html[data-theme='dark'] pre {
    background-color: #1e1e1e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme='dark'] pre code {
    color: #e6e6e6;
}

html[data-theme='dark'] .copy-button {
    background-color: #6c757d !important;
}

html[data-theme='dark'] .copy-button:hover {
    background-color: #5a6268 !important;
}

/* 搜索侧边栏样式 */
.search-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--ifm-background-surface-color, #fff);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.search-sidebar.active {
    right: 0;
}

.search-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ifm-color-emphasis-200, #e0e0e0);
    background: var(--ifm-color-primary, #3578e5);
    color: white;
}

.search-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.search-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.search-close:hover {
    opacity: 1;
}

.search-sidebar-content {
    padding: 20px;
}

.search-sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-sidebar-content li {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--ifm-background-color, #f8f9fa);
    border-radius: 8px;
    border-left: 3px solid var(--ifm-color-primary, #3578e5);
}

.search-result-link {
    color: var(--ifm-color-content, #333);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
}

.search-result-link:hover {
    color: var(--ifm-color-primary, #3578e5);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.search-sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .search-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Banner间隔修复 - 非首页时隐藏Banner容器 */
body:not(.home-page) .banner,
body:not(.home) .banner {
    display: none !important;
}

/* 确保移动端导航不会产生额外间隔 */
.mobile-nav.navbar--fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* 地图容器样式 */
.map-container,
.amap-container,
#mapContainer,
#allmap {
    width: 100% !important;
    min-height: 300px !important;
    margin: 20px 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* 地图卡片样式（列表页） */
.map-card,
.location-card {
    position: relative !important;
    min-height: 200px !important;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* 移动端导航遮罩默认隐藏 */
.navbar-sidebar__backdrop {
    display: none !important;
}

/* Banner与导航间隔修复 - 非首页隐藏Banner */
body:not(.home-page) .banner {
    display: none !important;
}
