/**
 * 贸易单据核验平台 - 全局样式
 */

/* 全局样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: 600;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 表格样式 */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 按钮样式 */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
}

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

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

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* 表格样式，新增 */
tr td {
    border: 1px solid #ccc;
}
th {
    border: 1px solid #ccc;
}

/* 核验表单特定样式 */
.verification-container {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verification-section {
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.verification-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verification-section-header {
    cursor: pointer;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.verification-item-header {
    color: #495057;
    font-weight: 500;
}

/* 表格布局样式 */
.verification-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.verification-table th,
.verification-table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.verification-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

/* 核验选项样式 */
.verification-option {
    display: inline-block;
    margin-right: 15px;
}

/* 解释框样式 */
.explanation-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
}


.verification-item-description {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 置信度指示器 */
.confidence-high {
    color: #198754;
    font-weight: 600;
}

.confidence-medium {
    color: #fd7e14;
    font-weight: 600;
}

.confidence-low {
    color: #dc3545;
    font-weight: 600;
}

/* 文档预览区域 */
.document-preview {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.preview-controls {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .verification-container {
        flex-direction: column;
    }
    
    .document-preview,
    .verification-form {
        width: 100%;
        max-height: none;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 提示消息 */
.toast {
    opacity: 1 !important;
}

/* 状态标签 */
.status-badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* 核验项目高亮 */
.verification-item.highlight {
    background-color: rgba(255, 243, 205, 0.5);
    border-left: 4px solid #ffc107;
    padding-left: 1rem;
}

/* 单据对比区域 */
.comparison-container {
    display: flex;
    margin-bottom: 1rem;
}

.comparison-column {
    flex: 1;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin: 0 0.5rem;
}

.comparison-column-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.comparison-diff {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}
.row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0;
}