/* Arco Design 设计Token */
:root {
    --color-primary: #165DFF;
    --color-primary-light: #4080FF;
    --color-primary-lighter: #7AA1FF;
    --color-primary-dark: #0E42D2;
    --color-success: #00B42A;
    --color-warning: #FF7D00;
    --color-error: #F53F3F;
    --color-text-1: #1D2129;
    --color-text-2: #4E5969;
    --color-text-3: #86909C;
    --color-text-4: #C9CDD4;
    --color-fill-1: #F7F8FA;
    --color-fill-2: #F2F3F5;
    --color-fill-3: #E5E6EB;
    --color-fill-4: #C9CDD4;
    --color-bg-1: #FFFFFF;
    --color-bg-2: #F7F8FA;
    --color-bg-3: #F2F3F5;
    --border-radius-small: 2px;
    --border-radius-medium: 4px;
    --border-radius-large: 6px;
    --border-radius-circle: 50%;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    --shadow-3: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    background-color: var(--color-bg-2);
    color: var(--color-text-1);
    line-height: 1.5715;
}

/* 顶部导航栏 */
.top-navbar {
    height: 64px;
    background: var(--color-bg-1);
    border-bottom: 1px solid var(--color-fill-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text-1);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: var(--border-radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-1);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: var(--border-radius-medium);
    background: var(--color-fill-1);
    cursor: pointer;
    transition: all 0.2s;
}

.user-info:hover {
    background: var(--color-fill-2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-circle);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-1);
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    color: var(--color-text-3);
    line-height: 1.2;
}

.ocr-container {
    display: flex;
    height: calc(100vh - 64px);
    background: var(--color-bg-2);
}

.sidebar {
    width: 300px;
    background: var(--color-bg-1);
    border-right: 1px solid var(--color-fill-3);
    overflow-y: auto;
    box-shadow: var(--shadow-1);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--color-fill-3);
    background: var(--color-bg-1);
}

.sidebar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-1);
    line-height: 1.4;
}

.main-content {
    padding: 0;
    margin: 0;
}

/* 左右分栏布局 */
.split-layout {
    display: flex;
    height: 100vh;
    background: #f5f5f5;
    padding-left: 10px;
}

/* 左侧区域 */
.left-section {
    flex: 1;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

/* 右侧区域 */
.right-section {
    width: 600px;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 2px;
    border: 1px solid #dedada;
    margin-top: 10px;
    margin-right: 10px;
    height: calc(100vh - 84px);
    overflow-y: auto;
}

/* 区域头部 */
.section-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 预览区域 */
.preview-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f9f9f9;
}

/* 空状态 */
.empty-state {
    text-align: center;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
}

/* 图片容器 */
.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.full-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 图片信息栏 */
.image-info-bar {
    padding: 16px 20px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #333;
}

/* 上传区域样式 */
.upload-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.upload-zone {
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #4285f4;
    background: #f8f9ff;
}

.upload-zone.dragover {
    border-color: #4285f4;
    background: #e8f0fe;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    font-size: 48px;
    color: #1890ff;
}

.upload-text {
    text-align: center;
}

.primary-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.secondary-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.size-limit {
    font-size: 12px;
    color: #999;
}

/* 图片预览区域 */
.image-preview-area {
    
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.preview-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #cc0000;
}

.preview-container {
    padding: 20px;
    text-align: center;
    background: #fafafa;
}

.preview-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    object-fit: contain;
}

