/* 今天登录的高亮样式 */ .today-login { background-color: #e6f7ff; color: #1890ff; padding: 2px 8px; border-radius: 4px; font-weight: 500; display: inline-block; } /* 用户信息显示优化 */ .account-info-item { margin-bottom: 15px; display: flex; align-items: center; } .account-info-item .label { font-weight: 500; width: 120px; flex-shrink: 0; color: #555; } .account-info-item .value { color: #1f2937; font-weight: 400; } /* 加载中占位符样式 */ .loading-placeholder { display: inline-block; width: 80px; height: 14px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 4px; } @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* 菜单编辑弹窗样式 */ .menu-edit-popup { border-radius: 12px; padding: 24px; max-width: 500px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } .menu-edit-title { font-size: 1.5em; color: #1f2937; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #f3f4f6; font-weight: 600; } .menu-edit-container { text-align: left; } .menu-edit-container .form-group { margin-bottom: 24px; } .menu-edit-container label { display: block; margin-bottom: 8px; color: #4b5563; font-weight: 500; font-size: 0.95em; } .menu-edit-container .swal2-input, .menu-edit-container .swal2-select { width: 100%; padding: 10px 14px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; background-color: #f9fafb; } .menu-edit-container .swal2-input:hover, .menu-edit-container .swal2-select:hover { border-color: #d1d5db; background-color: #ffffff; } .menu-edit-container .swal2-input:focus, .menu-edit-container .swal2-select:focus { border-color: #4CAF50; outline: none; box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1); background-color: #ffffff; } .menu-edit-confirm { background-color: #4CAF50 !important; padding: 10px 24px !important; border-radius: 8px !important; font-weight: 500 !important; transition: all 0.3s ease !important; font-size: 14px !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; } .menu-edit-confirm:hover { background-color: #45a049 !important; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2); } .menu-edit-cancel { background-color: #f3f4f6 !important; color: #4b5563 !important; padding: 10px 24px !important; border-radius: 8px !important; font-weight: 500 !important; transition: all 0.3s ease !important; font-size: 14px !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; } .menu-edit-cancel:hover { background-color: #e5e7eb !important; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } /* 操作按钮样式优化 */ .action-buttons { display: flex; gap: 8px; justify-content: flex-end; } .action-btn { width: 32px; height: 32px; border-radius: 6px; border: none; background-color: #f3f4f6; color: #4b5563; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .action-btn:hover { background-color: #e5e7eb; transform: translateY(-1px); } .action-btn i { font-size: 14px; } .action-btn.edit-btn { color: #3b82f6; } .action-btn.edit-btn:hover { background-color: #dbeafe; } .action-btn.delete-btn { color: #ef4444; } .action-btn.delete-btn:hover { background-color: #fee2e2; } .action-btn.log-btn { color: #10b981; } .action-btn.log-btn:hover { background-color: #d1fae5; } .action-btn.start-btn { color: #10b981; } .action-btn.start-btn:hover { background-color: #d1fae5; } .action-btn.stop-btn { color: #ef4444; } .action-btn.stop-btn:hover { background-color: #fee2e2; } .action-btn.restart-btn { color: #f59e0b; } .action-btn.restart-btn:hover { background-color: #fef3c7; } /* Docker 状态指示器样式 */ .status-indicator { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 4px; font-size: 14px; font-weight: 500; transition: all 0.3s; } .status-indicator.running { background-color: rgba(76, 175, 80, 0.1); color: #4CAF50; } .status-indicator.stopped { background-color: rgba(244, 67, 54, 0.1); color: #F44336; } .status-indicator i { margin-right: 6px; font-size: 16px; } /* 文档操作按钮样式优化 */ .view-btn { background-color: #f0f9ff !important; color: #0ea5e9 !important; } .view-btn:hover { background-color: #e0f2fe !important; color: #0284c7 !important; } .edit-btn { background-color: #f0fdf4 !important; color: #22c55e !important; } .edit-btn:hover { background-color: #dcfce7 !important; color: #16a34a !important; } .delete-btn { background-color: #fef2f2 !important; color: #ef4444 !important; } .delete-btn:hover { background-color: #fee2e2 !important; color: #dc2626 !important; } .publish-btn { background-color: #f0fdfa !important; color: #14b8a6 !important; } .publish-btn:hover { background-color: #ccfbf1 !important; color: #0d9488 !important; } .unpublish-btn { background-color: #fffbeb !important; color: #f59e0b !important; } .unpublish-btn:hover { background-color: #fef3c7 !important; color: #d97706 !important; } /* 刷新按钮交互反馈 */ .refresh-btn { background-color: #f9fafb; color: #4b5563; border: 1px solid #e5e7eb; padding: 6px 12px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; transition: all 0.2s ease; } .refresh-btn:hover { background-color: #f3f4f6; color: #374151; } .refresh-btn.loading { pointer-events: none; opacity: 0.7; } .refresh-btn.loading i { animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Docker未运行友好提示 */ .docker-offline-container { background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 24px; margin: 20px 0; text-align: center; } .docker-offline-icon { font-size: 40px; color: #9ca3af; margin-bottom: 16px; } .docker-offline-title { font-size: 20px; font-weight: 600; color: #4b5563; margin-bottom: 8px; } .docker-offline-message { color: #6b7280; margin-bottom: 20px; } .docker-offline-actions { display: flex; justify-content: center; gap: 12px; } .docker-offline-btn { padding: 8px 16px; border-radius: 4px; border: none; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; } .docker-offline-btn.primary { background-color: #4f46e5; color: white; } .docker-offline-btn.primary:hover { background-color: #4338ca; } .docker-offline-btn.secondary { background-color: #f3f4f6; color: #4b5563; } .docker-offline-btn.secondary:hover { background-color: #e5e7eb; } /* 简单 Markdown 编辑器样式 */ .editor-toolbar { background-color: var(--container-bg); border: 1px solid var(--border-color); border-bottom: none; padding: 0.5rem; border-radius: 0.25rem 0.25rem 0 0; } .editor-toolbar .btn { margin-right: 0.25rem; margin-bottom: 0.25rem; } .editor-content { border: 1px solid var(--border-color); border-top: none; padding: 1rem; border-radius: 0 0 0.25rem 0.25rem; background-color: var(--container-bg); } #markdown-editor { font-family: 'Consolas', 'Monaco', 'Courier New', monospace; border: 1px solid var(--border-color); background-color: var(--background-color); color: var(--text-color); resize: vertical; } .markdown-preview { border: 1px solid var(--border-color); padding: 1rem; background-color: var(--background-color); color: var(--text-color); min-height: 400px; border-radius: 0.25rem; overflow-y: auto; } .markdown-preview h1, .markdown-preview h2, .markdown-preview h3, .markdown-preview h4, .markdown-preview h5, .markdown-preview h6 { color: var(--text-color); } .markdown-preview code { background-color: rgba(0, 0, 0, 0.1); padding: 0.125rem 0.25rem; border-radius: 0.125rem; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; } .markdown-preview pre { background-color: rgba(0, 0, 0, 0.1); padding: 1rem; border-radius: 0.25rem; overflow-x: auto; } .markdown-preview blockquote { border-left: 4px solid var(--border-color); padding-left: 1rem; margin-left: 0; color: var(--text-secondary); } .markdown-preview table { border-collapse: collapse; width: 100%; margin: 1rem 0; } .markdown-preview table th, .markdown-preview table td { border: 1px solid var(--border-color); padding: 0.5rem; text-align: left; } .markdown-preview table th { background-color: rgba(0, 0, 0, 0.05); font-weight: bold; } /* ========== 管理面板移动端优化 ========== */ @media (max-width: 768px) { /* 侧边栏优化 */ .sidebar { position: fixed; left: -280px; top: 0; height: 100vh; z-index: 1000; transition: left 0.3s ease; width: 280px; } .sidebar.active { left: 0; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); } /* 添加遮罩层 */ .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 999; } .sidebar-overlay.active { display: block; } /* 移动端菜单切换按钮 */ .mobile-menu-toggle { position: fixed; top: 15px; left: 15px; z-index: 1001; background-color: var(--primary-color); color: white; border: none; border-radius: 8px; padding: 10px 15px; font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); -webkit-tap-highlight-color: transparent; } /* 主内容区域优化 */ .admin-container { flex-direction: column; } .main-content { margin-left: 0 !important; padding: 15px !important; width: 100% !important; } /* 表格优化 - 响应式表格 */ table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; } table thead { display: none; } table tr { display: block; margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; background: white; } table td { display: flex; justify-content: space-between; padding: 8px 5px !important; border: none !important; text-align: left !important; } table td::before { content: attr(data-label); font-weight: 600; color: #64748b; margin-right: 10px; flex-shrink: 0; } /* 操作按钮优化 */ .action-buttons { flex-direction: column; gap: 10px; } .action-buttons button, .action-buttons .btn { width: 100%; margin: 0; } /* 仪表盘卡片优化 */ .dashboard-cards { grid-template-columns: 1fr !important; gap: 15px; } .stat-card { padding: 15px; } /* 表单优化 */ .form-group { margin-bottom: 15px; } .form-group label { font-size: 14px; margin-bottom: 6px; } .swal2-input, .swal2-select, .swal2-textarea { font-size: 16px !important; /* 防止 iOS 缩放 */ padding: 12px !important; } /* 弹窗优化 */ .swal2-popup { width: 90% !important; max-width: 400px !important; padding: 20px !important; margin: 0 auto; } .swal2-title { font-size: 1.3rem !important; padding: 10px 0; } .swal2-html-container { font-size: 14px !important; max-height: 60vh; overflow-y: auto; } .swal2-actions { flex-direction: column; gap: 10px; width: 100%; } .swal2-confirm, .swal2-cancel { width: 100% !important; margin: 0 !important; padding: 12px !important; font-size: 15px !important; } /* 编辑器优化 */ .editor-toolbar { flex-wrap: wrap; padding: 8px; } .editor-toolbar .btn { font-size: 13px; padding: 6px 10px; margin: 3px; } #markdown-editor { font-size: 14px; min-height: 300px; } .markdown-preview { padding: 12px; font-size: 14px; min-height: 300px; } /* 账户信息优化 */ .account-info-item { flex-direction: column; align-items: flex-start; margin-bottom: 12px; } .account-info-item .label { width: 100%; margin-bottom: 5px; font-size: 13px; } .account-info-item .value { font-size: 14px; } /* 菜单编辑弹窗 */ .menu-edit-popup { padding: 16px; } .menu-edit-title { font-size: 1.2em; margin-bottom: 16px; padding-bottom: 12px; } .menu-edit-container .form-group { margin-bottom: 16px; } .menu-edit-container label { font-size: 14px; } /* 搜索和过滤器优化 */ .search-box, .filter-box { width: 100%; margin-bottom: 15px; } .search-box input, .filter-box select { width: 100%; font-size: 16px; padding: 12px; } } /* ========== 超小屏幕优化 ========== */ @media (max-width: 480px) { .sidebar { width: 260px; left: -260px; } .mobile-menu-toggle { top: 10px; left: 10px; padding: 8px 12px; font-size: 18px; } .main-content { padding: 10px !important; } .swal2-popup { width: 95% !important; padding: 15px !important; } table td { font-size: 13px; } .stat-card { padding: 12px; } .stat-card h3 { font-size: 1.1rem; } } /* ========== 平板横屏优化 ========== */ @media (min-width: 769px) and (max-width: 1024px) { .sidebar { width: 240px; } .main-content { margin-left: 240px; } .dashboard-cards { grid-template-columns: repeat(2, 1fr); } } /* ========== 菜单管理和文档管理页面美化 ========== */ /* 页面头部优化 - 现代卡片式设计 */ .page-header { background: white; border-radius: 12px; padding: 28px 32px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04); border: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; transition: box-shadow 0.3s ease; position: relative; overflow: hidden; } .page-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%); } .page-header:hover { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05); } .page-header-content h1.page-title { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 6px 0; letter-spacing: -0.02em; } .page-header-content h1.page-title i { color: #3b82f6; margin-right: 10px; font-size: 22px; } .page-header-content .page-subtitle { font-size: 14px; color: #6b7280; margin: 0; font-weight: 400; } .page-header .btn-with-icon { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; font-size: 14px; font-weight: 600; border-radius: 8px; background: #3b82f6; color: white; border: none; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 1px 2px rgba(59, 130, 246, 0.3); } .page-header .btn-with-icon:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); } .page-header .btn-with-icon:active { transform: translateY(0); } /* 表格容器 - 去除多余装饰 */ .table-container { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); border: 1px solid #f0f0f0; overflow: hidden; } /* 现代化表格样式 - 简洁专业 */ .modern-table { width: 100%; border-collapse: separate; border-spacing: 0; } .modern-table thead { background: #f9fafb; border-bottom: 2px solid #e5e7eb; } .modern-table thead th { padding: 14px 20px; text-align: left; font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #e5e7eb; } .modern-table thead th:first-child { padding-left: 24px; } .modern-table thead th:last-child { padding-right: 24px; text-align: right; } .modern-table tbody tr { transition: background-color 0.15s ease; border-bottom: 1px solid #f3f4f6; } .modern-table tbody tr:hover { background: #fafbfc; } .modern-table tbody tr:last-child { border-bottom: none; } .modern-table tbody td { padding: 16px 20px; font-size: 14px; color: #374151; vertical-align: middle; } .modern-table tbody td:first-child { padding-left: 24px; font-weight: 500; } .modern-table tbody td:last-child { padding-right: 24px; text-align: right; } /* 菜单管理特殊样式 - 无图标版本 */ #menuTable .menu-text-display { font-weight: 600; color: #111827; font-size: 14px; } #menuTable .menu-url-cell { font-family: 'SF Mono', 'Monaco', 'Consolas', monospace; font-size: 13px; color: #3b82f6; background: #eff6ff; padding: 5px 10px; border-radius: 5px; display: inline-block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #menuTable .menu-newtab-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; } #menuTable .menu-newtab-badge.yes { background: #d1fae5; color: #065f46; } #menuTable .menu-newtab-badge.no { background: #f3f4f6; color: #6b7280; } /* 文档管理特殊样式 - 无图标版本 */ #documentTable .doc-title-display { font-weight: 600; color: #111827; font-size: 14px; } #documentTable .doc-path { font-family: 'SF Mono', 'Monaco', 'Consolas', monospace; font-size: 12px; color: #6366f1; background: #eef2ff; padding: 5px 10px; border-radius: 5px; display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #documentTable .doc-status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; } #documentTable .doc-status-badge.published { background: #d1fae5; color: #065f46; } #documentTable .doc-status-badge.draft { background: #fef3c7; color: #92400e; } #documentTable .doc-date { font-size: 13px; color: #9ca3af; font-weight: 400; } /* 操作按钮 - 扁平化设计 */ .action-buttons { display: flex; gap: 6px; justify-content: flex-end; } .modern-table .action-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s ease; font-size: 14px; background: transparent; } .modern-table .action-btn:hover { transform: translateY(-1px); } /* 编辑按钮 */ .modern-table .action-btn.edit-btn { color: #3b82f6; } .modern-table .action-btn.edit-btn:hover { background: #dbeafe; border-color: #bfdbfe; } /* 删除按钮 */ .modern-table .action-btn.delete-btn { color: #ef4444; } .modern-table .action-btn.delete-btn:hover { background: #fee2e2; border-color: #fecaca; } /* 发布按钮 */ .modern-table .action-btn.publish-btn { color: #10b981; } .modern-table .action-btn.publish-btn:hover { background: #d1fae5; border-color: #a7f3d0; } /* 取消发布按钮 */ .modern-table .action-btn.unpublish-btn { color: #f59e0b; } .modern-table .action-btn.unpublish-btn:hover { background: #fef3c7; border-color: #fde68a; } /* 预览按钮 */ .modern-table .action-btn.preview-btn { color: #8b5cf6; } .modern-table .action-btn.preview-btn:hover { background: #ede9fe; border-color: #ddd6fe; } /* 新增菜单项行 - 清爽设计 */ #new-menu-item-row { background: #f0fdf4; border-left: 3px solid #10b981; } #new-menu-item-row td { padding: 14px 20px !important; } #new-menu-item-row input[type="text"], #new-menu-item-row select { border: 1px solid #d1d5db; border-radius: 6px; padding: 9px 12px; font-size: 14px; transition: all 0.2s ease; background: white; color: #111827; } #new-menu-item-row input[type="text"]:focus, #new-menu-item-row select:focus { border-color: #10b981; outline: none; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); } #new-menu-item-row .action-buttons-new-menu { display: flex; gap: 8px; } #new-menu-item-row .action-buttons-new-menu .btn { padding: 9px 18px; font-size: 14px; font-weight: 600; border-radius: 6px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s ease; } #new-menu-item-row .action-buttons-new-menu .btn-success { background: #10b981; color: white; } #new-menu-item-row .action-buttons-new-menu .btn-success:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); } #new-menu-item-row .action-buttons-new-menu .btn-secondary { background: #f3f4f6; color: #6b7280; } #new-menu-item-row .action-buttons-new-menu .btn-secondary:hover { background: #e5e7eb; color: #374151; } /* 空状态和加载状态 */ .table-empty-state { text-align: center; padding: 48px 32px; color: #9ca3af; } .table-empty-state i { font-size: 40px; color: #d1d5db; margin-bottom: 16px; } .table-empty-state h3 { font-size: 16px; font-weight: 600; color: #6b7280; margin: 12px 0 6px 0; } .table-empty-state p { font-size: 14px; color: #9ca3af; } .table-loading { text-align: center; padding: 40px 32px; color: #6b7280; } .table-loading i { font-size: 28px; color: #3b82f6; margin-bottom: 12px; } /* 响应式优化 */ @media (max-width: 768px) { .page-header { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; } .page-header .btn-with-icon { width: 100%; justify-content: center; } .modern-table thead th, .modern-table tbody td { padding: 12px 16px; } .modern-table thead th:first-child, .modern-table tbody td:first-child { padding-left: 16px; } .modern-table thead th:last-child, .modern-table tbody td:last-child { padding-right: 16px; } }