/**
 * 方正LaTeX对照检查插件样式
 */

/* 容器样式 */
.flc-fullscreen-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    overflow: hidden;
}

/* 在全屏模式下覆盖容器样式 */
body.flc-blank-template .flc-fullscreen-container,
.flc-fullscreen-page .flc-fullscreen-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 999999 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 高度模式：全高模式 */
.flc-fullheight {
    height: 100vh;
    overflow: hidden;
}

/* 高度模式：标准高度模式 */
.flc-standard-height {
    height: auto;
    min-height: 600px;
    max-height: 700px; /* 限制最大高度 */
}

/* 行样式 */
.flc-fullscreen-row {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.flc-standard-height .flc-fullscreen-row {
    min-height: 600px;
    max-height: 660px; /* 设置最大高度，留出工具栏空间 */
    height: auto;
    overflow: hidden;
}

/* 左右列样式 */
.flc-fullscreen-left, .flc-fullscreen-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.flc-fullscreen-right {
    border-right: none;
}

/* 编辑器包装器 */
.flc-editor-wrapper, .flc-preview-wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-height: 250px;
    max-height: 300px;
}

/* 在全屏模式下允许更大高度 */
body.flc-fullscreen-page .flc-editor-wrapper,
body.flc-fullscreen-page .flc-preview-wrapper {
    max-height: none;
}

/* 在标准高度模式下的最小高度 */
.flc-standard-height .flc-editor-wrapper,
.flc-standard-height .flc-preview-wrapper {
    min-height: 250px;
    max-height: 300px;
}

/* 标题样式 */
.flc-section-header {
    padding: 8px 12px;
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 区域标题文本 */
.flc-section-header > span {
    flex-shrink: 0;
    margin-right: 10px;
}

/* 编辑器样式 */
.flc-fullscreen-editor {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    outline: none;
    padding: 12px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    background: #fdfdfd;
    color: #333;
    overflow-y: auto;
    flex: 1;
}

/* 增强编辑器选择区域高亮 */
.flc-fullscreen-editor::selection {
    background-color: #ffcc00;
    color: #000;
}

.flc-fullscreen-editor::-moz-selection {
    background-color: #ffcc00;
    color: #000;
}

/* 调整大小的手柄，基础样式 */
.flc-resize-handle {
    position: absolute;
    z-index: 20;
    background: transparent;
}

/* 边缘拖拽区域 - 方向样式 */
/* 顶部 */
.flc-resize-n {
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    cursor: ns-resize;
}

/* 右上角 */
.flc-resize-ne {
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nesw-resize;
}

/* 右侧 */
.flc-resize-e, .flc-resize-right {
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}

/* 右下角 */
.flc-resize-se {
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: transparent;
    border: none;
}

/* 底部 */
.flc-resize-s, .flc-resize-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    cursor: ns-resize;
}

/* 左下角 */
.flc-resize-sw {
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    cursor: nesw-resize;
}

/* 左侧 */
.flc-resize-w {
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}

/* 左上角 */
.flc-resize-nw {
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
}

/* 调整大小时的遮罩层光标样式 */
.flc-resize-overlay.resize-n {
    cursor: ns-resize !important;
}

.flc-resize-overlay.resize-ne {
    cursor: nesw-resize !important;
}

.flc-resize-overlay.resize-e, .flc-resize-overlay.resize-right {
    cursor: ew-resize !important;
}

.flc-resize-overlay.resize-se, .flc-resize-overlay.resize-corner {
    cursor: nwse-resize !important;
}

.flc-resize-overlay.resize-s, .flc-resize-overlay.resize-bottom {
    cursor: ns-resize !important;
}

.flc-resize-overlay.resize-sw {
    cursor: nesw-resize !important;
}

.flc-resize-overlay.resize-w {
    cursor: ew-resize !important;
}

.flc-resize-overlay.resize-nw {
    cursor: nwse-resize !important;
}

/* 拖拽区域悬停效果 */
.flc-resize-handle:hover {
    background-color: transparent;
}

/* 预览容器 */
.flc-preview-container {
    flex: 1;
    padding: 0;
    overflow: auto;
    background: #fff;
    height: 100%;
    position: relative;
}

/* LaTeX iframe */
.flc-latex-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
    overflow: auto;
}

