/* ========================================
   工具管理页面
   从 admin-settings-pages.css 拆分
   版本: v1.0
   ======================================== */

/* 工具面板根容器 */
.tools-panel {
    background: transparent;
}

/* 表格列分割线 */
.tools-panel .el-table th.el-table__cell,
.tools-panel .el-table td.el-table__cell {
    border-right: 1px solid #ebeef5;
}

.tools-panel .el-table th.el-table__cell:last-child,
.tools-panel .el-table td.el-table__cell:last-child {
    border-right: none;
}

/* 分类和准入等级标签样式优化 */
.tools-panel .category-tag,
.tools-panel .level-tag {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
}

.tools-panel .category-tag .el-icon,
.tools-panel .level-tag .el-icon {
    flex-shrink: 0;
    margin-right: 0;
}

/* el-tag内部内容同行显示 */
.tools-panel .category-tag.el-tag .el-tag__content,
.tools-panel .level-tag.el-tag .el-tag__content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
}

/* 统计卡片网格 */
.tools-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.tools-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tools-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.tools-stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 图标颜色变体 */
.tools-stat-card .stat-icon.icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tools-stat-card .stat-icon.icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.tools-stat-card .stat-icon.icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.tools-stat-card .stat-icon.icon-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* 装饰元素 */
.tools-stat-card .stat-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
    transform: translate(30%, -30%);
}

.tools-stat-card:nth-child(1) .stat-decoration {
    background: #3b82f6;
}

.tools-stat-card:nth-child(2) .stat-decoration {
    background: #10b981;
}

.tools-stat-card:nth-child(3) .stat-decoration {
    background: #f59e0b;
}

.tools-stat-card:nth-child(4) .stat-decoration {
    background: #8b5cf6;
}

.tools-stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.tools-stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.tools-stat-card .stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

/* 工具栏 */
.tools-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tools-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 搜索框 */
.tools-toolbar .search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.tools-toolbar .search-box .search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 16px;
    z-index: 1;
}

.tools-toolbar .search-input.el-input {
    width: 280px;
}

.tools-toolbar .search-input .el-input__wrapper {
    padding-left: 38px;
    border-radius: 10px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.tools-toolbar .search-input .el-input__wrapper:hover {
    border-color: #cbd5e1;
}

.tools-toolbar .search-input .el-input__wrapper.is-focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 分类选择器 */
.tools-toolbar .category-select.el-select {
    width: 160px;
    --el-select-input-font-size: 14px;
}

.tools-toolbar .category-select .el-input__wrapper {
    border-radius: 10px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.tools-toolbar .category-select .el-input {
    --el-input-height: 40px;
}

.tools-toolbar .category-select .el-select__wrapper {
    min-height: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.tools-toolbar .category-select .el-input__wrapper:hover {
    border-color: #cbd5e1;
}

/* 刷新按钮 */
.tools-toolbar .refresh-btn.el-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.tools-toolbar .refresh-btn.el-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* 分类管理按钮 */
.tools-toolbar .category-manage-btn.el-button {
    height: 40px;
    border-radius: 10px;
    padding: 0 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #b45309;
    font-weight: 600;
}

.tools-toolbar .category-manage-btn.el-button:hover {
    background: #fde68a;
    border-color: #fbbf24;
}

/* 添加工具按钮 */
.tools-toolbar .add-tool-btn.el-button {
    height: 40px;
    border-radius: 10px;
    padding: 0 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tools-toolbar .add-tool-btn.el-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* 表格容器 */
.tools-table-wrapper {
    padding: 0;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tools-table.el-table {
    --el-table-border-color: #f1f5f9;
}

.tools-table .el-table__header th {
    padding: 14px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tools-table .el-table__body td {
    padding: 16px;
}

/* 工具信息单元格 */
.tool-info-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon-wrapper.has-icon {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
}

.tool-icon-wrapper.no-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
    font-weight: 700;
    font-size: 18px;
}

.tool-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-icon-letter {
    text-transform: uppercase;
}

/* 网址模板缩略图 */
.tool-thumbnail-wrapper {
    width: 80px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tool-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #6366f1;
}

.tool-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
    align-items: flex-start;
}

.tool-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    width: 100%;
}

.tool-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
    text-align: left;
    width: 100%;
}

.tool-url {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-family: ui-monospace, monospace;
    width: 100%;
    justify-content: flex-start;
}

.tool-url .el-icon {
    font-size: 10px;
    flex-shrink: 0;
}

.tool-url span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    text-align: left;
}

/* 分类标签 */
.category-tag.el-tag {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    border-radius: 8px;
    padding: 4px 10px;
    font-weight: 500;
}

/* 权重标记 */
.weight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 8px;
    background: #f1f5f9;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* 版本标签 */
.version-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f5f3ff;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
}

