/* 添加导航栏固定样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

/* 添加错误提示样式 */
.error-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    min-width: 300px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
}

/* Markdown样式 */
.markdown-content h1 {
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
}

.markdown-content h3 {
    font-size: 1.3rem;
    margin-top: 0.7rem;
    margin-bottom: 0.3rem;
}

.markdown-content h4 {
    font-size: 1.2rem;
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
}

.markdown-content h5 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

.markdown-content h6 {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

.markdown-content p {
    margin-bottom: 0.8rem;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
}

.markdown-content blockquote {
    padding: 0.5rem 1rem;
    border-left: 4px solid #ced4da;
    margin-bottom: 0.8rem;
}

.markdown-content pre {
    background-color: #f8f9fa;
    padding: 0.8rem;
    border-radius: 4px;
    overflow-x: auto;
}

.markdown-content code {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #dee2e6;
    padding: 8px;
}

.markdown-content th {
    background-color: #f8f9fa;
}

/* 通知提示样式 */
.notification-toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

.error-toast.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

/* 添加旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* 为固定导航栏添加页面内容的上边距 */
body {
    padding-top: 56px;
    /* 导航栏的高度 */
}

#checkStatusArea .alert {
    font-size: 1rem;
    padding: .4rem .8rem;
}

.step-badge {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    border-radius: 50%;
    background: #fff;
    color: #0d6efd;
    font-weight: bold;
    font-size: 1.15em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 2px solid #0d6efd;
    text-align: center;
    vertical-align: middle;
    margin-right: 0.5em;
}

.btn-check-main {
    background: linear-gradient(90deg, #e69704 0%, #e69704 100%);
    color: #fff !important;
    font-size: 1.35rem;
    font-weight: bold;
    border: none;
    border-radius: 2.5rem;
    box-shadow: 0 4px 18px 0 rgba(30, 144, 255, 0.15);
    padding: 0.9rem 3.5rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.btn-check-main:hover,
.btn-check-main:focus {
    background: linear-gradient(90deg, #e69704 0%, #e69704 100%);
    box-shadow: 0 8px 24px 0 rgba(30, 144, 255, 0.22);
    transform: translateY(-2px) scale(1.03);
    color: #fff !important;
}

/* 添加图片预览相关样式 */
.image-preview {
    max-height: 500px;
    overflow-y: auto;
}

.preview-pane {
    margin-top: 10px;
}

.preview-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
    cursor: pointer;
    /* 添加鼠标手型 */
    transition: transform 0.2s ease;
    /* 添加过渡效果 */
}

.preview-item:hover {
    transform: translateY(-2px);
    /* 悬停时轻微上浮 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 添加阴影效果 */
}

.preview-item img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

/* 添加图片预览模态框样式 */
.image-preview-modal .modal-dialog {
    max-width: 90vw;
    margin: 1.75rem auto;
}

.image-preview-modal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
}

.image-preview-modal .modal-body {
    padding: 0;
    position: relative;
    text-align: center;
}

.image-preview-modal .preview-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.image-preview-modal .modal-footer {
    background-color: rgba(0, 0, 0, 0.9);
    border-top: none;
    padding: 0.5rem;
}

.image-preview-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.image-preview-modal .page-info {
    color: white;
    font-size: 0.9rem;
}

.image-preview-modal .nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.image-preview-modal .nav-button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.2s;
}

.image-preview-modal .nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-preview-modal .nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 添加检查项目列表样式 */
.check-items-container {
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #f8f9fa;
}

.check-items-container::-webkit-scrollbar {
    width: 6px;
}

.check-items-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.check-items-container::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.check-items-container::-webkit-scrollbar-thumb:hover {
    background-color: #adb5bd;
}

.check-items-container .list-group-item {
    border-left: none;
    border-right: none;
}

.check-items-container .list-group-item:first-child {
    border-top: none;
}

.check-items-container .list-group-item:last-child {
    border-bottom: none;
}

/* 添加进度条动画样式 */
.progress-bar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 持续的进度条走动效果 */
.progress-bar-continuous {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 25%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.3) 75%,
            transparent 100%);
    background-size: 200% 100%;
    animation: progressFlow 2s linear infinite;
}

