* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f0f2f5; color: #1a202c; font-size: 12px; }
#app { height: 100%; }

/* ===================== 登录页 ===================== */
.login-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}
.login-container::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: loginBg 20s linear infinite;
}
@keyframes loginBg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.login-card {
  width: 420px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 48px 40px 36px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo img { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 8px 24px rgba(193,39,45,0.2); }
.login-title { text-align: center; font-size: 22px; font-weight: 700; color: #1a202c; margin-bottom: 6px; letter-spacing: 1px; }
.login-subtitle { text-align: center; font-size: 12px; color: #718096; margin-bottom: 28px; }
.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #c1272d, #e85d63) !important;
  border: none !important;
  border-radius: 10px !important;
  height: 42px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 2px;
  box-shadow: 0 6px 16px rgba(193,39,45,0.25);
  transition: all 0.3s;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(193,39,45,0.4); }
.login-tip { text-align: center; color: #a0aec0; font-size: 12px; margin-top: 16px; }
.login-api { margin-top: 16px; }

/* ===================== 主界面布局 ===================== */
.layout-header {
  background: #fff;
  color: #1a202c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-bottom: 1px solid #edf2f7;
  z-index: 10;
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.header-logo { width: 36px; height: 36px; border-radius: 10px; }
.layout-header h2 { font-size: 16px; font-weight: 600; color: #1a202c; letter-spacing: 0.5px; }
.header-right { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.header-user { color: #4a5568; font-weight: 500; }

/* 侧边栏 */
.layout-aside {
  background: #fff;
  border-right: 1px solid #edf2f7;
  box-shadow: 1px 0 4px rgba(0,0,0,0.03);
}
.el-menu { border-right: none !important; }
.el-menu-item, .el-sub-menu__title {
  border-radius: 8px !important;
  margin: 3px 10px !important;
  height: 38px !important;
  line-height: 38px !important;
  font-size: 13px !important;
  transition: all 0.25s !important;
}
.el-menu-item:hover, .el-sub-menu__title:hover {
  background: #f7fafc !important;
}
.el-menu-item.is-active {
  background: linear-gradient(135deg, rgba(193,39,45,0.08), rgba(193,39,45,0.04)) !important;
  color: #c1272d !important;
  font-weight: 600 !important;
}

/* 主内容区 */
.layout-main { background: #f0f2f5; padding: 24px; overflow-y: auto; }

/* ===================== 卡片 ===================== */
.page-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

/* ===================== 统计卡片 ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}
.stat-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(193,39,45,0.1), rgba(193,39,45,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-info { flex: 1; }
.stat-card .num { font-size: 26px; font-weight: 700; color: #1a202c; line-height: 1.2; }
.stat-card .label { font-size: 12px; color: #718096; margin-top: 4px; }

/* ===================== 表格/筛选 ===================== */
.filter-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.table-operations { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.table-operations span { font-size: 15px; font-weight: 600; color: #1a202c; }
.pagination { margin-top: 20px; text-align: right; }
.audit-remark { margin-top: 12px; }

/* 表格优化 */
.el-table { border-radius: 12px; overflow: hidden; font-size: 13px; }
.el-table th.el-table__cell { background: #f7fafc !important; color: #4a5568 !important; font-weight: 600; font-size: 13px; padding: 10px 0 !important; }
.el-table td.el-table__cell { padding: 10px 0 !important; }
.el-table--border .el-table__cell { border-right: 1px solid #edf2f7; }
.el-table--border { border: 1px solid #edf2f7; }
.el-table__row:hover > td { background: #f7fafc !important; }
/* 表格封面图 */
.el-table img { border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* 状态标签 */
.status-tag { padding: 4px 12px; border-radius: 12px; font-size: 12px; display: inline-block; font-weight: 500; }
.status-0 { background: #fef3e2; color: #f59e0b; }
.status-1 { background: #e6f9ee; color: #10b981; }
.status-2 { background: #f3f4f6; color: #6b7280; }
.status-3 { background: #fee2e2; color: #ef4444; }
.status-4 { background: #dbeafe; color: #3b82f6; }
.status-void { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }

/* ===================== 图片上传 ===================== */
.image-upload-wrap { width: 100%; }
.image-uploader {
  width: 148px;
  height: 148px;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f7fafc;
}
.image-uploader:hover { border-color: #c1272d; background: #fff5f5; }
.uploader-text { font-size: 12px; color: #a0aec0; margin-top: 8px; }
.image-preview {
  width: 148px;
  height: 148px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.image-preview img { width: 100%; height: 100%; object-fit: contain; }
.image-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s;
}
.image-preview:hover .image-mask { opacity: 1; }
.upload-tip { font-size: 12px; color: #a0aec0; margin-top: 6px; line-height: 1.5; }
.form-item-hint { font-size: 12px; color: #909399; margin-top: 2px; line-height: 1.5; }

/* 多图列表 */
.image-list-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  align-items: flex-start;
}
.image-list-item {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  position: relative;
}
.image-list-item img { width: 100%; height: 100%; object-fit: cover; }
.image-list-del {
  position: absolute;
  top: 0; right: 0;
  width: 24px; height: 24px;
  background: rgba(239,68,68,0.85);
  color: #fff;
  border-radius: 0 10px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.image-list-item:hover .image-list-del { background: rgba(239,68,68,1); }
.image-uploader-sm {
  width: 100px;
  height: 100px;
  border: 2px dashed #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f7fafc;
}
.image-uploader-sm:hover { border-color: #c1272d; background: #fff5f5; }

/* 表格缩略图 */
.table-image-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 0; }
.table-image-list .table-thumb {
  width: 36px; height: 36px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.table-image-list .table-thumb:hover { border-color: #c1272d; }

/* 图片+复制按钮 包裹层 */
.table-thumb-wrap { position: relative; display: inline-block; }
.table-thumb-wrap.table-thumb-single { line-height: 0; }
.table-thumb-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  text-align: center;
  font-size: 10px;
  line-height: 16px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 0 0 6px 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: auto;
}
.table-thumb-wrap:hover .table-thumb-copy { opacity: 1; }

/* 详情图片复制 */
.detail-thumb-wrap { position: relative; display: inline-block; margin: 2px; }
.detail-thumb-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  text-align: center;
  font-size: 11px;
  line-height: 20px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 0 0 10px 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.detail-thumb-wrap:hover .detail-thumb-copy { opacity: 1; }

/* 详情图片列表 */
.detail-image-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0; }
.detail-image-list .detail-thumb {
  width: 100px; height: 100px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.detail-image-list .detail-thumb:hover { border-color: #c1272d; }

/* 表格固定列层级 */
.el-table__fixed-right,
.el-table__fixed-right-patch,
.el-table .el-table__fixed-right .el-table__cell,
.el-table .el-table-fixed-column--right { z-index: 1 !important; }
.el-image-viewer__wrapper { z-index: 10000 !important; }

/* ===================== SKU 编辑器 ===================== */
.sku-editor-wrap {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  background: #f7fafc;
}
.sku-editor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sku-editor-tip { font-size: 12px; color: #718096; }
.spec-group-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.spec-group-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.spec-name-inp { width: 220px !important; }
.spec-values-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spec-val-inp { width: 120px !important; }
.spec-val-del { padding: 0 4px; min-height: auto; }
.sku-table-section { margin-top: 20px; }
.sku-table-title { font-size: 14px; font-weight: 600; color: #1a202c; margin-bottom: 10px; }

/* ===================== 富文本编辑器 ===================== */
.rich-editor-wrapper {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.quill-editor { background: #fff; height: 380px; }
.quill-editor .ql-toolbar.ql-snow { border: none; border-bottom: 1px solid #edf2f7; background: #f7fafc; border-radius: 10px 10px 0 0; padding: 6px 4px; }
.quill-editor .ql-toolbar.ql-snow .ql-formats { margin-right: 6px; }
.quill-editor .ql-toolbar.ql-snow button { width: 26px; padding: 2px 3px; }
.quill-editor .ql-toolbar.ql-snow .ql-picker { margin-right: 2px; }
.quill-editor .ql-toolbar.ql-snow .ql-picker-label { padding: 0 3px; }
.quill-editor .ql-container.ql-snow { border: none; font-size: 14px; height: calc(100% - 38px); }
.quill-editor .ql-editor { min-height: 280px; overflow-y: auto; }
.quill-editor .ql-editor img { max-width: 100%; cursor: pointer; }
/* 图片尺寸调整拖拽手柄 */
.ql-img-resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #c1272d;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: se-resize;
  z-index: 99999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* ===================== Element Plus 全局微调 ===================== */
.el-button--primary { background: #c1272d !important; border-color: #c1272d !important; color: #fff !important; }
.el-button--primary:hover { background: #d63a40 !important; border-color: #d63a40 !important; color: #fff !important; }
.el-button--primary span { color: #fff !important; }
.el-button--small { border-radius: 6px !important; }
.el-dialog { border-radius: 16px !important; overflow: hidden; }
.el-dialog__header { border-bottom: 1px solid #edf2f7; padding: 18px 24px !important; margin-right: 0 !important; }
.el-dialog__title { font-size: 14px !important; font-weight: 600 !important; }
.el-dialog__body { padding: 24px 28px !important; max-height: 70vh; overflow-y: auto; }
.el-dialog__footer { border-top: 1px solid #edf2f7; padding: 16px 24px !important; }
.el-card { border-radius: 12px !important; border: none !important; box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important; }
.el-input__wrapper { border-radius: 3px !important; box-shadow: 0 0 0 1px #d1d5db inset !important; transition: box-shadow 0.2s !important; }
.el-input__wrapper.is-focus, .el-input__wrapper:hover { box-shadow: 0 0 0 1px #c1272d inset !important; }
.el-input__inner { font-size: 12px !important; }
.el-input-number { width: 100% !important; }
.el-input-number .el-input__inner { font-size: 12px !important; }
.el-textarea__inner { border-radius: 3px !important; font-size: 12px !important; box-shadow: 0 0 0 1px #d1d5db inset !important; }
.el-textarea__inner:focus { box-shadow: 0 0 0 1px #c1272d inset !important; }
.el-form-item__label { font-size: 12px !important; color: #4a5568 !important; font-weight: 500; }
.el-pagination .el-pagination__total { font-size: 13px; color: #718096; }
.el-select .el-input__wrapper { border-radius: 3px !important; }
.el-pagination button, .el-pagination .el-pager li { border-radius: 6px !important; }

/* ===================== 详情弹窗 ===================== */
.detail-list { display: flex; flex-direction: column; gap: 0; }
.detail-row {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  width: 85px;
  flex-shrink: 0;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  line-height: 1.5;
  padding-top: 1px;
}
.detail-value {
  flex: 1;
  font-size: 12px;
  color: #1f2937;
  line-height: 1.5;
  word-break: break-all;
}
.detail-img { max-width: 140px; max-height: 140px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.detail-image-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0; }
.detail-thumb { width: 88px; height: 88px; border-radius: 6px; border: 1px solid #e5e7eb; }
.detail-items { display: flex; flex-direction: column; gap: 6px; }
.detail-item-row { display: flex; align-items: center; gap: 8px; }
.detail-item-img { width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0; }
.detail-html { line-height: 1.7; max-height: 400px; overflow-y: auto; }
.detail-html img { max-width: 100%; border-radius: 6px; }

/* 属性标签多选 */
.tag-selector-wrap { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0; }
.tag-select-item {
  padding: 3px 12px;
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.tag-select-item:hover { border-color: #c1272d; color: #c1272d; }
.tag-select-item.selected { background: #c1272d; color: #fff; border-color: #c1272d; font-weight: 500; }

/* ���ֱ䶯����ɫ */
.pts-plus { color: #16a34a; font-weight: 600; }
.pts-minus { color: #dc2626; font-weight: 600; }
/* ===================== 姹夊牎鎸夐挳锛堜粎绐勫睆鏄剧ず锛?===================== */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  margin-right: 12px;
  background: transparent;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #4a5568;
  border-radius: 2px;
  transition: transform 0.2s;
}

/* 鎶藉眽钂欏眰 */
.aside-mask {
  display: none;
  position: fixed;
  top: 56px;
  left: 240px;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
}
.aside-mask.open { display: block; }
/* ===================== 绉诲姩绔搷搴斿紡 (<=900px) ===================== */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .layout-header { padding: 0 14px; height: 56px; }
  .layout-header h2 { font-size: 14px; line-height: 1.2; }
  .header-user { display: none; }
  .header-right { gap: 8px; font-size: 12px; }

  .layout-aside {
    position: fixed !important;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 240px !important;
    max-width: 80vw !important;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
  }
  .layout-aside.open { transform: translateX(0); }
  .aside-inner { height: 100%; background: #fff; position: relative; z-index: 101; }
  .layout-aside .el-menu { width: 100%; }
  .layout-aside .el-menu-item, .layout-aside .el-sub-menu__title { min-height: 44px; line-height: 44px; }
  .layout-aside .el-sub-menu .el-menu-item { min-height: 40px; line-height: 40px; }

  .layout-main { padding: 12px; }

  .page-card { padding: 14px; border-radius: 12px; margin-bottom: 14px; }
  .page-card h3 { font-size: 14px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .stat-card .num { font-size: 20px; }

  .filter-row { gap: 8px; }
  .filter-row .el-input,
  .filter-row .el-select { width: 140px !important; max-width: 100%; }

  .page-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-card .el-table { font-size: 12px; min-width: 720px; }
  .el-table .cell { padding-left: 8px !important; padding-right: 8px !important; }
  /* 固定列在窄屏上加阴影提示可滚动 */
  .el-table__fixed-right { box-shadow: -2px 0 8px rgba(0,0,0,0.08); }

  .el-dialog {
    width: 92vw !important;
    max-width: 92vw !important;
    margin: 4vh auto 0 !important;
    border-radius: 12px !important;
  }
  .el-dialog__header { padding: 14px 16px !important; }
  .el-dialog__body { padding: 16px !important; max-height: 75vh; }
  .el-dialog__footer { padding: 12px 16px !important; }

  .el-form div[style*="display:flex"][style*="gap:24px"] {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .el-form div[style*="display:flex"][style*="gap:24px"] .el-form-item { flex: none !important; width: 100% !important; }
  .el-form-item__label { text-align: left !important; padding-bottom: 4px; }

  .el-pagination { flex-wrap: wrap; justify-content: center; }
  .pagination { text-align: center; }

  .el-table .el-button { padding: 4px 8px !important; font-size: 11px !important; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .el-dialog { width: 96vw !important; max-width: 96vw !important; }
}

/* ===================== 系统配置页 ===================== */
.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.settings-sub { margin: 0; font-size: 12px; color: #909399; line-height: 1.6; }
.settings-actions { display: flex; gap: 10px; }

.settings-group { margin-bottom: 22px; }
.settings-group:last-child { margin-bottom: 8px; }
.settings-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 10px;
}
.settings-group-title .bar {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c1272d, #e05050);
}
.settings-group-title .count {
  font-size: 12px;
  font-weight: 400;
  color: #a0aec0;
}

.cfg-label { font-size: 13px; font-weight: 500; color: #1a202c; line-height: 1.4; }
.cfg-key { font-size: 11px; color: #b0b7c3; margin-top: 2px; font-family: Consolas, monospace; }
.cfg-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfg-unit { font-size: 12px; color: #909399; white-space: nowrap; }
.cfg-tip { font-size: 12px; color: #909399; line-height: 1.6; }
.cfg-current {
  font-size: 12px;
  color: #5a6472;
  background: #f4f6f8;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.cfg-text { flex: 1; min-width: 160px; }
.cfg-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .settings-header { flex-direction: column; }
  .settings-actions { width: 100%; }
  .settings-actions .el-button { flex: 1; }
}

/* ===================== 工作台（待办 / 概览 / 趋势） ===================== */
.dash-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 22px 26px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #c1272d 0%, #8e1a1f 100%); box-shadow: 0 8px 24px rgba(193,39,45,0.22); }
.dash-hello { font-size: 20px; font-weight: 700; }
.dash-sub { margin-top: 6px; font-size: 13px; opacity: 0.9; }
.dash-sub b { font-size: 16px; }
.dash-welcome .el-button { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); color: #fff; }
.dash-welcome .el-button:hover { background: rgba(255,255,255,0.28); color: #fff; }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #1a202c; margin-bottom: 16px; }
.block-title.plain { margin: 6px 0 14px; }
.block-title .bar { width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #e85d63, #c1272d); }
.block-title .count { font-size: 12px; font-weight: 600; color: #fff; background: #c1272d; border-radius: 10px; padding: 1px 9px; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff7f7; border: 1px solid #fde2e2; cursor: pointer; transition: all .2s; }
.todo-item:hover { background: #fff0f0; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(193,39,45,0.12); }
.todo-icon { font-size: 20px; }
.todo-label { flex: 1; font-size: 14px; color: #2d3748; }
.todo-num { min-width: 28px; text-align: center; font-size: 15px; font-weight: 700; color: #fff; background: #c1272d; border-radius: 14px; padding: 2px 10px; }
.stats-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat-card { padding: 20px; }
.trend { display: flex; align-items: flex-end; gap: 12px; height: 210px; }
.trend-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; height: 100%; }
.trend-val { font-size: 12px; color: #4a5568; margin-bottom: 4px; }
.trend-bar-wrap { flex: 1; width: 100%; max-width: 56px; display: flex; align-items: flex-end; background: #f7fafc; border-radius: 8px; overflow: hidden; }
.trend-bar { width: 100%; background: linear-gradient(180deg, #e85d63, #c1272d); border-radius: 8px 8px 0 0; transition: height .4s; }
.trend-date { margin-top: 6px; font-size: 12px; color: #718096; }
.trend-amt { font-size: 11px; color: #a0aec0; }

/* 菜单待办角标 */
.menu-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; margin-left: 8px; padding: 0 6px; border-radius: 9px; background: #c1272d; color: #fff; font-size: 11px; font-weight: 600; text-align: center; vertical-align: middle; }
.el-menu-item.is-active .menu-badge { background: #c1272d; }

/* 订单状态页签 / 行内操作 */
.order-tabs { margin-bottom: 16px; }
.order-tabs .tab-dot { margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #c1272d; color: #fff; font-size: 11px; }
.order-tabs .el-radio-button__original-radio:checked + .el-radio-button__inner { background: #c1272d; border-color: #c1272d; box-shadow: -1px 0 0 0 #c1272d; }
.row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.row-actions .el-button + .el-button { margin-left: 0; }

/* 表格与卡片精修 */
.page-card { box-shadow: 0 2px 12px rgba(31,38,61,0.05); }
.el-table .el-table__row:hover > td { background: #fff7f7 !important; }
.table-operations { padding-bottom: 12px; border-bottom: 1px solid #f1f1f1; }
.el-button--primary { --el-button-bg-color: #c1272d; --el-button-border-color: #c1272d; --el-button-hover-bg-color: #d6454b; --el-button-hover-border-color: #d6454b; --el-button-active-bg-color: #a31d23; --el-button-active-border-color: #a31d23; }
.el-button--primary.is-plain { --el-button-text-color: #c1272d; --el-button-bg-color: #fff5f5; --el-button-border-color: #f4b9bc; --el-button-hover-bg-color: #c1272d; --el-button-hover-border-color: #c1272d; --el-button-hover-text-color: #fff; }
@media (max-width: 768px) {
  .dash-welcome { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .todo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trend { gap: 6px; height: 170px; }
  .row-actions { flex-wrap: wrap; }
}

/* 品牌主色统一（分页、单选、开关等 Element 组件） */
:root { --el-color-primary: #c1272d; --el-color-primary-light-3: #d9696d; --el-color-primary-light-5: #e69396; --el-color-primary-light-7: #f0bcbe; --el-color-primary-light-8: #f4d4d5; --el-color-primary-light-9: #fbeeee; --el-color-primary-dark-2: #9b1f24; }
.table-operations { justify-content: flex-start; gap: 10px; }
.table-operations > span:first-child { margin-right: auto; }

.status-tabs { margin-bottom: 14px; overflow-x: auto; }
.status-tabs .el-radio-group { flex-wrap: nowrap; }

/* 手风琴菜单：更紧凑，分组标题加粗 */
.layout-aside .el-sub-menu__title { font-weight: 600; }
.layout-aside .el-sub-menu .el-menu-item { height: 38px; line-height: 38px; padding-left: 52px !important; font-size: 13px; }
.layout-aside .el-sub-menu.is-active > .el-sub-menu__title { color: #c1272d; }
