/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.top-header {
    background-color: #2c3e50;
    color: #fff;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.system-name {
    font-size: 18px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    font-size: 14px;
}

.logout-btn {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 主容器 */
.main-container {
    display: flex;
    height: calc(100vh - 60px);
}

/* 左侧导航栏 */
.sidebar {
    width: 240px;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    padding: 0 20px;
    margin-bottom: 30px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    padding-left: 10px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-item.active a,
.nav-item a:hover {
    background-color: #3498db;
    color: #fff;
}

.feature-dimensions {
    padding: 0 20px;
}

.dimensions-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    padding-left: 10px;
}

.dimensions-list {
    list-style: none;
}

.dimension-item {
    margin-bottom: 5px;
}

.dimension-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.dimension-item.active a,
.dimension-item a:hover {
    background-color: #3498db;
    color: #fff;
}

/* 主内容区域 */
.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* 搜索筛选区域 */
.search-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-filters {
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-item label {
    font-size: 14px;
    color: #666;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 180px;
    transition: border-color 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: #3498db;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
}

.date-separator {
    color: #666;
    font-size: 14px;
}

.query-btn {
    padding: 8px 24px;
    background-color: #95a5a6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.query-btn:hover {
    background-color: #7f8c8d;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 按钮样式 */
.btn-primary {
    padding: 8px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    padding: 8px 20px;
    background-color: #95a5a6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    padding: 6px 16px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-link {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    text-decoration: underline;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #2980b9;
}

.btn-icon {
    background: none;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-icon:hover {
    background-color: #f0f0f0;
}

/* 表格区域 */
.table-section {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table tbody tr:first-child {
    border-top: none;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 12px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    line-height: 1.5;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table .indent {
    padding-left: 30px;
    color: #666;
}

.data-table .indent-double {
    padding-left: 60px;
    color: #666;
    font-size: 13px;
    word-break: break-all;
    max-width: 400px;
    overflow-wrap: break-word;
}

.set-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #3498db;
    border-radius: 2px;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.set-icon:hover {
    background-color: #2980b9;
}

.parent-row td:nth-child(3) {
    cursor: pointer;
    user-select: none;
}

.expand-icon {
    display: inline-block;
    width: 20px;
    cursor: pointer;
    color: #3498db;
    font-size: 12px;
    margin-right: 5px;
}

.parent-row {
    background-color: #f8f9fa;
    font-weight: 500;
}

.parent-row td {
    border-bottom: 2px solid #e0e0e0;
}

.child-row {
    display: table-row;
    background-color: #fff;
}

.child-row.hidden {
    display: none;
}

.child-row td {
    border-bottom: 1px solid #f0f0f0;
}

.subset-row {
    cursor: pointer;
}

.subset-expand-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    color: #3498db;
    font-size: 10px;
    margin-right: 5px;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.3s;
}

.subset-expand-icon.collapsed {
    transform: rotate(-90deg);
}

.content-row {
    display: table-row;
    background-color: #fafafa;
}

.content-row.hidden {
    display: none;
}

.content-row td {
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555;
}

/* 分页区域 */
.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #f0f0f0;
}

.page-btn.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-size-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.jump-to {
    font-size: 14px;
    color: #666;
}

.jump-input {
    width: 50px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* 编辑页面样式 */
.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.edit-actions {
    display: flex;
    gap: 10px;
}

.edit-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section {
    max-width: 1200px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* 特征词典集合样式 */
.dictionary-set-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.set-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    background-color: #fafafa;
}

.set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.set-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.set-code {
    color: #3498db;
    font-weight: normal;
}

.set-actions {
    display: flex;
    gap: 10px;
}

.set-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
}

.form-textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* 特征内容区域 */
.feature-content-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.content-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.content-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-row {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    background-color: #fff;
}

.row-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.content-actions {
    margin-top: 15px;
}

.hotel-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

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

.hotel-input-group .form-input {
    margin-top: 5px;
}

/* 特征子集样式 */
.subsets-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}

.subset-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    background-color: #fff;
    margin-bottom: 20px;
}

.subset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.subset-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.subset-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.subset-code {
    color: #3498db;
    font-weight: normal;
}

.subset-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 黑名单模态对话框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.blacklist-modal {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* 黑名单搜索 */
.blacklist-search {
    margin-bottom: 20px;
}

.blacklist-search label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

/* 已关联黑名单区域 */
.blacklist-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tip-text {
    font-size: 12px;
    color: #666;
}

.blacklist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    min-height: 60px;
}

.blacklist-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.blacklist-tag.readonly-tag {
    cursor: default;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.empty-message {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 特征内容和来源颜色标记 */
.feature-content-colored,
.source-content-colored {
    display: inline;
}

.feature-term,
.source-term {
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: 500;
}

.feature-term.color-1,
.source-term.color-1 {
    background-color: #e3f2fd;
    color: #1976d2;
}

.feature-term.color-2,
.source-term.color-2 {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.feature-term.color-3,
.source-term.color-3 {
    background-color: #e8f5e9;
    color: #388e3c;
}

.feature-term.color-4,
.source-term.color-4 {
    background-color: #fff3e0;
    color: #f57c00;
}

.feature-term.color-5,
.source-term.color-5 {
    background-color: #fce4ec;
    color: #c2185b;
}

.feature-term.color-6,
.source-term.color-6 {
    background-color: #e0f2f1;
    color: #00796b;
}

.feature-term.color-7,
.source-term.color-7 {
    background-color: #fff9c4;
    color: #f9a825;
}

.feature-term.color-8,
.source-term.color-8 {
    background-color: #ede7f6;
    color: #512da8;
}

.tag-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.tag-remove:hover {
    color: #e74c3c;
}

/* 批量导入区域 */
.blacklist-import-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.blacklist-import-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.import-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.import-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.import-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.import-textarea:focus {
    outline: none;
    border-color: #3498db;
}

.file-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.import-content .btn-primary {
    align-self: flex-start;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #2c3e50;
}

.breadcrumb-icon {
    font-size: 18px;
}

/* 操作日志页面特定样式 */
.log-table {
    width: 100%;
}

.log-table th {
    text-align: left;
    font-weight: 600;
}

.log-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* 只读字段样式 */
.form-input.readonly,
.form-textarea.readonly {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #ddd;
}

.form-input.readonly:focus,
.form-textarea.readonly:focus {
    outline: none;
    border-color: #ddd;
}

/* 供应商管理区域 */
.supplier-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.supplier-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.effective-suppliers-section {
    margin-bottom: 20px;
}

.supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.supplier-header label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.supplier-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.supplier-textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background-color: #f5f5f5;
    color: #666;
}

.supplier-input-section {
    margin-top: 20px;
}

.supplier-input-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.supplier-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.supplier-input-content {
    margin-top: 10px;
}

.supplier-input-content select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.supplier-input-content select:focus {
    outline: none;
    border-color: #3498db;
}

/* 生效供应商和酒店显示区域 */
.effective-content-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.effective-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.effective-item label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 生效标签容器 */
.effective-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    align-items: flex-start;
}

/* 生效标签 */
.effective-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.effective-tag .tag-text {
    flex: 1;
    white-space: nowrap;
}

.effective-tag .tag-delete-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.effective-tag .tag-delete-btn:hover {
    background-color: #f44336;
    color: #fff;
    transform: scale(1.1);
}

/* 占位文本 */
.effective-placeholder {
    color: #999;
    font-size: 14px;
    font-style: italic;
    padding: 10px 0;
}

/* 生效输入内容区域 */
.effective-input-content {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.supplier-input-subgroup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .set-fields,
    .subset-fields {
        grid-template-columns: repeat(2, 1fr);
    }

    .row-fields {
        grid-template-columns: 1fr;
    }
}

/* 酒店单元格样式 */
.data-table td.hotel-cell {
    vertical-align: middle;
    padding: 12px;
    line-height: 1.5;
}

.hotel-cell {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.5;
    white-space: nowrap;
}

.hotel-display {
    display: inline-block;
    line-height: 1.5;
    vertical-align: middle;
    margin-right: 8px;
}

.btn-icon-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    margin: 0;
    color: #3498db;
    transition: color 0.3s;
    display: inline-block;
    line-height: 1.5;
    vertical-align: middle;
}

.btn-icon-small:hover {
    color: #2980b9;
}

.btn-icon-small:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .set-fields,
    .subset-fields {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-input {
        width: 100%;
    }
}

/* 来源字段样式（支持文字输入和图片上传） */
.source-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.source-text-input {
    width: 100%;
}

.source-upload-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.source-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    user-select: none;
}

.source-upload-label:hover {
    background-color: #e9ecef;
    border-color: #3498db;
    color: #3498db;
}

.upload-icon {
    font-size: 16px;
}

.upload-text {
    font-size: 14px;
}

.source-image-preview {
    position: relative;
    display: inline-block;
    margin-top: 5px;
}

.preview-image {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    object-fit: contain;
    display: block;
}

.btn-remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-remove-image:hover {
    background-color: #c0392b;
}

.btn-remove-image:active {
    transform: scale(0.95);
}