@keyframes progressFlow {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 不同检查项的进度条颜色差异 - 统一使用#007bff */
.list-group-item:nth-child(1) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(2) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(3) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(4) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(5) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(6) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(7) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(8) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(9) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(10) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(11) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(12) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(13) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(14) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(15) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(16) .progress-bar {
    background: #007bff;
}

.list-group-item:nth-child(17) .progress-bar {
    background: #007bff;
}

/* 为超过17个的项目提供循环颜色 */
.list-group-item:nth-child(n+18) .progress-bar {
    background: #007bff;
}

/* 添加图标动画样式 */
.check-icon {
    transition: all 0.3s ease;
}

.check-icon.completed {
    transform: scale(1.2);
    animation: completePulse 0.6s ease-in-out;
}

/* 完成时的脉冲动画 */
@keyframes completePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1.2);
    }
}

/* 进度文本的颜色变化 */
.progress-text {
    transition: color 0.3s ease;
    color: #000000 !important;
    /* 统一使用黑色 */
}

.list-group-item .progress-text[data-progress="100"] {
    color: #000000 !important;
    font-weight: bold;
}

/* 添加报告预览样式 */
.report-preview-container {
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #f8f9fa;
    background: #f8f9fa;
    border-radius: 8px;
}

.report-preview-container::-webkit-scrollbar {
    width: 6px;
}

.report-preview-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.report-preview-container::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.report-preview-container::-webkit-scrollbar-thumb:hover {
    background-color: #adb5bd;
}

.report-page-item {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-page-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.report-page-item img {
    width: 100%;
    height: auto;
    display: block;
}

.report-page-item .page-number {
    padding: 0.25rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 0.75rem;
    color: #6c757d;
}

/* 添加图片加载失败样式 */
.report-page-item .page-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 改为正方形比例，更紧凑 */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-page-item .page-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.report-page-item .page-image .fallback-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #dee2e6;
    display: none;
}

.report-page-item .page-image img.error+.fallback-icon {
    display: block;
}

/* 添加或修改模态框相关样式 */
.image-preview-modal .modal-dialog {
    max-width: 90vw;
    margin: 1.75rem auto;
}

.image-preview-modal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
}

.image-preview-modal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
}

.image-preview-modal .modal-backdrop.show {
    opacity: 0.9;
}

.image-preview-modal .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1050;
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.image-preview-modal .btn-close:hover {
    opacity: 1;
}

/* 新增：鼠标悬停在问题数量卡片时给数字添加下划线 */
.card-body[onclick] h3:hover {
    text-decoration: underline;
}

/* 自定义规则相关样式 */
.rule-input-row {
    transition: all 0.2s ease;
}

.rule-input-row:hover {
    background-color: #f8f9fa !important;
}

/* 输入框错误状态样式 */
.form-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    animation: shake 0.5s ease-in-out;
}

/* 错误提示动画 */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* 自定义规则状态提示样式 */
.custom-rule-status {
    transition: all 0.3s ease;
}

/* 模型选择下拉美化样式 */
.model-select-wrapper {
    position: relative;
}

.model-select-enhanced {
    background-image: none !important;
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #495057;
}

.model-select-enhanced:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.model-select-enhanced:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25), 0 4px 12px rgba(13, 110, 253, 0.15);
    background: #ffffff;
    outline: none;
}

.model-select-enhanced:focus+.select-arrow {
    color: #0d6efd;
    transform: translateY(-50%) rotate(180deg);
}

.model-select-enhanced optgroup {
    font-weight: 700;
    color: #343a40;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.model-select-enhanced option {
    padding: 12px 16px;
    background: #ffffff;
    color: #495057;
    font-weight: 500;
    border: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.model-select-enhanced option:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    font-weight: 600;
}

.model-select-enhanced option:checked,
.model-select-enhanced option:selected {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.model-select-enhanced option:last-child {
    border-bottom: none;
}

.select-arrow {
    font-size: 0.8rem;
}

.select-arrow:hover {
    color: #0d6efd;
}

/* 文档类型下拉美化样式 */
.document-type-wrapper {
    position: relative;
}

.document-type-enhanced {
    background-image: none !important;
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #495057;
}

.document-type-enhanced:hover {
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.document-type-enhanced:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25), 0 4px 12px rgba(40, 167, 69, 0.15);
    background: #ffffff;
    outline: none;
}

.document-type-enhanced:focus+.select-arrow {
    color: #28a745;
    transform: translateY(-50%) rotate(180deg);
}

.document-type-enhanced option {
    padding: 12px 16px;
    background: #ffffff;
    color: #495057;
    font-weight: 500;
    border: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.document-type-enhanced option:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    font-weight: 600;
}