.file-info {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.info-label {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 14px;
}

/* 已上传文件 */
.uploaded-file {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.file-icon {
    font-size: 24px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: #666;
}

/* 操作按钮区域 */
.action-section {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4285f4;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #3367d6;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8f0fe;
}

/* 结果区域 */
.result-section {
    background: white;
    width: 100%;
    border: 1px solid #dedada;
    margin-top: 10px;
    margin-right: 10px;
    height: calc(100vh - 84px); /* 添加与右侧区域相同的高度 */
    overflow-y: auto; /* 添加滚动条 */
    display: flex;
    flex-direction: column;
}

.result-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.result-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.result-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    background: #f5f5f5;
    border: 1px solid #d9d9d9;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.tab-btn:hover:not(.active) {
    background: #e6f7ff;
    border-color: #1890ff;
    color: #1890ff;
}

/* 结果内容 */
.result-content {
    min-height: 300px;
    flex: 1; /* 让内容区域填充剩余空间 */
    overflow-y: auto; /* 内容过多时显示滚动条 */
}

.result-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.result-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.result-empty .empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.result-empty .empty-subtitle {
    font-size: 14px;
}

.left-panel {
    width: 20%;
    flex-shrink: 0;
    min-width: 240px;
}

.right-panel {
    width: 80%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.function-group {
    margin-bottom: 8px;
}

/* 功能组标题样式 */
.function-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    margin-bottom: 8px;
}

.function-group-title:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.group-icon {
    font-size: 16px;
    margin-right: 8px;
}

.group-text {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

/* 功能组标题的图标旋转 */
.function-group-title .toggle-icon {
    transition: transform 0.2s ease;
    display: inline-block;
    font-size: 12px;
    color: #666;
}

.function-group-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* 功能项容器样式 - 确保这些样式在文件中且没有被覆盖 */
.function-items {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 300px; /* 给一个足够大的初始高度 */
    opacity: 1;
}

.function-items.collapsed {
    max-height: 0 !important; /* 使用!important确保优先级 */
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 功能项样式调整 */
.function-item {
    margin-left: 24px;
    margin-bottom: 4px;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: var(--color-text-2);
    border-left: 3px solid transparent;
    position: relative;
}

.function-item:hover {
    background: var(--color-fill-1);
    color: var(--color-text-1);
}

.function-item.active {
    background: rgba(22, 93, 255, 0.08);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 500;
}

.function-item.active::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--border-radius-circle);
}

.content-card {
    background: var(--color-bg-1);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-1);
    margin-bottom: 16px;
    overflow: hidden;
    padding: 24px;
    height: fit-content;
}

.right-panel .content-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 20px;
    overflow-y: auto;
}

.upload-section {
    height: 100%;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-1);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-fill-3);
}

.upload-area {
    border: 2px dashed var(--color-fill-4);
    border-radius: var(--border-radius-large);
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.34, 0.69, 0.1, 1);
    background: var(--color-bg-1);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--color-primary-lighter);
    background: rgba(22, 93, 255, 0.02);
}

.upload-area.dragover {
    border-color: var(--color-primary);
    background: rgba(22, 93, 255, 0.06);
    transform: scale(1.02);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--color-text-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--color-fill-3);
    border-radius: var(--border-radius-medium);
    background: var(--color-bg-1);
    color: var(--color-text-1);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.btn:hover {
    background: var(--color-fill-1);
    border-color: var(--color-primary-lighter);
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.upload-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-2);
}

.upload-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--color-text-3);
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-2);
    margin-bottom: 16px;
}

.file-info {
    background: var(--color-fill-1);
    padding: 16px;
    border-radius: var(--border-radius-medium);
    margin: 16px 0;
}

/* 文件上传相关样式 */
.upload-prompt {
    text-align: center;
}

.file-list {
    margin-bottom: 16px;
}

.file-list-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-1);
    margin-bottom: 8px;
}

.file-items {
    background: var(--color-fill-1);
    border-radius: var(--border-radius-medium);
    padding: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--color-bg-1);
    border-radius: var(--border-radius-small);
    margin-bottom: 4px;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-1);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 10px;
    color: var(--color-text-3);
}

.file-actions {
    display: flex;
    gap: 4px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: var(--border-radius-small);
}

