/* 悬浮提示框样式 */
/* 自定义下拉框样式 */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-display {
    border: 1px solid #ddd;
    padding: 8px 12px;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}

.custom-select-display:hover {
    border-color: #007bff;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.custom-select-option:hover {
    background-color: #f5f5f5;
}

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

.tooltip {
    position: fixed;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(30, 30, 30, 0.95));
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    word-wrap: break-word;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    line-height: 1.4;
}

/* 小尖角样式 */
.tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 10001;
}

/* 左侧小尖角 - 当提示框在选项右侧时 */
.tooltip.arrow-left::before {
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(0, 0, 0, 0.9) transparent transparent;
    left: -8px;
    top: var(--arrow-top, 50%);
    transform: translateY(-50%);
}

/* 右侧小尖角 - 当提示框在选项左侧时 */
.tooltip.arrow-right::before {
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.9);
    right: -8px;
    top: var(--arrow-top, 50%);
    transform: translateY(-50%);
}

/* 上方小尖角 - 当提示框在选项下方时 */
.tooltip.arrow-top::before {
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
    top: -8px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
}

/* 下方小尖角 - 当提示框在选项上方时 */
.tooltip.arrow-bottom::before {
    border-width: 8px 8px 0 8px;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
    bottom: -8px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
}

.tooltip.show,
.tooltip[style*="opacity: 1"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 悬浮提示箭头 */
.tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(0, 0, 0, 0.9) transparent transparent;
    filter: drop-shadow(-1px 0 1px rgba(0, 0, 0, 0.2));
}

/* 当提示框在左侧时的箭头 */
.tooltip.left::before {
    left: auto;
    right: -8px;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.9);
    filter: drop-shadow(1px 0 1px rgba(0, 0, 0, 0.2));
}

/* 悬浮动画效果 */
.tooltip:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 悬浮提示内容样式 */
.tooltip .tooltip-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.tooltip .tooltip-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

/* 工作流名称下拉框悬浮增强 */
#workflowName {
    min-width: 400px;
    max-width: 500px;
    transition: all 0.2s ease;
}

#workflowName:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

#workflowName:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

#workflowName option {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

/* 下拉选项容器相对定位 */
.form-group {
    position: relative;
}