/* 准入等级标签 */
.level-tag.el-tag {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
    font-weight: 600;
    padding: 0 12px;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 分页组件 - 样式继承自 admin-components.css 公共组件 */

.action-buttons .edit-btn.el-button {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
    border-radius: 8px;
    font-weight: 500;
}

.action-buttons .edit-btn.el-button:hover {
    background: #dcfce7;
    border-color: #4ade80;
}

.action-buttons .delete-btn.el-button {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    font-weight: 500;
}

.action-buttons .delete-btn.el-button:hover {
    background: #fee2e2;
    border-color: #f87171;
}

/* 空状态 */
.tools-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    color: #94a3b8;
}

.tools-empty .empty-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.tools-empty .empty-icon-wrapper .el-icon {
    color: #94a3b8;
}

.tools-empty .empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 8px 0;
}

.tools-empty .empty-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 24px 0;
}

.tools-empty .empty-action-btn.el-button {
    border-radius: 10px;
    padding: 12px 24px;
    height: auto;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tools-empty .empty-action-btn.el-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* ==================== 工具弹窗紧凑布局 ==================== */

/* 紧凑弹窗容器 */
.tool-dialog-compact.el-dialog .el-dialog__body {
    padding: 16px 24px;
}

.tool-dialog-compact.el-dialog .el-dialog__footer {
    padding: 12px 24px 20px;
}

/* 紧凑表单 */
.tool-form-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 表单行布局 - 2列 */
.tool-form-compact .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 表单行布局 - 3列 */
.tool-form-compact .form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* 弹窗底部居中 */
.dialog-footer-center {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.tool-form-compact .compact-form-item.el-form-item {
    margin-bottom: 0;
}

.tool-form-compact .compact-form-item .el-form-item__label {
    padding-bottom: 4px;
    font-size: 13px;
    line-height: 1.4;
}

/* 紧凑图标选择器 */
.icon-picker-compact {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.icon-picker-compact .icon-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.icon-picker-compact .icon-filter-bar .el-tag {
    font-size: 11px;
    padding: 2px 8px;
    height: 24px;
}

.icon-picker-compact .icon-grid-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 97px;
    overflow-y: auto;
    padding: 6px;
    width: 100%;
}

.icon-picker-compact .icon-grid-compact .icon-item {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 6px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-picker-compact .icon-grid-compact .icon-item:hover {
    border-color: #6366f1;
    background: #f5f3ff;
}

.icon-picker-compact .icon-grid-compact .icon-item.is-selected {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.icon-picker-compact .icon-grid-compact .icon-item img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.icon-picker-compact .icon-grid-compact .icon-item:hover img,
.icon-picker-compact .icon-grid-compact .icon-item.is-selected img {
    opacity: 1;
}

.icon-picker-compact .icon-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: #64748b;
}

/* 输入框紧凑样式 */
.tool-form-compact .el-input__wrapper,
.tool-form-compact .el-textarea__inner {
    font-size: 13px;
}

.tool-form-compact .el-input {
    --el-input-height: 36px;
}

.tool-form-compact .el-select {
    --el-select-input-font-size: 13px;
}

.tool-form-compact .el-input-number {
    --el-input-number-height: 36px;
}

/* 弹窗表单统一高度 */
.tool-form-compact .el-select .el-select__wrapper {
    min-height: 36px;
    height: 36px;
    border-radius: 6px;
}

.tool-form-compact .el-input-group {
    --el-input-height: 36px;
}

/* 给包含上传按钮的表单项预留右侧空间 */
.tool-form-compact .el-form-item:has(.el-input-group__append) .el-form-item__content {
    padding-right: 0px;
}

.tool-form-compact .el-input-group .el-input__wrapper {
    height: 36px;
    border-radius: 6px 0 0 6px;
}

.tool-form-compact .el-input-group__append {
    padding: 0;
    border: none;
    background: transparent;
}

/* 统一上传输入框样式 */
.el-input-group__append .el-upload {
    display: flex;
    align-items: center;
}

/* 现代化选择按钮样式 */
html body .tool-form-compact .el-input-group__append .el-button {
    border: none;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 500;
    padding: 0 16px;
    height: 36px;
    border-radius: 0 6px 6px 0;
    box-shadow: none;
    transition: all 0.2s ease;
    margin-left: 0;
}

html body .tool-form-compact .el-input-group__append .el-button:hover {
    background: #2563eb;
}

html body .tool-form-compact .el-input-group__append .el-button:active {
    background: #1d4ed8;
}

.el-input-group__prepend {
    padding: 0 8px;
    background: var(--admin-color-bg-light);
}

/* ==================== 工具自动打包页面样式 ==================== */

/* 页面容器 */
.builder-panel {
    padding: 0;
}

/* 统计卡片网格 */
.builder-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.builder-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.builder-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.builder-stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.builder-stat-card .stat-icon.icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.builder-stat-card .stat-icon.icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.builder-stat-card .stat-icon.icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.builder-stat-card .stat-icon.icon-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.builder-stat-card .stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.builder-stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.builder-stat-card .stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.builder-stat-card .stat-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
    transform: translate(30%, -30%);
}

.builder-stat-card:nth-child(1) .stat-decoration { background: #3b82f6; }
.builder-stat-card:nth-child(2) .stat-decoration { background: #10b981; }
.builder-stat-card:nth-child(3) .stat-decoration { background: #f59e0b; }
.builder-stat-card:nth-child(4) .stat-decoration { background: #ef4444; }

/* 主卡片 */
.builder-main-card.el-card {
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.builder-main-card .el-card__body {
    padding: 0;
}

/* 工具栏 */
.builder-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.builder-toolbar .toolbar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.builder-toolbar .title-icon {
    color: #6366f1;
}

.builder-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.builder-toolbar .refresh-btn.el-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.builder-toolbar .upload-btn.el-button {
    border-radius: 10px;
    height: 40px;
    padding: 0 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
}

/* 表格区域 */
.builder-table-wrapper {
    padding: 0;
}

.builder-table.el-table {
    --el-table-border-color: #f1f5f9;
    --el-table-row-hover-bg-color: #f8fafc;
}

.builder-table .el-table__header th {
    font-weight: 600;
    color: #475569;
}

/* 工具信息单元格 */
.build-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.build-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.build-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.build-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.build-id {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
}

/* 状态标签 */
.builder-table .status-tag {
    font-weight: 500;
}

/* 时间文本 */
.time-text {
    font-size: 13px;
    color: #64748b;
}

/* 操作按钮 */
.builder-table .action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.builder-table .download-btn.el-button {
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    font-weight: 500;
}

.builder-table .delete-btn.el-button {
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-weight: 500;
}

.builder-table .delete-btn.el-button:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* 空状态 */
.builder-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.builder-empty .empty-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.builder-empty .empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 8px 0;
}

.builder-empty .empty-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 24px 0;
}

.builder-empty .empty-action-btn.el-button {
    border-radius: 10px;
    padding: 12px 24px;
    height: auto;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 弹窗样式 */
.builder-dialog .builder-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.builder-dialog .upload-wrapper {
    width: 100%;
}

.builder-dialog .upload-area {
    width: 100%;
}

.builder-dialog .upload-area .el-upload-dragger {
    width: 100%;
    padding: 32px 20px;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.builder-dialog .upload-area .el-upload-dragger:hover {
    border-color: #6366f1;
    background: #f5f3ff;
}

.builder-dialog .upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.builder-dialog .upload-icon {
    color: #6366f1;
}

.builder-dialog .upload-text {
    text-align: center;
}

.builder-dialog .upload-main-text {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.builder-dialog .upload-sub-text {
    font-size: 13px;
    color: #64748b;
}

.builder-dialog .upload-sub-text em {
    color: #6366f1;
    font-style: normal;
    font-weight: 600;
}

/* 提示卡片 */
.builder-dialog .tips-card,
.builder-form .tips-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
}

.builder-dialog .tip-item,
.builder-form .tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #64748b;
}

.builder-dialog .tip-icon,
.builder-form .tip-icon {
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .builder-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .builder-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .builder-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .builder-toolbar .toolbar-right {
        justify-content: flex-end;
    }
}

/* ==================== 用户权限体系页面样式 ==================== */

/* 工具资源管理分类筛选下拉框全部显示 */
.el-select-dropdown {
    max-height: none;
}

.el-select-dropdown .el-scrollbar {
    max-height: none;
}

.el-select-dropdown .el-scrollbar__wrap {
    max-height: none;
    overflow: visible;
}

.el-select-dropdown .el-select-dropdown__list {
    max-height: none;
}