.result-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.empty-result {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--color-text-3);
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.result-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.result-text {
    background: var(--color-fill-1);
    border: 1px solid var(--color-fill-3);
    border-radius: var(--border-radius-medium);
    padding: 16px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.param-card {
    background: var(--color-bg-1);
    border: 1px solid var(--color-fill-3);
    border-radius: var(--border-radius-large);
    padding: 20px;
    margin-bottom: 24px;
}

.param-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-1);
    margin-bottom: 16px;
}

.checkbox-group {
    display: flex;
    gap: 24px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input {
    margin: 0;
}

.tabs {
    border-bottom: 1px solid var(--color-fill-3);
    margin-bottom: 16px;
}

.tab {
    display: inline-block;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--color-text-2);
    transition: all 0.2s;
}

.tab:hover {
    color: var(--color-text-1);
}

.tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.hidden {
    display: none;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-fill-2);
}

::-webkit-scrollbar-thumb {
    background: var(--color-fill-4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-4);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .left-panel {
        min-width: 200px;
    }
    
    .test-file-grid {
        gap: 4px;
    }
    
    .test-file-item {
        padding: 4px;
    }
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .top-navbar {
        padding: 0 16px;
    }
    
    .navbar-right .user-details {
        display: none;
    }
    
    .ocr-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .main-content {
        padding: 16px;
        flex-direction: column;
    }
    
    .upload-area {
        min-height: 200px;
        padding: 24px 16px;
    }
    
    .split-layout {
        flex-direction: column;
        height: auto;
    }
    
    .right-section {
        width: 100%;
    }
    
    .preview-area {
        min-height: 300px;
    }
    
    .preview-img {
        max-height: 300px;
    }
    
    .file-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* 测试文件选择区域 */
.test-file-section {
    margin-bottom: 20px;
}

.test-file-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-1);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required-mark {
    color: var(--color-error);
    font-size: 12px;
}

.test-file-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.test-file-item {
    aspect-ratio: 1;
    border: 1px solid var(--color-fill-3);
    border-radius: var(--border-radius-small);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-bg-1);
    padding: 6px;
    text-align: center;
}

.test-file-item:hover {
    border-color: var(--color-primary-lighter);
    background: rgba(22, 93, 255, 0.02);
}

.test-file-item.selected {
    border-color: var(--color-primary);
    background: rgba(22, 93, 255, 0.08);
    border-width: 2px;
}

.test-file-icon {
    width: 20px;
    height: 20px;
    background: #FFB020;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
    font-size: 10px;
}

.test-file-icon::before {
    content: '📄';
    color: white;
}

.test-file-name {
    font-size: 10px;
    color: var(--color-text-2);
    line-height: 1.2;
}

.upload-section-bottom {
    border-top: 1px solid var(--color-fill-3);
    padding-top: 16px;
    margin-top: 16px;
}

.upload-icon-area {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.upload-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px dashed var(--color-fill-4);
    border-radius: var(--border-radius-medium);
    background: var(--color-bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
}

.upload-icon-btn:hover {
    border-color: var(--color-primary-lighter);
    background: rgba(22, 93, 255, 0.02);
}

.upload-description {
    font-size: 12px;
    color: var(--color-text-3);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
}



.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-run {
    background: var(--color-primary);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius-small);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-run:hover {
    background: var(--color-primary-light);
}

.btn-reset {
    background: var(--color-bg-1);
    border: 1px solid var(--color-fill-3);
    color: var(--color-text-2);
    padding: 8px 20px;
    border-radius: var(--border-radius-small);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: var(--color-fill-1);
    border-color: var(--color-primary-lighter);
}

/* 功能项容器样式 - 使用更高的优先级 */
.sidebar .function-items {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 300px;
    opacity: 1;
}

.sidebar .function-items.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
}

/* 功能组标题图标旋转 */
.sidebar .function-group-title .toggle-icon {
    transition: transform 0.2s ease;
    display: inline-block;
}

.sidebar .function-group-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* 功能组展开收起样式 - 使用最高优先级 */
.ocr-container .sidebar .function-group .function-items {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 300px;
    opacity: 1;
}

