body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; background-color: white; padding: 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); } h1 { text-align: center; color: #333; margin-bottom: 30px; font-size: 2.5rem; background: linear-gradient(90deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } h2 { color: #555; border-bottom: 3px solid #667eea; padding-bottom: 10px; margin-top: 0; } h3 { color: #667eea; margin-top: 0; } .filter-info { background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); border: 1px solid #667eea; border-radius: 6px; padding: 15px 20px; margin-bottom: 20px; display: none; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); font-weight: 500; } .filter-info.active { display: block; animation: fadeIn 0.3s ease-in; } .menu { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; justify-content: center; } .btn { padding: 12px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: 500; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); } .btn:active { transform: translateY(0); } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .btn-success { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: white; } .btn-info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; } .btn-warning { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); color: white; } .btn-danger { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%); color: white; } .btn-secondary { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); color: white; } .form-container { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); padding: 25px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #dee2e6; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; } .form-group input { width: 100%; padding: 12px 15px; border: 2px solid #ddd; border-radius: 6px; box-sizing: border-box; font-size: 16px; transition: border-color 0.3s; } .form-group input:focus { border-color: #667eea; outline: none; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-buttons { display: flex; gap: 15px; margin-top: 25px; justify-content: flex-start; } .search-options, .filter-options { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; justify-content: center; } .search-form, .filter-form { margin-top: 25px; padding: 20px; background-color: white; border-radius: 6px; border: 1px solid #dee2e6; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .table-container { overflow-x: auto; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); margin-bottom: 30px; max-height: 70vh; } .table-container::-webkit-scrollbar { width: 8px; height: 8px; } .table-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } .table-container::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; } .table-container::-webkit-scrollbar-thumb:hover { background: #a8a8a8; } .table-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px 8px 0 0; } .loading { display: flex; align-items: center; gap: 10px; } .spinner { width: 20px; height: 20px; border: 2px solid #ffffff; border-top: 2px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } table { width: 100%; border-collapse: collapse; margin-top: 0; } th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; } th { background-color: #f8f9fa; font-weight: 600; color: #495057; position: sticky; top: 0; } tr:hover { background-color: #f8f9fa; transition: background-color 0.2s; } tr:nth-child(even) { background-color: #fdfdfd; } .message { padding: 15px 20px; margin-top: 20px; border-radius: 6px; display: none; animation: slideIn 0.3s ease-out; font-weight: 500; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .message.success { background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); color: #155724; border: 1px solid #28a745; } .message.error { background: linear-gradient(120deg, #ff9a9e 0%, #fad0c4 100%); color: #721c24; border: 1px solid #dc3545; } .message.info { background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); color: #0c5460; border: 1px solid #17a2b8; } .icon { font-size: 18px; } @media (max-width: 768px) { .container { padding: 15px; margin: 10px; } h1 { font-size: 2rem; } .menu { flex-direction: column; } .menu .btn { width: 100%; justify-content: center; } .search-options, .filter-options { flex-direction: column; } .search-options .btn, .filter-options .btn { width: 100%; justify-content: center; } .form-buttons { flex-direction: column; } .form-buttons .btn { width: 100%; justify-content: center; } .table-header { flex-direction: column; gap: 10px; text-align: center; } th, td { padding: 12px 8px; font-size: 14px; } .icon { font-size: 16px; } .table-container { max-height: 60vh; } } @media (max-width: 480px) { body { padding: 10px; } .container { padding: 10px; } h1 { font-size: 1.5rem; } .form-container { padding: 15px; } .search-form, .filter-form { padding: 15px; } .user-welcome-card { flex-direction: column; align-items: center; padding: 8px 12px; } .user-avatar { font-size: 1.2rem; margin-bottom: 4px; } .user-details { flex-direction: column; align-items: center; gap: 2px; } .username-text { font-size: 0.9rem; } .user-role-text { font-size: 0.7rem; } } /* 文件上传样式 */ .upload-info { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; margin-bottom: 20px; } .upload-info h3 { color: #495057; margin-bottom: 10px; font-size: 1.1rem; } .upload-info ul { margin: 10px 0; padding-left: 20px; } .upload-info li { margin-bottom: 5px; color: #6c757d; } .upload-summary { background: #e7f3ff; border: 1px solid #b3d9ff; border-radius: 6px; padding: 15px; margin-bottom: 15px; } .upload-summary h4 { color: #0056b3; margin-bottom: 10px; } .upload-summary p { margin: 5px 0; color: #495057; } .upload-errors { background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 6px; padding: 15px; } .upload-errors h4 { color: #856404; margin-bottom: 10px; } .error-list { max-height: 300px; overflow-y: auto; } .error-item { background: #fff; border: 1px solid #f5c6cb; border-radius: 4px; padding: 10px; margin-bottom: 10px; } .error-message { color: #721c24; font-style: italic; display: block; margin-top: 5px; } input[type="file"] { width: 100%; padding: 8px; border: 2px dashed #dee2e6; border-radius: 6px; background: #f8f9fa; cursor: pointer; transition: all 0.3s ease; } input[type="file"]:hover { border-color: #007bff; background: #e7f3ff; } input[type="file"]:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } /* 删除按钮样式 */ .btn-danger { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3); } .btn-danger:hover { background: linear-gradient(135deg, #c82333 0%, #bd2130 100%); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4); } .btn-danger:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3); } /* 操作按钮容器 */ .action-buttons { display: flex; gap: 5px; align-items: center; } /* 确认删除对话框样式增强 */ .confirm-dialog { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } /* 用户信息卡片样式 */ .user-welcome-card { display: inline-flex; align-items: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 20px; border-radius: 25px; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); margin-right: 15px; transition: all 0.3s ease; border: 2px solid rgba(255, 255, 255, 0.2); } .user-welcome-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); } .user-avatar { font-size: 1.5rem; margin-right: 12px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, 0.3); } .user-details { display: flex; flex-direction: column; gap: 2px; } .username-text { font-weight: 600; font-size: 1rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .user-role-text { font-size: 0.8rem; opacity: 0.9; font-weight: 400; background: rgba(255, 255, 255, 0.2); padding: 2px 8px; border-radius: 10px; text-align: center; }