.document-type-enhanced option:checked,
.document-type-enhanced option:selected {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-type-enhanced option:last-child {
    border-bottom: none;
}

/* 下拉选项的高级美化效果 */
.model-select-enhanced,
.document-type-enhanced {
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #f8f9fa;
}

.model-select-enhanced::-webkit-scrollbar,
.document-type-enhanced::-webkit-scrollbar {
    width: 8px;
}

.model-select-enhanced::-webkit-scrollbar-track,
.document-type-enhanced::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.model-select-enhanced::-webkit-scrollbar-thumb,
.document-type-enhanced::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
}

/* 原始数据提取内容样式 */
.raw-data-item {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.raw-data-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.raw-data-item .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.raw-data-item .card-header h6 {
    color: #495057;
    font-weight: 600;
}

.raw-data-item .preview-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.raw-data-item .preview-container:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.raw-data-item .preview-container img {
    transition: transform 0.3s ease;
}

.raw-data-item .preview-container:hover img {
    transform: scale(1.02);
}

.raw-data-item .extracted-content {
    background-color: #ffffff;
}

.raw-data-item .extracted-content h4,
.raw-data-item .extracted-content h5,
.raw-data-item .extracted-content h6 {
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.raw-data-item .extracted-content h4 {
    font-size: 1.1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.25rem;
}

.raw-data-item .extracted-content h5 {
    font-size: 1rem;
    color: #007bff;
}

.raw-data-item .extracted-content h6 {
    font-size: 0.9rem;
    color: #6c757d;
}

.raw-data-item .extracted-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.raw-data-item .extracted-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.raw-data-item .extracted-content li {
    margin-bottom: 0.25rem;
}

.raw-data-item .extracted-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.raw-data-item .extracted-content em {
    color: #6c757d;
    font-style: italic;
}

/* 文件类型图标样式 */
.raw-data-item .file-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.raw-data-item .preview-container:hover .file-icon {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .raw-data-item .row {
        flex-direction: column;
    }

    .raw-data-item .col-md-4,
    .raw-data-item .col-md-8 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .raw-data-item .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
    }

    .raw-data-item .p-3 {
        height: auto !important;
        min-height: 200px;
    }
}

.raw-data-image-stack .stack-image.active {
    opacity: 1;
}

.image-nav-controls {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 12px;
}

.image-nav-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.image-nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.image-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-indicators {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.raw-data-content-section {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.raw-data-file-info {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.raw-data-file-name {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.raw-data-file-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.raw-data-typewriter {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #495057;
    min-height: 80px;
    position: relative;
    overflow-y: auto;
    max-height: 120px;
}

.typewriter-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.typewriter-cursor {
    display: inline-block;
    background-color: #007bff;
    width: 2px;
    height: 1.2em;
    animation: blink 1s infinite;
    margin-left: 1px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.raw-data-status {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.status-processing {
    color: #007bff;
}

.status-completed {
    color: #28a745;
}

.status-waiting {
    color: #6c757d;
}

.status-ready {
    color: #17a2b8;
}

.status-error {
    color: #dc3545;
}

.status-error {
    color: #dc3545;
}

.model-select-enhanced::-webkit-scrollbar-track,
.document-type-enhanced::-webkit-scrollbar-track {
    border-radius: 4px;
    border: 2px solid #f8f9fa;
}

.model-select-enhanced::-webkit-scrollbar-thumb:hover,
.document-type-enhanced::-webkit-scrollbar-thumb:hover {
    background-color: #adb5bd;
}

/* 为选项添加微妙的阴影效果 */
.model-select-enhanced option:hover,
.document-type-enhanced option:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* 选中状态的特殊效果 */
.model-select-enhanced option:checked::before,
.document-type-enhanced option:checked::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 8px;
}

/* 为emoji图标添加动画效果 */
.model-select-enhanced option:hover,
.document-type-enhanced option:hover {
    animation: optionPulse 0.3s ease-in-out;
}

@keyframes optionPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* 下拉框打开时的动画效果 */
.model-select-enhanced:focus,
.document-type-enhanced:focus {
    animation: dropdownOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownOpen {
    0% {
        transform: scaleY(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 针对不同浏览器的option样式优化 */
@supports (-webkit-appearance: none) {

    .model-select-enhanced option,
    .document-type-enhanced option {
        background-image: none;
        text-indent: 0.01px;
        text-overflow: '';
    }
}

/* Firefox特殊处理 */
@-moz-document url-prefix() {

    .model-select-enhanced,
    .document-type-enhanced {
        text-indent: 0.01px;
        text-overflow: '';
    }

    .model-select-enhanced option,
    .document-type-enhanced option {
        background-color: #ffffff;
        color: #495057;
    }

    .model-select-enhanced option:hover,
    .document-type-enhanced option:hover {
        background-color: #f8f9fa;
    }
}

/* 增强的视觉反馈 */
.model-select-enhanced:active,
.document-type-enhanced:active {
    transform: scale(0.98);
}

/* 为下拉框添加微妙的发光效果 */
.model-select-enhanced:focus,
.document-type-enhanced:focus {
    box-shadow:
        0 0 0 0.2rem rgba(13, 110, 253, 0.25),
        0 4px 12px rgba(13, 110, 253, 0.15),
        0 0 20px rgba(13, 110, 253, 0.1);
}

.document-type-enhanced:focus {
    box-shadow:
        0 0 0 0.2rem rgba(40, 167, 69, 0.25),
        0 4px 12px rgba(40, 167, 69, 0.15),
        0 0 20px rgba(40, 167, 69, 0.1);
}

/* ===== 全新自定义下拉选择器样式 ===== */
.custom-select-wrapper {
    position: relative;
    width: 310px;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-select-wrapper.compact {
    width: 130px;
}

.custom-select-trigger {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%);
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    padding: 5px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.custom-select-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.02) 100%);
    opacity: 0;
}

.custom-select-trigger:hover::before {
    opacity: 1;
}

.custom-select-trigger:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-select-trigger.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1), 0 4px 16px rgba(13, 110, 253, 0.15);
}

.custom-select-trigger.active .select-arrow {
    color: #0d6efd;
}

.custom-select-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.select-icon {
    font-size: 1.1rem;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #6c757d;
}

.select-text {
    flex: 1;
    min-width: 0;
}

.select-value {
    font-size: 0.75rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact .select-value {
    font-size: 0.8rem;
}

.select-arrow {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: 8px;
}

/* 下拉菜单样式 */
.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    max-height: 300px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.custom-select-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.select-group {
    padding: 8px 0;
}

.select-group:not(:last-child) {
    border-bottom: 1px solid #f1f3f5;
}

.select-group-label {
    display: flex;
    align-items: center;
    padding: 8px 16px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.select-group-label i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.select-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;
}



.select-option:hover {
    background: linear-gradient(135deg, #f8fafe 0%, #e3f2fd 100%);
    /* transform: translateX(4px); */
}

.select-option.active {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    font-weight: 600;
}

.option-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #6c757d;
}

.select-option:hover .option-icon,
.select-option.active .option-icon {
    color: #0d6efd;
}

.option-content {
    flex: 1;
    min-width: 0;
}

.option-title {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: #2c3e50;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-desc {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.2;
}

.option-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.option-badge:not(.premium) {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.option-badge.premium {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

/* 紧凑模式样式调整 */
.compact .select-option {
    padding: 10px 12px;
}

.compact .option-title {
    font-size: 0.8rem;
}

.compact .option-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* 滚动条美化 */
.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dee2e6 0%, #adb5bd 100%);
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #adb5bd 0%, #6c757d 100%);
}

/* 响应式设计和动画增强 */
@media (max-width: 768px) {
    .custom-select-wrapper {
        width: 220px;
    }

    .custom-select-wrapper.compact {
        width: 100px;
    }

    /* 原始数据按钮响应式 */
    .custom-select-wrapper:has(#rawDataUploadBtn) {
        width: 100px !important;
    }

    /* 控制栏左侧移动端适配 */
    .control-bar-left {
        max-width: calc(100% - 20px);
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .control-bar-left::-webkit-scrollbar {
        display: none;
    }

    /* 小屏幕下拉菜单层级处理 */
    .custom-select-wrapper {
        position: relative;
        z-index: 200;
    }

    .custom-select-wrapper.active {
        z-index: 100001;
    }

    .custom-select-dropdown {
        z-index: 100000 !important;
        max-height: 200px !important;
    }

    /* 确保textarea不会覆盖下拉菜单 */
    #additionalRequirements {
        position: relative;
        z-index: 1;
    }

    .custom-select-trigger {
        padding: 6px 8px;
        height: 30px !important;
    }

    .select-icon {
        font-size: 0.9rem;
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    .select-value {
        font-size: 0.65rem;
    }

    /* 原始数据按钮移动端优化 */
    #rawDataUploadBtn {
        height: 30px !important;
        padding: 6px 8px !important;
    }

    #rawDataUploadBtn .select-value {
        font-size: 0.65rem !important;
    }

    #rawDataUploadBtn .select-icon {
        margin-right: 4px !important;
    }

    .select-option {
        padding: 10px 12px;
    }

    .option-title {
        font-size: 0.7rem;
    }

    .option-desc {
        font-size: 0.65rem;
    }
}

/* 键盘导航支持 */
.custom-select-trigger:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.select-option:focus {
    outline: none;
    background: linear-gradient(135deg, #f8fafe 0%, #e3f2fd 100%);
}

/* 加载状态动画 */
.custom-select-trigger.loading {
    pointer-events: none;
}

.custom-select-trigger.loading .select-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 错误状态样式 */
.custom-select-trigger.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* 成功状态样式 */
.custom-select-trigger.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* 禁用状态样式 */
.custom-select-trigger.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .custom-select-trigger {
        border-width: 3px;
    }

    .select-option:hover,
    .select-option.active {
        background: #000;
        color: #fff;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {

    .custom-select-trigger,
    .custom-select-dropdown,
    .select-option,
    .option-icon,
    .select-arrow {
        transition: none;
        animation: none;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .model-select-wrapper {
        width: 160px !important;
    }

    .document-type-wrapper {
        width: 100px !important;
    }

    .model-select-enhanced,
    .document-type-enhanced {
        font-size: 0.8rem;
        padding-left: 8px;
        padding-right: 25px;
    }
}

/* Tab保存按钮桌面端样式 */
#tabSaveRulesBtn {
    min-width: auto;
    padding: 0.25rem 0.5rem;
}

/* 移动端保存按钮样式 */
#tabSaveRulesBtnMobile {
    font-size: 14px;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 移动端tab导航优化 */
@media (max-width: 576px) {
    .nav-tabs {
        flex-wrap: wrap;
        margin-bottom: 0.5rem;
    }

    .nav-tabs .nav-item {
        margin-bottom: 0.25rem;
    }

    .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.375rem 0.5rem;
    }

    /* 移动端保存按钮在tab下方的间距 */
    .d-sm-none.mb-2 {
        margin-bottom: 0.75rem !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
    }

    #tabSaveRulesBtnMobile {
        font-size: 13px;
        padding: 0.4rem 0.8rem;
    }

    /* 控制栏超小屏幕适配 */
    .custom-select-wrapper {
        width: 140px;
    }

    .custom-select-wrapper.compact {
        width: 110px;
    }

    /* 原始数据按钮超小屏幕 */
    .custom-select-wrapper:has(#rawDataUploadBtn) {
        width: 100px !important;
    }

    .control-bar-left {
        gap: 3px !important;
        flex-wrap: nowrap;
    }

    .custom-select-trigger {
        padding: 4px 6px;
        height: 28px !important;
        border-radius: 8px !important;
    }

    .select-icon {
        font-size: 0.8rem;
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }

    .select-value {
        font-size: 0.6rem;
    }

    .select-arrow {
        font-size: 0.7rem;
        margin-left: 4px;
    }

    /* 原始数据按钮超小屏幕优化 */
    #rawDataUploadBtn {
        height: 28px !important;
        padding: 4px 6px !important;
    }

    #rawDataUploadBtn .select-value {
        font-size: 0.6rem !important;
    }

    #rawDataUploadBtn .select-icon {
        margin-right: 3px !important;
    }

    /* 原始数据按钮保留文字显示 */
    #rawDataUploadBtn .select-text {
        display: block;
        flex: 1;
        min-width: 0;
    }

    #rawDataUploadBtn .select-value {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.55rem !important;
    }

    #rawDataUploadBtn .select-icon {
        margin-right: 3px !important;
        flex-shrink: 0;
    }

    /* 文档类型下拉保留文字显示 */
    .custom-select-wrapper.compact .select-text {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .custom-select-wrapper.compact .select-value {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.55rem !important;
    }

    .custom-select-wrapper.compact .select-icon {
        margin-right: 3px;
        flex-shrink: 0;
    }

    .custom-select-wrapper.compact .select-arrow {
        margin-left: 2px;
        flex-shrink: 0;
    }
}