.ocr-container .sidebar .function-group .function-items.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 图标旋转动画 */
.ocr-container .sidebar .function-group .function-group-title .toggle-icon {
    transition: transform 0.2s ease;
    display: inline-block;
}

.ocr-container .sidebar .function-group .function-group-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}
.function-items {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 300px;
}

.function-items.collapsed {
    max-height: 0 !important;
}


/* 原始数据key-value样式 */
.key-value-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.key-value-item {
    margin: 8px 0;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.key-value-item .key {
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
    min-width: 120px;
    display: inline-block;
}

.key-value-item .value {
    color: #212529;
    word-break: break-all;
}

.key-value-group {
    margin: 15px 0 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.key-value-group strong {
    color: #007bff;
    font-size: 1.1em;
}

/* AI解析结果样式 - 简化版 */
.ai-result-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ai-result-container h3 {
    color: #333;
    margin: 15px 0 10px 0;
    padding: 8px 0;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
}

.ai-result-container .info-item {
    margin: 8px 0;
    padding: 8px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.ai-result-container .info-item .label {
    font-weight: 500;
    color: #666;
    margin-right: 10px;
    min-width: 120px;
}

.ai-result-container .info-item .value {
    color: #333;
    flex: 1;
}

.ai-result-container hr {
    margin: 15px 0;
    border: none;
    height: 1px;
    background: #eee;
}

/* 移除过度装饰的样式 */
.export-hint {
    display: none;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.text-content {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 简化按钮样式 */
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* 单标签页样式调整 */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.tab {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

/* 动态表格样式 */
.dynamic-table-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.data-section {
    
}

.data-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.key-value-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.key-value-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: top;
}

.key-value-table .key-cell {
    font-weight: 500;
    color: #666;
    width: 30%;
    background: #fafafa;
}

.key-value-table .value-cell {
    color: #333;
    word-break: break-all;
}

.array-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1px solid #e9ecef;
}

.array-table th {
    background: #f8f9fa;
    padding: 10px 8px;
    text-align: left;
    font-weight: 500;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.array-table td {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    word-break: break-all;
}

.array-table tr:hover {
    background: #f8f9fa;
}

/* JSON显示样式 */
.json-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
}

/* 标签页样式优化 */
.tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
    margin-right: 2px;
}

.tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.tab:hover:not(.active) {
    background: #e9ecef;
}

/* 表格渲染样式 */
/* 多页表格样式 */
.page-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 20px 0 15px 0;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.table-container {
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-container h4 {
    background: #f8f9fa;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.rendered-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

.rendered-table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
    max-width: 200px;
    line-height: 1.4;
}

.rendered-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.rendered-table tr:hover {
    background-color: #e9ecef;
}

/* 预览和上传对比容器 */
.preview-upload-container {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    min-height: 400px;
}

/* 左侧图片预览面板 */
.image-preview-panel {
    flex: 1;
    background: var(--color-bg-1);
    border: 1px solid var(--color-fill-3);
    border-radius: var(--border-radius-large);
    overflow: hidden;
}

/* 右侧上传面板 */
.upload-panel {
    flex: 1;
    background: var(--color-bg-1);
    border: 1px solid var(--color-fill-3);
    border-radius: var(--border-radius-large);
    overflow: hidden;
}

/* 面板头部 */
.preview-header,
.upload-header {
    padding: 16px;
    background: var(--color-fill-1);
    border-bottom: 1px solid var(--color-fill-3);
}

.preview-title,
.upload-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-1);
}

/* 预览内容区域 */
.preview-content {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

/* 空预览状态 */
.empty-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.preview-placeholder {
    text-align: center;
    color: var(--color-text-3);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.placeholder-text {
    font-size: 14px;
}

/* 预览图片 */
.preview-image {
    max-width: 100%;
    max-height: 280px;
    border-radius: var(--border-radius-medium);
    object-fit: contain;
    box-shadow: var(--shadow-1);
}

/* 图片信息 */
.image-info {
    padding: 16px;
    border-top: 1px solid var(--color-fill-3);
    background: var(--color-fill-1);
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-1);
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: var(--color-text-3);
}

/* 上传内容区域 */
.upload-content {
    padding: 20px;
    min-height: 300px;
}

/* 上传提示样式优化 */
.upload-prompt {
    border: 2px dashed var(--color-fill-3);
    border-radius: var(--border-radius-large);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-prompt:hover {
    border-color: var(--color-primary);
    background: var(--color-fill-1);
}

.upload-icon-area {
    margin-bottom: 16px;
}

.upload-icon-btn {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.upload-icon-btn:hover {
    background: var(--color-primary-light);
    transform: scale(1.05);
}

.upload-description {
    color: var(--color-text-2);
    font-size: 14px;
    line-height: 1.5;
}

.upload-description small {
    color: var(--color-text-3);
    font-size: 12px;
}

/* 文件列表样式 */
.file-list {
    background: var(--color-fill-1);
    border-radius: var(--border-radius-medium);
    padding: 16px;
}

.file-list-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-1);
    margin-bottom: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-1);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--color-fill-3);
}

.file-item .file-name {
    flex: 1;
    font-size: 13px;
    color: var(--color-text-1);
}

.file-item .file-size {
    font-size: 12px;
    color: var(--color-text-3);
}

.btn-remove {
    background: var(--color-error);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* 操作按钮样式优化 */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-fill-3);
}