/* 空预览提示 */
.flc-empty-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-style: italic;
    color: #999;
    text-align: center;
}

/* 定义空白下划线样式 - 全局可用 */
.underline {
    display: inline-block;
    width: 4em;         /* 控制下划线长度 */
    margin: 0 0.5em;    /* 增加左右间距 */
    border-bottom: 1px solid #000;  /* 定义下划线 */
    height: 0.7em;      /* 调整高度以匹配文本 */
    vertical-align: middle; /* 对齐方式 */
    position: relative;
}

/* 主题内容页面适配样式 */
.entry-content .flc-fullscreen-container,
.site-content .flc-fullscreen-container,
.post-content .flc-fullscreen-container,
.page-content .flc-fullscreen-container,
.content-area .flc-fullscreen-container,
#content .flc-fullscreen-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .flc-fullscreen-row {
        flex-direction: column;
    }
    .flc-fullscreen-left, .flc-fullscreen-right {
        width: 100%;
        border-right: none;
    }
    .flc-fullscreen-left {
        border-bottom: 1px solid #e0e0e0;
    }
    .flc-standard-height {
        min-height: 800px;
        max-height: 900px; /* 适应更高 */
    }
    
    /* 在响应式布局下调整编辑器和预览区的高度 */
    .flc-standard-height .flc-editor-wrapper,
    .flc-standard-height .flc-preview-wrapper {
        min-height: 180px;
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .flc-editor-wrapper,
    .flc-preview-wrapper {
        min-height: 150px;
        max-height: 180px;
    }
    
    /* 移动设备上更紧凑的布局 */
    .flc-standard-height {
        min-height: 700px;
        max-height: 800px;
    }
    
    /* 调整控件组在移动设备上的显示 */
    .flc-controls-group {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    
    .flc-section-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px;
    }
    
    .flc-section-header > div:first-child {
        margin-bottom: 5px;
    }
}

/* 控件组样式 - 用于包含翻页和文件控件 */
.flc-controls-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-grow: 1;
    justify-content: flex-end;
}

/* 文件上传控件样式 */
.flc-file-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* 隐藏原始文件输入 */
.flc-file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

/* 文件上传标签 */
.flc-file-label,
.flc-file-download,
.flc-file-clear,
.flc-file-save,
.flc-panel-maximize,
.flc-file-convert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin: 0;
}

/* 文件上传标签 */
.flc-file-label {
    background-color: #f0f0f0;
    color: #333;
}

.flc-file-label:hover {
    background-color: #e0e0e0;
}

/* 文件下载链接 */
.flc-file-download {
    background-color: #f0f0f0;
    color: #333;
}

.flc-file-download:hover {
    background-color: #e0e0e0;
}

/* 保存按钮 */
.flc-file-save {
    background-color: #e6f2ff;
    color: #0073aa;
}

.flc-file-save:hover {
    background-color: #c7e0ff;
}

/* 清空按钮 */
.flc-file-clear {
    background-color: #f5e5e5;
    color: #cc0000;
}

.flc-file-clear:hover {
    background-color: #d43f3a;
    color: #fff;
}

/* 从方正转入按钮样式 */
.flc-file-convert {
    color: #0073aa;
    background: #f0f0f0;
}

.flc-file-convert:hover {
    background-color: #0073aa;
    color: #fff;
}

/* 最大化按钮 */
.flc-panel-maximize {
    background-color: #f0f0f0;
    color: #333;
}

.flc-panel-maximize:hover {
    background-color: #e0e0e0;
}

/* 文件操作中的图标 */
.flc-file-label .dashicons,
.flc-file-download .dashicons,
.flc-file-clear .dashicons,
.flc-file-save .dashicons,
.flc-panel-maximize .dashicons,
.flc-file-convert .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 更新标题样式以容纳文件控件 */
.flc-section-header {
    padding: 8px 12px;
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 分页控件 */
.flc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
    margin: 0;
    background: transparent;
    border: none;
}

.flc-pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 1px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    color: #333;
    transition: all 0.2s ease;
}

.flc-pagination button:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #999;
    transform: translateY(-1px);
}

.flc-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flc-pagination .flc-page-display {
    margin: 0 3px;
    min-width: 80px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #555;
}