/* 已保存规则配置显示样式 */
#savedRulesContainer {
    transition: all 0.3s ease;
}

.saved-rule-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.saved-rule-item:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 选中状态样式 - 统一使用蓝色主题 */
.saved-rule-item.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.saved-rule-item.selected:hover {
    background-color: #bbdefb;
    border-color: #1976d2;
}

.saved-rule-item.selected .saved-rule-name {
    color: #1565c0;
}

.saved-rule-item.selected .saved-rule-count {
    background-color: #2196f3;
    color: white;
}

/* 未选中状态样式 */
.saved-rule-item:not(.selected) {
    opacity: 0.8;
}

.saved-rule-item:not(.selected):hover {
    opacity: 1;
}

.saved-rule-name {
    font-weight: 600;
    color: #374151;
}

.saved-rule-count {
    font-size: 11px;
    color: #6b7280;
    background-color: #e5e7eb;
    padding: 2px 6px;
    border-radius: 10px;
}

.saved-rule-delete {
    color: #dc3545;
    background: none;
    border: none;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.saved-rule-delete:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
    opacity: 1;
}

/* 选中状态下的删除按钮 */
.saved-rule-item.selected .saved-rule-delete {
    color: #dc3545;
    opacity: 0.8;
}

.saved-rule-item.selected .saved-rule-delete:hover {
    background-color: #dc3545;
    color: white;
    opacity: 1;
}