/* 确保下拉框在悬浮时有足够的层级 */
select:focus {
    z-index: 1000;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.top-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.logo i {
    font-size: 24px;
}

.top-nav .nav-item {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.top-nav .nav-item.active,
.top-nav .nav-item:hover {
    background-color: rgba(255,255,255,0.2);
}

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

.user-info {
    font-size: 14px;
    opacity: 0.9;
}

.header-right i {
    font-size: 24px;
    cursor: pointer;
}

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

/* 左侧导航 */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e8eaed;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.sidebar-header h3 {
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-group {
    margin-bottom: 20px;
}

.nav-group-title {
    padding: 10px 20px;
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
}

.nav-item.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-left-color: #1a73e8;
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    background-color: #f5f7fa;
}

/* 内容头部 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    font-size: 14px;
}

.breadcrumb .current {
    color: #1a73e8;
    font-weight: 500;
}

.breadcrumb i {
    font-size: 12px;
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #000000;
    color: white;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: white;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.btn-danger {
    background: #ea4335;
    color: white;
}

.btn-danger:hover {
    background: #d33b2c;
}

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

/* 工作流管理区域 */
.workflow-management {
    flex: 1;
    padding: 24px;
    background: #f8f9fa;
    overflow-y: auto;
}

/* 头部区域 */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.title-area {
    flex: 1;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 高级筛选区域 */
.advanced-filter-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-icon-area {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.filter-icon {
    width: 40px;
    height: 40px;
    background: #8b5cf6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.filter-icon i {
    color: white;
    font-size: 16px;
}

.filter-text {
    flex: 1;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.5;
}

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

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
}

.view-toggle {
    font-size: 14px;
    color: #666;
}

/* 筛选选择器区域 */
.filter-selectors {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.button-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #666;
    min-width: 120px;
    max-width: 150px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(108,117,125,0.25);
}

.filter-query-btn {
    padding: 8px 20px;
    border: 1px solid #000;
    border-radius: 6px;
    background: #000;
    color: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 80px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-query-btn:hover {
    background: #333;
    border-color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-clear-btn {
    padding: 8px 20px;
    border: 1px solid #000000;
    border-radius: 6px;
    background: #000000;
    color: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-clear-btn:hover {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clear-icon {
    width: 16px;
    height: 16px;
    color: white;
}

.query-icon {
    width: 16px;
    height: 16px;
    color: white;
}

/* 工作流列表 */
.workflow-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.list-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.list-header-info i {
    font-size: 16px;
    color: #666;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
}

.list-count {
    font-size: 14px;
    color: #666;
}

.list-actions {
    display: flex;
    gap: 12px;
}

/* 工作流网格 */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 工作流卡片 */
.workflow-card {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.workflow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #1a73e8;
}

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

.card-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    flex: 1;
    margin-right: 10px;
}

.card-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-status.active {
    background: #e8f5e8;
    color: #137333;
}

.card-status.inactive {
    background: #fce8e6;
    color: #d93025;
}

.card-content {
    margin-bottom: 20px;
}

.card-description {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    font-size: 12px;
}

.meta-item i {
    width: 14px;
    text-align: center;
}

.card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    color: #9ca3af;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.page-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #5f6368;
    font-size: 14px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden; /* 确保内部元素不会超出圆角边界 */
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e8eaed;
    border-radius: 12px 12px 0 0; /* 顶部圆角 */
    background: white;
    flex-shrink: 0; /* 防止头部被压缩 */
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #202124;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5f6368;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background: #f8f9fa;
}

.modal-body {
    padding: 30px;
    background: white;
    flex: 1;
    overflow-y: auto; /* 只有主体内容可以滚动 */
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid #e8eaed;
    border-radius: 0 0 12px 12px; /* 底部圆角 */
    background: white;
    flex-shrink: 0; /* 防止底部被压缩 */
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #202124;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6c757d;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* 必填字段标识 */
.required {
    color: #d93025;
    font-weight: 600;
}

/* 字段说明文本 */
.field-description {
    margin-top: 6px;
    font-size: 12px;
    color: #5f6368;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #e8eaed;
}

/* 表单组间距调整 */
.form-group {
    margin-bottom: 24px;
}

/* 文本域特殊样式 */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* 选择框样式优化 */
.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* 下拉框选项样式优化 */
.form-group select option {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 工作流名称下拉框特殊样式 */
#workflowName {
    min-width: 400px;
    max-width: 500px;
}

#workflowName option {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .workflow-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-bar {
        max-width: none;
    }
    
    .filter-options {
        justify-content: space-between;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body,
    .modal-header,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0 15px;
    }
    
    .header-left {
        gap: 15px;
    }
    
    .logo span {
        display: none;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .workflow-management {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .card-actions {
        flex-wrap: wrap;
    }
}

/* 表头样式 */
.table-header {
    display: flex;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    padding: 0;
}

.header-cell {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #e1e5e9;
    text-align: center;
    background: #f8f9fa;
}

/* 工作流名称列更宽 */
.header-cell:nth-child(1) {
    flex: 3.5;
    text-align: left;
}

/* 租户列 */
.header-cell:nth-child(2) {
    flex: 1;
}

/* 学科列 */
.header-cell:nth-child(3) {
    flex: 0.6;
}

/* 年级列 */
.header-cell:nth-child(4) {
    flex: 0.6;
}

/* 题型列 */
.header-cell:nth-child(5) {
    flex: 1;
}

/* 操作列 */
.header-cell:nth-child(6) {
    flex: 1;
}

.header-cell:last-child {
    border-right: none;
}

/* 工作流行样式 */
.workflow-row {
    display: flex;
    background: white;
    border: 1px solid #e1e5e9;
    border-top: none;
    margin-bottom: 0;
    padding: 0;
    transition: background-color 0.2s;
}

.workflow-row:hover {
    background-color: #f8f9fa;
}

.workflow-row:last-child {
    border-radius: 0 0 6px 6px;
}

.row-cell {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    border-right: 1px solid #e1e5e9;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 工作流名称单元格更宽，左对齐，不换行 */
.row-cell:nth-child(1) {
    flex: 3.5;
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 租户单元格 */
.row-cell:nth-child(2) {
    flex: 1;
}

/* 学科单元格 */
.row-cell:nth-child(3) {
    flex: 0.6;
}

/* 年级单元格 */
.row-cell:nth-child(4) {
    flex: 0.6;
}

/* 题型单元格 */
.row-cell:nth-child(5) {
    flex: 1;
}

/* 操作单元格 */
.row-cell:nth-child(6) {
    flex: 1;
}

.row-cell:last-child {
    border-right: none;
}

/* 操作按钮样式 */
.action-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    margin: 0 2px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-btn {
    color: #007bff;
}

.edit-btn:hover {
    background-color: #e3f2fd;
    color: #0056b3;
}

.delete-btn {
    color: #dc3545;
}

.delete-btn:hover {
    background-color: #ffeaea;
    color: #c82333;
}