/* 工作区样式 */
.flc-workspace {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    overflow: visible;
    display: block;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
    z-index: 1;
}

/* 面板样式 - 悬浮窗口 */
.flc-panel {
    position: fixed;
    width: 300px;
    height: 250px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 10;
    resize: none; /* 禁用原生resize */
}

.flc-panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #ccc;
}

.flc-panel.flc-dragging {
    opacity: 0.9;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #aaa;
    z-index: 30 !important;
}

.flc-panel.flc-resetting {
    transition: all 0.5s ease-in-out;
}

/* 面板头部 */
.flc-panel-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move; /* 鼠标指针指示可拖动 */
    user-select: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s ease;
    color: #333;
}

.flc-panel-header:hover {
    background: #f0f2f5;
}

/* 面板标题文本 */
.flc-panel-header > span {
    flex-shrink: 0;
    margin-right: 10px;
}

/* 面板内容 */
.flc-panel-content {
    height: calc(100% - 36px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 重置布局按钮样式 */
#flc-reset-panels, #flc-reset-layout {
    background-color: #e8f4f8;
    border-color: #bbd8e8;
}

#flc-reset-panels:hover, #flc-reset-layout:hover {
    background-color: #d6eaf4;
    border-color: #a6c8d8;
}

/* 预览容器 */
.flc-preview-container {
    flex: 1;
    padding: 0;
    overflow: auto;
    background: #fff;
    height: 100%;
    position: relative;
}

/* LaTeX iframe */
.flc-latex-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
    overflow: auto;
}

/* 面板控制按钮 */
.flc-panel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 最大化状态 */
.flc-panel.maximized {
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1000 !important;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* 调整最大化状态下的关闭按钮显示 */
.flc-panel.maximized .flc-panel-maximize .dashicons {
    transform: rotate(180deg);
}

/* 重置布局时的动画效果 */
.flc-panel.flc-resetting {
    transition: width 0.5s ease-out, height 0.5s ease-out, left 0.5s ease-out, top 0.5s ease-out !important;
}

/* 悬浮工具栏 */
.flc-floating-toolbar {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 99999;
    transition: all 0.2s ease;
    will-change: transform; /* 提示浏览器这个元素会频繁变化，启用硬件加速 */
    transform: translate3d(0, 0, 0); /* 强制启用GPU加速 */
    -webkit-backface-visibility: hidden; /* 防止闪烁 */
    -webkit-perspective: 1000; /* 防止闪烁 */
    touch-action: none; /* 防止在触摸设备上的滚动干扰 */
    cursor: grab; /* 默认显示抓取光标 */
    min-width: 40px;
}

/* 移除原来的"•••"拖动提示区，改用dashicons */
.flc-floating-toolbar:before {
    content: "\f545"; /* WordPress Dashicons move图标代码 */
    font-family: dashicons;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 16px;
    color: #888;
    cursor: move;
    width: 16px;
    height: 16px;
}

/* 工具栏收放切换 */
.flc-toolbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    margin-right: 8px;
    user-select: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease;
    position: relative;
    z-index: 1;
}

.flc-toolbar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.flc-toolbar-toggle:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.flc-toolbar-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.flc-toolbar-toggle .toggle-text {
    font-size: 14px;
    transition: opacity 0.3s ease, width 0.3s ease;
    opacity: 0; /* 默认隐藏文字 */
    width: 0;
    overflow: hidden;
}

/* 工具栏内容区 */
.flc-toolbar-content {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    width: auto;
    transition: all 0.3s ease;
}

/* 收起状态下的工具栏 */
.flc-floating-toolbar.collapsed {
    padding: 8px 8px;
}