/* 默认配置样式 */
.saved-rule-item.default-config {
    border-left: 3px solid #28a745;
    position: relative;
}

.saved-rule-item.default-config .saved-rule-name {
    font-weight: 500;
}

.saved-rule-item.default-config.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.saved-rule-item.default-config.selected:hover {
    background-color: #bbdefb;
    border-color: #1976d2;
}

.saved-rule-item.default-config.selected .saved-rule-name {
    color: #1565c0;
}

.saved-rule-item.default-config.selected .saved-rule-count {
    background-color: #2196f3;
    color: white;
}

/* 默认配置标识 */
.saved-rule-item .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.4em;
}

/* 原始数据按钮统一样式 */
#rawDataUploadBtn {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%) !important;
    border: 2px solid #e1e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

#rawDataUploadBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#rawDataUploadBtn:hover::before {
    opacity: 1;
}

#rawDataUploadBtn:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

#rawDataUploadBtn:hover .select-icon i {
    color: #0d6efd !important;
    transform: scale(1.1);
}

#rawDataUploadBtn:active {
    transform: scale(0.98) !important;
}

/* 移动端已保存规则配置优化 */
@media (max-width: 576px) {
    #savedRulesList {
        flex-direction: column;
        gap: 6px !important;
    }

    .saved-rule-item {
        width: 100%;
        justify-content: space-between;
    }

    .saved-rule-name {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#savedRulesContainer.show {
    animation: fadeInUp 0.3s ease;
}

