/* 基础样式 */
html {
    overflow: hidden;
}

body {
    height: 100vh;
    height: 100dvh;
    height: calc(var(--vh, 1dvh) * 100);
}

/* PDF UI 容器 */
#pdf-ui {
    top: 32px;
    bottom: 0;
    position: absolute;
    width: 100vw;
    transition: top 0.3s ease;
}

.fv__ui-mobile #pdf-ui {
    top: 0;
}

.fv__ui-mobile .fv__ui-nav {
    display: none;
}

/* 隐藏目录页面的书签图标 */
.fv__ui-tree-node-icon,
.fv__ui-bookmark-tree-node-icon {
    display: none !important;
}

.uploadFile-container{
        margin-top: 42px;
}

/* 文本选择工具栏自定义图标 */
.custom-icon-copy::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/kxwk5_style/images/icons/NavBar/缩略图-nor.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-icon-highlight::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/kxwk5_style/images/icons/ToolBar/High-light.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-icon-strikeout::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/kxwk5_style/images/icons/ToolBar/标记-删除线.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-icon-underline::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/kxwk5_style/images/icons/ToolBar/标记-下划线.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 文本选择工具栏按钮显示文本 */
.fv--ui-text-selection-tooltip .fv__ui-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    padding: 6px 10px 10px 10px !important;
    min-width: 50px !important;
    box-sizing: border-box !important;
}

/* 强制图标容器样式 */
.fv--ui-text-selection-tooltip .fv__ui-button > .fv__ui-button-icon,
.fv--ui-text-selection-tooltip .fv__ui-button > i {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
}

/* 强制文本样式 */
.fv--ui-text-selection-tooltip .fv__ui-button .fv__ui-button-text,
.fv--ui-text-selection-tooltip .fv__ui-button > span {
    display: block !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 0px !important;
}

/* 统一按钮悬停背景色为灰色 */
.fv__ui-button:hover,
.fv__ui-ribbon-button:hover,
button:hover,
.fv__ui-xbutton:hover {
    background-color: #e8e8e8 !important;
    color: #333 !important;
}

/* 按钮悬停时的文本和图标颜色 */
.fv__ui-button:hover .fv__ui-button-text,
.fv__ui-button:hover span,
.fv__ui-ribbon-button:hover .fv__ui-button-text,
.fv__ui-ribbon-button:hover span,
.fv__ui-xbutton:hover .fv__ui-button-text,
.fv__ui-xbutton:hover span {
    color: #333 !important;
}

/* 文本选择工具栏按钮悬停效果 */
.fv--ui-text-selection-tooltip .fv__ui-button:hover {
    background-color: #e8e8e8 !important;
    color: #333 !important;
}

.fv--ui-text-selection-tooltip .fv__ui-button:hover .fv__ui-button-text,
.fv--ui-text-selection-tooltip .fv__ui-button:hover span {
    color: #333 !important;
}

/* 工具栏按钮悬停效果 */
.fv__ui-toolbar .fv__ui-button:hover,
.fv__ui-toolbar .fv__ui-ribbon-button:hover {
    background-color: #e8e8e8 !important;
    color: #333 !important;
}

.fv__ui-toolbar .fv__ui-button:hover .fv__ui-button-text,
.fv__ui-toolbar .fv__ui-button:hover span,
.fv__ui-toolbar .fv__ui-ribbon-button:hover .fv__ui-button-text,
.fv__ui-toolbar .fv__ui-ribbon-button:hover span {
    color: #333 !important;
}

/* 侧边栏按钮悬停效果 */
.fv__ui-sidebar .fv__ui-button:hover {
    background-color: #e8e8e8 !important;
    color: #333 !important;
}

.fv__ui-sidebar .fv__ui-button:hover .fv__ui-button-text,
.fv__ui-sidebar .fv__ui-button:hover span {
    color: #333 !important;
}

/* 隐藏侧边栏切换按钮 */
.fv__ui-sidebar-toggler {
    display: none !important;
}

/* PDF 自定义页面容器 */
.fv__pdf-custom-page-container {
    text-align: center;
}