.flc-floating-toolbar.collapsed .flc-toolbar-content {
    width: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.flc-floating-toolbar.collapsed .flc-toolbar-toggle {
    margin-right: 0;
}

/* 收起状态下显示文字和旋转图标 */
.flc-floating-toolbar.collapsed .flc-toolbar-toggle .dashicons {
    transform: rotate(180deg);
    margin-right: 5px;
}

.flc-floating-toolbar.collapsed .flc-toolbar-toggle .toggle-text {
    width: auto;
    opacity: 1;
    overflow: visible;
}

/* 工具栏拖动时的样式 */
.flc-floating-toolbar.flc-dragging {
    opacity: 0.95;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    cursor: grabbing !important; /* 拖动时显示抓取中光标 */
    user-select: none !important; /* 防止文本选择 */
    transition: none !important; /* 拖动时禁用过渡效果 */
    pointer-events: none !important; /* 防止鼠标事件干扰拖动 */
}

/* 工具栏按钮激活状态 */
.flc-toolbar-button.active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

/* 工具栏按钮 */
.flc-toolbar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 0 5px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer !important;
    white-space: nowrap;
    transition: all 0.15s ease-out;
    color: #333;
    position: relative;
    overflow: hidden;
    min-width: 30px;
    min-height: 30px;
}

.flc-toolbar-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.flc-toolbar-button:active {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition-duration: 0.05s;
}

/* 点击涟漪效果 */
.flc-toolbar-button::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.3s, opacity 0.5s;
}

.flc-toolbar-button:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.flc-toolbar-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.flc-toolbar-button .button-text {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .flc-toolbar-button {
        padding: 5px 8px;
    }
    
    .flc-toolbar-button .button-text {
        display: none;
    }
    
    .flc-toolbar-button .dashicons {
        margin-right: 0;
    }
}

/* 面板过渡效果 */

/* 当前编辑区域高亮 */
.highlight-current {
    background-color: rgba(255, 255, 0, 0.25);
    border-radius: 3px;
    padding: 2px 0;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* 在预览面板中的高亮样式 */
#flc-founder-preview .highlight-current {
    display: inline;
}

/* LaTeX预览中的高亮样式，在iframe中已定义，这里是备用 */
#flc-latex-iframe .highlight-current {
    background-color: rgba(255, 255, 0, 0.25);
}

/* 页面跳转控件样式 */
.flc-jump-page {
    display: flex;
    align-items: center;
    margin-left: 2px;
}

.flc-jump-page-input {
    width: 35px;
    height: 22px;
    padding: 0 3px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    /* 隐藏数字输入框的上下箭头 */
    -moz-appearance: textfield; /* Firefox */
}

/* 隐藏Webkit浏览器(Chrome, Safari)的上下箭头 */
.flc-jump-page-input::-webkit-outer-spin-button,
.flc-jump-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.flc-jump-page-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 3px rgba(0, 115, 170, 0.8);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .flc-pagination {
        flex-wrap: wrap;
    }
    
    .flc-jump-page {
        margin-top: 5px;
        margin-left: 0;
    }
}

/* 批量转换对话框样式 */
.flc-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    width: 400px;
    max-width: 90vw;
    padding: 20px;
}

.flc-dialog-content {
    position: relative;
}

.flc-dialog h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.flc-progress-container {
    margin: 20px 0;
}

.flc-progress-bar {
    height: 15px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.flc-progress-fill {
    height: 100%;
    background-color: #0073aa;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

.flc-progress-text {
    font-size: 12px;
    text-align: center;
    color: #666;
}

.flc-progress-status {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.flc-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.flc-counter {
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
    min-width: 35px;
}

#flc-batch-status {
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 5px;
}

.flc-batch-controls {
    display: flex;
    gap: 2px;
    margin-left: 5px;
}

.flc-batch-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #555;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flc-batch-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.flc-batch-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 对话框遮罩 */
.flc-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

/* 批量转换按钮特殊样式 */
#flc-batch-convert {
    background-color: #e6f2ff;
    color: #0073aa;
    border-color: #c0d8e8;
}

#flc-batch-convert:hover {
    background-color: #d1e8ff;
    border-color: #a6c8d8;
}

/* 批量转换过程中的按钮状态 */
#flc-batch-convert.processing {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
    position: relative;
}

#flc-batch-convert.processing .dashicons {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 批量转换悬浮对话框样式 */
.flc-floating-dialog {
    position: fixed;
    top: 120px;
    right: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    width: 260px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s ease;
}

.flc-floating-dialog.minimized {
    height: 36px;
    overflow: hidden;
}

.flc-dialog-header {
    padding: 6px 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-size: 12px;
    font-weight: 600;
    user-select: none;
}

.flc-dialog-controls {
    display: flex;
    gap: 5px;
}

.flc-dialog-minimize,
.flc-dialog-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    text-decoration: none;
    color: #555;
    background: transparent;
}

