:root {
    --primary-color: #00684a;
    --primary-hover: #005a40;
    --primary-light: rgba(0, 104, 74, 0.1);
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-color: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.45);
    --border-color: #f0f0f0;
    --bg-gray: #f5f5f5;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-gray);
}

.layout-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 10;
}

.main-content {
    margin-left: 240px;
    width: calc(100% - 240px);
    padding: 24px;
    background-color: var(--bg-gray);
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 0 8px;
    color: var(--text-color);
    transition: all 0.3s;
}

.sidebar-menu-item:hover a {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-menu-item.active a {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.ant-card {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 16px;
}

.ant-card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.ant-card-body {
    padding: 24px;
}

.ant-btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.ant-btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

.ant-btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.ant-btn-default {
    background-color: white;
    border: 1px solid #d9d9d9;
    color: var(--text-color);
}

.ant-btn-default:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ant-btn i {
    margin-right: 6px;
}

.breadcrumb {
    display: flex;
    margin-bottom: 16px;
}

.breadcrumb-item {
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb-item:last-child {
    color: var(--text-color);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #d9d9d9;
}

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }
.text-secondary { color: var(--text-secondary); }

.bg-primary { background-color: var(--primary-color); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-success { background-color: #f6ffed; }
.bg-warning { background-color: #fffbe6; }
.bg-error { background-color: #fff2f0; }

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 104, 74, 0.2);
}

.form-select {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: white;
    transition: all 0.3s;
}

.form-textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    min-height: 120px;
    transition: all 0.3s;
}

.required-mark {
    color: var(--error-color);
    margin-left: 4px;
}

.form-tip {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.config-section {
    background-color: var(--primary-light);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color);
}

.config-section h4 {
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--primary-color);
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #f0f0f0;
    margin: 24px 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.chip .close-btn {
    margin-left: 6px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
}

.chip .close-btn:hover {
    color: var(--error-color);
}

.chips-container {
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    min-height: 42px;
}

.extraction-tab {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 16px;
}

/* 切换按钮样式 */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.tab-nav-item {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    background-color: rgba(0, 104, 74, 0.05);
}

.tab-nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(0, 104, 74, 0.1);
    font-weight: 500;
}

.template-card {
    padding: 12px;
    background-color: #f9f9f9;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    margin-top: 8px;
}

.template-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.template-title i {
    margin-right: 4px;
}

.template-content {
    font-size: 13px;
    color: var(--text-color);
    white-space: pre-line;
}

.use-template-btn {
    font-size: 13px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 8px;
}

.use-template-btn:hover {
    text-decoration: underline;
}

/* 表格样式 */
.ant-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ant-table th, .ant-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.ant-table th {
    background-color: #fafafa;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.ant-table tr:hover td {
    background-color: #f5f5f5;
}

.ant-table-row-selected td {
    background-color: #e6f7ff;
}

.ant-table-fixed-header {
    overflow: auto;
}

/* 标签样式 */
.ant-tag {
    display: inline-block;
    padding: 0 7px;
    height: 22px;
    line-height: 22px;
    border-radius: 2px;
    font-size: 12px;
    margin-right: 8px;
}

.ant-tag-green {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.ant-tag-orange {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    color: #fa8c16;
}

.ant-tag-red {
    background-color: #fff1f0;
    border: 1px solid #ffa39e;
    color: #f5222d;
}

.ant-tag-blue {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.ant-tag-purple {
    background-color: #f9f0ff;
    border: 1px solid #d3adf7;
    color: #722ed1;
}

.ant-tag-cyan {
    background-color: #e6fffb;
    border: 1px solid #87e8de;
    color: #13c2c2;
}

/* 状态点样式 */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot-success {
    background-color: var(--success-color);
}

.status-dot-default {
    background-color: #d9d9d9;
}

/* 分页样式 */
.ant-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
}

.ant-pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ant-pagination-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ant-pagination-item-active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.ant-pagination-prev, .ant-pagination-next {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ant-pagination-prev:hover, .ant-pagination-next:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ant-pagination-disabled {
    color: rgba(0, 0, 0, 0.25);
    border-color: #d9d9d9;
    cursor: not-allowed;
}

.ant-pagination-options {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.ant-pagination-options-size-changer {
    margin-right: 8px;
}

/* 按钮扩展样式 */
.ant-btn-sm {
    padding: 2px 8px;
    font-size: 12px;
}

.ant-btn-danger {
    background-color: var(--error-color);
    border: 1px solid var(--error-color);
    color: white;
}

.ant-btn-danger:hover {
    background-color: #ff7875;
    border-color: #ff7875;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    margin-bottom: 16px;
}

.search-box .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.search-box .ant-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 2px 8px;
}

/* 操作单元格样式 */
.operations-cell {
    white-space: nowrap;
}

/* 假设的待审核文件上传页面特有样式 */
.upload-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.upload-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.upload-button:hover {
    background-color: var(--primary-hover);
}

.upload-input {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 8px;
    width: 100%;
    margin-top: 10px;
}

/* 添加评查详情页面的样式 */

/* 状态徽章样式 */
.status-badge {
    font-size: 11px;
    padding: 1px 4px;
    white-space: nowrap;
}

/* 替换操作按钮样式 */
.replace-action {
    font-size: 11px;
    padding: 2px 8px;
    height: auto;
    line-height: 1.5;
}

/* 处理中状态样式 */
.status-processing {
    background-color: #e6f7ff;
    color: #1890ff;
}