/* 基础可复用样式 - 供所有插件使用 */ /* 通用占位符样式 */ .placeholder-content { width: 100%; height: 100%; background: #f8f9fa; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 2px dashed #ddd; text-align: center; color: #666; } .placeholder-content h3 { margin-bottom: 10px; color: #333; } /* 可复用网格样式 */ .content-grid { display: flex; flex-direction: column; gap: 20px; } .content-group { background: #f8f9fa; border-radius: 8px; padding: 15px; border: 1px solid #e9ecef; } .content-group h4 { margin: 0 0 10px 0; color: #495057; font-size: 14px; font-weight: 600; } /* 可复用按钮样式 */ .btn.small { font-size: 12px; padding: 6px 10px; margin: 2px; white-space: nowrap; } .btn.overlay-style { background: #e3f2fd; border-color: #2196f3; color: #1976d2; } .btn.vis-style { background: #f3e5f5; border-color: #9c27b0; color: #7b1fa2; } .btn:hover { opacity: 0.8; transform: translateY(-1px); } .btn.active { background: #4caf50; color: white; border-color: #4caf50; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } /* 可复用列表样式 */ .scrollable-list { max-height: 200px; overflow-y: auto; border: 1px solid #ddd; border-radius: 4px; background: #fff; } .list-item { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; } .list-item:last-child { border-bottom: none; } .list-item:hover { background: #f8f9fa; } .list-item.selected { background: #e3f2fd; border-left: 3px solid #2196f3; } .list-item-info { flex: 1; display: flex; justify-content: space-between; align-items: center; } .list-item-title { font-weight: 600; color: #333; } .list-item-subtitle { font-size: 12px; color: #666; } /* 可复用编辑器样式 */ .editor-panel { background: #f8f9fa; border-radius: 8px; padding: 15px; border: 1px solid #e9ecef; } .control-group { margin-bottom: 15px; } .control-group label { font-size: 13px; font-weight: 500; margin-bottom: 5px; display: block; } .slider-group { display: flex; align-items: center; gap: 10px; } .slider-input { flex: 1; } .value-display { min-width: 60px; text-align: center; font-family: monospace; font-size: 12px; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 4px 8px; } /* 响应式调整 */ @media (max-width: 1200px) { .content-grid { gap: 15px; } .content-group { padding: 10px; } .btn.small { font-size: 11px; padding: 4px 8px; } } /* 插件管理样式 */ .plugin-management-container { padding: 30px; width: 100%; min-height: calc(100vh - 200px); } /* 修复插件管理的布局 */ #plugin-management { width: 100%; height: 100%; display: flex; flex-direction: column; } #plugin-management.tab-content.active { display: flex; } /* URL安装区域 */ .plugin-install-section { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin-bottom: 30px; } .plugin-install-section h3 { margin: 0 0 15px 0; color: #495057; } .url-install-form { display: flex; flex-direction: column; gap: 15px; } .url-input { width: 100%; padding: 10px 15px; border: 1px solid #ced4da; border-radius: 4px; font-size: 14px; } .form-actions { display: flex; gap: 10px; } /* 插件列表区域 */ .plugin-list-section { flex: 1; } .plugin-list-section h3 { margin: 0 0 20px 0; color: #495057; } .plugin-table-container { overflow-x: auto; border: 1px solid #dee2e6; border-radius: 8px; } .plugin-table { width: 100%; border-collapse: collapse; background: white; } .plugin-table th, .plugin-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #dee2e6; } .plugin-table th { background: #f8f9fa; font-weight: 600; color: #495057; position: sticky; top: 0; } .plugin-table tr:hover { background: #f8f9fa; } .plugin-table tr:last-child td { border-bottom: none; } /* 插件状态标签 */ .plugin-status { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; text-transform: uppercase; } .plugin-status.installed { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .plugin-status.not-installed { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .plugin-status.official { background: #cce5ff; color: #004085; border: 1px solid #b3d7ff; } .plugin-status.local { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; } /* 仓库链接 */ .repository-link { color: #007bff; text-decoration: none; font-size: 12px; } .repository-link:hover { text-decoration: underline; } /* 操作按钮 */ .action-btn { padding: 5px 10px; border: 1px solid #ddd; border-radius: 4px; background: white; color: #495057; cursor: pointer; font-size: 12px; margin: 0 2px; transition: all 0.2s; } .action-btn.install { background: #28a745; color: white; border-color: #28a745; } .action-btn.uninstall { background: #dc3545; color: white; border-color: #dc3545; } .action-btn:hover { opacity: 0.8; } .action-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* 插件顺序管理样式 */ .plugin-order-section { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin-bottom: 30px; } .plugin-order-section h3 { margin: 0 0 10px 0; color: #495057; } .sortable-list { display: flex; flex-direction: column; gap: 8px; min-height: 50px; background: white; border: 1px solid #dee2e6; border-radius: 4px; padding: 10px; } .sortable-item { display: flex; align-items: center; padding: 10px 15px; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 4px; cursor: move; transition: all 0.2s; user-select: none; } .sortable-item:hover { background: #e9ecef; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .sortable-item.dragging { opacity: 0.4; cursor: grabbing; } .sortable-item.drag-over { border-top: 3px solid #007bff; } .drag-handle { margin-right: 10px; color: #6c757d; font-size: 18px; } .plugin-name { flex: 1; font-weight: 500; } .plugin-id { color: #6c757d; font-size: 12px; margin-left: 10px; } /* 选项卡拖拽样式 */ .tab-button.draggable { cursor: move; } .tab-button.dragging { opacity: 0.5; cursor: grabbing; } .tab-button.drag-over { border-left: 3px solid #007bff; } /* 插件操作区域 */ .plugin-actions { margin-top: 30px; text-align: center; padding-top: 20px; border-top: 1px solid #dee2e6; }