.saved-rule-item.show {
    animation: fadeInUp 0.3s ease;
}

/* 图片标注功能样式 */
.image-annotation-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.image-annotation {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-annotation:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.annotation-label {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.annotation-tooltip {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.annotation-tooltip .tooltip-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.annotation-tooltip .tooltip-body p {
    margin-bottom: 5px;
}

/* 坐标标注样式 */
.coordinate-annotation {
    position: absolute;
    border: 1px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.15);
    z-index: 1000;
    pointer-events: none;
    box-sizing: border-box;
    animation: coordinatePulse 2s infinite;
}

.coordinate-annotation-label {
    position: absolute;
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 1001;
}

/* 坐标标注动画 */
@keyframes coordinatePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* 坐标标注响应式样式 */
@media (max-width: 768px) {
    .coordinate-annotation {
        /* 小屏幕下增加边框粗细，提高可见性 */
        border-width: 2px;
        /* 减少动画强度，避免性能问题 */
        animation: coordinatePulseMobile 3s infinite;
    }

    .coordinate-annotation-label {
        /* 小屏幕下调整标签样式 */
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 3px;
        /* 确保标签不会超出屏幕 */
        max-width: calc(100vw - 20px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .coordinate-annotation {
        /* 超小屏幕下进一步优化 */
        border-width: 3px;
        /* 最小尺寸限制 */
        min-width: 20px;
        min-height: 20px;
    }

    .coordinate-annotation-label {
        /* 超小屏幕下的标签样式 */
        font-size: 9px;
        padding: 1px 4px;
        /* 简化文本 */
        white-space: nowrap;
        max-width: calc(100vw - 30px);
    }
}

/* 移动端优化的脉冲动画 */
@keyframes coordinatePulseMobile {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .coordinate-annotation {
        /* 触摸设备上增加最小触摸目标 */
        min-width: 44px;
        min-height: 44px;
        /* 添加触摸反馈 */
        transition: transform 0.1s ease;
    }

    .coordinate-annotation:active {
        transform: scale(0.95);
    }

    .coordinate-annotation-label {
        /* 触摸设备上的标签优化 */
        pointer-events: auto;
        cursor: pointer;
    }
}

/* 查看位置按钮样式 */
.btn-view-location {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 0.2rem !important;
    line-height: 1.1 !important;
}

/* 可点击位置文字样式 */
.location-clickable {
    cursor: pointer;
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px dotted #0d6efd;
    transition: all 0.2s ease;
}

.location-clickable:hover {
    color: #0a58ca;
    border-bottom-color: #0a58ca;
    text-decoration: none;
}

/* 位置图标样式 */
.location-icon {
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.location-icon:hover {
    color: #0a58ca !important;
    transform: scale(1.1);
}

/* 行业选择按钮的hover效果 */
#industryRadioGroup .btn-outline-primary:hover {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    transition: all 0.2s ease;
}

/* 为行业选择按钮添加平滑过渡效果和统一高度 */
#industryRadioGroup .btn-outline-primary {
    transition: all 0.2s ease;
    min-height: 2.5rem;
    /* 设置最小高度确保一致性 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    /* 允许长文本换行 */
    hyphens: auto;
    /* 自动断词 */
}

/* 在小屏幕下进一步优化高度 */
@media (max-width: 576px) {
    #industryRadioGroup .btn-outline-primary {
        min-height: 3rem;
        /* 小屏幕下增加高度以适应换行文本 */
        padding: 0.375rem 0.5rem;
    }
}

/* 在中等屏幕下的优化 */
@media (min-width: 577px) and (max-width: 768px) {
    #industryRadioGroup .btn-outline-primary {
        min-height: 2.75rem;
        /* 中等屏幕下的高度 */
    }
}

/* 选中状态的样式保持不变，但添加过渡效果 */
#industryRadioGroup .btn-check:checked+.btn-outline-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transition: all 0.2s ease;
}