.flc-dialog-minimize:hover,
.flc-dialog-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.flc-dialog-close:hover {
    color: #d54e21;
}

.flc-dialog-content {
    padding: 8px;
}

.flc-progress-container {
    margin: 0;
}

.flc-progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.flc-progress-fill {
    height: 100%;
    background-color: #0073aa;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

.flc-progress-status {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.flc-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.flc-counter {
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
    min-width: 35px;
}

#flc-batch-status {
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 5px;
}

.flc-batch-controls {
    display: flex;
    gap: 2px;
    margin-left: 5px;
}

.flc-batch-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #555;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flc-batch-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.flc-batch-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 按钮状态 */
.flc-batch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 拖动时的样式 */
.flc-floating-dialog.flc-dragging {
    opacity: 0.9;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
    user-select: none;
}

/* 最小化状态 */
.flc-floating-dialog.minimized .flc-dialog-content {
    display: none;
}

/* 面板调整大小时的样式 */
.flc-panel.flc-resizing {
    opacity: 0.9;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
    user-select: none !important;
    pointer-events: none;
}

/* 调整大小时的遮罩层 */
.flc-resize-overlay {
    cursor: nwse-resize !important;
    user-select: none !important;
}

/* 拖动时的遮罩层 */
.flc-drag-overlay {
    cursor: move !important;
    user-select: none !important;
}

/* 确保所有拖动和调整大小操作期间不选中文本 */
.flc-panel.flc-dragging *,
.flc-panel.flc-resizing * {
    user-select: none !important;
}

/* 新增窗口边缘拖动区域样式 */
/* 边缘拖拽区域 - 右侧 */
.flc-resize-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
    z-index: 20;
}

/* 边缘拖拽区域 - 底部 */
.flc-resize-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    cursor: ns-resize;
    background: transparent;
    z-index: 20;
}

/* 调整大小时的遮罩层光标样式 */
.flc-resize-overlay.resize-right {
    cursor: ew-resize !important;
}

.flc-resize-overlay.resize-bottom {
    cursor: ns-resize !important;
}

.flc-resize-overlay.resize-corner {
    cursor: nwse-resize !important;
}

/* 拖拽区域悬停效果 */
.flc-resize-right:hover,
.flc-resize-bottom:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 查找对话框样式 */
.flc-search-container {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flc-search-editor-select {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.flc-search-jump-mode {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.flc-radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.flc-radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.flc-search-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.flc-search-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    min-width: 150px;
    height: 26px;
}

.flc-search-controls {
    display: flex;
    gap: 2px;
    margin-left: 2px;
}

.flc-search-btn {
    padding: 0;
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flc-search-btn:hover {
    background: #e5e5e5;
}

.flc-search-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flc-search-status-container {
    display: flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 4px;
    margin-top: 4px;
}

.flc-search-status {
    font-size: 12px;
    color: #666;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    width: 100%;
}

.flc-search-highlight {
    background-color: #ffeb3b;
    border-radius: 2px;
}

.flc-search-highlight.active {
    background-color: #ffc107;
}

/* 查找对话框特定样式 */
#flc-search-dialog {
    width: 320px;
    position: fixed;
    top: 120px;
    right: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

#flc-search-dialog .flc-dialog-header {
    cursor: move;
    user-select: none;
}

#flc-search-dialog.flc-dragging {
    opacity: 0.9;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

#flc-search-dialog.minimized {
    height: 36px;
    overflow: hidden;
}

/* 鼠标黏连问题修复 */
.flc-panel, .flc-floating-toolbar, .flc-floating-dialog {
    /* 防止拖动操作失败后鼠标悬停状态异常 */
    pointer-events: auto !important;
}

/* 防止拖动时鼠标黏连 */
.flc-panel.flc-dragging, 
.flc-panel.flc-resizing,
.flc-floating-toolbar.flc-dragging,
.flc-floating-dialog.flc-dragging {
    pointer-events: none !important;
    touch-action: none !important;
    user-select: none !important;
}

/* 拖动遮罩 */
.flc-drag-overlay, .flc-resize-overlay {
    pointer-events: auto !important;
    user-select: none !important;
    touch-action: none !important;
    z-index: 99999 !important;
} 