.result-img {
    width: 30%;
    height: auto;
}

/* 返回按钮图片 */
a #back-img {
    margin-top: 8px;
    width: 12%;
    min-width: 25px;
    height: auto;
}

a #back-img-mobile {
    width: 30%;
    height: auto;
    min-width: 7px;
}

/* 打开文件容器 - 最外层 */
.openfile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    height: auto;
    z-index: 999;
    padding: 20px;
}

/* 虚线容器 */
.upload-file-div {
    width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 36px 26px 36px 26px;
        background: #ffffff8c;
        border-radius: 16px;
}

/* 拖拽区域 - 重新设计 */
.drop-area {
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    min-height: 380px;
    border: 2px dashed #D9E2EC;
    border-radius: 16px;
    padding: 80px 40px 40px;
    cursor: pointer;
    position: relative;
    top: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #8B9AAC;
    justify-content: center;
    background: #F7F9FC;
    transition: all 0.3s ease;
    pointer-events: auto; /* 确保可以接收拖拽事件 */
}

/* 拖拽区域图标 - 使用伪元素 */
.drop-area::before {
    content: '';
    display: block;
    width: 120px;
    height: 120px;
    background-image: url('/kxwk5_style/images/pic.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 24px;
}

.drop-area:hover {
    border-color: #2D72D2;
    background: #EFF5FB;
}

/* 上传文件按钮 */
.uploadFile-1 {
    cursor: pointer;
    margin: 0 auto;
    position: relative;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
    color: #FFFFFF;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    gap: 8px;
    width: auto;
    min-width: 150px;
    height: auto;
    background: #2D72D2;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}

/* 按钮加号 */
.uploadFile-1::before {
    content: '+';
    font-size: 18px;
    font-weight: 600;
}

.uploadFile-1:hover {
    background: #1E5BB8;
    box-shadow: 0 2px 8px rgba(45, 114, 210, 0.3);
}

#file-input {
    display: none !important;
}

/* 进度条 */
#progress-bar {
    display: none;
    position: absolute;
    inset: 0;
    text-align: center;
    line-height: 100vh;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.6);
    font-size: 24px;
}

/* 头部组件样式 */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    width: 100%;
    height: 32px;
    background: #fff;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    border-bottom: 1px solid #e6e9f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pdf-header-left {
    display: flex;
    align-items: center;
}

.pdf-header .title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.pdf-header-back {
    cursor: pointer;
    /* padding: 8px; */
    color: #666;
    font-size: 0; /* 隐藏文字 */
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.pdf-header-back svg {
    width: 24px;
    height: 24px;
}

.pdf-header-back:hover {
    color: #2d72d2;
    background-color: #f0f0f0;
}

.pdf-header-login {
    cursor: pointer;
    padding: 4px 12px;
    color: #2d72d2;
    text-decoration: none;
    transition: color 0.3s;
}

.pdf-header-login:hover {
    color: #1e5bb8;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 平板和手机端隐藏 header */
    .pdf-header {
        display: none !important;
    }
    
    /* PDF 容器占满全屏 */
    #pdf-ui {
        top: 0 !important;
        height: 100vh !important;
    }
    
    .openfile {
        width: 100%;
        padding: 10px;
    }

    .upload-file-div {
        width: 100%;
        background: transparent !important;
        padding: 0 !important;
    }

    /* 移动端隐藏拖拽区域的边框、背景和图标，但保持按钮可见 */
    .drop-area {
        border: none !important;
        background: transparent !important;
        min-height: auto !important;
        padding: 0 !important;
        font-size: 0 !important; /* 隐藏文字 */
        color: transparent !important;
    }

    /* 隐藏拖拽区域的图标 */
    .drop-area::before {
        display: none !important;
    }

    /* 确保按钮容器可见 */
    .uploadFile-container {
        display: block !important;
        font-size: 14px !important;
    }

    .uploadFile-1 {
        min-width: 120px;
        padding: 10px 20px;
        font-size: 13px;
    }

    #file-input {
        margin-top: 0;
    }

    .pdf-header .title {
        font-size: 14px;
    }

    .pdf-header-login {
        font-size: 14px;
        padding: 4px 8px;
    }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
    /* 手机端隐藏 header */
    .pdf-header {
        display: none !important;
    }
    
    /* 手机端 PDF 容器占满全屏 */
    #pdf-ui {
        top: 0 !important;
        height: 100vh !important;
    }
    
    /* 移动端隐藏拖拽区域的边框、背景和图标 */
    .drop-area {
        border: none !important;
        background: transparent !important;
        min-height: auto !important;
        padding: 0 !important;
        font-size: 0 !important; /* 隐藏文字 */
        color: transparent !important;
    }

    /* 隐藏拖拽区域的图标 */
    .drop-area::before {
        display: none !important;
    }

    .upload-file-div {
        background: transparent !important;
        padding: 0 !important;
    }

    /* 确保按钮容器可见 */
    .uploadFile-container {
        display: block !important;
        font-size: 14px !important;
    }

    .uploadFile-1 {
        min-width: 100px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .uploadFile-1::before {
        font-size: 16px;
    }

    .pdf-header .title {
        font-size: 12px;
    }

    .pdf-header-login {
        font-size: 12px;
    }
}

