* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f5f7fa; }

/* 统一布局：管理员与商家共用浅色侧边栏 */
.merchant-layout { display: flex; min-height: 100vh; background: #f5f7fa; }
.merchant-sidebar { width: 220px; background: #fff; border-right: 1px solid #ebeef5; display: flex; flex-direction: column; flex-shrink: 0; }
.merchant-sidebar-header { height: 64px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid #ebeef5; }
.merchant-logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; margin-right: 12px; }
.merchant-logo-text { font-size: 17px; font-weight: 600; color: #1a1d2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant-menu { flex: 1; overflow-y: auto; padding: 16px 12px; }
.merchant-menu-group { margin-bottom: 24px; }
.merchant-menu-title { font-size: 12px; color: #909399; padding: 0 12px 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.merchant-menu-item { display: flex; align-items: center; padding: 10px 12px; margin-bottom: 4px; border-radius: 6px; color: #606266; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.merchant-menu-item:hover { background: #f5f7fa; color: #ff7a18; }
.merchant-menu-item.active { background: #fff5ee; color: #ff7a18; font-weight: 500; }
.merchant-menu-item .el-icon { margin-right: 10px; font-size: 18px; flex-shrink: 0; }
.merchant-menu-item span { font-size: 14px; }
.merchant-menu-item.disabled { color: #c0c4cc; cursor: not-allowed; }
.merchant-menu-item.disabled:hover { background: transparent; color: #c0c4cc; }
.merchant-menu-item .menu-lock-icon { margin-left: auto; font-size: 12px; color: #c0c4cc; }
.merchant-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.merchant-topbar { height: 64px; background: #fff; border-bottom: 1px solid #ebeef5; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; }
.merchant-topbar-title { font-size: 18px; font-weight: 600; color: #1a1d2e; }
.merchant-topbar-right { display: flex; align-items: center; gap: 20px; }
.merchant-notify { position: relative; cursor: pointer; color: #606266; font-size: 20px; line-height: 1; }
.merchant-notify:hover { color: #ff7a18; }
.merchant-notify-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: #f56c6c; border-radius: 50%; border: 2px solid #fff; }
.merchant-user { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #606266; }
.merchant-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #f5f7fa; }
.merchant-user-name { font-size: 14px; }
.merchant-content { flex: 1; padding: 20px; overflow-y: auto; }

.login-page { min-height: 100vh; display: flex; }

.login-left {
  flex: 1;
  min-width: 420px;
  background: linear-gradient(160deg, #1a1230 0%, #2d1b4e 50%, #1a1230 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 122, 24, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(120, 80, 200, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.login-brand {
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-brand-icon {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-brand-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 3px;
}

.login-brand-subtitle {
  font-size: 16px;
  opacity: 0.75;
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.login-brand-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #ff7a18, #ffb347);
  border-radius: 2px;
  margin: 0 auto 36px;
}

.login-copyright {
  position: absolute;
  bottom: 24px;
  font-size: 13px;
  opacity: 0.55;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.8;
}

.login-copyright p {
  margin: 0;
}

.login-right {
  flex: 1.15;
  min-width: 480px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  position: relative;
}

.login-right-box {
  width: 100%;
  max-width: 400px;
}

.login-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1d2e;
  margin-bottom: 10px;
}

.login-subtitle {
  font-size: 14px;
  color: #909399;
  margin-bottom: 36px;
}

.login-input {
  margin-bottom: 20px;
}

.login-input .el-input__wrapper {
  box-shadow: 0 0 0 1px #dcdfe6 inset;
  border-radius: 8px;
  padding: 4px 15px;
}

.login-input .el-input__inner {
  height: 46px;
  font-size: 14px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 28px;
  font-size: 14px;
}

.login-remember {
  color: #606266;
}

.login-forgot {
  color: #ff7a18;
  cursor: pointer;
}

.login-forgot:hover {
  color: #e66d12;
}

.login-btn {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(90deg, #ff7a18, #ffb347);
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.3);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 122, 24, 0.4);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 28px 0 20px;
  color: #c0c4cc;
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e7ed;
}

.login-divider span {
  padding: 0 16px;
}

.login-social {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.login-social-item {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #e4e7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.login-social-item:hover {
  border-color: #ff7a18;
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.15);
}

.login-social-item svg {
  width: 24px;
  height: 24px;
}

.login-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: #606266;
}

.login-link {
  color: #ff7a18;
  cursor: pointer;
  font-weight: 500;
}

.login-link:hover {
  text-decoration: underline;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #909399;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 24px;
}

.login-back-link:hover {
  color: #ff7a18;
}

.login-admin-toggle {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 13px;
  color: #909399;
}

.login-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: #f5f7fa;
  border-radius: 10px;
}

.login-type-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 14px;
  color: #606266;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.login-type-tab:hover {
  color: #ff7a18;
}

.login-type-tab.active {
  background: #fff;
  color: #ff7a18;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 响应式：小屏幕时左侧隐藏 */
@media (max-width: 900px) {
  .login-left { display: none; }
  .login-right { flex: 1; min-width: auto; }
}

.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.card-title { font-size: 16px; font-weight: bold; margin-bottom: 16px; color: #1a1d2e; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.stat-label { font-size: 14px; color: #909399; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: bold; color: #1a1d2e; }

.table-actions { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.search-form { display: flex; gap: 12px; flex-wrap: wrap; }

.vip-info { }
.vip-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.vip-badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 18px; border-radius: 20px; font-size: 16px; font-weight: 600; color: #fff; }
.vip-badge.basic { background: linear-gradient(135deg, #a0a0a0, #c0c0c0); }
.vip-badge.standard { background: linear-gradient(135deg, #4f7cff, #6b8cff); }
.vip-badge.advanced { background: linear-gradient(135deg, #ff7a18, #ff9a3d); }
.vip-desc { font-size: 14px; color: #606266; line-height: 1.6; flex: 1; min-width: 220px; }
.vip-section { margin-bottom: 20px; }
.vip-section-title { font-size: 14px; font-weight: 600; color: #1a1d2e; margin-bottom: 12px; }
.vip-feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 16px; }
.vip-feature-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #303133; }
.vip-feature-item.disabled { color: #c0c4cc; }
.vip-feature-icon { font-size: 16px; }
.vip-feature-icon.enabled { color: #67c23a; }
.vip-feature-icon.disabled { color: #c0c4cc; }
.vip-limit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 16px; }
.vip-limit-item { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #303133; padding: 8px 12px; background: #f5f7fa; border-radius: 6px; }
.vip-limit-value { font-weight: 600; color: #ff7a18; }

.image-preview { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid #ebeef5; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.image-item { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid #ebeef5; aspect-ratio: 1; }
.image-item img { width: 100%; height: 100%; object-fit: cover; }
.image-item .delete-btn { position: absolute; top: 4px; right: 4px; display: none; }
.image-item:hover .delete-btn { display: block; }
.image-item .image-name { position: absolute; bottom: 18px; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-item .image-meta { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.45); color: #e0e0e0; font-size: 10px; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pagination { margin-top: 16px; display: flex; justify-content: flex-end; }

.feedback-content { background: #f5f7fa; padding: 12px; border-radius: 6px; margin-bottom: 8px; line-height: 1.6; }
.feedback-images { display: flex; gap: 8px; flex-wrap: wrap; }
.feedback-images img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #ebeef5; }

.merchant-info { display: flex; align-items: center; gap: 12px; }
.merchant-avatar { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f5f7fa; }

.status-pending { color: #e6a23c; }
.status-processing { color: #409eff; }
.status-done { color: #67c23a; }
.status-rejected { color: #f56c6c; }

.album-filter .search-form { align-items: flex-start; }
.album-filter .el-select { width: 180px; }
.album-filter .el-input { width: 240px; }

.album-cover { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid #ebeef5; background: #f5f7fa; }
.album-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid #ebeef5; display: block; }
.album-upload-placeholder { width: 120px; height: 120px; border: 1px dashed #d9d9d9; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8c8c8c; cursor: pointer; transition: border-color 0.2s; }
.album-upload-placeholder:hover { border-color: #ff7a18; color: #ff7a18; }
.album-upload-placeholder .el-icon { font-size: 24px; margin-bottom: 8px; }

.album-form .album-category { display: flex; gap: 12px; flex-wrap: wrap; }
.album-form .album-category .el-select { width: 220px; }
.album-form .el-input-number { width: 160px; }

.spec-list { width: 100%; }
.spec-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.spec-row .el-input { width: 180px; }
.spec-row .el-input-number { width: 140px; }

.album-summary { white-space: pre-line; line-height: 1.6; color: #606266; }

/* 门店管理 */
.store-filter .el-select { width: 140px; }
.store-filter .el-input { width: 260px; }
.store-time-range { display: flex; align-items: center; gap: 12px; }
.store-time-range .el-time-picker { width: 140px; }
.store-qr-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid #ebeef5; display: block; background: #f5f7fa; }

/* 员工与角色 */
.staff-filter .el-input { width: 260px; }
.staff-filter .el-select { width: 160px; }
.role-filter .el-input { width: 260px; }
.el-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.el-checkbox-group .el-checkbox { margin-right: 0; }

/* 钱包管理 */
.wallet-page { padding-bottom: 20px; }
.wallet-header-card {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}
.wallet-header-info { display: flex; align-items: center; gap: 32px; flex: 1; }
.wallet-balance-block { display: flex; flex-direction: column; }
.wallet-balance-label { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.wallet-balance-value { font-size: 36px; font-weight: 700; letter-spacing: -0.5px; }
.wallet-balance-value.small { font-size: 22px; }
.wallet-header-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.25); }
.wallet-header-actions { display: flex; flex-direction: column; gap: 10px; }
.wallet-header-btn {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.35) !important;
  color: #fff !important;
  width: 100px;
}
.wallet-header-btn:hover {
  background: rgba(255,255,255,0.25) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

.wallet-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.wallet-stat-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.wallet-stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wallet-stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wallet-stat-icon.income { background: #ECFDF5; color: #10B981; }
.wallet-stat-icon.expense { background: #FEF2F2; color: #EF4444; }
.wallet-stat-icon.net { background: #EFF6FF; color: #3B82F6; }
.wallet-stat-change { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; }
.wallet-stat-change.up { color: #10B981; }
.wallet-stat-change.down { color: #EF4444; }
.wallet-stat-value { font-size: 24px; font-weight: 700; color: #1a1d2e; margin-bottom: 6px; }
.wallet-stat-label { font-size: 13px; color: #909399; }

.wallet-main { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.wallet-transactions { min-width: 0; }
.wallet-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wallet-tx-table { margin-top: 16px; }
.wallet-tx-desc { display: flex; align-items: center; gap: 12px; }
.wallet-tx-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.wallet-tx-icon.income { background: #ECFDF5; color: #10B981; }
.wallet-tx-icon.expense { background: #FEF2F2; color: #EF4444; }
.wallet-tx-title { font-size: 14px; font-weight: 500; color: #1a1d2e; }
.wallet-tx-subtitle { font-size: 12px; color: #909399; margin-top: 2px; }
.wallet-tx-amount { font-weight: 600; }
.wallet-tx-amount.income { color: #10B981; }
.wallet-tx-amount.expense { color: #EF4444; }

.wallet-sidebar { display: flex; flex-direction: column; gap: 20px; }
.wallet-quick-card .card-title { margin-bottom: 16px; }
.wallet-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wallet-quick-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; border-radius: 10px; cursor: pointer; transition: background 0.2s; }
.wallet-quick-item:hover { background: #F9FAFB; }
.wallet-quick-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wallet-quick-icon.withdraw { background: #ECFDF5; color: #10B981; }
.wallet-quick-icon.recharge { background: #EFF6FF; color: #3B82F6; }
.wallet-quick-icon.bills { background: #FFFBEB; color: #F59E0B; }
.wallet-quick-icon.records { background: #F3F4F6; color: #6B7280; }
.wallet-quick-item span { font-size: 13px; color: #4B5563; }

.wallet-bind-item { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.wallet-bind-icon { width: 40px; height: 40px; border-radius: 10px; background: #EFF6FF; color: #3B82F6; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.wallet-bind-title { font-size: 14px; font-weight: 500; color: #1a1d2e; }
.wallet-bind-account { font-size: 13px; color: #909399; margin-top: 2px; }

@media (max-width: 1100px) {
  .wallet-main { grid-template-columns: 1fr; }
  .wallet-header-info { gap: 20px; }
  .wallet-header-divider { display: none; }
}
@media (max-width: 768px) {
  .wallet-header-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .wallet-header-actions { flex-direction: row; }
  .wallet-stat-row { grid-template-columns: 1fr; }
}

/* 账单明细 */
.bills-filter .el-select { width: 140px; }
.bills-summary { display: flex; gap: 16px; font-size: 14px; color: #606266; }
.bills-summary b { font-size: 16px; }
.income { color: #67c23a; }
.expense { color: #f56c6c; }
.money { font-weight: 500; }

/* 数据统计 */
.statistics-filter .search-form { align-items: center; }
.statistics-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.statistics-card { background: #fff; border-radius: 8px; padding: 20px; border: 1px solid #ebeef5; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.statistics-card-label { font-size: 13px; color: #909399; margin-bottom: 8px; }
.statistics-card-value { font-size: 28px; font-weight: bold; color: #1a1d2e; }
.statistics-chart { width: 100%; height: 360px; }

/* 数据统计 - 1:1 还原 */
.statistics-page { padding-bottom: 20px; }
.statistics-filter-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.statistics-filter-bar .page-title { font-size: 22px; font-weight: 600; color: #1a1d2e; }
.statistics-filter-bar .filter-actions { display: flex; align-items: center; gap: 12px; }

.statistics-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-overview-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.stat-overview-info { flex: 1; position: relative; z-index: 1; }
.stat-overview-label { font-size: 13px; color: #909399; margin-bottom: 8px; }
.stat-overview-value { font-size: 28px; font-weight: 600; color: #1a1d2e; line-height: 1.2; }
.stat-overview-value .prefix { font-size: 20px; margin-right: 2px; }
.stat-overview-value .suffix { font-size: 14px; color: #606266; margin-left: 2px; font-weight: 500; }
.stat-overview-change { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 10px; }
.stat-overview-change.up { color: #67c23a; }
.stat-overview-change.down { color: #f56c6c; }
.stat-overview-chart { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; align-items: flex-end; gap: 3px; height: 44px; z-index: 0; }
.stat-overview-chart .mini-bar { width: 4px; background: rgba(103,194,58,0.15); border-radius: 2px; }
.stat-overview-card:nth-child(2) .stat-overview-chart .mini-bar { background: rgba(64,158,255,0.15); }
.stat-overview-card:nth-child(3) .stat-overview-chart .mini-bar { background: rgba(245,108,108,0.15); }
.stat-overview-card:nth-child(4) .stat-overview-chart .mini-bar { background: rgba(255,122,24,0.15); }

.statistics-middle { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
.chart-card { min-height: 420px; display: flex; flex-direction: column; }
.statistics-trend-chart { flex: 1; min-height: 320px; }
.statistics-side { display: flex; flex-direction: column; gap: 20px; }
.top-products-card, .sources-card { flex: 1; }

.top-product-list { display: flex; flex-direction: column; gap: 14px; }
.top-product-item { display: flex; align-items: center; gap: 12px; }
.top-product-item .rank { width: 22px; height: 22px; border-radius: 4px; background: #c0c4cc; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.top-product-item .rank.top { background: #ff7a18; }
.top-product-item .product-info { flex: 1; min-width: 0; }
.top-product-item .product-name { font-size: 14px; color: #1a1d2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-product-item .product-spec { font-size: 12px; color: #909399; margin-top: 2px; }
.top-product-item .product-qty { font-size: 14px; font-weight: 500; color: #1a1d2e; }

.source-list { display: flex; flex-direction: column; gap: 16px; }
.source-item .source-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #606266; margin-bottom: 6px; }
.source-item .source-rate { color: #1a1d2e; font-weight: 500; }

.recent-orders-card .el-tag { min-width: 60px; text-align: center; }

@media (max-width: 1200px) {
  .statistics-overview { grid-template-columns: repeat(2, 1fr); }
  .statistics-middle { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .statistics-filter-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .statistics-overview { grid-template-columns: 1fr; }
}

/* 消息中心 */
.messages-filter .el-select { width: 140px; }
.messages-filter .el-input { width: 260px; }
.message-status-dot .el-badge__content.is-fixed { top: 8px; right: 4px; }
.message-detail p { margin-bottom: 8px; color: #606266; }
.message-content { background: #f5f7fa; padding: 12px; border-radius: 6px; line-height: 1.6; color: #303133; }
.message-images { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.message-images img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid #ebeef5; }

/* 公告详情大图 */
.message-images-large { flex-direction: column; gap: 16px; }
.message-images-large .message-image-large {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ebeef5;
  cursor: zoom-in;
}

.wechat-bind-section { padding: 8px 0; }
.wechat-bind-bound,
.wechat-bind-unbound {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wechat-bind-icon {
  font-size: 40px;
  flex-shrink: 0;
}
.wechat-bind-text {
  flex: 1;
}
.wechat-bind-title {
  font-size: 16px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 4px;
}
.wechat-bind-desc {
  font-size: 13px;
  color: #909399;
}
.wechat-bind-loading {
  color: #909399;
  font-size: 14px;
  padding: 12px 0;
}
.wechat-bind-dialog {
  text-align: center;
  padding: 12px 0;
}
.wechat-bind-qrcode {
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  overflow: hidden;
}
.wechat-bind-qrcode img {
  width: 100%;
  height: 100%;
  display: block;
}
.wechat-bind-qrcode-loading {
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #909399;
  border: 1px solid #ebeef5;
  border-radius: 8px;
}
.wechat-bind-tip {
  color: #606266;
  font-size: 14px;
  margin: 0;
}

/* 商家工作台看板 */
.merchant-dashboard { }
.dashboard-greeting { margin-bottom: 20px; }
.greeting-title { font-size: 22px; font-weight: 600; color: #1a1d2e; margin-bottom: 6px; }
.greeting-date { font-size: 14px; color: #909399; }

.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.dashboard-stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 16px; }
.stat-icon-box { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.stat-icon-box.blue { background: #409eff; }
.stat-icon-box.orange { background: #ff7a18; }
.stat-icon-box.green { background: #67c23a; }
.stat-icon-box.purple { background: #8c54ff; }
.stat-info { flex: 1; }
.stat-info .stat-label { font-size: 13px; color: #909399; margin-bottom: 6px; }
.stat-info .stat-value { font-size: 24px; font-weight: 600; color: #1a1d2e; }
.stat-change { font-size: 12px; margin-top: 4px; }
.stat-change.up { color: #67c23a; }
.stat-change.down { color: #f56c6c; }

.dashboard-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.dashboard-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.chart-card { min-height: 420px; display: flex; flex-direction: column; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.card-subtitle { font-size: 12px; color: #909399; margin-top: 4px; }
.card-link { color: #ff7a18; font-size: 14px; cursor: pointer; }
.card-link:hover { text-decoration: underline; }
.trend-chart { flex: 1; min-height: 320px; }

.todo-list { display: flex; flex-direction: column; gap: 12px; }
.todo-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: #f5f7fa; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.todo-item:hover { background: #ebeef5; }
.todo-name { font-size: 14px; color: #606266; }
.todo-count { color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; background: #f5f7fa; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.quick-item:hover { background: #fff5ee; color: #ff7a18; }
.quick-item .el-icon { font-size: 24px; }
.quick-item span { font-size: 13px; }

@media (max-width: 1100px) {
  .dashboard-row { grid-template-columns: 1fr; }
}

/* 订单管理 */
.order-product { display: flex; align-items: center; gap: 10px; }
.order-product-img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid #ebeef5; background: #f5f7fa; }

/* 消息中心图片 */
.message-image { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid #ebeef5; }

/* 图片上传组件（操作说明、商家管理等共用） */
.guide-image-list, .merchant-image-uploader { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.guide-image-item, .uploaded-image-preview {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebeef5;
  background: #f5f7fa;
}
.guide-image-item img, .uploaded-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-image-item .delete-btn, .uploaded-image-preview .delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-image-upload, .image-upload-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 1px dashed #d9d9d9;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.guide-image-upload:hover, .image-upload-placeholder:hover { border-color: #ff7a18; color: #ff7a18; }
.guide-image-upload .el-icon, .image-upload-placeholder .el-icon { font-size: 24px; color: #909399; }
.guide-image-upload:hover .el-icon, .image-upload-placeholder:hover .el-icon { color: #ff7a18; }

/* 订单管理 - 1:1 还原 */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1d2e;
}
.page-subtitle {
  font-size: 14px;
  color: #909399;
  font-weight: 400;
  margin-left: 8px;
}

.order-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.order-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.order-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.order-stat-card.active {
  border-color: #ff7a18;
  background: #fff8f2;
}
.order-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}
.order-stat-icon.all { background: #909399; }
.order-stat-icon.pending { background: #e6a23c; }
.order-stat-icon.processing { background: #409eff; }
.order-stat-icon.completed { background: #67c23a; }
.order-stat-label { font-size: 14px; color: #909399; margin-bottom: 6px; }
.order-stat-value { font-size: 28px; font-weight: 700; color: #1a1d2e; }

.order-search-bar { margin-bottom: 20px; }
.order-search-bar .search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-list-card { padding: 0; overflow: hidden; }
.order-table-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: #f8f9fb;
  border-bottom: 1px solid #ebeef5;
  font-size: 14px;
  font-weight: 600;
  color: #606266;
}
.order-table-body { min-height: 200px; }
.order-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.2s;
}
.order-row:hover { background: #fafbfc; }
.order-row:last-child { border-bottom: none; }
.order-row .td { padding: 0 8px; font-size: 14px; color: #1a1d2e; }

.order-no { font-weight: 500; color: #1a1d2e; }
.merchant-name { font-size: 12px; color: #909399; margin-top: 4px; }

.customer-info { display: flex; align-items: center; gap: 10px; }
.customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f4ff;
  color: #409eff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}
.customer-name { font-weight: 500; }
.customer-phone { font-size: 12px; color: #909399; margin-top: 2px; }

.order-product { display: flex; align-items: center; gap: 12px; }
.order-product-img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #ebeef5; background: #f5f7fa; }
.product-name { font-weight: 500; }
.product-spec { font-size: 12px; color: #909399; margin-top: 4px; }

.order-amount { font-weight: 700; color: #1a1d2e; }
.order-time { color: #606266; }

.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.order-status.status-unpaid,
.order-status.status-pending { background: #fdf6ec; color: #e6a23c; }
.order-status.status-confirmed,
.order-status.status-making { background: #ecf5ff; color: #409eff; }
.order-status.status-completed { background: #f0f9eb; color: #67c23a; }
.order-status.status-cancelled { background: #f4f4f5; color: #909399; }

.order-detail-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* 响应式 */
@media (max-width: 1100px) {
  .dashboard-row { grid-template-columns: 1fr; }
  .order-stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .merchant-sidebar { width: 64px; }
  .merchant-logo-text, .merchant-menu-title, .merchant-menu-item span { display: none; }
  .merchant-menu-item { justify-content: center; padding: 12px 0; }
  .search-form { flex-direction: column; align-items: flex-start; }
  .search-form .el-input, .search-form .el-select, .search-form .el-date-picker { width: 100% !important; }
  .wallet-cards, .statistics-cards { grid-template-columns: 1fr; }
  .el-dialog { width: 90% !important; }
  .order-stat-cards { grid-template-columns: 1fr; }
  .order-table-header, .order-row { min-width: 900px; }
}

/* 店铺设置 */
.shop-settings-page { width: 100%; }
.shop-settings-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.shop-settings-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8c8c8c; margin-bottom: 8px; }
.shop-settings-breadcrumb .breadcrumb-item { cursor: pointer; transition: color 0.2s; }
.shop-settings-breadcrumb .breadcrumb-item:hover { color: #ff7a18; }
.shop-settings-breadcrumb .breadcrumb-item.active { color: #1a1d2e; cursor: default; }
.shop-settings-breadcrumb .breadcrumb-separator { color: #d9d9d9; }
.shop-settings-title { font-size: 22px; font-weight: 600; color: #1a1d2e; }
.shop-settings-actions { display: flex; gap: 12px; padding-top: 12px; }
.shop-settings-actions .btn-orange {
  background: linear-gradient(90deg, #ff7a18, #ff9f43);
  border-color: #ff7a18;
  color: #fff;
}
.shop-settings-actions .btn-orange:hover,
.shop-settings-actions .btn-orange:focus {
  background: linear-gradient(90deg, #ff6b00, #ff8c2a);
  border-color: #ff6b00;
  color: #fff;
}

.shop-settings-body { display: flex; gap: 20px; align-items: flex-start; }
.shop-settings-form { flex: 1; min-width: 0; max-width: 760px; }
.shop-settings-preview { width: 320px; flex-shrink: 0; position: sticky; top: 20px; }

.settings-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.section-badge {
  display: inline-block;
  background: #f5f7fa;
  color: #606266;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.settings-form-inner .el-form-item { margin-bottom: 20px; }
.settings-form-inner .el-form-item:last-child { margin-bottom: 0; }

.time-range-wrap { display: flex; align-items: center; gap: 12px; }
.time-range-separator { color: #606266; font-size: 14px; }

.single-image-upload,
.watermark-image-upload { display: inline-block; }

.uploaded-image-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebeef5;
  background: #f5f7fa;
}
.uploaded-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.uploaded-image-actions {
  position: absolute;
  top: 4px;
  right: 4px;
}

.carousel-upload-list { display: flex; flex-wrap: wrap; gap: 12px; }
.carousel-upload-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebeef5;
  background: #f5f7fa;
}
.carousel-upload-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-upload-actions { position: absolute; top: 4px; right: 4px; }

.shop-settings-page .image-upload-placeholder {
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  color: #8c8c8c;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  background: #fafafa;
}
.shop-settings-page .image-upload-placeholder:hover { border-color: #ff7a18; color: #ff7a18; }
.shop-settings-page .image-upload-placeholder .el-icon { font-size: 24px; margin-bottom: 4px; }
.shop-settings-page .image-upload-placeholder span { font-size: 12px; }

.switch-setting { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.switch-setting-info { flex: 1; padding-right: 16px; }
.switch-setting-title { font-size: 14px; color: #1a1d2e; font-weight: 500; }
.switch-setting-desc { font-size: 12px; color: #909399; margin-top: 4px; line-height: 1.4; }
.switch-setting-actions { display: flex; align-items: center; gap: 12px; }

.form-tip { font-size: 12px; color: #909399; margin-top: 6px; line-height: 1.4; }

.preview-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #1a1d2e; }

.phone-frame {
  background: #fff;
  border-radius: 36px;
  border: 8px solid #1a1d2e;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.phone-status-bar {
  height: 36px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1d2e;
  border-bottom: 1px solid #f0f0f0;
}
.phone-status-icons { display: flex; align-items: center; gap: 4px; }
.phone-status-icons svg { display: block; }
.phone-body { height: 440px; background: #f8f9fa; position: relative; overflow: hidden; padding: 12px; }

.preview-shop-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.preview-shop-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.preview-shop-icon img { width: 100%; height: 100%; object-fit: cover; }
.preview-shop-name { font-size: 14px; font-weight: 600; color: #1a1d2e; }

.preview-banner {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a18, #ff4d8d, #7b61ff);
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}

.preview-product-list { display: flex; flex-direction: column; gap: 10px; }
.preview-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.preview-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}
.preview-product-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.preview-product-title { height: 10px; width: 70%; background: #ebeef5; border-radius: 4px; }
.preview-product-subtitle { height: 8px; width: 45%; background: #f2f3f5; border-radius: 4px; }
.preview-product-price { font-size: 13px; font-weight: 600; color: #ff7a18; }

.preview-float-btn {
  position: absolute;
  right: 12px;
  bottom: 64px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4cd964;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.preview-tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: #fff;
  display: flex;
  border-top: 1px solid #f0f0f0;
}
.preview-tab { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #909399; }
.preview-tab.active { color: #ff7a18; font-weight: 500; }
.phone-footer { padding: 12px; background: #fff; border-top: 1px solid #f0f0f0; }
.preview-qrcode-btn {
  width: 100%;
  height: 38px;
  border-radius: 19px;
  border: none;
  background: linear-gradient(90deg, #ff7a18, #ffb347);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 1100px) {
  .shop-settings-body { flex-direction: column; }
  .shop-settings-preview { position: static; width: 100%; }
  .phone-frame { max-width: 300px; margin: 0 auto; }
}

/* 门店管理 */
.stores-page { width: 100%; }
.stores-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.stores-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8c8c8c; margin-bottom: 8px; }
.stores-breadcrumb .breadcrumb-item { cursor: pointer; transition: color 0.2s; }
.stores-breadcrumb .breadcrumb-item:hover { color: #ff7a18; }
.stores-breadcrumb .breadcrumb-item.active { color: #1a1d2e; cursor: default; }
.stores-breadcrumb .breadcrumb-separator { color: #d9d9d9; }
.stores-title { font-size: 22px; font-weight: 600; color: #1a1d2e; }
.stores-subtitle { font-size: 14px; font-weight: normal; color: #909399; margin-left: 10px; }
.stores-actions { padding-top: 12px; }
.stores-actions .btn-orange {
  background: linear-gradient(90deg, #ff7a18, #ff9f43);
  border-color: #ff7a18;
  color: #fff;
}
.stores-actions .btn-orange:hover,
.stores-actions .btn-orange:focus {
  background: linear-gradient(90deg, #ff6b00, #ff8c2a);
  border-color: #ff6b00;
  color: #fff;
}

.stores-empty { padding: 60px 0; background: #fff; border-radius: 12px; }

.stores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.store-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.store-card-cover { height: 150px; background: linear-gradient(135deg, #ff7a18, #ffb347); }
.store-card-body { padding: 18px; }
.store-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.store-card-name { font-size: 18px; font-weight: 600; color: #1a1d2e; }

.store-card-info { margin-bottom: 16px; }
.store-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #606266;
  font-size: 13px;
}
.store-info-row .el-icon { font-size: 15px; color: #909399; flex-shrink: 0; }
.store-info-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-stats {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}
.store-stat-item { text-align: center; flex: 1; }
.store-stat-value { font-size: 18px; font-weight: 700; color: #1a1d2e; }
.store-stat-value.rating { color: #ff7a18; }
.store-stat-label { font-size: 12px; color: #909399; margin-top: 4px; }

.store-status-badge { padding: 5px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.store-status-badge.open { background: #e6f9f0; color: #2ed573; }
.store-status-badge.closed { background: #f5f7fa; color: #909399; }

.store-card-actions { display: flex; gap: 12px; }
.store-card-actions .el-button { flex: 1; }
.store-btn-edit {
  background: #fff;
  border-color: #e4e7ed;
  color: #606266;
}
.store-btn-edit:hover {
  border-color: #ff7a18;
  color: #ff7a18;
}
.store-btn-view {
  background: linear-gradient(90deg, #ff7a18, #ff9f43);
  border-color: #ff7a18;
  color: #fff;
}
.store-btn-view:hover {
  background: linear-gradient(90deg, #ff6b00, #ff8c2a);
  border-color: #ff6b00;
  color: #fff;
}

.store-form .el-form-item { margin-bottom: 18px; }
.store-time-range { display: flex; align-items: center; gap: 12px; }
.store-time-range span { color: #606266; font-size: 14px; }

.store-form-inline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.store-form-inline .el-form-item { margin-bottom: 18px; }

.store-cover-upload { display: flex; align-items: center; }
.store-cover-preview {
  position: relative;
  width: 200px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2f5;
}
.store-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.store-cover-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.store-cover-preview:hover .store-cover-actions { opacity: 1; }
.store-cover-upload .image-upload-placeholder {
  width: 200px;
  height: 120px;
  border: 2px dashed #dcdfe6;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #909399;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.store-cover-upload .image-upload-placeholder:hover { border-color: #ff7a18; color: #ff7a18; }
.store-cover-upload .image-upload-placeholder .el-icon { font-size: 28px; margin-bottom: 6px; }
.store-cover-upload .image-upload-placeholder span { font-size: 13px; }

.store-address-row { display: flex; gap: 12px; }
.store-address-row .el-textarea { flex: 1; }
.store-address-row .el-button { align-self: flex-start; }

.store-wechat-row { display: flex; gap: 10px; }
.store-wechat-row .el-input { flex: 1; }

.store-map-search { margin-bottom: 12px; }
.store-map-container { width: 100%; height: 360px; border-radius: 12px; overflow: hidden; background: #f0f2f5; }
.store-map-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff5ee;
  border-radius: 8px;
  color: #ff7a18;
  font-size: 13px;
}
.store-map-selected .el-icon { font-size: 16px; }
.store-map-latlng { margin-left: auto; color: #909399; font-size: 12px; }

.store-detail { text-align: center; }
.store-detail-cover { height: 140px; border-radius: 12px; margin-bottom: 16px; background: linear-gradient(135deg, #ff7a18, #ffb347); }
.store-detail-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.store-detail-name { font-size: 20px; font-weight: 600; color: #1a1d2e; }
.store-detail-info { text-align: left; margin-bottom: 20px; }
.store-detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}
.store-detail-row label { width: 90px; color: #909399; flex-shrink: 0; }
.store-detail-row span { color: #1a1d2e; flex: 1; }
.store-detail-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px;
  background: #fafafa;
  border-radius: 12px;
}
.store-detail-stat { text-align: center; }
.store-detail-stat .value { font-size: 22px; font-weight: 700; color: #1a1d2e; }
.store-detail-stat .value.rating { color: #ff7a18; }
.store-detail-stat .label { font-size: 12px; color: #909399; margin-top: 4px; }

/* 编辑弹窗 */
.store-edit-dialog .el-dialog__body {
  padding: 10px 20px 20px;
}
.store-edit-shop-settings {
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
}
.store-edit-shop-settings .shop-settings-body {
  gap: 16px;
}
.store-edit-shop-settings .shop-settings-form {
  flex: 1;
  min-width: 0;
}
.store-edit-shop-settings .shop-settings-preview {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
}

/* 整店窗口分享 - 图片上传 */
.share-image-uploader .el-upload {
  width: 240px;
  height: 192px;
  border: 2px dashed #dcdfe6;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.share-image-uploader .el-upload:hover {
  border-color: #ff7a18;
}
.share-image-uploader .share-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.share-image-uploader .share-image-uploader-icon {
  font-size: 32px;
  color: #c0c4cc;
}
.store-edit-shop-settings .phone-frame {
  transform: scale(0.85);
  transform-origin: top center;
}

/* 角色权限 */
.roles-page { padding-bottom: 24px; }
.roles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.roles-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #909399;
  margin-bottom: 8px;
}
.roles-breadcrumb .breadcrumb-item { cursor: pointer; }
.roles-breadcrumb .breadcrumb-item:hover { color: #ff7a18; }
.roles-breadcrumb .breadcrumb-item.active { color: #606266; cursor: default; }
.roles-breadcrumb .breadcrumb-separator { color: #c0c4cc; }
.roles-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1d2e;
}
.roles-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #909399;
  margin-left: 10px;
}
.roles-empty { background: #fff; border-radius: 16px; padding: 60px 20px; }
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.role-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.role-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.role-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}
.role-card-info { flex: 1; min-width: 0; }
.role-card-name { font-size: 16px; font-weight: 600; color: #1a1d2e; margin-bottom: 4px; }
.role-member-tag {
  background: #fff5ee !important;
  color: #ff7a18 !important;
  border: none !important;
}
.role-card-actions { display: flex; gap: 6px; }
.role-card-actions .el-button { color: #909399; }
.role-card-actions .el-button:hover { color: #ff7a18; background: #fff5ee; }
.role-card-actions .el-button[type="danger"]:hover { color: #f56c6c; background: #fef0f0; }
.role-permission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}
.role-permission-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #606266;
}
.role-permission-item .el-icon { font-size: 14px; }
.perm-check { color: #2ed573; }
.perm-close { color: #c0c4cc; }
.role-permission-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.role-permission-edit .el-checkbox {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  min-width: 104px;
  justify-content: center;
}
.role-permission-edit .el-checkbox__label { padding-left: 6px; }

/* 员工管理 */
.staff-page { padding-bottom: 24px; }
.staff-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.staff-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #909399;
  margin-bottom: 8px;
}
.staff-breadcrumb .breadcrumb-item { cursor: pointer; }
.staff-breadcrumb .breadcrumb-item:hover { color: #4c6ef5; }
.staff-breadcrumb .breadcrumb-item.active { color: #606266; cursor: default; }
.staff-breadcrumb .breadcrumb-separator { color: #c0c4cc; }
.staff-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1d2e;
}
.staff-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #909399;
  margin-left: 10px;
}
.btn-blue {
  background: linear-gradient(135deg, #4c6ef5, #748ffc) !important;
  border: none !important;
}
.btn-blue:hover { opacity: 0.9; }
.staff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.staff-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.staff-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
.staff-stat-icon.blue { background: linear-gradient(135deg, #4c6ef5, #74c0fc); }
.staff-stat-icon.purple { background: linear-gradient(135deg, #9b5de5, #d0bfff); }
.staff-stat-icon.green { background: linear-gradient(135deg, #2ed573, #7bed9f); }
.staff-stat-info { flex: 1; }
.staff-stat-label { font-size: 13px; color: #909399; margin-bottom: 6px; }
.staff-stat-value { font-size: 24px; font-weight: 700; color: #1a1d2e; }
.staff-stat-value .unit { font-size: 13px; font-weight: 400; color: #909399; margin-left: 4px; }
.staff-list-card { padding: 20px; }
.staff-table .el-table__header th { font-weight: 500; color: #606266; }
.staff-user-cell { display: flex; align-items: center; gap: 12px; }
.staff-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.staff-user-info { flex: 1; min-width: 0; }
.staff-user-name { font-size: 14px; font-weight: 600; color: #1a1d2e; }
.staff-user-title { font-size: 12px; color: #909399; margin-top: 2px; }
.staff-phone { color: #606266; font-size: 14px; }
.staff-role-tag { font-weight: 500; }
.staff-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #606266; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.active { background: #2ed573; }
.status-dot.disabled { background: #c0c4cc; }
.staff-row-actions { display: flex; gap: 6px; }
.staff-row-actions .el-button { color: #909399; }
.staff-row-actions .el-button:hover { color: #4c6ef5; background: #f0f5ff; }
.staff-row-actions .el-button[type="danger"]:hover { color: #f56c6c; background: #fef0f0; }
.staff-bind-dialog { text-align: center; padding: 10px 0; }
.staff-bind-tip { color: #606266; font-size: 14px; margin-bottom: 16px; }
.staff-bind-qr { width: 240px; height: 240px; margin: 0 auto; background: #f5f7fa; border-radius: 8px; overflow: hidden; }
.staff-bind-qr img { width: 100%; height: 100%; object-fit: contain; }
.staff-bind-url { color: #909399; font-size: 12px; margin-top: 16px; word-break: break-all; }
.staff-permission-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.staff-permission-edit .el-checkbox {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  min-width: 104px;
  justify-content: center;
}
.staff-permission-edit .el-checkbox__label { padding-left: 6px; }
.staff-empty { padding: 60px 20px; }

/* 产品管理 */
.product-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.product-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}
.product-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.product-stat-card.active {
  border-color: #ff7a18;
  background: #fff8f2;
}
.product-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
}
.product-stat-icon.all { background: #909399; }
.product-stat-icon.active { background: #67c23a; }
.product-stat-icon.inactive { background: #c0c4cc; }
.product-stat-icon.sales { background: #ff7a18; }
.product-stat-label { font-size: 14px; color: #909399; margin-bottom: 6px; }
.product-stat-value { font-size: 28px; font-weight: 700; color: #1a1d2e; }

.product-search-bar { margin-bottom: 20px; }
.product-search-bar .search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.product-search-bar .el-select { width: 180px; }

.product-list-card { padding: 20px; }
.product-empty { padding: 40px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.product-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff7a18, #ffb347);
}
.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.product-status.on { background: rgba(103, 194, 58, 0.15); color: #67c23a; }
.product-status.off { background: rgba(144, 147, 153, 0.15); color: #909399; }
.product-actions-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .product-actions-overlay { opacity: 1; }
.product-actions-overlay .el-button { background: rgba(255, 255, 255, 0.9); }

.product-card-body { padding: 16px; }
.product-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1d2e;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.product-card-tags .el-tag { font-size: 12px; }
.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.product-card-price { font-size: 18px; font-weight: 700; color: #ff4d4f; }
.product-card-sales { font-size: 13px; color: #909399; }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card-footer .el-switch { --el-switch-on-color: #67c23a; --el-switch-off-color: #c0c4cc; }

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.pagination-info { font-size: 14px; color: #909399; }

.import-dialog-form {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.import-dialog-form .el-select { width: 180px; }
.material-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 16px;
}
.material-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  aspect-ratio: 1;
  background: #f5f7fa;
}
.material-item.selected { border-color: #ff7a18; }
.material-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.material-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff7a18;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.upload-tip { font-size: 12px; color: #909399; margin-top: 12px; }

@media (max-width: 1400px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .product-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .material-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .stores-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .role-permission-grid { grid-template-columns: repeat(2, 1fr); }
  .store-form-inline { grid-template-columns: 1fr; }
  .staff-stats { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .product-stat-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-search-bar .search-form { flex-direction: column; align-items: flex-start; }
  .product-search-bar .el-input,
  .product-search-bar .el-select { width: 100% !important; }
  .product-pagination { flex-direction: column; gap: 12px; align-items: flex-start; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 素材库 - 1:1 还原 */
.material-header {
  margin-bottom: 20px;
}
.material-header .page-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1d2e;
}
.material-header .page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8c8c8c;
}
.material-header .page-breadcrumb .breadcrumb-item {
  cursor: pointer;
  transition: color 0.2s;
}
.material-header .page-breadcrumb .breadcrumb-item:hover { color: #ff7a18; }
.material-header .page-breadcrumb .breadcrumb-item.active { color: #1a1d2e; cursor: default; }
.material-header .page-breadcrumb .breadcrumb-separator { color: #d9d9d9; }

.material-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.material-actions-bar .el-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
}
.material-actions-bar .btn-blue {
  background: #4c6ef5;
  border-color: #4c6ef5;
  color: #fff;
}
.material-actions-bar .btn-blue:hover {
  background: #3b5bdb;
  border-color: #3b5bdb;
}
.material-actions-bar .btn-green {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.material-actions-bar .btn-green:hover {
  background: #16a34a;
  border-color: #16a34a;
}
.material-actions-bar .btn-default {
  background: #fff;
  border-color: #d9d9d9;
  color: #1a1d2e;
}
.material-actions-bar .btn-default:hover {
  border-color: #4c6ef5;
  color: #4c6ef5;
}

.material-filter-card {
  margin-bottom: 20px;
  border-radius: 12px;
}
.material-filter-card .el-card__body {
  padding: 16px;
}
.material-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.material-filters .el-input__wrapper,
.material-filters .el-select .el-input__wrapper {
  border-radius: 6px;
}

.material-library-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 16px;
}
.material-library-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f0f2f5;
  transition: transform 0.2s, box-shadow 0.2s;
}
.material-library-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.material-library-card:hover .material-library-delete {
  opacity: 1;
}
.material-library-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.material-library-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.material-library-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.material-library-info {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.material-library-name {
  font-size: 13px;
  color: #1a1d2e;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.material-info .el-select {
  width: 100%;
}
.material-info .el-select .el-input__inner {
  font-size: 12px;
}
.material-library-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.material-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.pagination-total {
  font-size: 14px;
  color: #909399;
}

@media (max-width: 1200px) {
  .material-library-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 768px) {
  .material-filters .el-select,
  .material-filters .el-input { width: 100% !important; }
  .material-library-grid { grid-template-columns: repeat(2, 1fr); }
  .material-pagination { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* 商家管理页新 UI */
.merchants-page { display: flex; flex-direction: column; gap: 20px; }
.merchants-page-header { display: flex; align-items: center; justify-content: space-between; }
.merchants-page-title-section { display: flex; flex-direction: column; gap: 6px; }
.merchants-page-title { font-size: 22px; font-weight: 600; color: #1a1d2e; margin: 0; line-height: 1.3; }
.merchants-page-subtitle { font-size: 13px; color: #909399; margin: 0; }
.btn-add-merchant { background: #ff7a18; border-color: #ff7a18; font-weight: 500; }
.btn-add-merchant:hover, .btn-add-merchant:focus { background: #ff9238; border-color: #ff9238; }

.merchant-stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.merchant-stats-card { background: #fff; border-radius: 12px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; border: 1px solid #ebeef5; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.2s; }
.merchant-stats-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.merchant-stats-card.active { border-color: #ff7a18; background: #fff5ee; }
.merchant-stats-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.merchant-stats-icon.icon-total { color: #409eff; background: #e6f2ff; }
.merchant-stats-icon.icon-active { color: #67c23a; background: #e8f6e8; }
.merchant-stats-icon.icon-pending { color: #e6a23c; background: #fdf5e8; }
.merchant-stats-icon.icon-banned { color: #f56c6c; background: #fdeaea; }
.merchant-stats-info { display: flex; flex-direction: column; gap: 4px; }
.merchant-stats-value { font-size: 24px; font-weight: 700; color: #1a1d2e; line-height: 1; }
.merchant-stats-label { font-size: 13px; color: #909399; }

.merchant-search-bar { background: #fff; border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; border: 1px solid #ebeef5; box-shadow: 0 2px 8px rgba(0,0,0,0.04); flex-wrap: wrap; }
.merchant-search-input { width: 260px; }
.merchant-search-select { width: 140px; }

.merchant-table { background: #fff; border-radius: 12px; border: 1px solid #ebeef5; box-shadow: 0 2px 8px rgba(0,0,0,0.04); overflow: hidden; }
.merchant-table .el-table__header th { background: #f8f9fb; color: #606266; font-weight: 600; font-size: 13px; }
.merchant-table .el-table__row { font-size: 13px; color: #1a1d2e; }

.merchant-name-cell { display: flex; align-items: center; gap: 10px; }
.merchant-avatar-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.merchant-name-info { display: flex; flex-direction: column; gap: 2px; }
.merchant-name-text { font-size: 14px; font-weight: 500; color: #1a1d2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.merchant-name-phone { font-size: 12px; color: #909399; }

.merchant-vip-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.merchant-vip-tag.basic { color: #909399; background: #f4f4f5; }
.merchant-vip-tag.standard { color: #409eff; background: #e6f2ff; }
.merchant-vip-tag.advanced { color: #ff7a18; background: #fff5ee; }

.merchant-status-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.merchant-status-tag.status-0 { color: #e6a23c; background: #fdf5e8; }
.merchant-status-tag.status-1 { color: #67c23a; background: #e8f6e8; }
.merchant-status-tag.status-2 { color: #f56c6c; background: #fdeaea; }

.merchant-action-btns { display: flex; align-items: center; justify-content: center; gap: 4px; }
.merchant-action-btns .action-btn { font-size: 16px; padding: 4px; }
.merchant-action-btns .action-btn.edit { color: #409eff; }
.merchant-action-btns .action-btn.points { color: #ff7a18; }
.merchant-action-btns .action-btn.reset { color: #909399; }
.merchant-action-btns .action-btn.ban { color: #e6a23c; }
.merchant-action-btns .action-btn.unban { color: #67c23a; }
.merchant-action-btns .action-btn.wallet { color: #ff7a18; }
.merchant-action-btns .action-btn.delete { color: #f56c6c; }
.merchant-action-btns .action-btn:hover { transform: scale(1.1); }

.merchant-balance-text { font-size: 14px; font-weight: 500; color: #ff7a18; }

.merchant-table-footer { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: 14px 20px; border: 1px solid #ebeef5; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.merchant-total { font-size: 13px; color: #909399; }
.merchant-page-size { width: 110px; }

.merchant-image-uploader .uploaded-image-preview { position: relative; width: 120px; height: 120px; border-radius: 8px; overflow: hidden; border: 1px solid #ebeef5; }
.merchant-image-uploader .uploaded-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.merchant-image-uploader .uploaded-image-preview .delete-btn { position: absolute; top: 4px; right: 4px; }
.merchant-image-uploader .image-upload-placeholder { width: 120px; height: 120px; border-radius: 8px; border: 1px dashed #dcdfe6; display: flex; align-items: center; justify-content: center; color: #c0c4cc; font-size: 24px; cursor: pointer; transition: all 0.2s; }
.merchant-image-uploader .image-upload-placeholder:hover { border-color: #ff7a18; color: #ff7a18; }

@media (max-width: 1200px) {
  .merchant-stats-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .merchants-page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .merchant-stats-cards { grid-template-columns: 1fr; }
  .merchant-search-bar { flex-direction: column; align-items: stretch; }
  .merchant-search-input, .merchant-search-select { width: 100%; }
  .merchant-table-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