.btn-run {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-medium);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-run:hover {
    background: var(--color-primary-light);
}

.btn-reset {
    background: var(--color-fill-2);
    color: var(--color-text-2);
    border: 1px solid var(--color-fill-3);
    padding: 12px 24px;
    border-radius: var(--border-radius-medium);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: var(--color-fill-3);
}

/* PDF预览样式 */
.pdf-preview-container {
    text-align: center;
    padding: 20px;
}

.pdf-preview-container canvas {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.pdf-error {
    padding: 40px;
    color: #666;
    font-size: 16px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preview-upload-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .preview-content,
    .upload-content {
        min-height: 200px;
    }
    
    .pdf-preview-container {
        padding: 10px;
    }
}

/* Arco Design 风格的结果标题 */
.result-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-1, #1D2129);
    line-height: 28px;
}

/* Arco Design 风格的标签页容器 */
.arco-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-fill-1, #F7F8FA);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--color-border-2, #E5E6EB);
}

/* Arco Design 风格的标签按钮 */
.arco-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-2, #4E5969);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
    position: relative;
    min-height: 32px;
    white-space: nowrap;
}

/* 标签图标 */
.arco-tab .tab-icon {
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* 标签文字 */
.arco-tab .tab-text {
    font-size: 14px;
    line-height: 22px;
}

/* 悬停状态 */
.arco-tab:hover:not(.active) {
    background: var(--color-fill-2, #F2F3F5);
    color: var(--color-text-1, #1D2129);
}

.arco-tab:hover .tab-icon {
    opacity: 1;
}

/* 激活状态 */
.arco-tab.active {
    background: var(--color-bg-white, #FFFFFF);
    color: var(--color-primary-6, #165DFF);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(22, 93, 255, 0.06);
}

.arco-tab.active .tab-icon {
    opacity: 1;
}

/* 焦点状态 */
.arco-tab:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

/* 按下状态 */
.arco-tab:active {
    transform: translateY(1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .arco-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .arco-tab {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    
    .arco-tab .tab-text {
        font-size: 12px;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .result-title {
        color: var(--color-text-1, #C9CDD4);
    }
    
    .arco-tabs {
        background: var(--color-fill-1, #2E3135);
        border-color: var(--color-border-2, #3C4043);
    }
    
    .arco-tab {
        color: var(--color-text-2, #86909C);
    }
    
    .arco-tab:hover:not(.active) {
        background: var(--color-fill-2, #373A3E);
        color: var(--color-text-1, #C9CDD4);
    }
    
    .arco-tab.active {
        background: var(--color-bg-white, #17171A);
        color: var(--color-primary-6, #3C7EFF);
    }
}

/* 联系我们浮动按钮样式 */
.contact-us-float {
    position: relative;
    margin-right: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact-button {
    background: #3b82f6;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
    border: none;
    font-size: 13px;
    font-weight: 500;
    height: 36px;
}

.contact-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.contact-icon {
    font-size: 14px;
    animation: pulse 2s infinite;
}

.contact-text {
    font-size: 13px;
    font-weight: 500;
}

/* 二维码弹出层 */
.qr-code-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    min-width: 200px;
    z-index: 1001;
}

/* 添加小三角箭头 */
.qr-code-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.contact-us-float:hover .qr-code-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.qr-code-container {
    text-align: center;
}

.qr-code-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #f3f4f6;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.qr-code-text {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-us-float {
        margin-right: 10px;
    }
    
    .contact-button {
        padding: 6px 10px;
        min-width: 80px;
        font-size: 12px;
        height: 32px;
    }
    
    .contact-text {
        display: none;
    }
    
    .qr-code-popup {
        min-width: 160px;
        padding: 15px;
    }
    
    .qr-code-image {
        width: 100px;
        height: 100px;
    }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    .qr-code-popup {
        background: #1f2937;
        border-color: #374151;
        color: white;
    }
    
    .qr-code-popup::before {
        border-bottom-color: #1f2937;
    }
    
    .qr-code-text {
        color: #d1d5db;
    }
}

/* 智能解析功能样式 */
.smart-config-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.config-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.config-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.config-item {
    margin-bottom: 16px;
}

.config-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.config-item textarea,
.config-item select,
.config-item input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.config-item textarea:focus,
.config-item select:focus,
.config-item input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.config-item textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* 字段输入组样式 */
.field-input {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.field-input .field-name,
.field-input .field-desc {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.field-input button {
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.field-input button:hover {
    background: #c82333;
}

/* 配置操作按钮 */
.config-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

/* 坐标可视化样式 */
.coordinate-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.coordinate-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.coordinate-controls button,
.coordinate-controls select {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.coordinate-controls button:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.coordinate-controls select {
    min-width: 120px;
}

.coordinate-canvas-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    border: 2px dashed #ddd;
}

.coordinate-canvas-container canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.coordinate-legend {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.coordinate-legend h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: white;
    border-radius: 3px;
    border: 1px solid #e9ecef;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #ddd;
}

/* 智能解析结果样式 */
.smart-result-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.smart-result-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smart-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.smart-result-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
}

.smart-result-content {
    padding: 20px;
}

.extracted-field {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.field-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.field-value {
    color: #555;
    font-size: 14px;
    word-break: break-word;
}

.field-confidence {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 表格解析结果样式 */
.smart-table-container {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.smart-table-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.smart-table {
    width: 100%;
    border-collapse: collapse;
}

.smart-table th,
.smart-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    font-size: 13px;
}

.smart-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.smart-table td {
    color: #555;
}

.smart-table tr:hover {
    background: #f8f9fa;
}

/* 导出功能样式 */
.export-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px;
}

.export-btn {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-btn:hover {
    background: #218838;
}

.export-btn:before {
    content: "📥";
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .smart-config-container,
    .coordinate-container {
        padding: 15px;
    }
    
    .config-section {
        padding: 15px;
    }
    
    .field-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coordinate-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coordinate-controls button,
    .coordinate-controls select {
        width: 100%;
    }
    
    .legend-items {
        justify-content: center;
    }
    
    .export-options {
        flex-direction: column;
        align-items: center;
    }
    
    .export-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* 加载状态样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 16px;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-bottom: 16px;
    font-size: 14px;
}