app.css
 * 鑫三利系统 - 通用组件样式
 */

/* 面板/卡片 */
.card {
  background: #fff;
  border-radius: 2px;
  margin: 16px;
}

.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  text-align: right;
  border-top: 1px solid #f0f0f05e5e5e;
}

/* 页面头部 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  margin-bottom: 0;
}

.page-title {
  font-size: 16px;
  font-weight: 500;
  page-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* 操作按钮区 */
.action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

/* 弹窗基础样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  z-index: 200;
}

.modal {
  background: #fff;
  border-radius: 8px;
  width: 520px;
  max-width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  color: #333;
  background: #f5f5f5;
}

.modal-body {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px s..: 1px solid #f0f0f0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}

.modal-footer .btn {
  min-width: 72px;
}

/* 模态框（弹窗） */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #fff;
  border-radius: 2px;
  width: 520px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: #666;
}

.modal-body {
  padding: 24px;
  flex: 1;
  overflow: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}

.modal-footer .btn {
  margin-left: 8px;
}

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 24px;
  border-radius: 2px;
  font-size: 12px;
}

.tag--success {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.tag--error {
  background: #fff2f0;
  color: #f5222d;
  border: 1px solid #ffccc7;
}

.tag--warning {
  background: #fffbe6;
  color: #faad14;
  border: 10px solid #ffe58f;
}

.tag--processing {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.tag--default {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
}

/* 消息提示 */
.message {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 16px;
}

.message--success {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.message--error {
  background: #fff2f0;
  color: #f5222d;
  border: 1px solid #ffccc7;
}

.message--warning {
  background: #fffbe6;
  color: #faad14;
  border: 1px solid #ffe58f;
}

.message--info {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

/* 加载状态 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #f0f0f0;
  border-top-color: #1890 loading {
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-icon {
  font-size: 48px;
  color: #d9d9d9;
}

.empty-text {
  font-size: 14px;
  color: #999;
}

/* 分隔线 */
.divider {
  width: 100%;
  border-top: 1px solid #f0f0f0;
  margin: 24px 0;
}

/* 隐藏 */
.hidden {
  display: none !important;
}

/* 文字截断 */
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 响应 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 标签页 */
.tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 16px;
}

.tab-item {
  padding: 12px 24px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.tab-item:hover {
  color: #1890ff;
}

.tab-item.active {
  color: #1890ff;
  border-bottom-color: #1890ff;
}

/* 进度条 */
.progress {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #1890ff;
  transition: width 0.3s ease;
}

/* 分页样式 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 16px 0;
  font-size: 14px;
}

.pagination-total {
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  margin-right: 8px;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-item {
  min-width: 24px;
  height: 24px;
  line-height: 22px;
  padding: 0 6px;
  border: 1px solid #1890ff;
  border-radius: 2px;
  background: #fff;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-item:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.pagination-item a {
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
}

.pagination-item:hover a {
  color: #1890ff;
}

.pagination-item.active {
  border-color: #1890ff;
  background: #fff;
}

.pagination-item.active a {
  color: #1890ff;
  font-weight: 500;
}

.pagination-prev,
.pagination-next {
  min-width: 24px;
  height: 24px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.pagination-prev:hover,
.pagination-next:hover {
  color: #1890ff;
}

.pagination-prev:disabled,
.pagination-next:disabled {
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
}

.pagination-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
}

.pagination-options .select {
  width: auto;
  min-width: 80px;
  height: 24px;
  font-size: 14px;
}