/* 拖拽上传区域样式 */
.upload-container {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-container.drag-over {
    border-color: #007bff !important;
    background-color: #e3f0ff !important;
    border-style: dashed !important;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #007bff;
    transition: color 0.3s ease;
}

.upload-container.drag-over .upload-icon {
    color: #007bff;
}

/* 悬浮二维码区域样式 */
.floating-qr-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.floating-qr-container:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.floating-qr-container.hidden {
    display: none !important;
}

.qr-content {
    text-align: center;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-header {
    display: flex;
    width: 85%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.qr-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d6efd;
    margin: 0;
}

.qr-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qr-close:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

.qr-code-img {
    width: 150px;
    height: 150px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* 原始数据文件列表查看按钮样式 */
.raw-data-item .btn-view-file,
.raw-data-file-list .btn-view,
.raw-data-file-list .view-file-btn,
#rawDataFileList .btn-view,
#rawDataList .btn-view {
    font-size: 0.75rem !important;
    padding: 0.2rem 0.4rem !important;
    line-height: 1.2 !important;
    min-width: 50px !important;
    height: auto !important;
}

/* 确保图标也相应缩小 */
.raw-data-item .btn-view-file i,
.raw-data-file-list .btn-view i,
.raw-data-file-list .view-file-btn i,
#rawDataFileList .btn-view i,
#rawDataList .btn-view i {
    font-size: 0.7rem !important;
}
    font-size: 0.8rem;
}

.qr-description {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-qr-container {
        display: none !important;
        /* 小屏幕自动隐藏 */
    }
}

/* 小于1000px的屏幕适配 */
@media (min-width: 769px) and (max-width: 999px) {
    .floating-qr-container {
        right: 5px;
        /* 减少右边距 */
        transform: translateY(-50%) scale(0.8);
        /* 进一步缩小 */
        max-width: calc(100vw - 20px);
        /* 确保不超出屏幕 */
    }

    .floating-qr-container:hover {
        transform: translateY(-50%) scale(0.85);
    }

    .qr-content {
        min-width: 140px;
        /* 减少最小宽度 */
        max-width: 180px;
        /* 限制最大宽度 */
    }

    .qr-code-img {
        width: 110px;
        /* 进一步缩小图片 */
        height: 110px;
    }

    .qr-title {
        font-size: 0.8rem;
        /* 缩小标题字体 */
    }

    .qr-description {
        font-size: 0.7rem;
        /* 缩小描述字体 */
    }
}