/* 覆盖 Foxit SDK 默认样式 */
.fv__ui-grouplist-item:after {
    height: 30px !important;
}

/* 工具栏折叠后的按钮样式优化 */
/* 折叠后的按钮容器 */
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 8px !important;
    background-color: #fff !important;
    border: 1px solid #e6e9f0 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 折叠后的每个按钮统一大小 - 包括原始按钮和自定义按钮 */
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fv__ui-ribbon-button,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fv__ui-button,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fv__ui-xbutton,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fx-ribbon-item,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active button,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active div[name*="button"],
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active div[name*="tool"] {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

/* 折叠后的按钮图标容器统一 */
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fx-ribbon-item-icon {
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* 折叠后的按钮图标统一尺寸 */
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fv__ui-button-icon,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active i,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fx-icon,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active span[class*="icon"],
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active [class*="-icon-class"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin: 0 !important;
    display: block !important;
}

/* 折叠后隐藏按钮文本 */
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fv__ui-button-text {
    display: none !important;
}

/* 折叠后的按钮悬停效果 */
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fv__ui-ribbon-button:hover,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fv__ui-button:hover,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fv__ui-xbutton:hover,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fx-ribbon-item:hover,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active button:hover,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active div[name*="button"]:hover,
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active div[name*="tool"]:hover {
    background-color: #e8e8e8 !important;
}

/* 折叠触发按钮（更多按钮）样式 */
.fv__ui-grouplist-item.shrink .fv__ui-grp-more {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 隐藏折叠后 fx-ribbon-item 内部的下拉切换按钮，但保留下拉功能 */
.fv__ui-grouplist-item.shrink .fv__ui-grp-btn-list.active .fx-ribbon-item .fv__ui-dropdown-toggler {
    visibility: hidden !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

.freetext-textbox-icon-class{
    background-image: url('../images/icons/ToolBar/Group 351.svg');
    /* background-image: linear-gradient(180deg, rgba(0, 245, 12, 1) 0%, rgba(0, 212, 255, 1) 100%); */
    /* background-color: red; */
    /* color: black; */
        /* background-repeat: no-repeat;
        background-position: center;
        width: 32px;
        height: 32px; */
}
.hand-tool-icon-class{
    background-image: url('../images/icons/ToolBar/icon_抓手 1.svg');
}
.select-text-image-icon-class{
    background-image: url('../images/icons/ToolBar/选择文本.svg');
}
.select-annotation-icon-class {
    background-image: url('../images/icons/ToolBar/选择注释.svg');
}
.zoom-in-icon-class{
    background-image: url('../images/icons/ToolBar/放大.svg');
}
.zoom-out-icon-class {
    background-image: url('../images/icons/ToolBar/缩小.svg');
}
.goto-first-page-icon-class{
    background-image: url('../images/icons/ToolBar/双箭头Left.svg');
}
.goto-prev-page-icon-class{
    background-image: url('../images/icons/ToolBar/chevron-down.svg');
}
.goto-next-page-icon-class{
    background-image: url('../images/icons/ToolBar/chevron-down-1.svg');
}
.goto-last-page-icon-class{
    background-image: url('../images/icons/ToolBar/双箭头Right.svg');
}
.change-color-dropdown-icon-class{
    background-image: url('../images/icons/ToolBar/Platte.svg') !important;
}

/* 直接覆盖修改颜色按钮的图标 */
.fv__icon-toolbar-change-color {
    background-image: url('../images/icons/ToolBar/Platte.svg') !important;
    background-size: 16px 16px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 16px !important;
    /* height: 16px !important; */
}

.single-page-icon-class{
    background-image: url('../images/icons/ToolBar/水平.svg');
}
.continuous-page-icon-class{
    background-image: url('../images/icons/ToolBar/垂直.svg');
}
.facing-page-icon-class{
    background-image: url('../images/icons/ToolBar/两栏.svg');
}
.continuous-facing-page-icon-class{
    background-image: url('../images/icons/ToolBar/两栏垂直.svg');
}
.h-continuous-button-icon-class{
    background-image: url('../images/icons/ToolBar/水平2.svg');
}
.create-text-icon-class{
    background-image: url('../images/icons/ToolBar/Comment-one.svg');
}
.create-underline-icon-class{
    background-image: url('../images/icons/ToolBar/标记-下划线.svg');
}
.create-squiggly-icon-class{
    background-image: url('../images/icons/ToolBar/标记-波浪线.svg');
}
.create-strikeout-icon-class{
    background-image: url('../images/icons/ToolBar/标记-删除线.svg');
}
.create-highlight-icon-class{
    background-image: url('../images/icons/ToolBar/High-light.svg');
}
.create-caret-icon-class{
    background-image: url('../images/icons/ToolBar/标记-插入.svg');
}
.create-replace-icon-class{
    background-image: url('../images/icons/ToolBar/标记-删除插入.svg');
}
.freetext-typewriter-icon-class{
    background-image: url('../images/icons/ToolBar/Group 350.svg');
}
.freetext-callout-icon-class{
    background-image: url('../images/icons/ToolBar/Group 352.svg');
}
.create-area-highlight-icon-class{
    background-image: url('../images/icons/ToolBar/Group 353.svg');
}
.pencil-tool-icon-class{
    background-image: url('../images/icons/ToolBar/pen.svg');
}
.eraser-tool-icon-class{
    background-image: url('../images/icons/ToolBar/eraser-01.svg');
}
/* .fv--commentlist-import-comment-ribbon-button-icon-class{
    background-image: url('../images/icons/ToolBar/导入注释.svg');
} */
.commentlist-export-comment-icon-class{
    background-image: url('../images/icons/ToolBar/导出注释.svg');
}
.download-file-button-icon-class{
    background-image: url('../images/icons/ToolBar/Download.svg');
}
.custom-clear-button-icon-class{
    background-image: url('../images/icons/ToolBar/Clear (清除).svg');
}
.save-annotation-button-icon-class{
    background-image: url('../images/icons/ToolBar/Message-success (信息成功).svg');
}
.fx-icon-ribbon_comment_import-32{
    background-image: url('../images/icons/ToolBar/导入注释.svg');
}

/* 隐藏 freetext-textbox 按钮中的 SVG 图标 */
.freetext-textbox-icon-class svg,
[name="freetext-textbox"] svg {
    display: none !important;
}

.create-text-icon-class svg,
[name="create-text"] svg {
    display: none !important;
}
.create-underline-icon-class svg,
[name="create-underline"] svg {
    display: none !important;
}
.create-squiggly-icon-class svg,
[name="create-squiggly"] svg {
    display: none !important;
}
.create-strikeout-icon-class svg,
[name="create-strikeout"] svg {
    display: none !important;
}
.create-highlight-icon-class svg,
[name="create-highlight"] svg {
    display: none !important;
}
.create-caret-icon-class svg,
[name="create-caret"] svg {
    display: none !important;
}
.create-replace-icon-class svg,
[name="create-replace"] svg {
    display: none !important;
}
.freetext-typewriter-icon-class svg,
[name="freetext-typewriter"] svg {
    display: none !important;
}
.freetext-callout-icon-class svg,
[name="freetext-callout"] svg {
    display: none !important;
}
.create-area-highlight-icon-class svg,
[name="create-area-highlight"] svg {
    display: none !important;
}
.pencil-tool-icon-class svg,
[name="pencil-tool"] svg {
    display: none !important;
}
.eraser-tool-icon-class svg,
[name="eraser-tool"] svg {
    display: none !important;
}


/* 自定义搜索侧边栏样式 */
.custom-search-container {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #4285f4;
}

.search-input::placeholder {
    color: #999;
}

.search-options {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0;
}

.search-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.search-options input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

/* 覆盖选中状态的紫色背景，改为蓝色 */
.search-options input[type="checkbox"]:checked::before {
    background: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHJ4PSIyIiBmaWxsPSIjMmQ3MmQyIi8+PHBhdGggZD0ibTQgOC4zMzM1IDIuNjY2MyAyLjY2NjMiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBkPSJtNi42NjggMTEgNi02IiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+Cg==) no-repeat 0 0 / 100% 100% !important;
}

.search-results-header {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.search-results-count {
    font-size: 13px;
    color: #666;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.search-result-item {
    padding: 10px 8px;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    /* 单行显示，超出部分省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.search-result-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/kxwk5_style/images/icons/Property 1=fileplus.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item.active {
    background-color: #e8f0fe;
}

.search-highlight {
    color: #fa8134;
    font-weight: normal;
}

.search-no-results {
    text-align: center;
    color: #999;
    padding: 40px 24px;
    font-size: 14px;
}

/* 自定义侧边栏搜索按钮图标 */
.fv__icon-sidebar-search {
    background-image: url('/kxwk5_style/images/icons/NavBar/搜索2.svg') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* 选中状态的搜索图标 */
.fv__ui-sidebar-nav-ctrl.active .fv__icon-sidebar-search,
.fv__ui-sidebar-nav-ctrl:hover .fv__icon-sidebar-search {
    background-image: url('/kxwk5_style/images/icons/NavBar/搜索2-hover.svg') !important;
}

/* 自定义侧边栏书签列表图标 */
.fv__icon-sidebar-custom-bookmark {
    background-image: url('/kxwk5_style/images/icons/NavBar/书签nor.svg') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* 选中状态的书签列表图标 */
.fv__ui-sidebar-nav-ctrl.active .fv__icon-sidebar-custom-bookmark,
.fv__ui-sidebar-nav-ctrl:hover .fv__icon-sidebar-custom-bookmark {
    background-image: url('/kxwk5_style/images/icons/NavBar/书签sel.svg') !important;
}

/* 自定义侧边栏书签图标 */
.fv__icon-sidebar-bookmark {
    background-image: url('/kxwk5_style/images/icons/NavBar/目录.svg') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* 选中状态的书签图标 */
.fv__ui-sidebar-nav-ctrl.active .fv__icon-sidebar-bookmark,
.fv__ui-sidebar-nav-ctrl:hover .fv__icon-sidebar-bookmark {
    background-image: url('/kxwk5_style/images/icons/NavBar/目录sel.svg') !important;
}

/* 自定义侧边栏缩略图图标 */
.fv__icon-sidebar-thumbnail {
    background-image: url('/kxwk5_style/images/icons/NavBar/缩略图-nor.svg') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* 选中状态的缩略图图标 */
.fv__ui-sidebar-nav-ctrl.active .fv__icon-sidebar-thumbnail,
.fv__ui-sidebar-nav-ctrl:hover .fv__icon-sidebar-thumbnail {
    background-image: url('/kxwk5_style/images/icons/NavBar/缩略图-hover.svg') !important;
}

/* 自定义书签容器样式 */
.custom-bookmark-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}

.bookmark-list-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.bookmark-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.add-bookmark-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: #2d72d2;
    color: #fff;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.add-bookmark-btn:hover {
    background-color: #1f5bb5;
}

.bookmark-list {
    flex: 1;
    overflow-y: auto;
}

.bookmark-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.bookmark-empty p {
    margin: 8px 0;
    font-size: 14px;
}

.bookmark-tip {
    font-size: 12px;
    color: #bbb;
}

.bookmark-item {
        padding: 4px 4px;
            background-color: #fff;
            /* border-bottom: 1px solid #f0f0f0; */
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: background-color 0.2s;
            border-radius: 12px;
}

.bookmark-item:hover {
    background-color: #f5f5f5;
}

/* 悬停时文字变蓝色 */
.bookmark-item:hover .bookmark-text {
    color: #0051c6;
}

.bookmark-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #8a8585;
    cursor: pointer;
}

.bookmark-content-wrapper {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.bookmark-text {
    font-size: 14px;
    line-height: 20px;
    color: #333;
    /* 单行显示，超出省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 删除按钮 */
.bookmark-delete-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: none;
    background-color: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    opacity: 0;
    position: relative;
}

/* SVG 图标样式 */
.bookmark-delete-btn svg {
    width: 16px;
    height: 16px;
    transition: all 0.25s ease;
}

/* 悬停时显示删除按钮 */
.bookmark-item:hover .bookmark-delete-btn {
    opacity: 1;
    transform: scale(1);
}

/* 删除按钮悬停效果 */
.bookmark-delete-btn:hover {
    background-color: #f5f5f5;
    color: #666;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.bookmark-delete-btn:hover svg {
    transform: scale(1.1);
}

/* 删除按钮按下效果 */
.bookmark-delete-btn:active {
    transform: scale(0.95);
    background-color: #e0e0e0;
}

/* 保留旧样式以兼容（如果需要） */
.bookmark-info {
    flex: 1;
    min-width: 0;
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bookmark-page-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #2d72d2;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
}

.bookmark-time {
    font-size: 11px;
    color: #999;
}

.bookmark-content {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
    margin-top: 6px;
}

.bookmark-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-page {
    font-size: 12px;
    color: #666;
}

.bookmark-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 12px;
}

.bookmark-goto-btn,
.bookmark-delete-btn {
    padding: 6px;
    background-color: transparent;
    color: #666;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-goto-btn:hover {
    background-color: #2d72d2;
    border-color: #2d72d2;
    color: #fff;
}

.bookmark-delete-btn:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
    color: #333;
}

/* 自定义侧边栏注释图标 */
.fv__icon-sidebar-comment-list {
    background-image: url('/kxwk5_style/images/icons/NavBar/注释.svg') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* 选中状态的注释图标 */
.fv__ui-sidebar-nav-ctrl.active .fv__icon-sidebar-comment-list,
.fv__ui-sidebar-nav-ctrl:hover .fv__icon-sidebar-comment-list {
    background-image: url('/kxwk5_style/images/icons/NavBar/注释hover.svg') !important;
}

/* 对话框确定按钮样式 */
.fv__ui-dialog-ok-button,
.fv__ui-dialog-ok-button.fv__ui-button {
    background-color: #0D86FF !important;
    border-color: #0D86FF !important;
    color: #fff !important;
}

/* 悬停状态 */
.fv__ui-dialog-ok-button:hover,
.fv__ui-dialog-ok-button.fv__ui-button:hover {
    background-color: #2F97FF !important;
    border-color: #2F97FF !important;
}

/* 点击/激活状态 */
.fv__ui-dialog-ok-button:active,
.fv__ui-dialog-ok-button.fv__ui-button:active {
    background-color: #1583F1 !important;
    border-color: #1583F1 !important;
}

/* 禁用状态 */
.fv__ui-dialog-ok-button:disabled,
.fv__ui-dialog-ok-button.fv__ui-button:disabled,
.fv__ui-dialog-ok-button.disabled,
.fv__ui-dialog-ok-button.fv__ui-button.disabled {
    background-color: #94BFFF !important;
    border-color: #94BFFF !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}