/* 中等屏幕适配 */
@media (min-width: 1000px) and (max-width: 1200px) {
    .floating-qr-container {
        right: 10px;
        transform: translateY(-50%) scale(0.9);
    }

    .floating-qr-container:hover {
        transform: translateY(-50%) scale(0.95);
    }
}

/* 美化删除确认弹窗样式 */
.delete-confirm-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.delete-confirm-modal .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.delete-confirm-modal .modal-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.delete-confirm-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.delete-confirm-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.delete-confirm-modal .modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.delete-confirm-modal .delete-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
    animation: deleteIconPulse 2s infinite;
}

@keyframes deleteIconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.delete-confirm-modal .delete-message {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.delete-confirm-modal .delete-warning {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.delete-confirm-modal .rule-name-highlight {
    color: #dc3545;
    font-weight: 600;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.delete-confirm-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
    gap: 0.75rem;
}

.delete-confirm-modal .btn-delete-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.delete-confirm-modal .btn-delete-confirm:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.delete-confirm-modal .btn-cancel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.delete-confirm-modal .btn-cancel:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
}

/* 折叠按钮样式 - 参考历史详情页面 */
.collapse-toggle {
    border: none;
    background: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.collapse-toggle:hover {
    transform: scale(1.15);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.collapse-toggle:active {
    transform: scale(0.95);
}

.collapse-toggle.collapsed i {
    transform: rotate(-90deg);
}

.collapse-toggle:not(.collapsed) i {
    transform: rotate(0deg);
}

.collapse-toggle i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    display: block;
}

/* 按钮点击波纹效果 */
.collapse-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.collapse-toggle:active::before {
    width: 40px;
    height: 40px;
}

/* 简单的表格动画样式 */
.issue-table {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 淡入动画 */
.issue-table.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* 淡出动画 */
.issue-table.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* 淡入关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡出关键帧 */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 表格行动画 */
.issue-table tbody tr {
    transition: all 0.2s ease;
}

.issue-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 问题标题行的悬停效果 */
.issue-header {
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 8px 12px;
    margin: -8px -12px;
}

.issue-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 反馈成功特殊样式 */
.feedback-success-alert {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    border: 2px solid #28a745 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    animation: successFadeIn 0.5s ease-out;
    color: #155724 !important;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-success-alert .text-success {
    color: #155724 !important;
}

.feedback-success-alert .fs-4 {
    font-size: 1.5rem !important;
    color: #28a745 !important;
}

.feedback-success-alert h6 {
    color: #155724 !important;
    font-weight: bold !important;
}

.feedback-success-alert i.bi-check-circle-fill {
    color: #28a745 !important;
}

/* 反馈表单样式 */
#feedbackForm .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#feedbackForm .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#feedbackForm .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 简洁的检查规则选项Tab效果 */
.enhanced-tabs {
    border-bottom: 1px solid #dee2e6;
    background: #ffffff;
    /* padding: 0.25rem 0.5rem 0 0.5rem; */
}

.enhanced-tabs .nav-link {
    /* border: 1px solid transparent; */
    /* border-radius: 4px 4px 0 0; */
    padding: 0.5rem 1rem;
    margin: 0 0.125rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #6c757d;
    background: transparent;
    transition: all 0.2s ease;
}

.enhanced-tabs .nav-link:hover {
    /* color: #495057;
    background: #f8f9fa;
    border-color: #dee2e6; */
}

.enhanced-tabs .nav-link.active {
    color: #007bff;
    background: #ffffff;
    border-color: #dee2e6;
    border-bottom-color: #ffffff;
    font-weight: 600;
    position: relative;
}

.enhanced-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007bff;
    border-radius: 1px;
}

/* Tab内容区域 */
.enhanced-tabs+.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    background: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .enhanced-tabs .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* 思维链完成提示样式 */
.thinking-chain-content .alert-success {
    border-left: 4px solid #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

/* 查看详情按钮样式 */
.thinking-chain-content .view-details-btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

/* 问题数量徽章样式 */
.thinking-chain-content .badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    font-weight: 600;
}

/* 问题分布信息样式 */
.thinking-chain-content .alert-success .small {
    color: #666;
    font-size: 0.8rem;
}

/* 图标样式 */
.thinking-chain-content .alert-success i {
    vertical-align: middle;
}